multichain-smart-contracts
multichain-smart-contracts copied to clipboard
multichain smart contracts
multichain smart contract
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.
install dependencies
npm install
flatten contract
npx hardhat flatten <contract-to-be-flatten> | sed '/SPDX-License-Identifier:/d' | sed 1i'// SPDX-License-Identifier: GPL-3.0-or-later'
compile
-
use hardhat
npx hardhat compile -
use remix
scripts
The scripts includs deploying and testing related scripts.
Note: Adjust arguments before running
npx hardhat run scripts/encodeSushiCallData.js
npx hardhat run scripts/deploy-anycall-v7.js