@nexusmutual/deployments
Version:
Nexus Mutual deployed contract addresses and abis
656 lines • 14.4 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "_nxmTokenAddress",
"type": "address"
},
{
"internalType": "address",
"name": "_wethAddress",
"type": "address"
},
{
"internalType": "address",
"name": "_internalSolver",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "ExpiredCoverCannotBeRenewed",
"type": "error"
},
{
"inputs": [],
"name": "InvalidBuyerAddress",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOwnerAddress",
"type": "error"
},
{
"inputs": [],
"name": "NotOrderOwner",
"type": "error"
},
{
"inputs": [],
"name": "OnlyInternalSolver",
"type": "error"
},
{
"inputs": [],
"name": "OrderAlreadyCancelled",
"type": "error"
},
{
"inputs": [],
"name": "OrderCannotBeExecutedYet",
"type": "error"
},
{
"inputs": [],
"name": "OrderCannotBeRenewedYet",
"type": "error"
},
{
"inputs": [],
"name": "OrderExpired",
"type": "error"
},
{
"inputs": [],
"name": "OrderPriceNotMet",
"type": "error"
},
{
"inputs": [],
"name": "RenewablePeriodBeforeExpirationExceedsMaximum",
"type": "error"
},
{
"inputs": [],
"name": "RenewalExpired",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "OrderCancelled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "originalCoverId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "OrderExecuted",
"type": "event"
},
{
"inputs": [],
"name": "MAX_RENEWABLE_PERIOD_BEFORE_EXPIRATION",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "address",
"name": "buyer",
"type": "address"
},
{
"internalType": "uint256",
"name": "notExecutableBefore",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "executableUntil",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "renewableUntil",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "renewablePeriodBeforeExpiration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPremiumInAsset",
"type": "uint256"
}
],
"internalType": "struct ExecutionDetails",
"name": "executionDetails",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "cancelOrder",
"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": [
{
"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": "address",
"name": "buyer",
"type": "address"
},
{
"internalType": "uint256",
"name": "notExecutableBefore",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "executableUntil",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "renewableUntil",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "renewablePeriodBeforeExpiration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPremiumInAsset",
"type": "uint256"
}
],
"internalType": "struct ExecutionDetails",
"name": "executionDetails",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
},
{
"components": [
{
"internalType": "uint256",
"name": "fee",
"type": "uint256"
},
{
"internalType": "address",
"name": "feeDestination",
"type": "address"
}
],
"internalType": "struct SettlementDetails",
"name": "settlementDetails",
"type": "tuple"
}
],
"name": "executeOrder",
"outputs": [
{
"internalType": "uint256",
"name": "coverId",
"type": "uint256"
}
],
"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": "address",
"name": "buyer",
"type": "address"
},
{
"internalType": "uint256",
"name": "notExecutableBefore",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "executableUntil",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "renewableUntil",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "renewablePeriodBeforeExpiration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPremiumInAsset",
"type": "uint256"
}
],
"internalType": "struct ExecutionDetails",
"name": "executionDetails",
"type": "tuple"
}
],
"name": "getOrderId",
"outputs": [
{
"internalType": "bytes32",
"name": "structHash",
"type": "bytes32"
}
],
"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": "internalSolver",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "master",
"outputs": [
{
"internalType": "contract INXMMaster",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "erc20",
"type": "address"
}
],
"name": "maxApproveCoverContract",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "maxApproveTokenControllerContract",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "nxmToken",
"outputs": [
{
"internalType": "contract INXMToken",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "orderStatus",
"outputs": [
{
"internalType": "uint32",
"name": "coverId",
"type": "uint32"
},
{
"internalType": "bool",
"name": "isCancelled",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "weth",
"outputs": [
{
"internalType": "contract IWeth",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]