Skip to content

Commit

Permalink
Fund amounts & nit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
khadni committed Oct 4, 2024
1 parent f9c5678 commit 275b831
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 33 deletions.
6 changes: 3 additions & 3 deletions src/content/ccip/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CopyText text="0.1" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.
1. Open MetaMask and send <CopyText text="0.2" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.

<ClickToZoom
src="/images/ccip/tutorials/fund-deployed-sender-avalanche-fuji.webp"
Expand Down Expand Up @@ -101,7 +101,7 @@ Deploy the receiver contract on _Ethereum Sepolia_. You will use this contract t
style="max-width: 70%;"
/>

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

Expand All @@ -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.

<Aside type="note">
During gas price spikes, your transaction might fail, requiring more than _0.1 LINK_ to proceed. If your
During gas price spikes, your transaction might fail, requiring more than _0.2 LINK_ to proceed. If your
transaction fails, fund your contract with more _LINK_ tokens and try again.
</Aside>

Expand Down
12 changes: 8 additions & 4 deletions src/content/ccip/tutorials/cross-chain-tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/> and the LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.
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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/>,
- The LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.

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 <CopyText text="0.002" code/> _CCIP-BnM_ to your contract.
Expand All @@ -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 <CopyText text="0.1" code/> _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 <CopyText text="0.2" code/> _LINK_ to your contract. **Note**: The LINK tokens are used to pay for CCIP fees.

1. Transfer CCIP-BnM from _Avalanche Fuji_:

Expand All @@ -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_.

<Aside type="note">
During gas price spikes, your transaction might fail, requiring more than _0.1 LINK_ to proceed. If your
During gas price spikes, your transaction might fail, requiring more than _0.2 LINK_ to proceed. If your
transaction fails, fund your contract with more _LINK_ tokens and try again.
</Aside>

Expand Down Expand Up @@ -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 <CopyText text="0.1" code/> _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 <CopyText text="0.2" code/> _AVAX_ to your contract. **Note**: The native gas tokens are used to pay for CCIP fees.

1. Transfer CCIP-BnM from _Avalanche Fuji_:

Expand Down
26 changes: 15 additions & 11 deletions src/content/ccip/tutorials/manual-execution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/> and the LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.
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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/>,
- The LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.
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 <CopyText text="0.002" code/> _CCIP-BnM_ to your contract.
Expand All @@ -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 <CopyText text="0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59" code/> and the LINK contract address is <CopyText text="0x779877A7B0D9E8603169DdbD7836e478b4624789" code/>.
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 <CopyText text="0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59" code/>,
- The LINK contract address is <CopyText text="0x779877A7B0D9E8603169DdbD7836e478b4624789" code/>.
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_:
Expand Down Expand Up @@ -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:

<br />

<ClickToZoom
src="/images/ccip/tutorials/ccip-explorer-send-tokens-message-manual-execution-tenderl1.jpg"
alt="Chainlink CCIP Sepolia open in tenderly"
alt="Chainlink CCIP Sepolia open in Tenderly"
/>

1. Enable _Full Trace_ then click on _Reverts_.

<ClickToZoom
src="/images/ccip/tutorials/ccip-explorer-send-tokens-message-manual-execution-tenderly2.jpg"
alt="Chainlink CCIP Sepolia open in tenderly"
alt="Chainlink CCIP Sepolia open in Tenderly"
/>

1. Notice the _out of gas_ error in the receiver contract. In this example, the receiver contract is _0x47EAa31C9e2B1B1Ba19824BedcbE0014c15df15e_.
Expand All @@ -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 <CopyText text="200000" code/> then click on _Trigger Manual Execution_.
1. In the [CCIP explorer](https://ccip.chain.link/), connect your wallet, set the _Gas limit override_ to <CopyText text="200000" code/>, and click on _Trigger Manual Execution_.

<br />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/> and the LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.
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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/>,
- The LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.
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 <CopyText text="0.002" code/> _CCIP-BnM_ to your contract.
Expand All @@ -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 <CopyText text="0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59" code/> and the LINK contract address is <CopyText text="0x779877A7B0D9E8603169DdbD7836e478b4624789" code/>.
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 <CopyText text="0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59" code/>,
- The LINK contract address is <CopyText text="0x779877A7B0D9E8603169DdbD7836e478b4624789" code/>.
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_:
Expand Down
10 changes: 6 additions & 4 deletions src/content/ccip/tutorials/programmable-token-transfers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/> and the LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.
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 <CopyText text="0xF694E193200268f9a4868e4Aa017A0118C9a8177" code/>,
- The LINK contract address is <CopyText text="0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846" code/>.
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 <CopyText text="0.002" code/> _CCIP-BnM_ to your contract.
Expand Down Expand Up @@ -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 <CopyText text="0.1" code/> _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 <CopyText text="0.2" code/> _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_:

Expand All @@ -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_.

<Aside type="note">
During gas price spikes, your transaction might fail, requiring more than _0.1 LINK_ to proceed. If your
During gas price spikes, your transaction might fail, requiring more than _0.2 LINK_ to proceed. If your
transaction fails, fund your contract with more _LINK_ tokens and try again.
</Aside>

Expand Down Expand Up @@ -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 <CopyText text="0.15" code/> _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 <CopyText text="0.2" code/> _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_:

Expand Down
Loading

0 comments on commit 275b831

Please sign in to comment.