The factory contract helps to deploy to deterministic addresses without an init code factor.
Every developer can use contract 0x6258e4d2950757A749a4d4683A7342261ce12471
to deploy deterministic addresses contract.
Read this to get more information.
The contract deployed on the MAP Relay Chain is responsible for MPT proof verify. Deployed address:
- MAPO mainnet:
0xC68a029cFfCF3eAa42Dad4bf6c0200Ad5fA4b161
- Makalu testnet:
0xC68a029cFfCF3eAa42Dad4bf6c0200Ad5fA4b161
interface IMPTVerify {
function verifyTrieProof(
bytes32 _root,
bytes32 _value,
bytes memory _key,
bytes[] memory _proof
) external pure returns (bool);
}
The contract deployed on the MAP Relay Chain is responsible for managing light clients, it helps:
- Register light client
- Verify cross chain proof
- Get light client verification range
Deployed address:
- MAPO mainnet:
0x624E6F327c4F91F1Fa6285711245c215de264d49
- Makalu testnet:
0xDD3A69f8f59d892476B0be0260932b4f8d8268Ff
Build using the following commands:
git clone https://github.com/mapprotocol/map-contracts.git
cd protocol
npm install
npx hardhat compile
npx hardhat test
npx hardhat deploy --tags MaintainerManager --network <network>
npx hardhat deploy --tags LightClientManager --network <network>
npx hardhat deploy --tags MaintainerManagerUp --network <network>
npx hardhat deploy --tags LightClientManagerUp --network <network>
cmd
npx hardhat clientRegister --chain <chain id for light client> --contract <contract for light client> --network <network>
example
npx hardhat clientRegister --chain 1 --contract "0x366db0D543b709434Cb91113270521e50fC2fe49" --network Map
cmd
npx hardhat MaintainerWhileListSet --add <add:true remove:false> --address <Maintainer address> --network <network>
example
npx hardhat MaintainerWhileListSet --add true --address "0x2f6950D5adE9025266677946c1E0233526387219" --network Map