@nexusmutual/deployments
Version:
Nexus Mutual deployed contract addresses and abis
2,355 lines (2,351 loc) • 469 kB
JavaScript
"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, {
Assessments: () => Assessments,
Claims: () => Claims,
Cover: () => Cover,
CoverBroker: () => CoverBroker,
CoverNFT: () => CoverNFT,
CoverNFTDescriptor: () => CoverNFTDescriptor,
CoverProducts: () => CoverProducts,
CoverViewer: () => CoverViewer,
EACAggregatorProxy: () => EACAggregatorProxy,
ERC20: () => ERC20,
Governance: () => Governance,
Governor: () => Governor,
LegacyClaimsData: () => LegacyClaimsData,
LegacyQuotationData: () => LegacyQuotationData,
LimitOrders: () => LimitOrders,
NXMToken: () => NXMToken,
NXMaster: () => NXMaster,
Pool: () => Pool,
Ramm: () => Ramm,
Registry: () => Registry,
SafeTracker: () => SafeTracker,
StakingNFT: () => StakingNFT,
StakingNFTDescriptor: () => StakingNFTDescriptor,
StakingPool: () => StakingPool,
StakingPoolFactory: () => StakingPoolFactory,
StakingProducts: () => StakingProducts,
StakingViewer: () => StakingViewer,
SwapOperator: () => SwapOperator,
TokenController: () => TokenController,
VotePower: () => VotePower,
abis: () => abis,
addresses: () => addresses_default,
wNXM: () => wNXM
});
module.exports = __toCommonJS(src_exports);
// deployments/src/addresses.json
var addresses_default = {
Assessments: "0xcafea55aE10FB1bf21F7aF7a285488C42B59a24A",
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",
Claims: "0xcafeac11196a5CC352938aEEd545b32d5b9646fa",
Cover: "0xcafeac0fF5dA0A2777d915531bfA6B29d282Ee62",
CoverBroker: "0xCB2B736652D2dBf7d72e4dB880Cf6B7d99507814",
CoverNFT: "0xcafeaCa76be547F14D0220482667B42D8E7Bc3eb",
CoverProducts: "0xcafead81a2c2508e7344155eB0DA67a3a487AA8d",
CoverViewer: "0xcafea53a6c1774030F4B1C06B4A5743d5AFFF8b9",
DAI: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
Governance: "0x4A5C681dDC32acC6ccA51ac17e9d461e6be87900",
Governor: "0xcafea6063d4Ec6b045d9676e58897C1f0882Ca32",
LegacyClaimsData: "0xdc2D359F59F6a26162972c3Bd0cFBfd8C9Ef43af",
LegacyQuotationData: "0x1776651F58a17a50098d31ba3C3cD259C1903f7A",
LimitOrders: "0xcafea53852E9f719c424Ec2fe1e7aDd27304210F",
NXMToken: "0xd7c49CEE7E9188cCa6AD8FF264C1DA2e69D4Cf3B",
NXMaster: "0x01BFd82675DBCc7762C84019cA518e701C0cD07e",
Pool: "0xcafea91714e55756C125B509274eDE9Bc91697CB",
Ramm: "0xcafea54f03E1Cc036653444e581A10a43B2487CD",
Registry: "0xcafea2c575550512582090AA06d0a069E7236b9e",
SafeTracker: "0xcafeaB8B01C74c2239eA9b2B0F6aB2dD409c6c13",
StakingNFT: "0xcafea508a477D94c502c253A58239fb8F948e97f",
StakingPoolFactory: "0xcafeafb97BF8831D95C0FC659b8eB3946B101CB3",
StakingProducts: "0xcafea573fBd815B5f59e8049E71E554bde3477E4",
StakingViewer: "0xcafea5c7d25a192ba70ECA0E2dB62F835c1cF81F",
SwapOperator: "0xcafea501b78175F178b899625F06BC618ef06EB8",
TokenController: "0x5407381b6c251cFd498ccD4A1d877739CB7960B8",
USDC: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
VotePower: "0xcafeac90410f069C24a876c208Eb2b3E53424EA5",
wNXM: "0x0d438F3b5175Bebc262bF23753C1E53d03432bDE",
wETH: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
};
// deployments/generated/abis.ts
var Assessments = [
{
"inputs": [
{
"internalType": "address",
"name": "_registry",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "AlreadyVoted",
"type": "error"
},
{
"inputs": [],
"name": "AssessmentAlreadyExists",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "HasNotVoted",
"type": "error"
},
{
"inputs": [],
"name": "InvalidAssessor",
"type": "error"
},
{
"inputs": [],
"name": "InvalidClaimId",
"type": "error"
},
{
"inputs": [],
"name": "InvalidGroupId",
"type": "error"
},
{
"inputs": [],
"name": "InvalidMemberId",
"type": "error"
},
{
"inputs": [],
"name": "InvalidProductType",
"type": "error"
},
{
"inputs": [],
"name": "NotEverybodyVoted",
"type": "error"
},
{
"inputs": [],
"name": "OnlyAdvisoryBoard",
"type": "error"
},
{
"inputs": [],
"name": "OnlyMember",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "currentState",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "checks",
"type": "uint256"
}
],
"name": "Paused",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "RevertedWithoutReason",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"internalType": "uint256",
"name": "callerIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "authorizedBitmap",
"type": "uint256"
}
],
"name": "Unauthorized",
"type": "error"
},
{
"inputs": [],
"name": "VotingAlreadyClosed",
"type": "error"
},
{
"inputs": [],
"name": "VotingPeriodEnded",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "productTypeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
}
],
"name": "AssessingGroupForProductTypeSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "assessorGroupId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "start",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "end",
"type": "uint256"
}
],
"name": "AssessmentStarted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "AssessorAddedToGroup",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "AssessorRemovedFromGroup",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "ipfsMetadata",
"type": "bytes32"
}
],
"name": "GroupMetadataSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "assessor",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bool",
"name": "support",
"type": "bool"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "ipfsHash",
"type": "bytes32"
}
],
"name": "VoteCast",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "VoteUndone",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newEnd",
"type": "uint256"
}
],
"name": "VotingEndChanged",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "assessorMemberIds",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
}
],
"name": "addAssessorsToGroup",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "ballotOf",
"outputs": [
{
"components": [
{
"internalType": "uint32",
"name": "timestamp",
"type": "uint32"
},
{
"internalType": "bool",
"name": "support",
"type": "bool"
}
],
"internalType": "struct IAssessments.Ballot",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"internalType": "bool",
"name": "voteSupport",
"type": "bool"
},
{
"internalType": "bytes32",
"name": "ipfsHash",
"type": "bytes32"
}
],
"name": "castVote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "closeVotingEarly",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "extendVotingPeriod",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "productTypeId",
"type": "uint256"
}
],
"name": "getAssessingGroupIdForProductType",
"outputs": [
{
"internalType": "uint256",
"name": "assessingGroupId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "getAssessment",
"outputs": [
{
"components": [
{
"internalType": "uint16",
"name": "assessingGroupId",
"type": "uint16"
},
{
"internalType": "uint32",
"name": "cooldownPeriod",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "start",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "votingEnd",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "acceptVotes",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "denyVotes",
"type": "uint8"
}
],
"internalType": "struct Assessment",
"name": "assessment",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "getBallotsMetadata",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
}
],
"name": "getGroupAssessorCount",
"outputs": [
{
"internalType": "uint256",
"name": "assessorCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
}
],
"name": "getGroupAssessors",
"outputs": [
{
"internalType": "uint256[]",
"name": "assessorMemberIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getGroupsCount",
"outputs": [
{
"internalType": "uint256",
"name": "groupCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "groupIds",
"type": "uint256[]"
}
],
"name": "getGroupsData",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "ipfsMetadata",
"type": "bytes32"
},
{
"internalType": "uint256[]",
"name": "assessors",
"type": "uint256[]"
}
],
"internalType": "struct IAssessments.AssessmentGroupView[]",
"name": "groups",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "getGroupsForAssessor",
"outputs": [
{
"internalType": "uint256[]",
"name": "groupIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "isAssessor",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
}
],
"name": "isAssessorInGroup",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minVotingPeriod",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
}
],
"name": "multicall",
"outputs": [
{
"internalType": "bytes[]",
"name": "results",
"type": "bytes[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "registry",
"outputs": [
{
"internalType": "contract IRegistry",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
}
],
"name": "removeAssessorFromAllGroups",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
}
],
"name": "removeAssessorFromGroup",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "productTypeIds",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
}
],
"name": "setAssessingGroupIdForProductTypes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "groupId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "ipfsMetadata",
"type": "bytes32"
}
],
"name": "setGroupMetadata",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "productTypeId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "cooldownPeriod",
"type": "uint256"
}
],
"name": "startAssessment",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assessorMemberId",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "claimIds",
"type": "uint256[]"
}
],
"name": "undoVotes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
];
var Claims = [
{
"inputs": [
{
"internalType": "address",
"name": "_registry",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "AlreadyInitialized",
"type": "error"
},
{
"inputs": [],
"name": "AssessmentDepositNotExact",
"type": "error"
},
{
"inputs": [],
"name": "AssessmentDepositTransferToPoolFailed",
"type": "error"
},
{
"inputs": [],
"name": "CantBuyCoverAndClaimInTheSameBlock",
"type": "error"
},
{
"inputs": [],
"name": "ClaimAlreadyPaidOut",
"type": "error"
},
{
"inputs": [],
"name": "ClaimIsBeingAssessed",
"type": "error"
},
{
"inputs": [],
"name": "ClaimNotADraw",
"type": "error"
},
{
"inputs": [],
"name": "ClaimNotAccepted",
"type": "error"
},
{
"inputs": [],
"name": "ClaimNotRedeemable",
"type": "error"
},
{
"inputs": [],
"name": "CoveredAmountExceeded",
"type": "error"
},
{
"inputs": [],
"name": "DepositAlreadyRetrieved",
"type": "error"
},
{
"inputs": [],
"name": "GracePeriodPassed",
"type": "error"
},
{
"inputs": [],
"name": "InvalidClaimId",
"type": "error"
},
{
"inputs": [],
"name": "InvalidClaimMethod",
"type": "error"
},
{
"inputs": [],
"name": "NotCoverOwner",
"type": "error"
},
{
"inputs": [],
"name": "OnlyAdvisoryBoard",
"type": "error"
},
{
"inputs": [],
"name": "OnlyMember",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "currentState",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "checks",
"type": "uint256"
}
],
"name": "Paused",
"type": "error"
},
{
"inputs": [],
"name": "PayoutCanStillBeRedeemed",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"internalType": "uint256",
"name": "callerIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "authorizedBitmap",
"type": "uint256"
}
],
"name": "Unauthorized",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "ClaimDepositRetrieved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
}
],
"name": "ClaimPayoutRedeemed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "productId",
"type": "uint256"
}
],
"name": "ClaimSubmitted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "ipfsMetadata",
"type": "bytes32"
}
],
"name": "MetadataSubmitted",
"type": "event"
},
{
"inputs": [],
"name": "CLAIM_DEPOSIT_IN_ETH",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "assessments",
"outputs": [
{
"internalType": "contract IAssessments",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "cover",
"outputs": [
{
"internalType": "contract ICover",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "coverNFT",
"outputs": [
{
"internalType": "contract ICoverNFT",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "coverProducts",
"outputs": [
{
"internalType": "contract ICoverProducts",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "getClaim",
"outputs": [
{
"components": [
{
"internalType": "uint32",
"name": "coverId",
"type": "uint32"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"internalType": "uint8",
"name": "coverAsset",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "payoutRedemptionPeriod",
"type": "uint32"
},
{
"internalType": "bool",
"name": "payoutRedeemed",
"type": "bool"
},
{
"internalType": "bool",
"name": "depositRetrieved",
"type": "bool"
}
],
"internalType": "struct IClaims.Claim",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "getClaimDetails",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint32",
"name": "coverId",
"type": "uint32"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"internalType": "uint8",
"name": "coverAsset",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "payoutRedemptionPeriod",
"type": "uint32"
},
{
"internalType": "bool",
"name": "payoutRedeemed",
"type": "bool"
},
{
"internalType": "bool",
"name": "depositRetrieved",
"type": "bool"
}
],
"internalType": "struct IClaims.Claim",
"name": "claim",
"type": "tuple"
},
{
"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": "cover",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint16",
"name": "assessingGroupId",
"type": "uint16"
},
{
"internalType": "uint32",
"name": "cooldownPeriod",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "start",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "votingEnd",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "acceptVotes",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "denyVotes",
"type": "uint8"
}
],
"internalType": "struct Assessment",
"name": "assessment",
"type": "tuple"
},
{
"internalType": "enum AssessmentStatus",
"name": "status",
"type": "uint8"
},
{
"internalType": "enum AssessmentOutcome",
"name": "outcome",
"type": "uint8"
},
{
"internalType": "bool",
"name": "redeemable",
"type": "bool"
},
{
"internalType": "bytes32",
"name": "ipfsMetadata",
"type": "bytes32"
}
],
"internalType": "struct IClaims.ClaimDetails",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getClaimsCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "memberId",
"type": "uint256"
}
],
"name": "getMemberClaims",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "lastClaimId",
"type": "uint256"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
}
],
"name": "lastClaimSubmissionOnCover",
"outputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pool",
"outputs": [
{
"internalType": "contract IPool",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ramm",
"outputs": [
{
"internalType": "contract IRamm",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "redeemClaimPayout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "registry",
"outputs": [
{
"internalType": "contract IRegistry",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimId",
"type": "uint256"
}
],
"name": "retrieveDeposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "coverId",
"type": "uint32"
},
{
"internalType": "uint96",
"name": "requestedAmount",
"type": "uint96"
},
{
"internalType": "bytes32",
"name": "ipfsMetadata",
"type": "bytes32"
}
],
"name": "submitClaim",
"outputs": [
{
"components": [
{
"internalType": "uint32",
"name": "coverId",
"type": "uint32"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"internalType": "uint8",
"name": "coverAsset",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "payoutRedemptionPeriod",
"type": "uint32"
},
{
"internalType": "bool",
"name": "payoutRedeemed",
"type": "bool"
},
{
"internalType": "bool",
"name": "depositRetrieved",
"type": "bool"
}
],
"internalType": "struct IClaims.Claim",
"name": "claim",
"type": "tuple"
}
],
"stateMutability": "payable",
"type": "function"
}
];
var Cover = [
{
"inputs": [
{
"internalType": "address",
"name": "_registry",
"type": "address"
},
{
"internalType": "address",
"name": "_stakingPoolImplementation",
"type": "address"
},
{
"internalType": "address",
"name": "_verifyingAddress",
"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": "CoverAssetMismatch",
"type": "error"
},
{
"inputs": [],
"name": "CoverAssetNotSupported",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
}
],
"name": "CoverNotYetExpired",
"type": "error"
},
{
"inputs": [],
"name": "CoverPeriodTooLong",
"type": "error"
},
{
"inputs": [],
"name": "CoverPeriodTooShort",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "ETHTransferFailed",
"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": [],
"name": "InvalidRiConfig",
"type": "error"
},
{
"inputs": [],
"name": "InvalidSignature",
"type": "error"
},
{
"inputs": [],
"name": "IpfsMetadataAlreadySet",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "originalCoverId",
"type": "uint256"
}
],
"name": "MustBeOriginalCoverId",
"type": "error"
},
{
"inputs": [],
"name": "OnlyAdvisoryBoard",
"type": "error"
},
{
"inputs": [],
"name": "OnlyMember",
"type": "error"
},
{
"inputs": [],
"name": "OnlyOwnerOrApproved",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "currentState",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "checks",
"type": "uint256"
}
],
"name": "Paused",
"type": "error"
},
{
"inputs": [],
"name": "PriceExceedsMaxPremiumInAsset",
"type": "error"
},
{
"inputs": [],
"name": "ProductDeprecated",
"type": "error"
},
{
"inputs": [],
"name": "ProductNotFound",
"type": "error"
},
{
"inputs": [],
"name": "ReentrantCall",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "RevertedWithoutReason",
"type": "error"
},
{
"inputs": [],
"name": "RiAmountIsZero",
"type": "error"
},
{
"inputs": [],
"name": "SignatureExpired",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"internalType": "uint256",
"name": "callerIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "authorizedBitmap",
"type": "uint256"
}
],
"name": "Unauthorized",
"type": "error"
},
{
"inputs": [],
"name": "UnexpectedEthSent",
"type": "error"
},
{
"inputs": [],
"name": "UnexpectedRiPremium",
"type": "error"
},
{
"inputs": [],
"name": "WrongCoverEditEntrypoint",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "originalCoverId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "buyerMemberId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "productId",
"type": "uint256"
}
],
"name": "CoverBought",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "premium",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "paymentAsset",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint8",
"name": "dataFormatVersion",
"type": "uint8"
}
],
"name": "CoverRiAllocated",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_MIN_PRICE_RATIO",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "DOMAIN_SEPARATOR",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"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": [],
"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": [
{
"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[]"
},
{
"components": [
{
"internalType": "uint256",
"name": "providerId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "premium",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "uint8",
"name": "dataFormat",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "deadline",
"type": "uint32"
}
],
"internalType": "struct RiRequest",
"name": "riRequest",
"type": "tuple"
}
],
"name": "buyCoverWithRi",
"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": [
{
"internalType": "address",
"name": "_stakingNFTDescriptor",
"type": "address"
}
],
"name": "changeStakingNFTDescriptor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "claims",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "coverNFT",
"outputs": [
{
"internalType": "contract ICoverNFT",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "coverProducts",
"outputs": [
{
"internalType": "contract ICoverProducts",
"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"
},
{