git clone https://github.com/mapprotocol/mapo-service-contracts.git
cd /mapo-service-contracts/evm/
npm install
* PRIVATE_KEY - 部署地址私钥
* INFURA_KEY - 使用infura的prc的key
* MOS_SALT - 部署mos的salt
* FEE_SALT - 部署feeService的salt
* DEPLOY_FACTORY - Mapo的部署工厂的合约地址0x6258e4d2950757A749a4d4683A7342261ce12471(支持大部分通用的evm链 比如 bsc ploygon eth 主网测试网都支持)
npx hardhat relayFactoryDeploy --wrapped <wrapped token> --lightnode <lightNodeManager address> --network <network>
npx hardhat feeFactoryDeploy --network <network>
npx hardhat setFeeService --address <feeService address> --network <network>
npx hardhat relayRegisterChain --address <mos contract address> --chain <mos chain id> --type <optional default evm value is 1> --network <network>
npx hardhat mosFactoryDeploy --wrapped <native wrapped address> --lightnode <lightnode address> --network <network>
npx hardhat feeFactoryDeploy --network <network>
npx hardhat mosFactoryDeploy --relay <Relay address> --chain <map chainId> --network <network>
npx hardhat setFeeService --address <feeService address> --network <network>
npx hardhat deploy --tags MapoServiceV3Up --network <network>
npx hardhat deploy --tags MapoServiceRelayV3Up --network <network>