You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: The `addresses.json` file in this repository contains pre-deployed contract addresses from a previous deployment. When you run the deployment script above, it will overwrite this file with your new contract addresses.
-**RPC Reliability**: Each script uses its own RPC endpoint, eliminating multi-RPC failures
249
+
-**Error Recovery**: Retry individual failed deployments without affecting successful ones
250
+
-**Parallel Execution**: Deploy to multiple chains simultaneously
251
+
-**Better Debugging**: Smaller, focused scripts are easier to troubleshoot
225
252
226
-
### Test Cross-Chain Token Transfers
253
+
**Note**: Each deployment creates a network-specific address file (`script/addresses-Sepolia.json`, `script/addresses-ArbitrumSepolia.json`, `script/addresses-Fuji.json`) with the deployed contract addresses. This ensures deployments don't overwrite each other and provides better error isolation.
227
254
228
-
After deployment, you can test different token transfer scenarios. Each test script reads the contract addresses from the `addresses.json` file created by the deployment.
255
+
## Test Cross-Chain Token Transfers
229
256
230
-
### Burn and Mint from Avalanche Fuji to Ethereum Sepolia
257
+
After deployment, test the complete token transfer ecosystem. Each script demonstrates a different mechanism and automatically reads contract addresses from network-specific files.
231
258
232
-
This script tests the burn and mint functionality, transferring tokens from Fuji to Sepolia.
This script demonstrates the burn and mint functionality by transferring tokens from Avalanche Fuji to Ethereum Sepolia. The script automatically reads deployed contract addresses from `addresses-Fuji.json`.
- ✅ [Track on CCIP Explorer](https://ccip.chain.link/#/side-drawer/msg/0x02f9b78cec831e4c548de955aa447057e8c93d635dac3eb96f2e8e21a03e4335)
239
297
240
-
This script tests the lock and mint functionality, transferring tokens from Sepolia to Arbitrum.
298
+
### 2. Lock and Mint: Sepolia → Arbitrum
299
+
300
+
This script demonstrates the lock and mint functionality by transferring tokens from Ethereum Sepolia to Arbitrum Sepolia. The script automatically reads deployed contract addresses from `addresses-Sepolia.json`.
- ✅ [Track on CCIP Explorer](https://ccip.chain.link/#/side-drawer/msg/0xab14c3e93c2370e736c892d640dad06cc550ce4e277afe3c17af5c631a7491bf)
326
+
327
+
### 3. Burn and Release: Arbitrum → Sepolia
328
+
329
+
This script demonstrates the burn and release functionality by transferring tokens from Arbitrum Sepolia back to Ethereum Sepolia. The script automatically reads deployed contract addresses from `addresses-ArbitrumSepolia.json`.
| 1️⃣ |**Lock and Mint** (Sepolia → Arbitrum) | Tokens locked on Sepolia, equivalent minted on Arbitrum |
365
+
| 2️⃣ |**Burn and Release** (Arbitrum → Sepolia) | Tokens burned on Arbitrum, locked tokens released on Sepolia |
366
+
367
+
This creates a **round-trip token bridging system** where the original tokens can be recovered.
368
+
254
369
## Tracking Cross-Chain Transactions
255
370
256
371
After running any of the test scripts, you can track the progress of your cross-chain token transfer using the transaction logs and the [Chainlink CCIP Explorer](https://ccip.chain.link/).
0 commit comments