Skip to content

Commit

Permalink
Add shorter inline explanation and adjust gas spike insert
Browse files Browse the repository at this point in the history
  • Loading branch information
thedriftofwords committed Oct 4, 2024
1 parent df6200b commit 88a7d88
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/content/ccip/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Deploy the `Sender.sol` contract on _Avalanche Fuji_. To see a detailed explanat

1. Open MetaMask and send <CopyText text="70" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

## Deploy the receiver contract

Deploy the receiver contract on _Ethereum Sepolia_. You will use this contract to receive data from the sender that you deployed on _Avalanche Fuji_. To see a detailed explanation of this contract, read the [Code Explanation](#receiver-code) section.
Expand Down
3 changes: 3 additions & 0 deletions src/content/ccip/tutorials/cross-chain-tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in

1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. **Note**: The LINK tokens are used to pay for CCIP fees.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

1. Transfer CCIP-BnM from _Avalanche Fuji_:

1. Open MetaMask and select the network _Avalanche Fuji_.
Expand Down
4 changes: 4 additions & 0 deletions src/content/ccip/tutorials/manual-execution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ To use this contract:
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.
1. Open MetaMask and fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

1. Enable your contract to send CCIP messages to _Ethereum Sepolia_:
1. In Remix IDE, under _Deploy & Run Transactions_, open the list of transactions of your smart contract deployed on _Avalanche Fuji_.
1. Call the `allowlistDestinationChain` with <CopyText text="16015286601757825753" code/> as the destination chain selector, and <CopyText text="true" code/> as allowed. Each chain selector is found on the [supported networks page](/ccip/supported-networks).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will

1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

1. Send a string data with tokens from _Avalanche Fuji_:

1. Open MetaMask and select the network _Avalanche Fuji_.
Expand Down
3 changes: 3 additions & 0 deletions src/content/ccip/tutorials/programmable-token-transfers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will

1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

1. Send a string data with tokens from _Avalanche Fuji_:

1. Open MetaMask and select the network _Avalanche Fuji_.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Deploy the `MessageTracker.sol` contract on _Avalanche Fuji_ and enable it to se

1. Open MetaMask and send <CopyText text="70" code/> LINK to the contract address you copied. Your contract will pay CCIP fees in LINK.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

1. Allow the _Ethereum Sepolia_ chain selector for both destination and source chains.

1. On the **Deploy & Run Transactions** tab in Remix, expand the _message tracker_ contract in the **Deployed Contracts** section.
Expand Down Expand Up @@ -96,6 +99,9 @@ Deploy the `Acknowledger.sol` contract on _Ethereum Sepolia_ and enable it to se

1. Open MetaMask and send <CopyText text="70" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

1. Allow the _Avalanche Fuji_ chain selector for both destination and source chains. You must also enable your acknowledger contract to receive CCIP messages from the message tracker you deployed on _Avalanche Fuji_.

1. On the **Deploy & Run Transactions** tab in Remix, expand the _acknowledger_ contract in the **Deployed Contracts** section. Expand the `allowlistDestinationChain`, `allowlistSender`, and `allowlistSourceChain` functions and fill in the following arguments:
Expand All @@ -118,6 +124,8 @@ Deploy the `Acknowledger.sol` contract on _Ethereum Sepolia_ and enable it to se

At this point, you have one _message tracker_ (sender) contract on _Avalanche Fuji_ and one _acknowledger_ (receiver) contract on _Ethereum Sepolia_. You sent `70` LINK to the _message tracker_ contract and `70` LINK to the _acknowledger_ contract to pay the CCIP fees.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia.

### Send data and track the message status

#### Initial message
Expand Down
3 changes: 3 additions & 0 deletions src/content/ccip/tutorials/send-arbitrary-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ You will use CCIP to send a text. The CCIP fees for using CCIP will be paid in L

1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

1. Send "Hello World!" from _Avalanche Fuji_:

1. Open MetaMask and select the network _Avalanche Fuji_.
Expand Down
3 changes: 3 additions & 0 deletions src/content/ccip/tutorials/usdc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ Deploy the Sender contract on _Avalanche Fuji_:
1. Open MetaMask and fund your contract with USDC tokens. You can transfer <CopyText text="1" code/> _USDC_ to your contract.
1. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.

**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this tutorial, you can get additional testnet LINK
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.

Deploy the Staker and Receiver contracts on _Ethereum Sepolia_. Configure the Receiver contract to receive CCIP messages from the Sender contract:

1. Deploy the Staker contract:
Expand Down
3 changes: 2 additions & 1 deletion src/features/ccip/GasSpike.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Aside } from "@components"

<Aside type="note">
<Aside type="note" title="Gas price spikes">
Under normal circumstances, transactions on the Ethereum Sepolia network require significantly fewer tokens to pay for gas. However, during exceptional periods of high gas price spikes, your transactions may fail if not sufficiently funded. In such cases, you may need to fund your contract with additional tokens. We recommend paying for your CCIP transactions in **LINK** tokens (rather than native tokens) as you can obtain extra LINK testnet tokens from [faucets.chain.link](https://faucets.chain.link/). If you encounter a transaction failure due to these gas price spikes, please add additional LINK tokens to your contract and try again.
Alternatively, you can use a supported testnet other than Sepolia.
</Aside

>

0 comments on commit 88a7d88

Please sign in to comment.