Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…n-transfers

merged with new commits
  • Loading branch information
martin0995 committed Sep 16, 2024
2 parents 1ed239d + 403c96f commit ee5f15d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,28 @@ Edit the `config.js` file to include the chain IDs, contract addresses, and RPC
forge compile
```

## Deployment

To deploy the smart contracts:

```bash
npm run deploy
```

- You will be prompted to select the **`source`** and **`target`** chains for deployment
- The deployed contract addresses will be saved and updated in `deploy-config/contracts.json`

## Verify Token Attestation

Before initiating a cross-chain token transfer, it's recommended to check if the desired token is attested on the target chain. This ensures that the token can be successfully transferred.

1. Run the token attestation check script:
**1. Run the token attestation check script:**

```bash
npm run verify
```

2. Follow the prompts to input:
**2. Follow the prompts to input:**

- The RPC URL of the target chain
- The Token Bridge contract address on the target chain
Expand All @@ -64,17 +75,6 @@ Before initiating a cross-chain token transfer, it's recommended to check if the

The script will inform you if the token has been attested on the target chain, providing the wrapped token address if it exists.

## Deployment

To deploy the smart contracts:

```bash
npm run deploy
```

- You will be prompted to select the **`source`** and **`target`** chains for deployment.
- The deployed contract addresses will be saved and updated in `deploy-config/contracts.json`.

## Token Transfer

To initiate a token transfer across chains:
Expand All @@ -83,8 +83,8 @@ To initiate a token transfer across chains:
npm run transfer
```

- You will be prompted to select the **`source`** and **`target`** chains for the transfer.
- Provide the token address, recipient address on the target chain, and the amount to transfer.
- You will be prompted to select the **`source`** and **`target`** chains for the transfer
- Provide the token address, recipient address on the target chain, and the amount to transfer

## Recommended Test Setup: Transfer USDC

Expand Down

0 comments on commit ee5f15d

Please sign in to comment.