From 275b83145675f1b843037dc05081a698ee43400a Mon Sep 17 00:00:00 2001 From: Karim <98668332+khadni@users.noreply.github.com> Date: Fri, 4 Oct 2024 11:29:47 -0500 Subject: [PATCH] Fund amounts & nit changes --- src/content/ccip/getting-started.mdx | 6 ++--- .../ccip/tutorials/cross-chain-tokens.mdx | 12 ++++++--- .../ccip/tutorials/manual-execution.mdx | 26 +++++++++++-------- ...programmable-token-transfers-defensive.mdx | 8 ++++-- .../programmable-token-transfers.mdx | 10 ++++--- .../ccip/tutorials/send-arbitrary-data.mdx | 8 ++++-- src/content/ccip/tutorials/usdc.mdx | 14 +++++----- 7 files changed, 51 insertions(+), 33 deletions(-) diff --git a/src/content/ccip/getting-started.mdx b/src/content/ccip/getting-started.mdx index b9f882ec01d..2216550da5a 100644 --- a/src/content/ccip/getting-started.mdx +++ b/src/content/ccip/getting-started.mdx @@ -62,7 +62,7 @@ Deploy the `Sender.sol` contract on _Avalanche Fuji_. To see a detailed explanat style="max-width: 70%;" /> - 1. Open MetaMask and send LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK. + 1. Open MetaMask and send LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK. -You now have one _sender_ contract on _Avalanche Fuji_ and one _receiver_ contract on _Ethereum Sepolia_. You sent `0.1` LINK to the _sender_ contract to pay the CCIP fees. Next, send data from the sender contract to the receiver contract. +You now have one _sender_ contract on _Avalanche Fuji_ and one _receiver_ contract on _Ethereum Sepolia_. You sent `0.2` LINK to the _sender_ contract to pay the CCIP fees. Next, send data from the sender contract to the receiver contract. ## Send data @@ -126,7 +126,7 @@ Send a `Hello World!` string from your contract on _Avalanche Fuji_ to the contr 1. Click the **transact** button to run the function. MetaMask prompts you to confirm the transaction. diff --git a/src/content/ccip/tutorials/cross-chain-tokens.mdx b/src/content/ccip/tutorials/cross-chain-tokens.mdx index 1a8c5c5716d..bf57ed35d84 100644 --- a/src/content/ccip/tutorials/cross-chain-tokens.mdx +++ b/src/content/ccip/tutorials/cross-chain-tokens.mdx @@ -55,7 +55,11 @@ To use this contract: 1. Open MetaMask and select the _Avalanche Fuji_ network. 1. In Remix IDE, click _Deploy & Run Transactions_ and select _Injected Provider - MetaMask_ from the environment list. Remix will then interact with your MetaMask wallet to communicate with _Avalanche Fuji_. - 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_, the router address is and the LINK contract address is . + 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_: + + - The router address is , + - The LINK contract address is . + 1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Open MetaMask and fund your contract with CCIP-BnM tokens. You can transfer _CCIP-BnM_ to your contract. @@ -68,7 +72,7 @@ To use this contract: You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in LINK. Read this [explanation](#transferring-tokens-and-pay-in-link) for a detailed description of the code example. -1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer _LINK_ to your contract. **Note**: The LINK tokens are used to pay for CCIP fees. +1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer _LINK_ to your contract. **Note**: The LINK tokens are used to pay for CCIP fees. 1. Transfer CCIP-BnM from _Avalanche Fuji_: @@ -90,7 +94,7 @@ You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in 1. Once the transaction is successful, note the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x62ca604240fc30133646ff94dcedac5375c5e42b109f3339c85e4fa29541d42b) of a transaction on _Avalanche Fuji_. @@ -131,7 +135,7 @@ You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in Avalanche Fuji's native AVAX. Read this [explanation](#transferring-tokens-and-pay-in-native) for a detailed description of the code example. -1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with native gas tokens. You can transfer _AVAX_ to your contract. **Note**: The native gas tokens are used to pay for CCIP fees. +1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with native gas tokens. You can transfer _AVAX_ to your contract. **Note**: The native gas tokens are used to pay for CCIP fees. 1. Transfer CCIP-BnM from _Avalanche Fuji_: diff --git a/src/content/ccip/tutorials/manual-execution.mdx b/src/content/ccip/tutorials/manual-execution.mdx index a11408e0da5..aec480872b5 100644 --- a/src/content/ccip/tutorials/manual-execution.mdx +++ b/src/content/ccip/tutorials/manual-execution.mdx @@ -34,7 +34,7 @@ This tutorial is similar to the [programmable token transfers example](/ccip/tut 1. Learn how to [acquire CCIP test tokens](/ccip/test-tokens#mint-test-tokens). Following this guide, you should have CCIP-BnM tokens, and CCIP-BnM should appear in the list of your tokens in MetaMask. 1. Learn how to [fund your contract](/resources/fund-your-contract). This guide shows how to fund your contract in LINK, but you can use the same guide for funding your contract with any ERC20 tokens as long as they appear in the list of tokens in MetaMask. 1. Follow the previous tutorial: [_Transfer Tokens with Data_](/ccip/tutorials/programmable-token-transfers) to learn how to make programmable token transfers using CCIP. -1. Create a free account on [tenderly](https://tenderly.co/). You will use tenderly to investigate the failed execution of the receiver contract. +1. Create a free account on [Tenderly](https://tenderly.co/). You will use Tenderly to investigate the failed execution of the receiver contract. ## Tutorial @@ -57,7 +57,9 @@ To use this contract: 1. Open MetaMask and select the network _Avalanche Fuji_. 1. In Remix IDE, click on _Deploy & Run Transactions_ and select _Injected Provider - MetaMask_ from the environment list. Remix will then interact with your MetaMask wallet to communicate with _Avalanche Fuji_. - 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_, the router address is and the LINK contract address is . + 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_: + - The router address is , + - The LINK contract address is . 1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Open MetaMask and fund your contract with CCIP-BnM tokens. You can transfer _CCIP-BnM_ to your contract. @@ -70,7 +72,9 @@ To use this contract: 1. Open MetaMask and select the network _Ethereum Sepolia_. 1. In Remix IDE, under _Deploy & Run Transactions_, make sure the environment is still _Injected Provider - MetaMask_. - 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Ethereum Sepolia_, the router address is and the LINK contract address is . + 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Ethereum Sepolia_: + - The router address is , + - The LINK contract address is . 1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Enable your contract to receive CCIP messages from _Avalanche Fuji_: @@ -149,27 +153,27 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will To determine if a low gas limit is causing the failure in the receiver contract's execution, consider the following methods: -- Error analysis: Examine the error description in the CCIP explorer. An error labeled _ReceiverError. This may be due to an out of gas error on the destination chain. Error code: 0x_, often indicates a low gas issue +- Error analysis: Examine the error description in the CCIP explorer. An error labeled _ReceiverError. This may be due to an out of gas error on the destination chain. Error code: 0x_, often indicates a low gas issue. -- Advanced Investigation Tool: For a comprehensive analysis, employ a sophisticated tool like [tenderly](https://tenderly.co/). Tenderly can provide detailed insights into the transaction processes, helping to pinpoint the exact cause of the failure. +- Advanced Investigation Tool: For a comprehensive analysis, employ a sophisticated tool like [Tenderly](https://tenderly.co/). Tenderly can provide detailed insights into the transaction processes, helping to pinpoint the exact cause of the failure. -To use [tenderly](https://tenderly.co/): +To use [Tenderly](https://tenderly.co/): -1. Copy the destination transaction hash from the CCIP explorer. In this example, the destination transaction hash is _0x06cb1c7d92483e67382a932e99411c4525e2c3aca6e46498c2ba64bf7eb08aba_. -1. Open tenderly and search for your transaction. You should see an interface similar to the following: +1. Copy the destination transaction hash from the CCIP explorer. In this example, the destination transaction hash is _0x9f5b50460a1ab551add15dc4b743c81df992e34bc8140bbbdc033de7043140f5_. +1. Open Tenderly and search for your transaction. You should see an interface similar to the following:
1. Enable _Full Trace_ then click on _Reverts_. 1. Notice the _out of gas_ error in the receiver contract. In this example, the receiver contract is _0x47EAa31C9e2B1B1Ba19824BedcbE0014c15df15e_. @@ -178,7 +182,7 @@ To use [tenderly](https://tenderly.co/): You will increase the gas limit and trigger manual execution: -1. In the [CCIP explorer](https://ccip.chain.link/), set the _Gas limit override_ to then click on _Trigger Manual Execution_. +1. In the [CCIP explorer](https://ccip.chain.link/), connect your wallet, set the _Gas limit override_ to , and click on _Trigger Manual Execution_.
diff --git a/src/content/ccip/tutorials/programmable-token-transfers-defensive.mdx b/src/content/ccip/tutorials/programmable-token-transfers-defensive.mdx index 0f28215ace9..244893f8713 100644 --- a/src/content/ccip/tutorials/programmable-token-transfers-defensive.mdx +++ b/src/content/ccip/tutorials/programmable-token-transfers-defensive.mdx @@ -57,7 +57,9 @@ To use this contract: 1. Open MetaMask and select the network _Avalanche Fuji_. 1. In Remix IDE, click on _Deploy & Run Transactions_ and select _Injected Provider - MetaMask_ from the environment list. Remix will then interact with your MetaMask wallet to communicate with _Avalanche Fuji_. - 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_, the router address is and the LINK contract address is . + 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_: + - The router address is , + - The LINK contract address is . 1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Open MetaMask and fund your contract with CCIP-BnM tokens. You can transfer _CCIP-BnM_ to your contract. @@ -69,7 +71,9 @@ To use this contract: 1. Open MetaMask and select the network _Ethereum Sepolia_. 1. In Remix IDE, under _Deploy & Run Transactions_, make sure the environment is still _Injected Provider - MetaMask_. - 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Ethereum Sepolia_, the router address is and the LINK contract address is . + 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Ethereum Sepolia_: + - The router address is , + - The LINK contract address is . 1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Enable your contract to receive CCIP messages from _Avalanche Fuji_: diff --git a/src/content/ccip/tutorials/programmable-token-transfers.mdx b/src/content/ccip/tutorials/programmable-token-transfers.mdx index 6103b779e56..ad189d527e8 100644 --- a/src/content/ccip/tutorials/programmable-token-transfers.mdx +++ b/src/content/ccip/tutorials/programmable-token-transfers.mdx @@ -57,7 +57,9 @@ To use this contract: 1. Open MetaMask and select the network _Avalanche Fuji_. 1. In Remix IDE, click on _Deploy & Run Transactions_ and select _Injected Provider - MetaMask_ from the environment list. Remix will then interact with your MetaMask wallet to communicate with _Avalanche Fuji_. - 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_, the router address is and the LINK contract address is . + 1. Fill in your blockchain's router and LINK contract addresses. The router address can be found on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Avalanche Fuji_: + - The router address is , + - The LINK contract address is . 1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Open MetaMask and fund your contract with CCIP-BnM tokens. You can transfer _CCIP-BnM_ to your contract. @@ -87,7 +89,7 @@ At this point, you have one _sender_ contract on _Avalanche Fuji_ and one _recei You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will be paid in LINK. Read this [explanation](#transferring-tokens-and-data-and-pay-in-link) for a detailed description of the code example. -1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees. +1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees. 1. Send a string data with tokens from _Avalanche Fuji_: @@ -109,7 +111,7 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will 1. After the transaction is successful, record the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0xd3a0fade0e143fb39964c764bd4803e40062ba8c88e129f44ee795e33ade464b) of a transaction on _Avalanche Fuji_. @@ -153,7 +155,7 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will be paid in Avalanche's native AVAX. Read this [explanation](#transferring-tokens-and-data-and-pay-in-native) for a detailed description of the code example. -1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with AVAX tokens. You can transfer _AVAX_ to your contract. The native gas tokens are used to pay the CCIP fees. +1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with AVAX tokens. You can transfer _AVAX_ to your contract. The native gas tokens are used to pay the CCIP fees. 1. Send a string data with tokens from _Avalanche Fuji_: diff --git a/src/content/ccip/tutorials/send-arbitrary-data.mdx b/src/content/ccip/tutorials/send-arbitrary-data.mdx index ff3444df012..afaa8ae5efc 100644 --- a/src/content/ccip/tutorials/send-arbitrary-data.mdx +++ b/src/content/ccip/tutorials/send-arbitrary-data.mdx @@ -46,7 +46,9 @@ To use this contract: 1. Open MetaMask and select the network _Avalanche Fuji_. 1. In Remix IDE, click on _Deploy & Run Transactions_ and select _Injected Provider - MetaMask_ from the environment list. Remix will then interact with your MetaMask wallet to communicate with _Avalanche Fuji_. - 1. Fill in the router address and the link address for your network. You can find the router address on the [supported networks page](/ccip/supported-networks) and the LINK token address on the [LINK Token contracts page](/resources/link-token-contracts?parent=ccip). For _Avalanche Fuji_, the router address is and the LINK contract address is . + 1. Fill in the router address and the link address for your network. You can find the router address on the [supported networks page](/ccip/supported-networks) and the LINK token address on the [LINK Token contracts page](/resources/link-token-contracts?parent=ccip). For _Avalanche Fuji_: + - The router address is , + - The LINK contract address is . 1. Click on _transact_. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Enable your contract to send CCIP messages to _Ethereum Sepolia_: @@ -57,7 +59,9 @@ To use this contract: 1. Open MetaMask and select the network _Ethereum Sepolia_. 1. In Remix IDE, under _Deploy & Run Transactions_, make sure the environment is still _Injected Provider - MetaMask_. - 1. Fill in the router address and the LINK address for your network. You can find the router address on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Ethereum Sepolia_, the router address is and the LINK contract address is . + 1. Fill in the router address and the LINK address for your network. You can find the router address on the [supported networks page](/ccip/supported-networks) and the LINK contract address on the [LINK token contracts page](/resources/link-token-contracts). For _Ethereum Sepolia_: + - The router address is , + - The LINK contract address is . 1. Click on _transact_. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list. Note your contract address. 1. Enable your contract to receive CCIP messages from _Avalanche Fuji_: diff --git a/src/content/ccip/tutorials/usdc.mdx b/src/content/ccip/tutorials/usdc.mdx index 93a8dc13456..c34ac5f1ae9 100644 --- a/src/content/ccip/tutorials/usdc.mdx +++ b/src/content/ccip/tutorials/usdc.mdx @@ -174,17 +174,17 @@ You will transfer _1 USDC_ and arbitrary data, which contains the encoded stake 1. In Remix IDE, under _Deploy & Run Transactions_, open the list of transactions of your smart contract deployed on _Avalanche Fuji_. 1. Fill in the arguments of the _**sendMessagePayLINK**_ function: -
- -| Argument | Value and Description | -| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| \_destinationChainSelector |
CCIP Chain identifier of the destination blockchain (_Ethereum Sepolia_ in this example). You can find each chain selector on the [supported networks page](/ccip/supported-networks). | -| \_beneficiary | The beneficiary of the Staker tokens on _Ethereum Sepolia_. You can set your own EOA (Externally Owned Account) so you can redeem the Staker tokens in exchange for USDC tokens. | -| \_amount |
The token amount (_1 USDC_). | + | Argument | Value and Description | + | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | + | \_destinationChainSelector |
CCIP Chain identifier of the destination blockchain (_Ethereum Sepolia_ in this example). You can find each chain selector on the [supported networks page](/ccip/supported-networks). | + | \_beneficiary | The beneficiary of the Staker tokens on _Ethereum Sepolia_. You can set your own EOA (Externally Owned Account) so you can redeem the Staker tokens in exchange for USDC tokens. | + | \_amount |
The token amount (_1 USDC_). | 1. Click on `transact` and confirm the transaction on MetaMask. 1. After the transaction is successful, record the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x5e066ec7e94496e1547c368df4199b9f0c4f8f6c82012b2d974aa258a5c9e9fe) of a transaction on _Avalanche Fuji_. + {" "} +