deploy MOS
Find the right repository
git clone https://github.com/mapprotocol/mapo-service-contracts.git
cd /mapo-service-contracts/evm/
npm installConfigure 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
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.
Deploy FeeService contract
MosRelay sets FeeService
MosRelay registers other mos addresses
MOS on EVM chains
Deploy MOS contract on other EVM chains
Deploy FeeService contract
Set MosRelay in deploying mos contract
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