Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add token transfers to CCIP Getting Started #1503

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/content/ccip/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ whatsnext:
---

import { CodeSample, ClickToZoom, CopyText, Aside } from "@components"
import { MintTokenButton } from "@features/ccip/components/MintTokenButton"

A simple use case for Chainlink CCIP is sending data between smart contracts on different blockchains. This guide shows you how to deploy a CCIP sender contract and a CCIP receiver contract to two different blockchains and send data from the sender contract to the receiver contract. You pay the CCIP fees using LINK.

Expand All @@ -29,6 +30,16 @@ Fees can also be paid in alternative assets, which currently include the native
- Go to [faucet.polygon.technology](https://faucet.polygon.technology/) to acquire testnet MATIC.
- Learn how to [Fund your contract with LINK](/resources/fund-your-contract).

### Mint testnet tokens to use for this example

This guide shows you how to transfer both tokens and messages from Sepolia to Mumbai. Use a [Test Token](/ccip/test-tokens) for this. You can connect your wallet and mint a test token in UI in this tutorial, which connects to your MetaMask wallet.

1. Select the Sepolia network. MetaMask prompts you to switch networks.
1. Click the **Add CCIP-BnM to wallet** button. This lists the token as an asset in your wallet.
1. Click the **Mint 1 CCIP-BnM token** button. MetaMask prompts you to pay testnet ETH to mint the test token.

<MintTokenButton client:visible />

## Deploy the sender contract

Deploy the `Sender.sol` contract on _Ethereum Sepolia_. To see a detailed explanation of this contract, read the [Code Explanation](#sender-code) section.
Expand Down
9 changes: 7 additions & 2 deletions src/content/ccip/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ Blockchain interoperability protocols provide the following capabilities:

Blockchain interoperability protocols are important for the Web3 ecosystem and traditional systems that need to interact with different blockchains. These protocols are the foundation for building blockchain abstraction layers, allowing traditional backends and dApps to interact with any blockchain network through a single middleware solution. Without a blockchain interoperability protocol, Web2 systems and dApps would need to build separate in-house implementations for each cross-chain interaction that they want to use, which is a time-consuming, resource-intensive, and complex process.

## What is Chainlink CCIP
## What is Chainlink CCIP?

The _Chainlink Cross-Chain Interoperability Protocol (CCIP)_ provides a single simple interface through which dApps and web3 entrepreneurs can securely meet all their cross-chain needs, including token transfers and arbitrary messaging.
The _Chainlink Cross-Chain Interoperability Protocol (CCIP)_ provides a single simple interface through which dApps and web3 entrepreneurs can securely meet all their cross-chain needs:

- **Token transfers**: CCIP supports token transfers by locking or burning tokens on one blockchain and unlocking or minting equivalent tokens on another chain.
- **Arbitrary messaging**: CCIP supports sending data or calling functions across different blockchain networks.

<ClickToZoom src="/images/ccip/basic-architecture.png" alt="Chainlink CCIP Basic Architecture" />

Given the [inherent risks of cross-chain interoperability](/resources/bridge-risks), a security-first mindset is being applied to CCIP. Some security features include a [Risk Management Network](/ccip/concepts#risk-management-network) that monitors for malicious activity, decentralized oracle computation from a wide range of high-quality node operators with verifiable on-chain performance histories, and the off-chain reporting ([OCR](/architecture-overview/off-chain-reporting)) protocol, which already secures significant value on several mainnet blockchains.

Expand Down
Loading