Skip to content

Commit 11003dc

Browse files
committed
Fix .__ -> ._
1 parent f0ae882 commit 11003dc

14 files changed

+104
-100
lines changed

blog/aurora-cloud-borealis-business.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ Borealis Business’ user journey is seamless. Once a user signs into a dApp wit
7474

7575
### User Journey
7676

77-
1. A user signs into a Decentralized App (dApp).
78-
2. This dApp has a Borealis deal.
79-
3. The dApp checks whether this address was added to the whitelist.
80-
4. If not, the dApp decides whether to send the address for whitelisting. This depends entirely on the business logic. For example, when requesting a transaction’s signature from a whitelisted wallet, the dApp must set gasPrice to 0 because regular wallets will use the default gas price.
81-
5. The user makes a transaction within the app.
82-
6. The user signs the transaction.
83-
7. The transaction goes through Aurora’s infrastructure, and the Borealis rule engine checks for deal matches.
84-
8. It finds a match with the business deal here, so it will report the gas fees to the business, leaving the transaction gas free for the user, and will let the transaction go through and be submitted to Aurora’s internal mempool.
77+
1. A user signs into a Decentralized App (dApp).
78+
2. This dApp has a Borealis deal.
79+
3. The dApp checks whether this address was added to the whitelist.
80+
4. If not, the dApp decides whether to send the address for whitelisting. This depends entirely on the business logic. For example, when requesting a transaction’s signature from a whitelisted wallet, the dApp must set gasPrice to 0 because regular wallets will use the default gas price.
81+
5. The user makes a transaction within the app.
82+
6. The user signs the transaction.
83+
7. The transaction goes through Aurora’s infrastructure, and the Borealis rule engine checks for deal matches.
84+
8. It finds a match with the business deal here, so it will report the gas fees to the business, leaving the transaction gas free for the user, and will let the transaction go through and be submitted to Aurora’s internal mempool.
8585

8686
Here is a scheme describing the User Journey above:
8787

blog/building-a-game-using-near-aurora-and-bos.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ This post shows some code snippets to be self-contained pieces; however, not all
1919

2020
This project consists of three components:
2121

