How To On Evm Chains

Build

git clone https://github.com/mapprotocol/map-contracts.git
cd map-contracts/mcs/evmv2/
npm install

Test

npx hardhat test

Deploy

MOS Relay

The following steps help to deploy MOS relay contracts on Map mainnet or Makalu testnet

  1. Deploy Fee Center and Token Register

npx hardhat deploy --tags TokenRegister --network <network>
  1. Deploy MOS Relay

npx hardhat relayDeploy --wrapped <wrapped token> --lightnode <lightNodeManager address> --network <network>
  • wrapped token is wrapped MAP token address on MAP mainnet or MAP Makalu.

  • lightNodeManager address is the light client mananger address deployed on MAP mainnet or MAP Makalu. See here for more information.

  1. Init MOS Relay

  1. sets fee distribution

MOS on EVM Chains

  1. Deploy

  1. Set MOS Relay Address The following command on the EVM compatible chain

  1. 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?