UNPKG

@everstake/wallet-sdk-polygon

Version:
981 lines (978 loc) 24.4 kB
export const ABI_CONTRACT_APPROVE = [ { constant: true, inputs: [], name: 'name', outputs: [{ name: '', type: 'string' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: 'spender', type: 'address' }, { name: 'value', type: 'uint256' }, ], name: 'approve', outputs: [{ name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'totalSupply', outputs: [{ name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: 'from', type: 'address' }, { name: 'to', type: 'address' }, { name: 'value', type: 'uint256' }, ], name: 'transferFrom', outputs: [{ name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'decimals', outputs: [{ name: '', type: 'uint8' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: 'spender', type: 'address' }, { name: 'addedValue', type: 'uint256' }, ], name: 'increaseAllowance', outputs: [{ name: 'success', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'unpause', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [{ name: 'account', type: 'address' }], name: 'isPauser', outputs: [{ name: '', type: 'bool' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'paused', outputs: [{ name: '', type: 'bool' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [], name: 'renouncePauser', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [{ name: 'owner', type: 'address' }], name: 'balanceOf', outputs: [{ name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [{ name: 'account', type: 'address' }], name: 'addPauser', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'pause', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'symbol', outputs: [{ name: '', type: 'string' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: 'spender', type: 'address' }, { name: 'subtractedValue', type: 'uint256' }, ], name: 'decreaseAllowance', outputs: [{ name: 'success', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: 'to', type: 'address' }, { name: 'value', type: 'uint256' }, ], name: 'transfer', outputs: [{ name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' }, ], name: 'allowance', outputs: [{ name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { inputs: [ { name: 'name', type: 'string' }, { name: 'symbol', type: 'string' }, { name: 'decimals', type: 'uint8' }, { name: 'totalSupply', type: 'uint256' }, ], payable: false, stateMutability: 'nonpayable', type: 'constructor', }, { anonymous: false, inputs: [{ indexed: false, name: 'account', type: 'address' }], name: 'Paused', type: 'event', }, { anonymous: false, inputs: [{ indexed: false, name: 'account', type: 'address' }], name: 'Unpaused', type: 'event', }, { anonymous: false, inputs: [{ indexed: true, name: 'account', type: 'address' }], name: 'PauserAdded', type: 'event', }, { anonymous: false, inputs: [{ indexed: true, name: 'account', type: 'address' }], name: 'PauserRemoved', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'from', type: 'address' }, { indexed: true, name: 'to', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' }, ], name: 'Transfer', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'owner', type: 'address' }, { indexed: true, name: 'spender', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' }, ], name: 'Approval', type: 'event', }, ]; export const ABI_CONTRACT_STAKING = [ { constant: true, inputs: [], name: 'currentEpoch', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, ]; export const ABI_CONTRACT_BUY = [ { inputs: [], payable: false, stateMutability: 'nonpayable', type: 'constructor', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address', }, { indexed: true, internalType: 'address', name: 'spender', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'value', type: 'uint256', }, ], name: 'Approval', 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: true, internalType: 'address', name: 'from', type: 'address' }, { indexed: true, internalType: 'address', name: 'to', type: 'address' }, { indexed: false, internalType: 'uint256', name: 'value', type: 'uint256', }, ], name: 'Transfer', type: 'event', }, { constant: false, inputs: [{ internalType: 'bool', name: 'pol', type: 'bool' }], name: '_restake', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' }, { internalType: 'uint256', name: '', type: 'uint256' }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'claimAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maximumSharesToBurn', type: 'uint256' }, { internalType: 'bool', name: 'pol', type: 'bool' }, ], name: '_sellVoucher_new', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'activeAmount', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'address', name: 'owner', type: 'address' }, { internalType: 'address', name: 'spender', type: 'address' }, ], name: 'allowance', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'spender', type: 'address' }, { internalType: 'uint256', name: 'value', type: 'uint256' }, ], name: 'approve', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], name: 'balanceOf', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: '_amount', type: 'uint256' }, { internalType: 'uint256', name: '_minSharesToMint', type: 'uint256' }, ], name: 'buyVoucher', outputs: [ { internalType: 'uint256', name: 'amountToDeposit', type: 'uint256' }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: '_amount', type: 'uint256' }, { internalType: 'uint256', name: '_minSharesToMint', type: 'uint256' }, ], name: 'buyVoucherPOL', outputs: [ { internalType: 'uint256', name: 'amountToDeposit', type: 'uint256' }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: '_amount', type: 'uint256' }, { internalType: 'uint256', name: '_minSharesToMint', type: 'uint256' }, { internalType: 'uint256', name: 'deadline', type: 'uint256' }, { internalType: 'uint8', name: 'v', type: 'uint8' }, { internalType: 'bytes32', name: 'r', type: 'bytes32' }, { internalType: 'bytes32', name: 's', type: 'bytes32' }, ], name: 'buyVoucherWithPermit', outputs: [ { internalType: 'uint256', name: 'amountToDeposit', type: 'uint256' }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'commissionRate_deprecated', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'spender', type: 'address' }, { internalType: 'uint256', name: 'subtractedValue', type: 'uint256' }, ], name: 'decreaseAllowance', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'delegation', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'token', type: 'address' }, { internalType: 'address payable', name: 'destination', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, ], name: 'drain', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'eventsHub', outputs: [ { internalType: 'contract EventsHub', name: '', type: 'address' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'exchangeRate', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [{ internalType: 'address', name: 'user', type: 'address' }], name: 'getLiquidRewards', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'getRewardPerShare', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [{ internalType: 'address', name: 'user', type: 'address' }], name: 'getTotalStake', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' }, { internalType: 'uint256', name: '', type: 'uint256' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'spender', type: 'address' }, { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, ], name: 'increaseAllowance', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [{ internalType: 'address', name: '', type: 'address' }], name: 'initalRewardPerShare', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: '_validatorId', type: 'uint256' }, { internalType: 'address', name: '_stakingLogger', type: 'address' }, { internalType: 'address', name: '_stakeManager', type: 'address' }, ], name: 'initialize', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'isOwner', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'lastCommissionUpdate_deprecated', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [], name: 'lock', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'locked', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'user', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, ], name: 'migrateIn', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'user', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, ], name: 'migrateOut', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'minAmount', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'owner', outputs: [{ internalType: 'address', name: '', type: 'address' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'polToken', outputs: [ { internalType: 'contract IERC20Permit', name: '', type: 'address' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [], name: 'renounceOwnership', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'restake', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' }, { internalType: 'uint256', name: '', type: 'uint256' }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'restakePOL', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' }, { internalType: 'uint256', name: '', type: 'uint256' }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'rewardPerShare', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'claimAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maximumSharesToBurn', type: 'uint256' }, ], name: 'sellVoucher', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'claimAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maximumSharesToBurn', type: 'uint256' }, ], name: 'sellVoucherPOL', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'claimAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maximumSharesToBurn', type: 'uint256' }, ], name: 'sellVoucher_new', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'claimAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maximumSharesToBurn', type: 'uint256' }, ], name: 'sellVoucher_newPOL', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'validatorStake', type: 'uint256' }, { internalType: 'uint256', name: 'delegatedAmount', type: 'uint256' }, { internalType: 'uint256', name: 'totalAmountToSlash', type: 'uint256' }, ], name: 'slash', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'stakeManager', outputs: [ { internalType: 'contract IStakeManager', name: '', type: 'address' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'stakingLogger', outputs: [ { internalType: 'contract StakingInfo', name: '', type: 'address' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'totalStake_deprecated', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'totalSupply', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'to', type: 'address' }, { internalType: 'uint256', name: 'value', type: 'uint256' }, ], name: 'transfer', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'from', type: 'address' }, { internalType: 'address', name: 'to', type: 'address' }, { internalType: 'uint256', name: 'value', type: 'uint256' }, ], name: 'transferFrom', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], name: 'transferOwnership', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'to', type: 'address' }, { internalType: 'uint256', name: 'value', type: 'uint256' }, ], name: 'transferPOL', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [{ internalType: 'address', name: '', type: 'address' }], name: 'unbondNonces', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [{ internalType: 'address', name: '', type: 'address' }], name: 'unbonds', outputs: [ { internalType: 'uint256', name: 'shares', type: 'uint256' }, { internalType: 'uint256', name: 'withdrawEpoch', type: 'uint256' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'address', name: '', type: 'address' }, { internalType: 'uint256', name: '', type: 'uint256' }, ], name: 'unbonds_new', outputs: [ { internalType: 'uint256', name: 'shares', type: 'uint256' }, { internalType: 'uint256', name: 'withdrawEpoch', type: 'uint256' }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [], name: 'unlock', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'unstakeClaimTokens', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'unstakeClaimTokensPOL', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [{ internalType: 'uint256', name: 'unbondNonce', type: 'uint256' }], name: 'unstakeClaimTokens_new', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [{ internalType: 'uint256', name: 'unbondNonce', type: 'uint256' }], name: 'unstakeClaimTokens_newPOL', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [{ internalType: 'bool', name: '_delegation', type: 'bool' }], name: 'updateDelegation', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'validatorId', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'validatorRewards_deprecated', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'withdrawExchangeRate', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'withdrawPool', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [], name: 'withdrawRewards', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'withdrawRewardsPOL', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'withdrawShares', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, ];