MAP Protocol management and utils contracts
npm install @mapprotocol/protocolThe 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.
0xC68a029cFfCF3eAa42Dad4bf6c0200Ad5fA4b1610xC68a029cFfCF3eAa42Dad4bf6c0200Ad5fA4b161``solidity`
interface IMPTVerify {
function verifyTrieProof(
bytes32 _root,
bytes32 _value,
bytes memory _key,
bytes[] memory _proof
) external pure returns (bool);
}
Deployed address:
- MAPO mainnet: 0x624E6F327c4F91F1Fa6285711245c215de264d490xDD3A69f8f59d892476B0be0260932b4f8d8268Ff
- Makalu testnet:
Build using the following commands:
`shell`
git clone https://github.com/mapprotocol/map-contracts.git
cd protocol
npm install
npx hardhat compile
`shell`
npx hardhat test
`shell
npx hardhat deploy --tags MaintainerManager --network
npx hardhat deploy --tags LightClientManager --network
`
`shell
npx hardhat deploy --tags MaintainerManagerUp --network
npx hardhat deploy --tags LightClientManagerUp --network
`
cmd
`shell`
npx hardhat clientRegister --chain
example
`shell`
npx hardhat clientRegister --chain 1 --contract "0x366db0D543b709434Cb91113270521e50fC2fe49" --network Map
cmd
`shell`
npx hardhat MaintainerWhileListSet --add
example
`shell``
npx hardhat MaintainerWhileListSet --add true --address "0x2f6950D5adE9025266677946c1E0233526387219" --network Map