Skip to content

Commit

Permalink
Fix *___ -> *_
Browse files Browse the repository at this point in the history
  • Loading branch information
Karkunow committed Dec 20, 2024
1 parent 9bc3fcb commit 80d91a5
Show file tree
Hide file tree
Showing 21 changed files with 219 additions and 219 deletions.
8 changes: 4 additions & 4 deletions blog/aurora-chains-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ image: https://www.datocms-assets.com/95026/1701394098-ac2.png
---
Aurora Chains are dedicated blockchains that go beyond mere Ethereum compatibility through a set of industry-first innovations like:

* *custom token & fee mechanics* (e.g., gasless transactions; paying for gas with a custom token; some percentage of any transaction value to be stored in Aurora Chain Treasury, etc.);
* *custom access control* (public vs private chain, who can transact, who can deploy contracts? e.g., NFT-based access to the blockchain, private chain can be built by using a private NEAR shard – [Calimero](https://www.calimero.network/));
* *seamless interoperability* with Aurora, NEAR, and any other Aurora Chains: you can freely move your assets using Rainbow Bridge, call contracts via cross-contract calls, etc.; This is the main difference between Chains and other solutions (like Avalanche or Cosmos). There is no disjointness in between. You can call any smart contract in any other Chain or Near and interact with it freely.
* *tremendous transaction throughput – *we can provide you with dozens of millions of transactions daily for your ecosystem.
* *custom token & fee mechanics* (e.g., gasless transactions; paying for gas with a custom token; some percentage of any transaction value to be stored in Aurora Chain Treasury, etc.);
* *custom access control* (public vs private chain, who can transact, who can deploy contracts? e.g., NFT-based access to the blockchain, private chain can be built by using a private NEAR shard – [Calimero](https://www.calimero.network/));
* *seamless interoperability* with Aurora, NEAR, and any other Aurora Chains: you can freely move your assets using Rainbow Bridge, call contracts via cross-contract calls, etc.; This is the main difference between Chains and other solutions (like Avalanche or Cosmos). There is no disjointness in between. You can call any smart contract in any other Chain or Near and interact with it freely.
* *tremendous transaction throughput – *we can provide you with dozens of millions of transactions daily for your ecosystem.

Every Aurora Chain is based upon the [Aurora smart contract.](https://github.com/aurora-is-near/aurora-engine/) Aurora Chain is just another instance of it that can be configured in way that will work in the best way possible to be aligned with your business model and goals. The Aurora Labs team will gladly help you maintain and support your chain.

Expand Down
16 changes: 8 additions & 8 deletions blog/aurora-cloud-borealis-business.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ Let’s see this setup process in more detail.

As previously discussed, Deals consist of rules. Therefore, when a business engages with Aurora's engineering team, two key aspects need to be established:

* Which smart contracts will be part of a deal?
* What is the business logic around free transactions for users?\
* Which smart contracts will be part of a deal?
* What is the business logic around free transactions for users?\


Typically, setting up a deal would initiate with specific parameters. These, however, are not strict boundaries but flexible starting points. Our adaptability allows us to fine-tune the operational rules by leveraging a wide range of resources. These could range from IP addresses and authentication tokens to the internal data embedded within each transaction. Nevertheless, right now, we propose using the following set of parameters:

* **FROM:** This parameter specifies the originator of the transaction, and it can take values such as ***All***, meaning that the rule engine will not filter any transactions based on their origin address (i.e., all origin addresses are valid for this deal) or ***EOA*** in which case the rule engine will only pick up transactions coming from a specific list of addresses (EOAs). We refer to this list as the whitelist, which must be populated by the businesses.
* **TO:** This parameter specifies the transaction's target, and it can take values such as an ***address*** so that the rule engine will pick up transactions directed to this specific contract address. If a transaction goes to another contract, it cannot be associated with this deal.
* **DEAL**: This parameter specifies the number of transactions that the beneficiaries of this deal can get. It can be set to UNLIMITED or a specific number.
* **FROM:** This parameter specifies the originator of the transaction, and it can take values such as ***All***, meaning that the rule engine will not filter any transactions based on their origin address (i.e., all origin addresses are valid for this deal) or ***EOA*** in which case the rule engine will only pick up transactions coming from a specific list of addresses (EOAs). We refer to this list as the whitelist, which must be populated by the businesses.
* **TO:** This parameter specifies the transaction's target, and it can take values such as an ***address*** so that the rule engine will pick up transactions directed to this specific contract address. If a transaction goes to another contract, it cannot be associated with this deal.
* **DEAL**: This parameter specifies the number of transactions that the beneficiaries of this deal can get. It can be set to UNLIMITED or a specific number.

Here are a few simple examples of Borealis Business deals: 

Expand All @@ -60,9 +60,9 @@ Here is an image describing how the AuroraPass (AP) Deal works:

Businesses must define a list of approved addresses that can benefit from their deal. The whitelisted addresses are managed via a dedicated API to enable companies to: 

* Add an address. 
* Remove an address. 
* Check if an address is on the whitelist. 
* Add an address. 
* Remove an address. 
* Check if an address is on the whitelist. 

The Aurora team will provide businesses with the credentials for this API as part of the Borealis deal setup process.

Expand Down
12 changes: 6 additions & 6 deletions blog/demystifying-transaction-failures.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ That is it. The task is solved. You can see in Aurora Helpers directly what this

Those `07 03` numbers correspond to the `status` field of the Aurora Engine's transaction. The First number indicates the[ Aurora Engine API version](https://github.com/aurora-is-near/aurora-engine/pull/299/files#diff-a0e4fe79c7aa101e4b4e969318e18bb3854f0f8607e4b56d5665e131f98fdfa8R116). And the second one corresponds to the [statuses](https://github.com/aurora-is-near/aurora-engine/blob/a00df8e7d83ae49c035348111cc89be28cb93dab/engine-types/src/parameters/engine.rs#L19-L26) which could transactions have inside the Engine after execution. Let's compile them into the list below:

* 00 – Succeed: transaction has been executed successfully.
* 01 – Revert: transaction has been reverted, most likely because of internal contract terms.
* 02 – OutOfGas: execution ran out of gas.
* 03 – OutOfFund: not enough funds to start the execution.
* 04 –OutOfOffset: an opcode accesses external information, but the request exceeds the offset limit.
* 05 – CallTooDeep: call stack is too deep.
* 00 – Succeed: transaction has been executed successfully.
* 01 – Revert: transaction has been reverted, most likely because of internal contract terms.
* 02 – OutOfGas: execution ran out of gas.
* 03 – OutOfFund: not enough funds to start the execution.
* 04 –OutOfOffset: an opcode accesses external information, but the request exceeds the offset limit.
* 05 – CallTooDeep: call stack is too deep.

We can create the enum map inside our code to convert easily between codes and error names:

Expand Down
44 changes: 22 additions & 22 deletions blog/getting-started-with-aurora.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ To interact with the contract, you have to obtain some AuroraEth in the Aurora `

To directly obtain AuroraETH in the `testnet`, you can follow these steps:

* Go to the following link: [https://aurora.dev/faucet](https://aurora.dev/faucet)
* Select the Testnet.
* Connect to MetaMask. Click on "Connect to Aurora Testnet." This will likely open your MetaMask wallet and prompt you to perform a few simple instructions.
* Check the wallet address to which you have connected. If you have multiple accounts in MetaMask and it is not connected to the desired account, click on the MetaMask icon in your browser and select the account you want to connect to.
* Click on "Request 0.001 ETH from the faucet." This will initiate the process of receiving AuroraETH.
* Go to the following link: [https://aurora.dev/faucet](https://aurora.dev/faucet)
* Select the Testnet.
* Connect to MetaMask. Click on "Connect to Aurora Testnet." This will likely open your MetaMask wallet and prompt you to perform a few simple instructions.
* Check the wallet address to which you have connected. If you have multiple accounts in MetaMask and it is not connected to the desired account, click on the MetaMask icon in your browser and select the account you want to connect to.
* Click on "Request 0.001 ETH from the faucet." This will initiate the process of receiving AuroraETH.

Congratulations! You now have AuroraETH in your `testnet` wallet!

Expand All @@ -113,17 +113,17 @@ This method will take approximately 20 minutes. First, we will obtain ETH in Goe

Obtain the Eth in Goerli testnet in Ethereum:

* Go to the following link:[ *https://goerli-faucet.pk910.de/*](https://goerli-faucet.pk910.de/). Of course, it is not the only option. But here, you can get the Eth without a daily limit.
* Enter the address where you want the Eth to be sent.
* Click “Start Mining” and wait…
* Finish the mining and receive Eth.
* Go to the following link:[ *https://goerli-faucet.pk910.de/*](https://goerli-faucet.pk910.de/). Of course, it is not the only option. But here, you can get the Eth without a daily limit.
* Enter the address where you want the Eth to be sent.
* Click “Start Mining” and wait…
* Finish the mining and receive Eth.

Transfer the Eth to Aurora using the Rainbow Bridge:

* Visit[ *https://testnet.rainbowbridge.app/*](https://testnet.rainbowbridge.app/)
* Click “New Transfer” and select “Transfer from Ethereum” and “Transfer to Aurora”
* Connect to the desired address using MetaMask in both networks
* Wait for approximately 20 minutes for the transfer to complete
* Visit[ *https://testnet.rainbowbridge.app/*](https://testnet.rainbowbridge.app/)
* Click “New Transfer” and select “Transfer from Ethereum” and “Transfer to Aurora”
* Connect to the desired address using MetaMask in both networks
* Wait for approximately 20 minutes for the transfer to complete

You get the AuroraEth! Now you are ready for contract deployment!

Expand Down Expand Up @@ -430,12 +430,12 @@ In this article, we have learned how to: (1) create accounts in Aurora, (2) get
## References
* HardHat: [https://hardhat.org/tutorial](https://hardhat.org/tutorial)
* MetaMask: [https://metamask.io/](https://metamask.io/)
* Get AuroraETH: [https://aurora.dev/faucet](https://aurora.dev/faucet)
* Mining Goerli ETH: [https://goerli-faucet.pk910.de/](https://goerli-faucet.pk910.de/)
* Rainbow Bridge for testnet: [https://testnet.rainbowbridge.app/](https://testnet.rainbowbridge.app/)
* Explorer for Aurora testnet: [explorer.testnet.aurora.dev](https://explorer.testnet.aurora.dev/)
* Explorer for Near testnet: [https://explorer.testnet.near.org](https://explorer.testnet.near.org)
* dApp for get Near tx from Aurora tx: [https://aurora-helpers.vercel.app/aurora_to_near](https://aurora-helpers.vercel.app/aurora_to_near)
* Demystifying Transaction Failures: [/blog/demystifying-transaction-failures](/blog/demystifying-transaction-failures)
* HardHat: [https://hardhat.org/tutorial](https://hardhat.org/tutorial)
* MetaMask: [https://metamask.io/](https://metamask.io/)
* Get AuroraETH: [https://aurora.dev/faucet](https://aurora.dev/faucet)
* Mining Goerli ETH: [https://goerli-faucet.pk910.de/](https://goerli-faucet.pk910.de/)
* Rainbow Bridge for testnet: [https://testnet.rainbowbridge.app/](https://testnet.rainbowbridge.app/)
* Explorer for Aurora testnet: [explorer.testnet.aurora.dev](https://explorer.testnet.aurora.dev/)
* Explorer for Near testnet: [https://explorer.testnet.near.org](https://explorer.testnet.near.org)
* dApp for get Near tx from Aurora tx: [https://aurora-helpers.vercel.app/aurora_to_near](https://aurora-helpers.vercel.app/aurora_to_near)
* Demystifying Transaction Failures: [/blog/demystifying-transaction-failures](/blog/demystifying-transaction-failures)
14 changes: 7 additions & 7 deletions blog/hot-to-get-your-tokens-from-bastion-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ To formulate the problem more precisely, a user has some `cUSDCcUSDTLP` tokens a

We will go through the next steps:

* What contracts should we call?
* What method should we call, and how?
* How to convert `cUSDC` and `cUSDT` into regular stables?
* What contracts should we call?
* What method should we call, and how?
* How to convert `cUSDC` and `cUSDT` into regular stables?

We will use the most convenient way for users to interact with smart contracts—the Explorer. However, devs can always write a script to perform the steps described in this article with Ethers or Web3.js.

Expand Down Expand Up @@ -66,8 +66,8 @@ We're unsure about the arguments here yet, so let's find out what values we shou

You can see what exactly has happened here during the execution in terms of the token transfers:

* `cUSDCcUSDTLP` tokens were burned
* `cUSDT` and `cUSDC` tokens were transferred to the caller
* `cUSDCcUSDTLP` tokens were burned
* `cUSDT` and `cUSDC` tokens were transferred to the caller

Now, let's scroll down a bit and click on "View details" link at the left bottom of the page, you will see the arguments of the method used there:

Expand All @@ -90,8 +90,8 @@ That is it! Now you got back your `cUSDC` and `cUSDT` tokens.

To do this, we will need to point our attention to these contracts:

* cUSDT: [0x845E15A441CFC1871B7AC610b0E922019BaD9826](https://explorer.mainnet.aurora.dev/address/0x845E15A441CFC1871B7AC610b0E922019BaD9826)
* cUSDC:[ 0xe5308dc623101508952948b141fD9eaBd3337D99](https://explorer.aurora.dev/token/0xe5308dc623101508952948b141fD9eaBd3337D99)
* cUSDT: [0x845E15A441CFC1871B7AC610b0E922019BaD9826](https://explorer.mainnet.aurora.dev/address/0x845E15A441CFC1871B7AC610b0E922019BaD9826)
* cUSDC:[ 0xe5308dc623101508952948b141fD9eaBd3337D99](https://explorer.aurora.dev/token/0xe5308dc623101508952948b141fD9eaBd3337D99)

For both of them, the process will look the same, so let's just talk about `cUSDT` case. To unwrap you need to call this method – \`redeem\`:

Expand Down
28 changes: 14 additions & 14 deletions blog/how-to-get-usdc-tokens-on-aurora-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,25 @@ We have the Goerli Ethereum account and some GoerliETH. Let’s exchange some Et

**2. Connect to Goerli Network.** It can look like it doesn’t support testnet network, but it actually support it, just it is not clear from the web interface.

* Click the `Connect` button. Choose MetaMask and connect to your account.
* Click the `Connect` button. Choose MetaMask and connect to your account.

![](https://www.datocms-assets.com/95026/1689675168-uniswapconnect.jpg)

* Switch on `Show testnets` option on the Uniswap site:
* Switch on `Show testnets` option on the Uniswap site:

![](https://www.datocms-assets.com/95026/1690544253-screenshot-2023-07-28-at-12-35-32.png)

![](https://www.datocms-assets.com/95026/1690544262-screenshot-2023-07-28-at-12-35-41.png)

![](https://www.datocms-assets.com/95026/1690544274-screenshot-2023-07-28-at-12-35-54.png)

* Change the network to Goerli Testnet.
* Change the network to Goerli Testnet.

![](https://www.datocms-assets.com/95026/1690544545-screenshot-2023-07-28-at-12-39-49.png)

**3. Swap GoerliEth into USDC**

* Click `Select token`. Yes, you doesn’t see the USDC tokens in the list. It is Ok, don’t worry:
* Click `Select token`. Yes, you doesn’t see the USDC tokens in the list. It is Ok, don’t worry:

![](https://www.datocms-assets.com/95026/1690544771-screenshot-2023-07-28-at-12-45-29.png)

Expand All @@ -85,11 +85,11 @@ In the search field write `USDC` and select the `USD Coin` from the list. For so

![](https://www.datocms-assets.com/95026/1690544794-screenshot-2023-07-28-at-12-45-57.png)

* Put some small amount of ETH in first line. 0.01 GöETH will be enough.
* Put some small amount of ETH in first line. 0.01 GöETH will be enough.

![](https://www.datocms-assets.com/95026/1690544849-screenshot-2023-07-28-at-12-44-59.png)

* Click Swap
* Click Swap

![](https://www.datocms-assets.com/95026/1690544873-screenshot-2023-07-28-at-12-45-06.png)

Expand All @@ -99,12 +99,12 @@ Congratulations! Now you get a lot of test USDC in your Ethereum account. You ca

Now the easy part: transfer USDC tokens from Ethereum to Aurora.

* Open the Rainbow Bridge for testnet: [https://testnet.rainbowbridge.app/](https://testnet.rainbowbridge.app/)
* Click New Transfer:
* Open the Rainbow Bridge for testnet: [https://testnet.rainbowbridge.app/](https://testnet.rainbowbridge.app/)
* Click New Transfer:

![](https://www.datocms-assets.com/95026/1690544972-screenshot-2023-07-28-at-12-48-40.png)

* Connect to your accounts on Ethereum and on Aurora:
* Connect to your accounts on Ethereum and on Aurora:

![](https://www.datocms-assets.com/95026/1690545004-screenshot-2023-07-28-at-12-48-57.png)

Expand All @@ -122,8 +122,8 @@ In this short article, we learned how to get a lot of USDC tokens on Ethereum, N

## References

* Article with instructions on how to install MetaMask and mint Ether: [/blog/getting-started-with-aurora](/blog/getting-started-with-aurora)
* USDC tokens address on Ethereum Goerli: [https://goerli.etherscan.io/address/0x07865c6e87b9f70255377e024ace6630c1eaa37f](https://goerli.etherscan.io/address/0x07865c6e87b9f70255377e024ace6630c1eaa37f)
* Uniswap: [https://app.uniswap.org/#/swap](https://app.uniswap.org/#/swap)
* Rainbow Bridge For Testnet: [https://testnet.rainbowbridge.app/](https://testnet.rainbowbridge.app/)
* Checking the supported tokens for Rainbow Bridge on Testnet: [https://testnet.rainbowbridge.app/deploy](https://testnet.rainbowbridge.app/deploy)
* Article with instructions on how to install MetaMask and mint Ether: [/blog/getting-started-with-aurora](/blog/getting-started-with-aurora)
* USDC tokens address on Ethereum Goerli: [https://goerli.etherscan.io/address/0x07865c6e87b9f70255377e024ace6630c1eaa37f](https://goerli.etherscan.io/address/0x07865c6e87b9f70255377e024ace6630c1eaa37f)
* Uniswap: [https://app.uniswap.org/#/swap](https://app.uniswap.org/#/swap)
* Rainbow Bridge For Testnet: [https://testnet.rainbowbridge.app/](https://testnet.rainbowbridge.app/)
* Checking the supported tokens for Rainbow Bridge on Testnet: [https://testnet.rainbowbridge.app/deploy](https://testnet.rainbowbridge.app/deploy)
Loading

0 comments on commit 80d91a5

Please sign in to comment.