UNPKG

@antefinance/ante-sdk

Version:

Library for interacting with Ante smart contracts

1,152 lines (1,151 loc) 20.5 kB
export const AntePoolLogicAbi = [ { inputs: [], stateMutability: 'nonpayable', type: 'constructor', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'staker', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, ], name: 'CancelWithdraw', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'claimer', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, ], name: 'ClaimPaid', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'challenger', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'confirmedShares', type: 'uint256', }, ], name: 'ConfirmChallenge', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint256', name: 'decayThisUpdate', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'challengerMultiplier', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'stakerMultiplier', type: 'uint256', }, ], name: 'DecayUpdated', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'checker', type: 'address', }, ], name: 'FailureOccurred', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'challenger', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, ], name: 'RegisterChallenge', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'author', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, ], name: 'RewardPaid', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'staker', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'commitTime', type: 'uint256', }, ], name: 'Stake', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'checker', type: 'address', }, ], name: 'TestChecked', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'staker', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, { indexed: true, internalType: 'bool', name: 'isChallenger', type: 'bool', }, ], name: 'Unstake', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'staker', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256', }, ], name: 'WithdrawStake', type: 'event', }, { inputs: [], name: 'CHALLENGER_BLOCK_DELAY', outputs: [ { internalType: 'uint8', name: '', type: 'uint8', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MAX_ANNUAL_DECAY_RATE', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MAX_AUTHOR_REWARD_RATE', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MAX_CHALLENGER_PAYOUT_RATIO', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MIN_ANNUAL_DECAY_RATE', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MIN_CHALLENGER_DELAY', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MIN_CHALLENGER_PAYOUT_RATIO', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MIN_STAKE_COMMITMENT', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'ONE_YEAR', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'UNSTAKE_DELAY', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'VERIFIER_BOUNTY', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'anteTest', outputs: [ { internalType: 'contract IAnteTest', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'cancelPendingWithdraw', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'challengerInfo', outputs: [ { internalType: 'uint256', name: 'numUsers', type: 'uint256', }, { internalType: 'uint256', name: 'totalAmount', type: 'uint256', }, { internalType: 'uint256', name: 'decayMultiplier', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'challengerPayoutRatio', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'checkTest', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes', name: '_testState', type: 'bytes', }, ], name: 'checkTestWithState', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'claim', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'claimReward', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'confirmChallenge', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'decayRate', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'eligibilityInfo', outputs: [ { internalType: 'uint256', name: 'totalShares', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'additionalTime', type: 'uint256', }, ], name: 'extendStakeLock', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'factory', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'failedBlock', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'failedTimestamp', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: 'challenger', type: 'address', }, ], name: 'getChallengerInfo', outputs: [ { internalType: 'uint256', name: 'startAmount', type: 'uint256', }, { internalType: 'uint256', name: 'lastStakedTimestamp', type: 'uint256', }, { internalType: 'uint256', name: 'claimableShares', type: 'uint256', }, { internalType: 'uint256', name: 'claimableSharesStartMultiplier', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: 'challenger', type: 'address', }, ], name: 'getChallengerPayout', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_user', type: 'address', }, ], name: 'getCheckTestAllowedBlock', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_user', type: 'address', }, ], name: 'getPendingWithdrawAllowedTime', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_user', type: 'address', }, ], name: 'getPendingWithdrawAmount', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_user', type: 'address', }, { internalType: 'bool', name: 'isChallenger', type: 'bool', }, ], name: 'getStoredBalance', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getTestAuthorReward', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getTotalChallengerEligibleBalance', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getTotalChallengerStaked', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getTotalPendingWithdraw', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getTotalStaked', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_user', type: 'address', }, ], name: 'getUnstakeAllowedTime', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_user', type: 'address', }, { internalType: 'bool', name: 'isChallenger', type: 'bool', }, ], name: 'getUserStartAmount', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_user', type: 'address', }, { internalType: 'bool', name: 'isChallenger', type: 'bool', }, ], name: 'getUserStartDecayMultiplier', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getVerifierBounty', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'contract IAnteTest', name: '_anteTest', type: 'address', }, { internalType: 'contract IERC20', name: '_token', type: 'address', }, { internalType: 'uint256', name: '_tokenMinimum', type: 'uint256', }, { internalType: 'uint256', name: '_decayRate', type: 'uint256', }, { internalType: 'uint256', name: '_payoutRatio', type: 'uint256', }, { internalType: 'uint256', name: '_testAuthorRewardRate', type: 'uint256', }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'lastUpdateBlock', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'lastUpdateTimestamp', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'lastVerifiedBlock', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'lastVerifiedTimestamp', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'minChallengerStake', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'minSupporterStake', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'numPaidOut', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'numTimesVerified', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'pendingFailure', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], name: 'registerChallenge', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'amount', type: 'uint256', }, { internalType: 'uint256', name: 'commitTime', type: 'uint256', }, ], name: 'stake', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'stakingInfo', outputs: [ { internalType: 'uint256', name: 'numUsers', type: 'uint256', }, { internalType: 'uint256', name: 'totalAmount', type: 'uint256', }, { internalType: 'uint256', name: 'decayMultiplier', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'testAuthorRewardRate', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'token', outputs: [ { internalType: 'contract IERC20', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'totalPaidOut', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'amount', type: 'uint256', }, { internalType: 'bool', name: 'isChallenger', type: 'bool', }, ], name: 'unstake', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bool', name: 'isChallenger', type: 'bool', }, ], name: 'unstakeAll', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'updateDecay', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: '_verifier', type: 'address', }, ], name: 'updateFailureState', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'verifier', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'withdrawInfo', outputs: [ { internalType: 'uint256', name: 'totalAmount', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'withdrawStake', outputs: [], stateMutability: 'nonpayable', type: 'function', }, ] as const;