This repository is used for new smart contracts of multichain
,
mainly for bridge, router, and anycall functions.
This repository also have upgradation smart contracts of anyswap-v1-core with vesrions start from v7.
for example,
contracts/
├── anycall
│ ├── AnyswapV5CallProxy.sol
│ ├── AnyswapV6CallProxy.sol
├── anytoken
│ └── MultichainV7ERC20.sol
└── router
└── MultichainV7Router.sol
npm install
npx hardhat flatten <contract-to-be-flatten> | sed '/SPDX-License-Identifier:/d' | sed 1i'// SPDX-License-Identifier: GPL-3.0-or-later'
-
use hardhat
npx hardhat compile
-
use remix
1) npm install --save ethers
2) npm install --save web3
network: '',
privateKey: ''
1) npm i ganache-cli
2) ganache-cli
node test/SushiswapTradeProxy.js