♈
Bootcamp-2024
  • Intro
  • 1. Blockchain & Wallet Fundamentals
    • Blockchain Introduction
    • State Machines
    • Cryptography
    • Distributed Networks
    • Game Theory
    • What is Web3
    • MetaMask Wallet Installation
    • Transferring Tokens with MetaMask
  • 2. Smart Contract & Solidity Fundamentals
    • Using Remix
    • Create, compile and publish your first smart contract
    • Interact with already published smart contracts
    • Blockchain Explorer
    • Verify source code on Etherscan
  • 3. Oracles, ERC20 & Chainlink Data Feeds
    • Oracles
    • Create & Deploy ERC20
    • Data Feeds
  • 4. Cross-Chain Tokens With Chainlink CCIP
    • Setting up MetaMask
    • Getting USDC Testnet Tokens
    • Create Smart Contract In Remix
    • Compile and Deploy
    • Approve USDC
    • Send LINK to your Contract
    • Send USDC from Fuji to Sepolia
    • USDC on Sepolia
  • 5. Mentoring Session
  • 6. NFTs & Chainlink Automation
    • NFT Basics
    • Dynamic NFTs
    • Creating an NFT Smart Contract
    • Deploying Your Dynamic NFTs
  • 7. Chainlink CCIP & Cross-Chain NFT dApps
    • Create and deploy CCIP NFT Contracts
    • Mint on Source Chain
    • Fund Contract
    • Mint On Sepolia From Fuji
    • Mint from Destination 2 - Base Sepolia
  • 8. Random Numbers with Chainlink VRF
    • Introduction to Chainlink VRF
    • Hands On Game Using VRF
  • 9. Off-Chain Data with Chainlink Functions
    • Chainlink Functions Playground
    • Setting up MetaMask
    • Remix
    • Functions Subscription
    • Creating The Functions Consumer Contract
    • Sending a Request from Remix
    • City Weather and Examples
    • City Weather on Chainlink Functions
  • 10. Connecting the 🌏 with Chainlink
  • Glossary
Powered by GitBook
On this page
  • CrossChainPriceNFT.sol
  • CrossDestinationMinter.sol
  • CrossSourceMinter.Sol
  • CrossSourceMinterMumbai.sol

7. Chainlink CCIP & Cross-Chain NFT dApps

In this exercise we will be using CCIP to mint NFTs across multiple blockchains

PreviousDeploying Your Dynamic NFTsNextCreate and deploy CCIP NFT Contracts

Last updated 1 year ago

CrossChainPriceNFT is an NFT Smart contract. It uses the to get the Bitcoin Price

CrossChainPriceNFT.sol

CrossChainPriceNFT.sol an NFT Smart contract, it uses the BTC/USD Data Feed to get the Bitcoin Price

  • The Images are emojis which depend on the price of Bitcoin when it was minted. If the Price is higher, then the Emoji is happy, if it is lower, the Emoji is sad, or if it didnt change, the Emoji remains neutral.

  • The Background Color depends on which blockchain the mint command came from.

  • The image is an SVG Generated on Chain, inside the smart contract

  • The MetaData is generated on chain, using Base64


CrossDestinationMinter.sol

  • is prepared to receive a CCIP Message and mint an NFT


CrossSourceMinter.Sol


CrossSourceMinterMumbai.sol

This smart contract is the same as the CrossSourceMinter, but it is deployed on Polygon Mumbai. [IMPORTANT NOTE - MUMBAI is currently Deprecated] I will provide a workaround in this workshop but I wanted to include all the source material from the recorded bootcamp content so you, the learner can backtrack and see how it was originally shared.

This smart contract creates a CCIP Message and sends it to the destination Chain using . This sending-side Smart contract will be deployed on Avalanche Fuji.

Chainlink CCIP
Logochainlink-bootcamp-2024/CrossSourceMinterMumbai.sol at main · solangegueiros/chainlink-bootcamp-2024GitHub
CrossSourceMinterMumbai.sol Source Code
BTC/USD Data Feed
Logochainlink-bootcamp-2024/CrossDestinationMinter.sol at main · solangegueiros/chainlink-bootcamp-2024GitHub
CrossDestinationMinter.sol Source Code
Chainlink CCIP in Cross-Chain dApps
Logochainlink-bootcamp-2024/CrossChainPriceNFT.sol at main · solangegueiros/chainlink-bootcamp-2024GitHub
CrossChainPriceNFT.sol source code
Logochainlink-bootcamp-2024/CrossSourceMinter.sol at main · solangegueiros/chainlink-bootcamp-2024GitHub
CrossSourceMinter.sol Source Code