How To On Evm Chains
Build
git clone https://github.com/mapprotocol/map-contracts.git
cd map-contracts/mcs/evmv2/
npm installTest
npx hardhat testDeploy
MOS Relay
The following steps help to deploy MOS relay contracts on Map mainnet or Makalu testnet
Deploy Fee Center and Token Register
npx hardhat deploy --tags TokenRegister --network <network>Deploy MOS Relay
npx hardhat relayDeploy --wrapped <wrapped token> --lightnode <lightNodeManager address> --network <network>wrapped tokenis wrapped MAP token address on MAP mainnet or MAP Makalu.lightNodeManager addressis the light client mananger address deployed on MAP mainnet or MAP Makalu. See here for more information.
Init MOS Relay
sets fee distribution
MOS on EVM Chains
Deploy
Set MOS Relay Address The following command on the EVM compatible chain
Register The following command applies to the cross-chain contract configuration of Map mainnet and Makalu testnet
Upgrade
When upgrade the mos contract through the following commands.
Please execute the following command on the EVM compatible chain
Please execute the following command on relay chain mainnet or Makalu testnet
Last updated
Was this helpful?