Files
websites/packages/contracts/abis/TestnetServiceNodeRewards.ts

2264 lines
44 KiB
TypeScript

// This file is generated by the generate-abis script. Do not modify it manually.
/**
* Generated ABI for the TokenConverter contract.
*/
export const TestnetServiceNodeRewardsAbi = [
{
inputs: [
{
internalType: 'address',
name: 'target',
type: 'address',
},
],
name: 'AddressEmptyCode',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'AddressInsufficientBalance',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
name: 'BLSPubkeyAlreadyExists',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'pubkey',
type: 'tuple',
},
],
name: 'BLSPubkeyDoesNotMatch',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
internalType: 'address',
name: 'contributor',
type: 'address',
},
],
name: 'CallerNotContributor',
type: 'error',
},
{
inputs: [],
name: 'ClaimThresholdExceeded',
type: 'error',
},
{
inputs: [],
name: 'ContractAlreadyStarted',
type: 'error',
},
{
inputs: [],
name: 'ContractNotStarted',
type: 'error',
},
{
inputs: [
{
internalType: 'uint256',
name: 'required',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'provided',
type: 'uint256',
},
],
name: 'ContributionTotalMismatch',
type: 'error',
},
{
inputs: [],
name: 'DeleteSentinelNodeNotAllowed',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
name: 'Ed25519PubkeyAlreadyExists',
type: 'error',
},
{
inputs: [],
name: 'EnforcedPause',
type: 'error',
},
{
inputs: [],
name: 'ExpectedPause',
type: 'error',
},
{
inputs: [],
name: 'FailedInnerCall',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'operator',
type: 'address',
},
{
internalType: 'address',
name: 'contributor',
type: 'address',
},
],
name: 'FirstContributorMismatch',
type: 'error',
},
{
inputs: [
{
internalType: 'uint256',
name: 'numSigners',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'requiredSigners',
type: 'uint256',
},
],
name: 'InsufficientBLSSignatures',
type: 'error',
},
{
inputs: [],
name: 'InsufficientContributors',
type: 'error',
},
{
inputs: [],
name: 'InsufficientNodes',
type: 'error',
},
{
inputs: [],
name: 'InvalidBLSProofOfPossession',
type: 'error',
},
{
inputs: [
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'aggPubkey',
type: 'tuple',
},
],
name: 'InvalidBLSSignature',
type: 'error',
},
{
inputs: [],
name: 'InvalidInitialization',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
name: 'LeaveRequestNotInitiatedYet',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
internalType: 'uint256',
name: 'endTimestamp',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'currTimestamp',
type: 'uint256',
},
],
name: 'LeaveRequestTooEarly',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
internalType: 'uint256',
name: 'addedTimestamp',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'currenttime',
type: 'uint256',
},
],
name: 'LiquidationTooEarly',
type: 'error',
},
{
inputs: [],
name: 'LiquidatorRewardsTooLow',
type: 'error',
},
{
inputs: [],
name: 'MaxClaimExceeded',
type: 'error',
},
{
inputs: [],
name: 'MaxContributorsExceeded',
type: 'error',
},
{
inputs: [],
name: 'MaxPubkeyAggregationsExceeded',
type: 'error',
},
{
inputs: [],
name: 'NotInitializing',
type: 'error',
},
{
inputs: [],
name: 'NullAddress',
type: 'error',
},
{
inputs: [],
name: 'NullBLSPubkey',
type: 'error',
},
{
inputs: [],
name: 'NullEd25519Pubkey',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address',
},
],
name: 'OwnableInvalidOwner',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'OwnableUnauthorizedAccount',
type: 'error',
},
{
inputs: [],
name: 'PositiveNumberRequirement',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'expectedRecipient',
type: 'address',
},
{
internalType: 'address',
name: 'providedRecipient',
type: 'address',
},
{
internalType: 'uint256',
name: 'serviceNodeID',
type: 'uint256',
},
],
name: 'RecipientAddressDoesNotMatch',
type: 'error',
},
{
inputs: [],
name: 'RecipientRewardsTooLow',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'token',
type: 'address',
},
],
name: 'SafeERC20FailedOperation',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
name: 'ServiceNodeDoesntExist',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'currenttime',
type: 'uint256',
},
],
name: 'SignatureExpired',
type: 'error',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
internalType: 'address',
name: 'contributor',
type: 'address',
},
],
name: 'SmallContributorLeaveTooEarly',
type: 'error',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newMax',
type: 'uint256',
},
],
name: 'BLSNonSignerThresholdMaxUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'ClaimCycleUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newThreshold',
type: 'uint256',
},
],
name: 'ClaimThresholdUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint64',
name: 'version',
type: 'uint64',
},
],
name: 'Initialized',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'LiquidatorRewardRatioUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
indexed: false,
internalType: 'struct BN256G1.G1Point',
name: 'blsPubkey',
type: 'tuple',
},
{
indexed: false,
internalType: 'uint256',
name: 'ed25519Pubkey',
type: 'uint256',
},
],
name: 'NewSeededServiceNode',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
indexed: false,
internalType: 'address',
name: 'initiator',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
indexed: false,
internalType: 'struct BN256G1.G1Point',
name: 'pubkey',
type: 'tuple',
},
{
components: [
{
internalType: 'uint256',
name: 'serviceNodePubkey',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'serviceNodeSignature1',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'serviceNodeSignature2',
type: 'uint256',
},
{
internalType: 'uint16',
name: 'fee',
type: 'uint16',
},
],
indexed: false,
internalType: 'struct IServiceNodeRewards.ServiceNodeParams',
name: 'serviceNode',
type: 'tuple',
},
{
components: [
{
components: [
{
internalType: 'address',
name: 'addr',
type: 'address',
},
{
internalType: 'address',
name: 'beneficiary',
type: 'address',
},
],
internalType: 'struct IServiceNodeRewards.Staker',
name: 'staker',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'stakedAmount',
type: 'uint256',
},
],
indexed: false,
internalType: 'struct IServiceNodeRewards.Contributor[]',
name: 'contributors',
type: 'tuple[]',
},
],
name: 'NewServiceNodeV2',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferStarted',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'Paused',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'PoolShareOfLiquidationRatioUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'RecipientRatioUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'recipientAddress',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'previousBalance',
type: 'uint256',
},
],
name: 'RewardsBalanceUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'recipientAddress',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'RewardsClaimed',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
indexed: false,
internalType: 'address',
name: 'operator',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'returnedAmount',
type: 'uint256',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
indexed: false,
internalType: 'struct BN256G1.G1Point',
name: 'pubkey',
type: 'tuple',
},
],
name: 'ServiceNodeExit',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
indexed: false,
internalType: 'address',
name: 'contributor',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
indexed: false,
internalType: 'struct BN256G1.G1Point',
name: 'pubkey',
type: 'tuple',
},
],
name: 'ServiceNodeExitRequest',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
{
indexed: false,
internalType: 'address',
name: 'operator',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
indexed: false,
internalType: 'struct BN256G1.G1Point',
name: 'pubkey',
type: 'tuple',
},
],
name: 'ServiceNodeLiquidated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newExpiry',
type: 'uint256',
},
],
name: 'SignatureExpiryUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'newRequirement',
type: 'uint256',
},
],
name: 'StakingRequirementUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'Unpaused',
type: 'event',
},
{
inputs: [],
name: 'LIST_SENTINEL',
outputs: [
{
internalType: 'uint64',
name: '',
type: 'uint64',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MAX_PERMITTED_PUBKEY_AGGREGATIONS_LOWER_BOUND',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MAX_SERVICE_NODE_EXIT_WAIT_TIME',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MINIMUM_LIQUIDATION_AGE',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MIN_TIME_BEFORE_REPEATED_LEAVE_REQUEST',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'SMALL_CONTRIBUTOR_DIVISOR',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'SMALL_CONTRIBUTOR_LEAVE_DELAY',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'acceptOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'blsPubkey',
type: 'tuple',
},
{
components: [
{
internalType: 'uint256',
name: 'sigs0',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs1',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs2',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs3',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.BLSSignatureParams',
name: 'blsSignature',
type: 'tuple',
},
{
components: [
{
internalType: 'uint256',
name: 'serviceNodePubkey',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'serviceNodeSignature1',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'serviceNodeSignature2',
type: 'uint256',
},
{
internalType: 'uint16',
name: 'fee',
type: 'uint16',
},
],
internalType: 'struct IServiceNodeRewards.ServiceNodeParams',
name: 'serviceNodeParams',
type: 'tuple',
},
{
components: [
{
components: [
{
internalType: 'address',
name: 'addr',
type: 'address',
},
{
internalType: 'address',
name: 'beneficiary',
type: 'address',
},
],
internalType: 'struct IServiceNodeRewards.Staker',
name: 'staker',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'stakedAmount',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.Contributor[]',
name: 'contributors',
type: 'tuple[]',
},
],
name: 'addBLSPublicKey',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'aggregatePubkey',
outputs: [
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: '',
type: 'tuple',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'allServiceNodeIDs',
outputs: [
{
internalType: 'uint64[]',
name: 'ids',
type: 'uint64[]',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point[]',
name: 'pubkeys',
type: 'tuple[]',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'blsNonSignerThreshold',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'blsNonSignerThresholdMax',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'claimCycle',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'claimRewards',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'claimRewards',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'claimThreshold',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'currentClaimCycle',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'currentClaimTotal',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'designatedToken',
outputs: [
{
internalType: 'contract IERC20',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'ed25519Pubkey',
type: 'uint256',
},
],
name: 'ed25519ToServiceNodeID',
outputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
name: 'exitBLSPublicKeyAfterWaitTime',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'blsPubkey',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
{
components: [
{
internalType: 'uint256',
name: 'sigs0',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs1',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs2',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs3',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.BLSSignatureParams',
name: 'blsSignature',
type: 'tuple',
},
{
internalType: 'uint64[]',
name: 'ids',
type: 'uint64[]',
},
],
name: 'exitBLSPublicKeyWithSignature',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint64[]',
name: 'ids',
type: 'uint64[]',
},
],
name: 'exitNodeBySNID',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'exitTag',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'foundationPool',
outputs: [
{
internalType: 'contract IERC20',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'hashToG2Tag',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'token_',
type: 'address',
},
{
internalType: 'address',
name: 'foundationPool_',
type: 'address',
},
{
internalType: 'uint256',
name: 'stakingRequirement_',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'maxContributors_',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'liquidatorRewardRatio_',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'poolShareOfLiquidationRatio_',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'recipientRatio_',
type: 'uint256',
},
],
name: 'initialize',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
name: 'initiateExitBLSPublicKey',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'isStarted',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'lastHeightPubkeyWasAggregated',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'blsPubkey',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
{
components: [
{
internalType: 'uint256',
name: 'sigs0',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs1',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs2',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs3',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.BLSSignatureParams',
name: 'blsSignature',
type: 'tuple',
},
{
internalType: 'uint64[]',
name: 'ids',
type: 'uint64[]',
},
],
name: 'liquidateBLSPublicKeyWithSignature',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'liquidateTag',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'liquidatorRewardRatio',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'maxContributors',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'maxPermittedPubkeyAggregations',
outputs: [
{
internalType: 'uint256',
name: 'result',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'nextServiceNodeID',
outputs: [
{
internalType: 'uint64',
name: '',
type: 'uint64',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'numPubkeyAggregationsForHeight',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'pause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'paused',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'pendingOwner',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'poolShareOfLiquidationRatio',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'proofOfPossessionTag',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'recipientRatio',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
name: 'recipients',
outputs: [
{
internalType: 'uint256',
name: 'rewards',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'claimed',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'rederiveTotalNodesAndAggregatePubkey',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'renounceOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint64[]',
name: 'ids',
type: 'uint64[]',
},
],
name: 'requestExitNodeBySNID',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'rewardTag',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'blsPubkey',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'ed25519Pubkey',
type: 'uint256',
},
{
components: [
{
components: [
{
internalType: 'address',
name: 'addr',
type: 'address',
},
{
internalType: 'address',
name: 'beneficiary',
type: 'address',
},
],
internalType: 'struct IServiceNodeRewards.Staker',
name: 'staker',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'stakedAmount',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.Contributor[]',
name: 'contributors',
type: 'tuple[]',
},
],
internalType: 'struct IServiceNodeRewards.SeedServiceNode[]',
name: 'nodes',
type: 'tuple[]',
},
],
name: 'seedPublicKeyList',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'blsPubkey',
type: 'bytes',
},
],
name: 'serviceNodeIDs',
outputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint64',
name: 'serviceNodeID',
type: 'uint64',
},
],
name: 'serviceNodes',
outputs: [
{
components: [
{
internalType: 'uint64',
name: 'next',
type: 'uint64',
},
{
internalType: 'uint64',
name: 'prev',
type: 'uint64',
},
{
internalType: 'address',
name: 'operator',
type: 'address',
},
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'blsPubkey',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'addedTimestamp',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'leaveRequestTimestamp',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'latestLeaveRequestTimestamp',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'deposit',
type: 'uint256',
},
{
components: [
{
components: [
{
internalType: 'address',
name: 'addr',
type: 'address',
},
{
internalType: 'address',
name: 'beneficiary',
type: 'address',
},
],
internalType: 'struct IServiceNodeRewards.Staker',
name: 'staker',
type: 'tuple',
},
{
internalType: 'uint256',
name: 'stakedAmount',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.Contributor[]',
name: 'contributors',
type: 'tuple[]',
},
{
internalType: 'uint256',
name: 'ed25519Pubkey',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.ServiceNode',
name: '',
type: 'tuple',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newMax',
type: 'uint256',
},
],
name: 'setBLSNonSignerThresholdMax',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'setClaimCycle',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newMax',
type: 'uint256',
},
],
name: 'setClaimThreshold',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'setLiquidatorRewardRatio',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'setPoolShareOfLiquidationRatio',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newValue',
type: 'uint256',
},
],
name: 'setRecipientRatio',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newExpiry',
type: 'uint256',
},
],
name: 'setSignatureExpiry',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: 'newRequirement',
type: 'uint256',
},
],
name: 'setStakingRequirement',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'signatureExpiry',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'stakingRequirement',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'start',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'totalNodes',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'unpause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'recipientAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'recipientRewards',
type: 'uint256',
},
{
components: [
{
internalType: 'uint256',
name: 'sigs0',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs1',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs2',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs3',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.BLSSignatureParams',
name: 'blsSignature',
type: 'tuple',
},
{
internalType: 'uint64[]',
name: 'ids',
type: 'uint64[]',
},
],
name: 'updateRewardsBalance',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'uint256',
name: 'X',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'Y',
type: 'uint256',
},
],
internalType: 'struct BN256G1.G1Point',
name: 'blsPubkey',
type: 'tuple',
},
{
components: [
{
internalType: 'uint256',
name: 'sigs0',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs1',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs2',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'sigs3',
type: 'uint256',
},
],
internalType: 'struct IServiceNodeRewards.BLSSignatureParams',
name: 'blsSignature',
type: 'tuple',
},
{
internalType: 'address',
name: 'caller',
type: 'address',
},
{
internalType: 'uint256',
name: 'serviceNodePubkey',
type: 'uint256',
},
],
name: 'validateProofOfPossession',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
] as const;