For the complete documentation index, see llms.txt. This page is also available as Markdown.

Testnet (Quick Start Example)

Testnet Information

Quick Start

Please fork the above hardhat repo and follow the readme. This repo will do the following:

  1. Acquire some test token A for bridging on chain A.

  2. Bridge funds and swap to other tokens on chain B.

Commands:

  1. yarn

  2. Enter prvkey for your TESTNET account in env.example file and rename it to .env

  3. Get some testnet matic at https://faucet.polygon.technology/

  4. yarn hardhat run ./scripts/0swapMaticToA1token.js --network polygonmumbai

  5. yarn hardhat run ./scripts/bridgefundsRouterV7.js --network polygonmumbai

Congrats, you've swapped assets cross-chain.

Last updated