UNPKG

@nexusmutual/deployments

Version:

Nexus Mutual deployed contract addresses and abis

2,348 lines (2,345 loc) 464 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // deployments/src/index.ts var src_exports = {}; __export(src_exports, { Assessment: () => Assessment, AssessmentViewer: () => AssessmentViewer, Cover: () => Cover, CoverBroker: () => CoverBroker, CoverNFT: () => CoverNFT, CoverNFTDescriptor: () => CoverNFTDescriptor, CoverProducts: () => CoverProducts, CoverViewer: () => CoverViewer, EACAggregatorProxy: () => EACAggregatorProxy, ERC20: () => ERC20, Governance: () => Governance, IndividualClaims: () => IndividualClaims, LegacyClaimsData: () => LegacyClaimsData, LegacyQuotationData: () => LegacyQuotationData, LimitOrders: () => LimitOrders, MCR: () => MCR, MemberRoles: () => MemberRoles, NXMToken: () => NXMToken, NXMaster: () => NXMaster, NexusViewer: () => NexusViewer, Pool: () => Pool, PriceFeedOracle: () => PriceFeedOracle, ProposalCategory: () => ProposalCategory, Ramm: () => Ramm, SafeTracker: () => SafeTracker, StakingNFT: () => StakingNFT, StakingNFTDescriptor: () => StakingNFTDescriptor, StakingPool: () => StakingPool, StakingPoolFactory: () => StakingPoolFactory, StakingProducts: () => StakingProducts, StakingViewer: () => StakingViewer, SwapOperator: () => SwapOperator, TokenController: () => TokenController, abis: () => abis, addresses: () => addresses_default, wNXM: () => wNXM }); module.exports = __toCommonJS(src_exports); // deployments/src/addresses.json var addresses_default = { Assessment: "0xcafeaa5f9c401b7295890f309168Bbb8173690A3", AssessmentViewer: "0xcafeaA6660019915EC109052825ee7121480F0cD", cbBTC: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "Chainlink-DAI-ETH": "0x773616E4d11A78F511299002da57A0a94577F1f4", "Chainlink-ENZYME-VAULT": "0xCc72039A141c6e34a779eF93AEF5eB4C82A893c7", "Chainlink-ETH-USD": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419", "Chainlink-RETH-ETH": "0x536218f9E9Eb48863970252233c8F271f554C2d0", "Chainlink-STETH-ETH": "0x86392dC19c0b719886221c78AB11eb8Cf5c52812", "Chainlink-CBBTC-USD": "0x2665701293fCbEB223D11A08D826563EDcCE423A", Cover: "0xcafeac0fF5dA0A2777d915531bfA6B29d282Ee62", CoverBroker: "0xCB2B736652D2dBf7d72e4dB880Cf6B7d99507814", CoverNFT: "0xcafeaCa76be547F14D0220482667B42D8E7Bc3eb", CoverProducts: "0xcafead81a2c2508e7344155eB0DA67a3a487AA8d", CoverViewer: "0xcafea53a6c1774030F4B1C06B4A5743d5AFFF8b9", DAI: "0x6B175474E89094C44Da98b954EedeAC495271d0F", Governance: "0x4A5C681dDC32acC6ccA51ac17e9d461e6be87900", IndividualClaims: "0xcafeac12feE6b65A710fA9299A98D65B4fdE7a62", LegacyClaimsData: "0xdc2D359F59F6a26162972c3Bd0cFBfd8C9Ef43af", LegacyQuotationData: "0x1776651F58a17a50098d31ba3C3cD259C1903f7A", LimitOrders: "0xcafea53852E9f719c424Ec2fe1e7aDd27304210F", MCR: "0xcafea92739e411a4D95bbc2275CA61dE6993C9a7", MemberRoles: "0x055CC48f7968FD8640EF140610dd4038e1b03926", NXMToken: "0xd7c49CEE7E9188cCa6AD8FF264C1DA2e69D4Cf3B", NXMaster: "0x01BFd82675DBCc7762C84019cA518e701C0cD07e", NexusViewer: "0xcafeab03F219b7a8BCb92a5d61508A0AE16302b6", Pool: "0xcafeaf6eA90CB931ae43a8Cf4B25a73a24cF6158", PriceFeedOracle: "0xcafea905B417AC7778843aaE1A0b3848CA97a592", ProposalCategory: "0x888eA6Ab349c854936b98586CE6a17E98BF254b2", Ramm: "0xcafea54f03E1Cc036653444e581A10a43B2487CD", SafeTracker: "0xcafeaB8B01C74c2239eA9b2B0F6aB2dD409c6c13", StakingNFT: "0xcafea508a477D94c502c253A58239fb8F948e97f", StakingPoolFactory: "0xcafeafb97BF8831D95C0FC659b8eB3946B101CB3", StakingProducts: "0xcafea573fBd815B5f59e8049E71E554bde3477E4", StakingViewer: "0xcafea5E8a7a54dd14Bb225b66C7a016dfd7F236b", SwapOperator: "0xcafeaed98d7Fce8F355C03c9F3507B90a974f37e", TokenController: "0x5407381b6c251cFd498ccD4A1d877739CB7960B8", USDC: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", wNXM: "0x0d438F3b5175Bebc262bF23753C1E53d03432bDE", wETH: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" }; // deployments/generated/abis.ts var Assessment = [ { "inputs": [ { "internalType": "address", "name": "nxmAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "AcceptVoteRequired", "type": "error" }, { "inputs": [], "name": "AlreadyVoted", "type": "error" }, { "inputs": [], "name": "AssessmentIdsIpfsLengthMismatch", "type": "error" }, { "inputs": [], "name": "AssessmentIdsVotesLengthMismatch", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "maxUnstakeAmount", "type": "uint256" } ], "name": "InvalidAmount", "type": "error" }, { "inputs": [], "name": "InvalidMerkleProof", "type": "error" }, { "inputs": [], "name": "NoWithdrawableRewards", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "nonMember", "type": "address" } ], "name": "NotMember", "type": "error" }, { "inputs": [], "name": "OnlyTokenController", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "lockupExpiry", "type": "uint256" } ], "name": "StakeLockedForAssessment", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "lockupExpiry", "type": "uint256" } ], "name": "StakeLockedForGovernance", "type": "error" }, { "inputs": [], "name": "StakeRequired", "type": "error" }, { "inputs": [], "name": "VotingClosed", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "assessmentId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "assessor", "type": "address" }, { "components": [ { "internalType": "uint96", "name": "accepted", "type": "uint96" }, { "internalType": "uint96", "name": "denied", "type": "uint96" }, { "internalType": "uint32", "name": "start", "type": "uint32" }, { "internalType": "uint32", "name": "end", "type": "uint32" } ], "indexed": false, "internalType": "struct IAssessment.Poll", "name": "poll", "type": "tuple" } ], "name": "FraudProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "root", "type": "bytes32" } ], "name": "FraudSubmitted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "RewardWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint104", "name": "amount", "type": "uint104" } ], "name": "StakeDeposited", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "StakeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "assessmentId", "type": "uint256" }, { "indexed": false, "internalType": "uint96", "name": "stakedAmount", "type": "uint96" }, { "indexed": false, "internalType": "bool", "name": "accepted", "type": "bool" }, { "indexed": false, "internalType": "string", "name": "ipfsAssessmentDataHash", "type": "string" } ], "name": "VoteCast", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "assessments", "outputs": [ { "components": [ { "internalType": "uint96", "name": "accepted", "type": "uint96" }, { "internalType": "uint96", "name": "denied", "type": "uint96" }, { "internalType": "uint32", "name": "start", "type": "uint32" }, { "internalType": "uint32", "name": "end", "type": "uint32" } ], "internalType": "struct IAssessment.Poll", "name": "poll", "type": "tuple" }, { "internalType": "uint128", "name": "totalRewardInNXM", "type": "uint128" }, { "internalType": "uint128", "name": "assessmentDepositInETH", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "assessmentIds", "type": "uint256[]" }, { "internalType": "bool[]", "name": "votes", "type": "bool[]" }, { "internalType": "string[]", "name": "ipfsAssessmentDataHashes", "type": "string[]" }, { "internalType": "uint96", "name": "stakeIncrease", "type": "uint96" } ], "name": "castVotes", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "changeDependentContractAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "masterAddress", "type": "address" } ], "name": "changeMasterAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "fraudResolution", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAssessmentsCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getMinVotingPeriod", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "getPayoutCooldown", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "assessmentId", "type": "uint256" } ], "name": "getPoll", "outputs": [ { "components": [ { "internalType": "uint96", "name": "accepted", "type": "uint96" }, { "internalType": "uint96", "name": "denied", "type": "uint96" }, { "internalType": "uint32", "name": "start", "type": "uint32" }, { "internalType": "uint32", "name": "end", "type": "uint32" } ], "internalType": "struct IAssessment.Poll", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "staker", "type": "address" } ], "name": "getRewards", "outputs": [ { "internalType": "uint256", "name": "totalPendingAmountInNXM", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableAmountInNXM", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilIndex", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getSilentEndingPeriod", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "getStakeLockupPeriod", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "assessor", "type": "address" } ], "name": "getVoteCountOfAssessor", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "hasAlreadyVotedOn", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "internalContracts", "outputs": [ { "internalType": "address payable", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "master", "outputs": [ { "internalType": "contract INXMMaster", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "nxm", "outputs": [ { "internalType": "contract INXMToken", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "rootIndex", "type": "uint256" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" }, { "internalType": "address", "name": "assessor", "type": "address" }, { "internalType": "uint256", "name": "lastFraudulentVoteIndex", "type": "uint256" }, { "internalType": "uint96", "name": "burnAmount", "type": "uint96" }, { "internalType": "uint16", "name": "fraudCount", "type": "uint16" }, { "internalType": "uint256", "name": "voteBatchSize", "type": "uint256" } ], "name": "processFraud", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "stake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "stakeOf", "outputs": [ { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint104", "name": "rewardsWithdrawableFromIndex", "type": "uint104" }, { "internalType": "uint16", "name": "fraudCount", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "totalAssessmentReward", "type": "uint256" }, { "internalType": "uint256", "name": "assessmentDepositInETH", "type": "uint256" } ], "name": "startAssessment", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "root", "type": "bytes32" } ], "name": "submitFraud", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "unstake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "staker", "type": "address" } ], "name": "unstakeAllFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "votesOf", "outputs": [ { "internalType": "uint80", "name": "assessmentId", "type": "uint80" }, { "internalType": "bool", "name": "accepted", "type": "bool" }, { "internalType": "uint32", "name": "timestamp", "type": "uint32" }, { "internalType": "uint96", "name": "stakedAmount", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "staker", "type": "address" }, { "internalType": "uint104", "name": "batchSize", "type": "uint104" } ], "name": "withdrawRewards", "outputs": [ { "internalType": "uint256", "name": "withdrawn", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawnUntilIndex", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "destination", "type": "address" }, { "internalType": "uint104", "name": "batchSize", "type": "uint104" } ], "name": "withdrawRewardsTo", "outputs": [ { "internalType": "uint256", "name": "withdrawn", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawnUntilIndex", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ]; var AssessmentViewer = [ { "inputs": [ { "internalType": "contract INXMMaster", "name": "_master", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "assessment", "outputs": [ { "internalType": "contract IAssessment", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "member", "type": "address" } ], "name": "getRewards", "outputs": [ { "components": [ { "internalType": "uint256", "name": "totalPendingAmountInNXM", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableAmountInNXM", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilIndex", "type": "uint256" } ], "internalType": "struct IAssessmentViewer.AssessmentRewards", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "member", "type": "address" } ], "name": "getStakeLocked", "outputs": [ { "components": [ { "internalType": "bool", "name": "isStakeLocked", "type": "bool" }, { "internalType": "uint256", "name": "stakeLockupExpiry", "type": "uint256" } ], "internalType": "struct IAssessmentViewer.AssessmentStakeLockedState", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "master", "outputs": [ { "internalType": "contract INXMMaster", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ]; var Cover = [ { "inputs": [ { "internalType": "contract ICoverNFT", "name": "_coverNFT", "type": "address" }, { "internalType": "contract IStakingNFT", "name": "_stakingNFT", "type": "address" }, { "internalType": "contract ICompleteStakingPoolFactory", "name": "_stakingPoolFactory", "type": "address" }, { "internalType": "address", "name": "_stakingPoolImplementation", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "AlreadyMigratedCoverData", "type": "error" }, { "inputs": [], "name": "CommissionRateTooHigh", "type": "error" }, { "inputs": [], "name": "CoverAmountIsZero", "type": "error" }, { "inputs": [], "name": "CoverAssetNotSupported", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "CoverNotYetExpired", "type": "error" }, { "inputs": [], "name": "CoverOutsideOfTheGracePeriod", "type": "error" }, { "inputs": [], "name": "CoverPeriodTooLong", "type": "error" }, { "inputs": [], "name": "CoverPeriodTooShort", "type": "error" }, { "inputs": [], "name": "EditNotSupported", "type": "error" }, { "inputs": [], "name": "ExpiredCoversCannotBeEdited", "type": "error" }, { "inputs": [], "name": "InsufficientCoverAmountAllocated", "type": "error" }, { "inputs": [], "name": "InsufficientEthSent", "type": "error" }, { "inputs": [], "name": "InvalidPaymentAsset", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "originalCoverId", "type": "uint256" } ], "name": "MustBeOriginalCoverId", "type": "error" }, { "inputs": [], "name": "OnlyOwnerOrApproved", "type": "error" }, { "inputs": [], "name": "PriceExceedsMaxPremiumInAsset", "type": "error" }, { "inputs": [], "name": "ProductDeprecated", "type": "error" }, { "inputs": [], "name": "ProductNotFound", "type": "error" }, { "inputs": [], "name": "ReturningEthRemainderToSenderFailed", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "RevertedWithoutReason", "type": "error" }, { "inputs": [], "name": "SendingEthToCommissionDestinationFailed", "type": "error" }, { "inputs": [], "name": "SendingEthToPoolFailed", "type": "error" }, { "inputs": [], "name": "UnexpectedCoverAsset", "type": "error" }, { "inputs": [], "name": "UnexpectedEthSent", "type": "error" }, { "inputs": [], "name": "UnexpectedPoolId", "type": "error" }, { "inputs": [], "name": "UnexpectedProductId", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "coverId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "originalCoverId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "productId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "buyer", "type": "address" }, { "indexed": false, "internalType": "string", "name": "ipfsMetadata", "type": "string" } ], "name": "CoverBought", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "coverId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "productId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "unused", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "buyer", "type": "address" }, { "indexed": false, "internalType": "string", "name": "ipfsMetadata", "type": "string" } ], "name": "CoverEdited", "type": "event" }, { "inputs": [], "name": "DEFAULT_MIN_PRICE_RATIO", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_COMMISSION_RATIO", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "NXM_PER_ALLOCATION_UNIT", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "assetId", "type": "uint256" } ], "name": "activeCover", "outputs": [ { "internalType": "uint192", "name": "totalActiveCoverInAsset", "type": "uint192" }, { "internalType": "uint64", "name": "lastBucketUpdateId", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" }, { "internalType": "uint256", "name": "payoutAmountInAsset", "type": "uint256" } ], "name": "burnStake", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint24", "name": "productId", "type": "uint24" }, { "internalType": "uint8", "name": "coverAsset", "type": "uint8" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint32", "name": "period", "type": "uint32" }, { "internalType": "uint256", "name": "maxPremiumInAsset", "type": "uint256" }, { "internalType": "uint8", "name": "paymentAsset", "type": "uint8" }, { "internalType": "uint16", "name": "commissionRatio", "type": "uint16" }, { "internalType": "address", "name": "commissionDestination", "type": "address" }, { "internalType": "string", "name": "ipfsData", "type": "string" } ], "internalType": "struct BuyCoverParams", "name": "params", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "uint256", "name": "coverAmountInAsset", "type": "uint256" } ], "internalType": "struct PoolAllocationRequest[]", "name": "poolAllocationRequests", "type": "tuple[]" } ], "name": "buyCover", "outputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_coverNFTDescriptor", "type": "address" } ], "name": "changeCoverNFTDescriptor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "changeDependentContractAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "masterAddress", "type": "address" } ], "name": "changeMasterAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_stakingNFTDescriptor", "type": "address" } ], "name": "changeStakingNFTDescriptor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "coverNFT", "outputs": [ { "internalType": "contract ICoverNFT", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint24", "name": "productId", "type": "uint24" }, { "internalType": "uint8", "name": "coverAsset", "type": "uint8" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint32", "name": "period", "type": "uint32" }, { "internalType": "uint256", "name": "maxPremiumInAsset", "type": "uint256" }, { "internalType": "uint8", "name": "paymentAsset", "type": "uint8" }, { "internalType": "uint16", "name": "commissionRatio", "type": "uint16" }, { "internalType": "address", "name": "commissionDestination", "type": "address" }, { "internalType": "string", "name": "ipfsData", "type": "string" } ], "internalType": "struct BuyCoverParams", "name": "params", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "uint256", "name": "coverAmountInAsset", "type": "uint256" } ], "internalType": "struct PoolAllocationRequest[]", "name": "poolAllocationRequests", "type": "tuple[]" }, { "internalType": "address", "name": "buyer", "type": "address" } ], "name": "executeCoverBuy", "outputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "expireCover", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "getCoverData", "outputs": [ { "components": [ { "internalType": "uint24", "name": "productId", "type": "uint24" }, { "internalType": "uint8", "name": "coverAsset", "type": "uint8" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint32", "name": "start", "type": "uint32" }, { "internalType": "uint32", "name": "period", "type": "uint32" }, { "internalType": "uint32", "name": "gracePeriod", "type": "uint32" }, { "internalType": "uint16", "name": "rewardsRatio", "type": "uint16" }, { "internalType": "uint16", "name": "capacityRatio", "type": "uint16" } ], "internalType": "struct CoverData", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getCoverDataCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "getCoverDataWithReference", "outputs": [ { "components": [ { "internalType": "uint24", "name": "productId", "type": "uint24" }, { "internalType": "uint8", "name": "coverAsset", "type": "uint8" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint32", "name": "start", "type": "uint32" }, { "internalType": "uint32", "name": "period", "type": "uint32" }, { "internalType": "uint32", "name": "gracePeriod", "type": "uint32" }, { "internalType": "uint16", "name": "rewardsRatio", "type": "uint16" }, { "internalType": "uint16", "name": "capacityRatio", "type": "uint16" } ], "internalType": "struct CoverData", "name": "", "type": "tuple" }, { "components": [ { "internalType": "uint32", "name": "originalCoverId", "type": "uint32" }, { "internalType": "uint32", "name": "latestCoverId", "type": "uint32" } ], "internalType": "struct CoverReference", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "getCoverReference", "outputs": [ { "components": [ { "internalType": "uint32", "name": "originalCoverId", "type": "uint32" }, { "internalType": "uint32", "name": "latestCoverId", "type": "uint32" } ], "internalType": "struct CoverReference", "name": "coverReference", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getDefaultMinPriceRatio", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "getGlobalCapacityAndPriceRatios", "outputs": [ { "internalType": "uint256", "name": "_globalCapacityRatio", "type": "uint256" }, { "internalType": "uint256", "name": "_defaultMinPriceRatio", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "getGlobalCapacityRatio", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "getGlobalRewardsRatio", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "getLatestEditCoverData", "outputs": [ { "components": [ { "internalType": "uint24", "name": "productId", "type": "uint24" }, { "internalType": "uint8", "name": "coverAsset", "type": "uint8" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint32", "name": "start", "type": "uint32" }, { "internalType": "uint32", "name": "period", "type": "uint32" }, { "internalType": "uint32", "name": "gracePeriod", "type": "uint32" }, { "internalType": "uint16", "name": "rewardsRatio", "type": "uint16" }, { "internalType": "uint16", "name": "capacityRatio", "type": "uint16" } ], "internalType": "struct CoverData", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" } ], "name": "getPoolAllocations", "outputs": [ { "components": [ { "internalType": "uint40", "name": "poolId", "type": "uint40" }, { "internalType": "uint96", "name": "coverAmountInNXM", "type": "uint96" }, { "internalType": "uint96", "name": "premiumInNXM", "type": "uint96" }, { "internalType": "uint24", "name": "allocationId", "type": "uint24" } ], "internalType": "struct PoolAllocation[]", "name": "", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "internalContracts", "outputs": [ { "internalType": "address payable", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "master", "outputs": [ { "internalType": "contract INXMMaster", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "coverIds", "type": "uint256[]" } ], "name": "migrateCoverDataAndPoolAllocations", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes[]", "name": "data", "type": "bytes[]" } ], "name": "multicall", "outputs": [ { "internalType": "bytes[]", "name": "results", "type": "bytes[]" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverAsset", "type": "uint256" } ], "name": "recalculateActiveCoverInAsset", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "stakingNFT", "outputs": [ { "internalType": "contract IStakingNFT", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" } ], "name": "stakingPool", "outputs": [ { "internalType": "contract IStakingPool", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stakingPoolFactory", "outputs": [ { "internalType": "contract ICompleteStakingPoolFactory", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stakingPoolImplementation", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "assetId", "type": "uint256" } ], "name": "totalActiveCoverInAsset", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverAsset", "type": "uint256" } ], "name": "updateTotalActiveCoverAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]; var CoverBroker = [ { "inputs": [ { "internalType": "address", "name": "_cover", "type": "address" }, { "internalType": "address", "name": "_memberRoles", "type": "address" }, { "internalType": "address", "name": "_nxmToken", "type": "address" }, { "internalType": "address", "name": "_master", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidOwnerAddress", "type": "error" }, { "inputs": [], "name": "InvalidPayment", "type": "error" }, { "inputs": [], "name": "InvalidPaymentAsset", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "token", "type": "address" } ], "name": "TransferFailed", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" } ], "name": "ZeroBalance", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "ETH", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "coverId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint24", "name": "productId", "type": "uint24" }, { "internalType": "uint8", "name": "coverAsset", "type": "uint8" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint32", "name": "period", "type": "uint32" }, { "internalType": "uint256", "name": "maxPremiumInAsset", "type": "uint256" }, { "internalType": "uint8", "name": "paymentAsset", "type": "uint8" }, { "internalType": "uint16", "name": "commissionRatio", "type": "uint16" }, { "internalType": "address", "name": "comm