Testnet (Quick Start Example)
Last updated
Last updated
Polygon Mumbai | BNB Testnet | Source Code | |
---|---|---|---|
Please fork the above hardhat repo and follow the readme. This repo will do the following:
Acquire some test token A for bridging on chain A.
Bridge funds and swap to other tokens on chain B.
Commands:
yarn
Enter prvkey for your TESTNET account in env.example file and rename it to .env
Get some testnet matic at https://faucet.polygon.technology/
yarn hardhat run ./scripts/0swapMaticToA1token.js --network polygonmumbai
yarn hardhat run ./scripts/bridgefundsRouterV7.js --network polygonmumbai
Congrats, you've swapped assets cross-chain.
MultichainV7Router
AnycallExecutor
Exec Contract (Sushiswap Anycall Proxy Demo)
Bridge Token A
Bridge Token B