UNPKG

dkg-evm-module

Version:
2,410 lines (2,409 loc) 47.6 kB
[ { "inputs": [ { "internalType": "address", "name": "hubAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "custodian", "type": "address" } ], "name": "CustodianHasNoOwners", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "custodian", "type": "address" } ], "name": "CustodianNotAContract", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "custodian", "type": "address" } ], "name": "CustodianWithoutOwnersFunction", "type": "error" }, { "inputs": [], "name": "EtherTransferFailed", "type": "error" }, { "inputs": [], "name": "IndexOutOfBounds", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "tokenContractAddress", "type": "address" } ], "name": "InvalidTokenContract", "type": "error" }, { "inputs": [], "name": "TokenTransferFailed", "type": "error" }, { "inputs": [ { "internalType": "string", "name": "msg", "type": "string" } ], "name": "UnauthorizedAccess", "type": "error" }, { "inputs": [], "name": "ZeroAddressCustodian", "type": "error" }, { "inputs": [], "name": "ZeroAddressHub", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "indexed": false, "internalType": "uint96", "name": "stakeBase", "type": "uint96" } ], "name": "DelegatorBaseStakeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint256", "name": "delegatorsCount", "type": "uint256" } ], "name": "DelegatorCountUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "indexed": false, "internalType": "uint96", "name": "cumulativeEarnedRewards", "type": "uint96" } ], "name": "DelegatorCumulativeEarnedRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "indexed": false, "internalType": "uint96", "name": "cumulativePaidOutRewards", "type": "uint96" } ], "name": "DelegatorCumulativePaidOutRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "indexed": false, "internalType": "uint96", "name": "stakeIndexed", "type": "uint96" } ], "name": "DelegatorIndexedStakeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "lastIndex", "type": "uint256" } ], "name": "DelegatorLastRewardIndexUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "indexed": false, "internalType": "uint96", "name": "amount", "type": "uint96" }, { "indexed": false, "internalType": "uint96", "name": "indexedOutAmount", "type": "uint96" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "name": "DelegatorWithdrawalRequestCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "DelegatorWithdrawalRequestDeleted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "custodian", "type": "address" }, { "indexed": false, "internalType": "address", "name": "tokenContract", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "MisplacedERC20Withdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "custodian", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "MisplacedEtherWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint96", "name": "cumulativeEarnedRewards", "type": "uint96" } ], "name": "NodeCumulativeEarnedRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint96", "name": "cumulativePaidOutRewards", "type": "uint96" } ], "name": "NodeCumulativePaidOutRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint256", "name": "rewardIndex", "type": "uint256" } ], "name": "NodeRewardIndexUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint96", "name": "stake", "type": "uint96" } ], "name": "NodeStakeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint96", "name": "feeBalance", "type": "uint96" } ], "name": "OperatorFeeBalanceUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint96", "name": "cumulativeFeeEarnedRewards", "type": "uint96" } ], "name": "OperatorFeeCumulativeEarnedRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint96", "name": "cumulativeFeePaidOutRewards", "type": "uint96" } ], "name": "OperatorFeeCumulativePaidOutRewardsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": false, "internalType": "uint96", "name": "amount", "type": "uint96" }, { "indexed": false, "internalType": "uint96", "name": "indexedOutAmount", "type": "uint96" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "name": "OperatorFeeWithdrawalRequestCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "OperatorFeeWithdrawalRequestDeleted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "StakedTokensTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "custodian", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "TokenTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint96", "name": "totalStake", "type": "uint96" } ], "name": "TotalStakeUpdated", "type": "event" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "addDelegatorCumulativeEarnedRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "addDelegatorCumulativePaidOutRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "addedRewards", "type": "uint96" } ], "name": "addNodeCumulativeEarnedRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "addedRewards", "type": "uint96" } ], "name": "addNodeCumulativePaidOutRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "addOperatorFeeCumulativeEarnedRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "addOperatorFeeCumulativePaidOutRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint96", "name": "indexedOutAmount", "type": "uint96" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "name": "createDelegatorWithdrawalRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint96", "name": "indexedOutAmount", "type": "uint96" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "name": "createOperatorFeeWithdrawalRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "removedStake", "type": "uint96" } ], "name": "decreaseDelegatorStakeBase", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "removedStakeReward", "type": "uint96" } ], "name": "decreaseDelegatorStakeRewardIndexed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "removedNodeStake", "type": "uint96" } ], "name": "decreaseNodeStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "removedFee", "type": "uint96" } ], "name": "decreaseOperatorFeeBalance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "removedStake", "type": "uint96" } ], "name": "decreaseTotalStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "delegatorWithdrawalRequestExists", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "delegators", "outputs": [ { "internalType": "uint96", "name": "stakeBase", "type": "uint96" }, { "internalType": "uint96", "name": "stakeRewardIndexed", "type": "uint96" }, { "internalType": "uint256", "name": "lastRewardIndex", "type": "uint256" }, { "internalType": "uint96", "name": "cumulativeEarnedRewards", "type": "uint96" }, { "internalType": "uint96", "name": "cumulativePaidOutRewards", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "deleteDelegatorWithdrawalRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "deleteOperatorFeeWithdrawalRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getDelegatorCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorCumulativeEarnedRewards", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorCumulativePaidOutRewards", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorData", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorLastRewardIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorNodes", "outputs": [ { "internalType": "uint72[]", "name": "", "type": "uint72[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorNodesCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint256", "name": "start", "type": "uint256" }, { "internalType": "uint256", "name": "end", "type": "uint256" } ], "name": "getDelegatorNodesIn", "outputs": [ { "internalType": "uint72[]", "name": "", "type": "uint72[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorRewardsInfo", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorStakeBase", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorStakeInfo", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorStakeRewardIndexed", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorTotalStake", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorWithdrawalRequest", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorWithdrawalRequestAmount", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorWithdrawalRequestIndexedOutAmount", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "getDelegatorWithdrawalRequestTimestamp", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeCumulativeEarnedRewards", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeCumulativePaidOutRewards", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeData", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeOperatorFeesInfo", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeRewardIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeRewardsInfo", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeStake", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getNodeStakeInfo", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getOperatorFeeBalance", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getOperatorFeeCumulativeEarnedRewards", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getOperatorFeeCumulativePaidOutRewards", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getOperatorFeeWithdrawalRequest", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint96", "name": "", "type": "uint96" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getOperatorFeeWithdrawalRequestAmount", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getOperatorFeeWithdrawalRequestIndexedOutAmount", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "getOperatorFeeWithdrawalRequestTimestamp", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTotalStake", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "hub", "outputs": [ { "internalType": "contract Hub", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "addedStake", "type": "uint96" } ], "name": "increaseDelegatorStakeBase", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "addedStakeReward", "type": "uint96" } ], "name": "increaseDelegatorStakeRewardIndexed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint256", "name": "addedIndex", "type": "uint256" } ], "name": "increaseNodeRewardIndex", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "addedNodeStake", "type": "uint96" } ], "name": "increaseNodeStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "addedFee", "type": "uint96" } ], "name": "increaseOperatorFeeBalance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "addedStake", "type": "uint96" } ], "name": "increaseTotalStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" } ], "name": "isDelegatingToNode", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" } ], "name": "nodes", "outputs": [ { "internalType": "uint96", "name": "stake", "type": "uint96" }, { "internalType": "uint256", "name": "rewardIndex", "type": "uint256" }, { "internalType": "uint96", "name": "cumulativeEarnedRewards", "type": "uint96" }, { "internalType": "uint96", "name": "cumulativePaidOutRewards", "type": "uint96" }, { "internalType": "uint96", "name": "operatorFeeBalance", "type": "uint96" }, { "internalType": "uint96", "name": "operatorFeeCumulativeEarnedRewards", "type": "uint96" }, { "internalType": "uint96", "name": "operatorFeeCumulativePaidOutRewards", "type": "uint96" }, { "internalType": "uint256", "name": "delegatorCount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "operatorFeeWithdrawalRequestExists", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" } ], "name": "operatorFeeWithdrawals", "outputs": [ { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint96", "name": "indexedOutAmount", "type": "uint96" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint256", "name": "delegatorCount", "type": "uint256" } ], "name": "setDelegatorCount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint256", "name": "lastRewardIndex", "type": "uint256" } ], "name": "setDelegatorLastRewardIndex", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "stakeBase", "type": "uint96" } ], "name": "setDelegatorStakeBase", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "stakeBase", "type": "uint96" }, { "internalType": "uint96", "name": "stakeRewardIndexed", "type": "uint96" } ], "name": "setDelegatorStakeInfo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "delegatorKey", "type": "bytes32" }, { "internalType": "uint96", "name": "stakeRewardIndexed", "type": "uint96" } ], "name": "setDelegatorStakeRewardIndexed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "newEarnedRewards", "type": "uint96" } ], "name": "setNodeCumulativeEarnedRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "newPaidOutRewards", "type": "uint96" } ], "name": "setNodeCumulativePaidOutRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint256", "name": "newIndex", "type": "uint256" } ], "name": "setNodeRewardIndex", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "newNodeStake", "type": "uint96" } ], "name": "setNodeStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "stake", "type": "uint96" }, { "internalType": "uint256", "name": "rewardIndex", "type": "uint256" } ], "name": "setNodeStakeInfo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "newBalance", "type": "uint96" } ], "name": "setOperatorFeeBalance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "setOperatorFeeCumulativeEarnedRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "setOperatorFeeCumulativePaidOutRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "newTotalStake", "type": "uint96" } ], "name": "setTotalStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "tokenContract", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "uint96", "name": "stakeAmount", "type": "uint96" } ], "name": "transferStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "custodian", "type": "address" } ], "name": "transferTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "withdrawMisplacedEther", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "tokenContractAddress", "type": "address" } ], "name": "withdrawMisplacedTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "", "type": "uint72" }, { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "withdrawals", "outputs": [ { "internalType": "uint96", "name": "amount", "type": "uint96" }, { "internalType": "uint96", "name": "indexedOutAmount", "type": "uint96" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]