This repo was created for the 2-day bootcamp at NTU in January 18-19 2024. The code from the day 1 is stored in the day1 folder, while the code from the day 2 is stored in the day2 folder.
Please check the slides here.
In code along part:
- Open Remix and switch metamask to Ethereum Sepolia.
- Deploy the
MyToken.sol
on Ethereum Sepolia. NFT contract with amint
function, and you can deploy this contract onto an EVM (Ethereum Virtual Machine) network using Remix.
Notes:
Because we are going to use Avalanche Fuji network to demo the cross-chain transaction in day 2, the solidity version is 0.8.19 since the EVM version has not upgraded to Paris yet.
Please check the slides here.
In code along part:
- Open Remix and switch metamask to Ethereum Sepolia.
- Deploy the
MyNFT.sol
on Ethereum Sepolia. - Deploy the
receiver.sol
on Ethereum Sepolia with address with NFT address and Sepolia router address. - Switch metamask from Ethereum Sepolia to Avalanche Fuji.
- Deploy the
sender.sol
on Avalanche Fuji with router address and LINK token address on Fuji. - Transfer 5 LINKs to
sender.sol
. - Call the function
sendMessage
with sepolia selector and receiver address.
Leave your address if you need test tokens on Sepolia in https://pad.riseup.net/p/NTU_Bootcamp_day2
Data Feed materials:
- Please find more details about Data Feed here.
- Please find Data Feed supported chains here.
- Please find Data Feed sample codes here.
NFT Openzeppelin materials:
CCIP materials:
- Please find CCIP sender sample codes here.
- Please find CCIP receiver sample codes here.
- Please router and selector info here.
Faucets
- get test tokens from Chainlink faucets.