22-
1. A stateless smart contract written in Rust and deployed to Near, which takes a Tic Tac Toe board state and input and returns an updated state as output.
23-
2. A Solidity contract deployed to Aurora, which users interact with to start Tic Tac Toe games and make their moves. This contract uses the Near one to make a computer opponent, and it persists the users’ games in storage.
24-
3. A front-end written in JavaScript that is powered by [*BOS*](https://near.org/blog/near-announces-the-blockchain-operating-system/). This is what the user interacts with directly, and it sends the transactions to the Solidity smart contract on Aurora.
22+
1. A stateless smart contract written in Rust and deployed to Near, which takes a Tic Tac Toe board state and input and returns an updated state as output.
23+
2. A Solidity contract deployed to Aurora, which users interact with to start Tic Tac Toe games and make their moves. This contract uses the Near one to make a computer opponent, and it persists the users’ games in storage.
24+
3. A front-end written in JavaScript that is powered by [*BOS*](https://near.org/blog/near-announces-the-blockchain-operating-system/). This is what the user interacts with directly, and it sends the transactions to the Solidity smart contract on Aurora.
2525

2626
All of these components run on top of a blockchain platform; I did not need to acquire any hardware resources to deploy this dApp, and yet anyone can interact with it.
2727

blog/communication-from-aurora-to-near-local-testing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ image: https://www.datocms-assets.com/95026/1694085970-article-cover.png
88
---
99
In this article, we will learn how to write local tests for the Aurora contracts, which use [XCC calls](/blog/cross-ecosystem-communication) to Near ecosystem. I will use a simple example to demonstrate it, step by step, we will write:
1010

11-
1. A simple counter contract for Near blockchain.
12-
2. Contract on Aurora, which calls the contract on Near by using the XCC.
13-
3. One integration test in the `sandbox`.
14-
4. Setup the `git action` for running this test automatically.
11+
1. A simple counter contract for Near blockchain.
12+
2. Contract on Aurora, which calls the contract on Near by using the XCC.
13+
3. One integration test in the `sandbox`.
14+
4. Setup the `git action` for running this test automatically.
1515

1616
The example described in this article: [https://github.com/olga24912/AuroraToNearXCCExample](https://github.com/olga24912/AuroraToNearXCCExample)
1717

blog/hot-to-get-your-tokens-from-bastion-contract.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ The main actor of this article will be [`SwapFlashLoan` contract](https://explor
3030

3131
The plan is:
3232

33-
1. Approve [cUSDCcUSDTLP token](https://explorer.aurora.dev/address/0x0039f0641156cac478b0DebAb086D78B66a69a01?tab=write_proxy) to be used by the `SwapFlashLoan` contract.
34-
2. Get cUSDC and cUSDT from `SwapFlashLoan`.
35-
3. Redeem [cUSDC](https://explorer.aurora.dev/token/0xe5308dc623101508952948b141fD9eaBd3337D99) and [cUSDT](https://explorer.mainnet.aurora.dev/address/0x845E15A441CFC1871B7AC610b0E922019BaD9826) from their contracts to get stables.
33+
1. Approve [cUSDCcUSDTLP token](https://explorer.aurora.dev/address/0x0039f0641156cac478b0DebAb086D78B66a69a01?tab=write_proxy) to be used by the `SwapFlashLoan` contract.
34+
2. Get cUSDC and cUSDT from `SwapFlashLoan`.
35+
3. Redeem [cUSDC](https://explorer.aurora.dev/token/0xe5308dc623101508952948b141fD9eaBd3337D99) and [cUSDT](https://explorer.mainnet.aurora.dev/address/0x845E15A441CFC1871B7AC610b0E922019BaD9826) from their contracts to get stables.
3636

3737
## Approve cUSDCcUSDTLP
3838

@@ -75,9 +75,9 @@ Now, let's scroll down a bit and click on "View details" link at the left bottom
7575

7676
We can conclude by looking at the both screenshots above that:
7777

78-
1. `amount` argument is equal to your `cUSDCcUSDTLP` tokens amount with 18 decimals added. E.g. in this case, the user has 2021.941835489438, so the correct value should be 2021294184354893800000. You can use [this tool](https://www.eth-to-wei.com/) to convert your values.
79-
2. `deadline` is your time now, with 20 minutes added to it in a timestamp format. You can use [the EpochConverter](https://www.epochconverter.com/) tool to get the correct value. Just add 20 minutes to the datetime there and copy-paste the timestamp value.
80-
3. The first value in `minAmounts` corresponds to the `cUSDT` token amount transferred back, and the second one is for the `cUSDC`. They have 8 decimals, and if you sum them up, you will get your amount of `cUSDCcUSDTLP` tokens. So you can just enter any values which in sum give you a value smaller or equal to the `amount`.
78+
1. `amount` argument is equal to your `cUSDCcUSDTLP` tokens amount with 18 decimals added. E.g. in this case, the user has 2021.941835489438, so the correct value should be 2021294184354893800000. You can use [this tool](https://www.eth-to-wei.com/) to convert your values.
79+
2. `deadline` is your time now, with 20 minutes added to it in a timestamp format. You can use [the EpochConverter](https://www.epochconverter.com/) tool to get the correct value. Just add 20 minutes to the datetime there and copy-paste the timestamp value.
80+
3. The first value in `minAmounts` corresponds to the `cUSDT` token amount transferred back, and the second one is for the `cUSDC`. They have 8 decimals, and if you sum them up, you will get your amount of `cUSDCcUSDTLP` tokens. So you can just enter any values which in sum give you a value smaller or equal to the `amount`.
8181

8282
We're ready to execute the method now. Just enter the correct arguments to your Explorer tab, it should look like this:
8383

blog/how-to-get-usdc-tokens-on-aurora-testnet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ In this article, I will explain how to get official native Ethereum ERC-20 token
1818

1919
For getting USDC tokens, we're going to use the following plan:
2020

21-
1. Create an account in MetaMask for the Ethereum Goerli network and Aurora testnet
22-
2. Mint Ether for your Ethereum account
23-
3. Swap Ether to the USDC tokens in the Ethereum network
24-
4. Transfer USDC tokens from Ethereum to Aurora by using Rainbow Bridge
21+
1. Create an account in MetaMask for the Ethereum Goerli network and Aurora testnet
22+
2. Mint Ether for your Ethereum account
23+
3. Swap Ether to the USDC tokens in the Ethereum network
24+
4. Transfer USDC tokens from Ethereum to Aurora by using Rainbow Bridge
2525

2626
The instructions for steps 1 and 2 you can find in article ["Getting started with Aurora"](/blog/getting-started-with-aurora), so I will not describe them here. For the 1 step see section "Creating an account on the Aurora testnet using MetaMask", for the 2 step see section "Obtaining AuroraEth on the testnet" -> "The second method: transfer from Ethereum".
2727

blog/spinning-up-your-own-aurora-node.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ This installation script is called [standalone-rpc](https://github.com/aurora-is
3737

3838
First, we can split the whole process into a set of steps:
3939

40-
1. Generate NEAR account and signing key.
41-
2. Generating configuration files for relayer, refiner, and nginx.
42-
3. Download the latest database snapshot for relayer (optional, but recommended).
43-
4. Download the latest NEAR Node Data Snapshot and configuration, that is required to correctly run the refiner in `nearcore` mode.
44-
5. Set up AWS credentials if instead of `nearcore` mode you decided to run the refiner in `nearlake` mode.
40+
1. Generate NEAR account and signing key.
41+
2. Generating configuration files for relayer, refiner, and nginx.
42+
3. Download the latest database snapshot for relayer (optional, but recommended).
43+
4. Download the latest NEAR Node Data Snapshot and configuration, that is required to correctly run the refiner in `nearcore` mode.
44+
5. Set up AWS credentials if instead of `nearcore` mode you decided to run the refiner in `nearlake` mode.
4545

4646
Download and start four docker containers: `relayer`, `refiner`, `watchtower`, and `nginx`.
4747

@@ -55,8 +55,8 @@ When running your own relayer, if you intend to send a transaction via `eth_send
5555

5656
Before diving into the configuration, let's discuss what are the different options to run the Relayer. It's pretty straightforward.
5757

58-
1. You can run `relayer` in mainnet or testnet mode.
59-
2. You can use `nearlake` or `nearcore` as a source of data for the `refiner`.
58+
1. You can run `relayer` in mainnet or testnet mode.
59+
2. You can use `nearlake` or `nearcore` as a source of data for the `refiner`.
6060

6161
Choosing to run the mainnet or testnet is quite self-explanatory. But the second option is not.
6262

@@ -76,10 +76,10 @@ The `refiner` can also be run in `nearlake` mode. This mode does not require you
7676

7777
The final step of the whole process is to download docker containers and start them. It will be done for you. The containers that will be running are:
7878

79-
1. `nearaurora/srpc2-relayer` – JSON RPC server and indexer.
80-
2. `nearaurora/srpc2-refiner`[Aurora Refiner](https://github.com/aurora-is-near/borealis-engine-lib) .
81-
3. `nearaurora/reverseproxy` – Nginx (used to isolate backend server from the outer world, redirects requests to the relayer container).
82-
4. `containerrr/watchtower` – service that will check on any updates, and will update images accordingly.
79+
1. `nearaurora/srpc2-relayer` – JSON RPC server and indexer.
80+
2. `nearaurora/srpc2-refiner`[Aurora Refiner](https://github.com/aurora-is-near/borealis-engine-lib) .
81+
3. `nearaurora/reverseproxy` – Nginx (used to isolate backend server from the outer world, redirects requests to the relayer container).
82+
4. `containerrr/watchtower` – service that will check on any updates, and will update images accordingly.
8383

8484
### Conclusions
8585

docs/dev-tools/basics/truffle.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ This example is originally forked from the [OpenZeppelin examples](https://docs
1111

1212
![](https://www.datocms-assets.com/95026/1679442341-truffle_nft_example-a9d17b3f4f30477f3f6d67c4336f20e5.png)
1313

14-
1. The minter address (which is managed by the vaccination program manager) can distribute (mint) the vaccine tickets (NFT tokens 💊💊💊) to the people who are part of the vaccination program.
15-
2. When participants receive the tokens 💊, they can get access to the vaccine by spending the NFT token.
16-
3. This means either burning the NFT token or sending it back to the minter address.
17-
4. If the participant chooses to send it back then the minter can redistribute that token 🎫 to another participant in the line.
18-
5. Then the new participant will have access to the same vaccine token that has been used by the previous participant.
14+
1. The minter address (which is managed by the vaccination program manager) can distribute (mint) the vaccine tickets (NFT tokens 💊💊💊) to the people who are part of the vaccination program.
15+
2. When participants receive the tokens 💊, they can get access to the vaccine by spending the NFT token.
16+
3. This means either burning the NFT token or sending it back to the minter address.
17+
4. If the participant chooses to send it back then the minter can redistribute that token 🎫 to another participant in the line.
18+
5. Then the new participant will have access to the same vaccine token that has been used by the previous participant.
1919

2020
## Installing Prerequisites[](https://doc.aurora.dev/interact/truffle#installing-prerequisites "Direct link to heading")
2121

docs/dev-tools/cloud/aurora-pass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The Ethereum tooling is constantly evolving and improving so it is recommended t
5757

5858
### **A simple Web3Modal example to get started.**
5959

60-
1. Add packages:
60+
1. Add packages:
6161

6262
```shell
6363
yarn add @web3modal/ethereum @web3modal/react wagmi ethers@^5

docs/dev-tools/cloud/borealis-business.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ Borealis Business’ user journey is seamless. Once a user signs into a dApp wit
6767

6868
### User Journey
6969

70-
1. A user signs into a Decentralized App (dApp).
71-
2. This dApp has a Borealis deal.
72-
3. The dApp checks whether this address was added to the whitelist.
73-
4. If not, the dApp decides whether to send the address for whitelisting. This depends entirely on the business logic. For example, when requesting a transaction’s signature from a whitelisted wallet, the dApp must set gasPrice to 0 because regular wallets will use the default gas price.
74-
5. The user makes a transaction within the app.
75-
6. The user signs the transaction.
76-
7. The transaction goes through Aurora’s infrastructure, and the Borealis rule engine checks for deal matches.
77-
8. It finds a match with the business deal here, so it will report the gas fees to the business, leaving the transaction gas free for the user, and will let the transaction go through and be submitted to Aurora’s internal mempool.
70+
1. A user signs into a Decentralized App (dApp).
71+
2. This dApp has a Borealis deal.
72+
3. The dApp checks whether this address was added to the whitelist.
73+
4. If not, the dApp decides whether to send the address for whitelisting. This depends entirely on the business logic. For example, when requesting a transaction’s signature from a whitelisted wallet, the dApp must set gasPrice to 0 because regular wallets will use the default gas price.
74+
5. The user makes a transaction within the app.
75+
6. The user signs the transaction.
76+
7. The transaction goes through Aurora’s infrastructure, and the Borealis rule engine checks for deal matches.
77+
8. It finds a match with the business deal here, so it will report the gas fees to the business, leaving the transaction gas free for the user, and will let the transaction go through and be submitted to Aurora’s internal mempool.
7878

7979
Here is a scheme describing the User Journey above:
8080

docs/dev-tools/indexers/covalent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ title: Covalent
55

66
Covalent maintains a full archival copy of every supported blockchain, meaning every balance, transaction, log event, and NFT asset data is available from the genesis block. This data is available via:
77

8-
1. [Unified API](https://dillinger.io/#unified-api) - Incorporate blockchain data into your app with a familiar REST API
9-
2. [Increment](https://dillinger.io/#increment) - Create and embed custom charts with no-code analytics
8+
1. [Unified API](https://dillinger.io/#unified-api) - Incorporate blockchain data into your app with a familiar REST API
9+
2. [Increment](https://dillinger.io/#increment) - Create and embed custom charts with no-code analytics
1010

1111
**Use Covalent if you need:**
1212

docs/dev-tools/oracles/dia.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
---
22
title: DIA
33
---
4-
DIA is an ecosystem for open financial data in a financial smart contract ecosystem. The target of DIA is to bring together data analysts, data providers and data users. In general, DIA provides a reliable and verifiable bridge between off-chain data from various sources and on-chain smart contracts that can be used to build a variety of financial dApps. DApp developers who want to leverage DIA oracles can access the published data on Aurora. DIA offers data about traditional financial assets and cryptocurrencies. [Read our documentation](https://docs.diadata.org/) to learn about our methodologies, API, oracles, and how to contribute.
4+
DIA is an ecosystem for open financial data in a financial smart contract ecosystem.
5+
6+
The target of DIA is to bring together data analysts, data providers and data users. In general, DIA provides a reliable and verifiable bridge between off-chain data from various sources and on-chain smart contracts that can be used to build a variety of financial Dapps.
7+
8+
Developers who want to leverage DIA oracles can access the published data on Aurora. DIA offers data about traditional financial assets and cryptocurrencies. [Read our documentation](https://docs.diadata.org/) to learn about our methodologies, API, oracles, and how to contribute.
59

610
### Supported Assets
711

@@ -61,23 +65,23 @@ contract DIAOracle {
6165
}
6266
6367
contract DiaAssetBtcOracle {
64-
DIAOracle oracle;
65-
address owner;
68+
DIAOracle oracle;
69+
address owner;
6670
67-
constructor() public {
68-
owner = msg.sender;
69-
}
71+
constructor() public {
72+
owner = msg.sender;
73+
}
7074
71-
function setOracleAddress(address _address) public {
72-
require(msg.sender == owner);
73-
oracle = DIAOracle(_address);
74-
}
75+
function setOracleAddress(address _address) public {
76+
require(msg.sender == owner);
77+
oracle = DIAOracle(_address);
78+
}
7579
76-
function getAssetBtcRate(string asset) constant public returns (uint256) {
77-
(uint assetPrice,) = oracle.getValue(asset);
78-
(uint btcPrice,) = oracle.getValue("BTC/USD");
79-
return (assetPrice / btcPrice);
80-
}
80+
function getAssetBtcRate(string asset) constant public returns (uint256) {
81+
(uint assetPrice,) = oracle.getValue(asset);
82+
(uint btcPrice,) = oracle.getValue("BTC/USD");
83+
return (assetPrice / btcPrice);
84+
}
8185
8286
}
8387
```

docs/dev-tools/oracles/redstone.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ RedStone Oracles can be integrated with EVM-compatible chains out of the box tha
3737

3838
If you want to test your chain there is an example contract and script [here](https://github.com/redstone-finance/redstone-showroom/tree/main/example). You need to follow two steps:
3939

40-
1. Deploy integration example contract to your chain
41-
2. Fill in missing parameters and run an example Typescript script that does the following things:
40+
1. Deploy integration example contract to your chain
41+
2. Fill in missing parameters and run an example Typescript script that does the following things:
4242

4343
* fetches data from the decentralized cache layer,
4444
* adds signed price data to transaction data,

docs/dev-tools/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ title: Choose a category
44

55
import DocCardList from '@theme/DocCardList';
66

7-
<DocCardList />
7+
<DocCardList />

0 commit comments

Comments
 (0)