UNPKG

dkg-evm-module

Version:
992 lines (991 loc) 19 kB
[ { "inputs": [ { "internalType": "address", "name": "hubAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "string", "name": "msg", "type": "string" } ], "name": "UnauthorizedAccess", "type": "error" }, { "inputs": [], "name": "ZeroAddressHub", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "address", "name": "delegator", "type": "address" } ], "name": "DelegatorAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "address", "name": "delegator", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "newLastClaimedEpoch", "type": "uint256" } ], "name": "DelegatorLastClaimedEpochUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "address", "name": "delegator", "type": "address" } ], "name": "DelegatorRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "address", "name": "delegator", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newTotalRollingRewards", "type": "uint256" } ], "name": "DelegatorRollingRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "epoch", "type": "uint256" }, { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "indexed": false, "internalType": "bool", "name": "claimed", "type": "bool" } ], "name": "HasDelegatorClaimedEpochRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "address", "name": "delegator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "hasEverDelegatedToNode", "type": "bool" } ], "name": "HasEverDelegatedToNodeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "uint256", "name": "epoch", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "isClaimed", "type": "bool" } ], "name": "IsOperatorFeeClaimedForEpochUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "address", "name": "delegator", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "epoch", "type": "uint256" } ], "name": "LastStakeHeldEpochUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "uint256", "name": "epoch", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "NetNodeEpochRewardsSet", "type": "event" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" } ], "name": "addDelegator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "addDelegatorRollingRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "delegatorRollingRewards", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" } ], "name": "getDelegatorIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" } ], "name": "getDelegatorRollingRewards", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getDelegators", "outputs": [ { "internalType": "address[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" } ], "name": "getLastClaimedEpoch", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" } ], "name": "getLastStakeHeldEpoch", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint256", "name": "epoch", "type": "uint256" } ], "name": "getNetNodeEpochRewards", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "hasDelegatorClaimedEpochRewards", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "hasEverDelegatedToNode", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "hub", "outputs": [ { "internalType": "contract Hub", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "isDelegatorMap", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" } ], "name": "isNodeDelegator", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "isOperatorFeeClaimedForEpoch", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" } ], "name": "lastClaimedDelegatorsRewardsEpoch", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "lastClaimedEpoch", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "lastStakeHeldEpoch", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "newAddresses", "type": "address[]" } ], "name": "migrate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "netNodeEpochRewards", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "nodeDelegatorAddresses", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "nodeDelegatorIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" } ], "name": "removeDelegator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "setDelegatorRollingRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "epoch", "type": "uint256" }, { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "bool", "name": "claimed", "type": "bool" } ], "name": "setHasDelegatorClaimedEpochRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" }, { "internalType": "bool", "name": "_hasEverDelegatedToNode", "type": "bool" } ], "name": "setHasEverDelegatedToNode", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint256", "name": "epoch", "type": "uint256" }, { "internalType": "bool", "name": "isClaimed", "type": "bool" } ], "name": "setIsOperatorFeeClaimedForEpoch", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" }, { "internalType": "uint256", "name": "epoch", "type": "uint256" } ], "name": "setLastClaimedEpoch", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "address", "name": "delegator", "type": "address" }, { "internalType": "uint256", "name": "epoch", "type": "uint256" } ], "name": "setLastStakeHeldEpoch", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint256", "name": "epoch", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "setNetNodeEpochRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_status", "type": "bool" } ], "name": "setStatus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "status", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" } ]