Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa committed Dec 9, 2024
1 parent 38f7f08 commit 7f29b37
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
23 changes: 23 additions & 0 deletions src/components/CCIP/TutorialBlockchainSelector/DeployTokenStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TutorialCard } from "../TutorialSetup/TutorialCard"
import { TutorialStep } from "../TutorialSetup/TutorialStep"
import { NetworkCheck } from "../TutorialSetup/NetworkCheck"
import { SolidityParam } from "../TutorialSetup/SolidityParam"
import { Callout } from "../TutorialSetup/Callout"
import styles from "./DeployTokenStep.module.css"

interface DeployTokenStepProps {
Expand All @@ -26,6 +27,17 @@ export const DeployTokenStep = ({ chain }: DeployTokenStepProps) => {
<>
<NetworkCheck network={networkInfo} />

<Callout type="note" title="Already Have a Token?">
If you have an existing token that meets the{" "}
<a href="/ccip/concepts/cross-chain-tokens#requirements-for-cross-chain-tokens">CCT requirements</a>:
<ul>
<li>Skip the "Deploy Token" section</li>
<li>Enter your existing token address in the address field below</li>
<li>Continue with "Claim and Accept Admin Role"</li>
</ul>
<p>The tutorial will use your provided token address for subsequent steps.</p>
</Callout>

<ol className={styles.steps}>
<TutorialStep title="Configure Remix">
<ul>
Expand All @@ -42,6 +54,17 @@ export const DeployTokenStep = ({ chain }: DeployTokenStepProps) => {
<p>Configure your token by setting these required parameters in Remix:</p>
</div>

<Callout type="note" title="About the Parameters">
<ul>
<li>The name and symbol help identify your token in wallets and applications</li>
<li>Using 18 decimals is standard for most ERC20 tokens (1 token = 1000000000000000000 wei)</li>
<li>
Setting maxSupply to 0 allows unlimited minting. For a limited supply, specify the amount in wei (e.g.,
for max 1000 tokens with 18 decimals: 1000000000000000000000)
</li>
</ul>
</Callout>

<div className={styles.parameters}>
<SolidityParam
name="name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ import { GrantPrivilegesStep } from "@components/CCIP/TutorialBlockchainSelector

This tutorial will guide you through enabling your tokens in CCIP using only your web browser and [Remix IDE](https://remix.ethereum.org). You'll learn how to deploy tokens and set up token pools without needing to install any development tools.

<Aside type="note" title="Before You Start">
To better understand Cross-Chain Token (CCT) standard:

- Read the [CCT Standard documentation](/ccip/concepts/cross-chain-tokens) for a comprehensive overview of the architecture, components, and
security features
- Check the [CCT Guides overview](/ccip/tutorials/cross-chain-tokens) to understand the general workflow for deploying and enabling your tokens in CCIP

</Aside>

## Before You Begin

<PrerequisitesCard client:load />
Expand Down Expand Up @@ -71,17 +62,6 @@ This tutorial will guide you through enabling your tokens in CCIP using only you

### Source Blockchain Setup

<Aside type="note" title="Already Have a Token?">
If you have an existing token that meets the [CCT requirements](/ccip/concepts/cross-chain-tokens#requirements-for-cross-chain-tokens):

- Skip the "Deploy Token" section
- Enter your existing token address in the address field below
- Continue with "Claim and Accept Admin Role"

The tutorial will use your provided token address for subsequent steps.

</Aside>

<DeployTokenStep chain="source" client:only="react" />

<AdminSetupStep chain="source" client:only="react" />
Expand All @@ -92,17 +72,6 @@ The tutorial will use your provided token address for subsequent steps.

### Destination Blockchain Setup

<Aside type="note" title="Already Have a Token?">
If you have an existing token that meets the [CCT requirements](/ccip/concepts/cross-chain-tokens#requirements-for-cross-chain-tokens):

- Skip the "Deploy Token" section
- Enter your existing token address in the address field below
- Continue with "Claim and Accept Admin Role"

The tutorial will use your provided token address for subsequent steps.

</Aside>

<DeployTokenStep chain="destination" client:only="react" />

<AdminSetupStep chain="destination" client:only="react" />
Expand Down

0 comments on commit 7f29b37

Please sign in to comment.