deploy MOS

Find the right repository

git clone https://github.com/mapprotocol/mapo-service-contracts.git

cd /mapo-service-contracts/evm/

npm install

Configure the .env file

* PRIVATE_KEY - deploy address private key
* INFURA_KEY - infura key to use prcs
* MOS_SALT - salt for deploying mos
* FEE_SALT - salt for deploying feeService
* DEPLOY_FACTORY - Mapo's deployment factory contract address 0x6258e4d2950757A749a4d4683A7342261ce12471 (supports most common evm chains like bsc polygon eth mainnet testnets)

Deploy contracts

Deploy MosRelay contract

The following steps help deploy the MOS relay contract on the Map mainnet or Makalu testnet

  1. Deploy mosRelay

  • wrapped tokenis the WMAP token address on MAP mainnet or MAP Makalu.

  • lightNodeManager addressis the light client manager address deployed on MAP mainnet or MAP Makalu.

  1. Deploy FeeService contract

  1. MosRelay sets FeeService

  1. MosRelay registers other mos addresses

MOS on EVM chains

  1. Deploy MOS contract on other EVM chains

  1. Deploy FeeService contract

  1. Set MosRelay in deploying mos contract

  1. MOS sets FeeService contract address

Upgrade MOS or MosRelay contracts

When upgrading the mos contract with the following command.

Please execute the following command on EVM compatible chains

Please execute the following command on the Map Relay chain mainnet or Makalu testnet

Last updated