MultichainV7Router
0x8E680018D67C57889083c23786C225F730C54Fb5arrow-up-right
0xaB9c7c8326B7e90339c23766EDAdF36C17c83ba2arrow-up-right
Githubarrow-up-right
AnycallExecutor
0x6afCFF9189e8ed3fCc1CFfa184FEB1276f6A82A5arrow-up-right
0xfae90CB0B6707d69eCEAcec1F7dcFA294766E58Earrow-up-right
Exec Contract (Sushiswap Anycall Proxy Demo)
0xcaf870dad882b00f4b20d714bbf7fceada5e4195arrow-up-right
0x9af276A66946d1B3B09760892AA08c9618381464arrow-up-right
Bridge Token A
0x8CD309e14575203535EF120b5b0Ab4DDeD0C2073arrow-up-right
0x78F4CC9627739b5be8e12984D015756cef94b74Barrow-up-right
Bridge Token B
0xfd01A9409862fA090B1833868e72cE52112E2861arrow-up-right
0xc31970D88543FE0cDCfD3572047A5db5B9929C73arrow-up-right
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:
Git clone https://github.com/bscethbot/BridgeFundsAndAnyCallExample.gitarrow-up-right
Git clone
https://github.com/bscethbot/BridgeFundsAndAnyCallExample.git
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/arrow-up-right
yarn hardhat run ./scripts/0swapMaticToA1token.js --network polygonmumbai
yarn hardhat run ./scripts/bridgefundsRouterV7.js --network polygonmumbai
Congrats, you've swapped assets cross-chain.
Last updated 2 years ago