dkg-evm-module
Version:
Smart contracts for OriginTrail V8
602 lines (601 loc) • 11.3 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "hubAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint96",
"name": "feeBalance",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"name": "AmountExceedsOperatorFeeBalance",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "MaximumStakeExceeded",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
}
],
"name": "OnlyProfileAdminFunction",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "ProfileDoesntExist",
"type": "error"
},
{
"inputs": [],
"name": "ShardingTableIsFull",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "allowance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expected",
"type": "uint256"
}
],
"name": "TooLowAllowance",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expected",
"type": "uint256"
}
],
"name": "TooLowBalance",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "msg",
"type": "string"
}
],
"name": "UnauthorizedAccess",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint96",
"name": "stake",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"name": "WithdrawalExceedsStake",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nowTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endTimestamp",
"type": "uint256"
}
],
"name": "WithdrawalPeriodPending",
"type": "error"
},
{
"inputs": [],
"name": "WithdrawalWasntInitiated",
"type": "error"
},
{
"inputs": [],
"name": "ZeroAddressHub",
"type": "error"
},
{
"inputs": [],
"name": "ZeroTokenAmount",
"type": "error"
},
{
"inputs": [],
"name": "SCALE18",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "askContract",
"outputs": [
{
"internalType": "contract Ask",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256[]",
"name": "epochs",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "delegators",
"type": "address[]"
}
],
"name": "batchClaimDelegatorRewards",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "cancelOperatorFeeWithdrawal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "cancelWithdrawal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "chronos",
"outputs": [
{
"internalType": "contract Chronos",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "address",
"name": "delegator",
"type": "address"
}
],
"name": "claimDelegatorRewards",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "delegatorsInfo",
"outputs": [
{
"internalType": "contract DelegatorsInfo",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "epochStorage",
"outputs": [
{
"internalType": "contract EpochStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "finalizeOperatorFeeWithdrawal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "finalizeWithdrawal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "hub",
"outputs": [
{
"internalType": "contract Hub",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "identityStorage",
"outputs": [
{
"internalType": "contract IdentityStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "parametersStorage",
"outputs": [
{
"internalType": "contract ParametersStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "profileStorage",
"outputs": [
{
"internalType": "contract ProfileStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "randomSamplingStorage",
"outputs": [
{
"internalType": "contract RandomSamplingStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "fromIdentityId",
"type": "uint72"
},
{
"internalType": "uint72",
"name": "toIdentityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "stakeAmount",
"type": "uint96"
}
],
"name": "redelegate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "withdrawalAmount",
"type": "uint96"
}
],
"name": "requestOperatorFeeWithdrawal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "removedStake",
"type": "uint96"
}
],
"name": "requestWithdrawal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "addedStake",
"type": "uint96"
}
],
"name": "restakeOperatorFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_status",
"type": "bool"
}
],
"name": "setStatus",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "shardingTableContract",
"outputs": [
{
"internalType": "contract ShardingTable",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "shardingTableStorage",
"outputs": [
{
"internalType": "contract ShardingTableStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "addedStake",
"type": "uint96"
}
],
"name": "stake",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "stakingStorage",
"outputs": [
{
"internalType": "contract StakingStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "status",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenContract",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
}
]