UNPKG

@nexusmutual/deployments

Version:

Nexus Mutual deployed contract addresses and abis

1,052 lines 21 kB
[ { "inputs": [ { "internalType": "address", "name": "_coverContract", "type": "address" }, { "internalType": "address", "name": "_stakingPoolFactory", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidProductType", "type": "error" }, { "inputs": [], "name": "IpfsHashRequired", "type": "error" }, { "inputs": [], "name": "MustRecalculateEffectiveWeight", "type": "error" }, { "inputs": [], "name": "MustSetPriceForNewProducts", "type": "error" }, { "inputs": [], "name": "MustSetWeightForNewProducts", "type": "error" }, { "inputs": [], "name": "OnlyCoverContract", "type": "error" }, { "inputs": [], "name": "OnlyManager", "type": "error" }, { "inputs": [], "name": "OnlyStakingPool", "type": "error" }, { "inputs": [], "name": "ProductDoesntExistOrIsDeprecated", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "RevertedWithoutReason", "type": "error" }, { "inputs": [], "name": "TargetPriceBelowMin", "type": "error" }, { "inputs": [], "name": "TargetPriceBelowMinPriceRatio", "type": "error" }, { "inputs": [], "name": "TargetPriceTooHigh", "type": "error" }, { "inputs": [], "name": "TargetWeightTooHigh", "type": "error" }, { "inputs": [], "name": "TotalEffectiveWeightExceeded", "type": "error" }, { "inputs": [], "name": "TotalTargetWeightExceeded", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "productId", "type": "uint256" }, { "indexed": false, "internalType": "uint8", "name": "targetWeight", "type": "uint8" }, { "indexed": false, "internalType": "uint96", "name": "targetPrice", "type": "uint96" } ], "name": "ProductUpdated", "type": "event" }, { "inputs": [], "name": "ALLOCATION_UNITS_PER_NXM", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CAPACITY_REDUCTION_DENOMINATOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "GLOBAL_CAPACITY_DENOMINATOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INITIAL_PRICE_DENOMINATOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_ACTIVE_TRANCHES", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_TOTAL_WEIGHT", "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": [], "name": "ONE_NXM", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PRICE_BUMP_RATIO", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PRICE_CHANGE_PER_DAY", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TARGET_PRICE_DENOMINATOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TRANCHE_DURATION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WEIGHT_DENOMINATOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "coverAmount", "type": "uint256" }, { "internalType": "uint256", "name": "period", "type": "uint256" }, { "internalType": "uint256", "name": "fixedPrice", "type": "uint256" }, { "internalType": "uint256", "name": "nxmPerAllocationUnit", "type": "uint256" }, { "internalType": "uint256", "name": "targetPriceDenominator", "type": "uint256" } ], "name": "calculateFixedPricePremium", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint16", "name": "lastEffectiveWeight", "type": "uint16" }, { "internalType": "uint8", "name": "targetWeight", "type": "uint8" }, { "internalType": "uint96", "name": "targetPrice", "type": "uint96" }, { "internalType": "uint96", "name": "bumpedPrice", "type": "uint96" }, { "internalType": "uint32", "name": "bumpedPriceUpdateTime", "type": "uint32" } ], "internalType": "struct IStakingProducts.StakedProduct", "name": "product", "type": "tuple" }, { "internalType": "uint256", "name": "period", "type": "uint256" }, { "internalType": "uint256", "name": "coverAmount", "type": "uint256" }, { "internalType": "uint256", "name": "totalCapacity", "type": "uint256" }, { "internalType": "uint256", "name": "targetPrice", "type": "uint256" }, { "internalType": "uint256", "name": "currentBlockTimestamp", "type": "uint256" }, { "internalType": "uint256", "name": "nxmPerAllocationUnit", "type": "uint256" }, { "internalType": "uint256", "name": "targetPriceDenominator", "type": "uint256" } ], "name": "calculatePremium", "outputs": [ { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "components": [ { "internalType": "uint16", "name": "lastEffectiveWeight", "type": "uint16" }, { "internalType": "uint8", "name": "targetWeight", "type": "uint8" }, { "internalType": "uint96", "name": "targetPrice", "type": "uint96" }, { "internalType": "uint96", "name": "bumpedPrice", "type": "uint96" }, { "internalType": "uint32", "name": "bumpedPriceUpdateTime", "type": "uint32" } ], "internalType": "struct IStakingProducts.StakedProduct", "name": "", "type": "tuple" } ], "stateMutability": "pure", "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": "_operator", "type": "address" } ], "name": "changeStakingPoolFactoryOperator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "coverContract", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "isPrivatePool", "type": "bool" }, { "internalType": "uint256", "name": "initialPoolFee", "type": "uint256" }, { "internalType": "uint256", "name": "maxPoolFee", "type": "uint256" }, { "components": [ { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "uint8", "name": "weight", "type": "uint8" }, { "internalType": "uint96", "name": "initialPrice", "type": "uint96" }, { "internalType": "uint96", "name": "targetPrice", "type": "uint96" } ], "internalType": "struct ProductInitializationParams[]", "name": "productInitParams", "type": "tuple[]" }, { "internalType": "string", "name": "ipfsHash", "type": "string" } ], "name": "createStakingPool", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "productBumpedPrice", "type": "uint256" }, { "internalType": "uint256", "name": "productBumpedPriceUpdateTime", "type": "uint256" }, { "internalType": "uint256", "name": "targetPrice", "type": "uint256" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "name": "getBasePrice", "outputs": [ { "internalType": "uint256", "name": "basePrice", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "uint256", "name": "targetWeight", "type": "uint256" }, { "internalType": "uint256", "name": "globalCapacityRatio", "type": "uint256" }, { "internalType": "uint256", "name": "capacityReductionRatio", "type": "uint256" } ], "name": "getEffectiveWeight", "outputs": [ { "internalType": "uint256", "name": "effectiveWeight", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" } ], "name": "getPoolManager", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" } ], "name": "getPoolMetadata", "outputs": [ { "internalType": "string", "name": "ipfsHash", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "uint256", "name": "period", "type": "uint256" }, { "internalType": "uint256", "name": "coverAmount", "type": "uint256" }, { "internalType": "uint256", "name": "totalCapacity", "type": "uint256" }, { "internalType": "uint256", "name": "productMinPrice", "type": "uint256" }, { "internalType": "bool", "name": "useFixedPrice", "type": "bool" }, { "internalType": "uint256", "name": "nxmPerAllocationUnit", "type": "uint256" } ], "name": "getPremium", "outputs": [ { "internalType": "uint256", "name": "premium", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "uint256", "name": "productId", "type": "uint256" } ], "name": "getProduct", "outputs": [ { "internalType": "uint256", "name": "lastEffectiveWeight", "type": "uint256" }, { "internalType": "uint256", "name": "targetWeight", "type": "uint256" }, { "internalType": "uint256", "name": "targetPrice", "type": "uint256" }, { "internalType": "uint256", "name": "bumpedPrice", "type": "uint256" }, { "internalType": "uint256", "name": "bumpedPriceUpdateTime", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "uint256", "name": "productId", "type": "uint256" } ], "name": "getProductTargetWeight", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getStakingPoolCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" } ], "name": "getTotalEffectiveWeight", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" } ], "name": "getTotalTargetWeight", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "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": "bytes[]", "name": "data", "type": "bytes[]" } ], "name": "multicall", "outputs": [ { "internalType": "bytes[]", "name": "results", "type": "bytes[]" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "uint256[]", "name": "productIds", "type": "uint256[]" } ], "name": "recalculateEffectiveWeights", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" } ], "name": "recalculateEffectiveWeightsForAllProducts", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "internalType": "string", "name": "ipfsHash", "type": "string" } ], "name": "setPoolMetadata", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "poolId", "type": "uint256" }, { "components": [ { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "bool", "name": "recalculateEffectiveWeight", "type": "bool" }, { "internalType": "bool", "name": "setTargetWeight", "type": "bool" }, { "internalType": "uint8", "name": "targetWeight", "type": "uint8" }, { "internalType": "bool", "name": "setTargetPrice", "type": "bool" }, { "internalType": "uint96", "name": "targetPrice", "type": "uint96" } ], "internalType": "struct IStakingProducts.StakedProductParam[]", "name": "params", "type": "tuple[]" } ], "name": "setProducts", "outputs": [], "stateMutability": "nonpayable", "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": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "weights", "outputs": [ { "internalType": "uint32", "name": "totalEffectiveWeight", "type": "uint32" }, { "internalType": "uint32", "name": "totalTargetWeight", "type": "uint32" } ], "stateMutability": "view", "type": "function" } ]