@knine-sdk/contracts
Version:
Contracts for Knine projects. Part of Knine JS SDK
1,878 lines (1,873 loc) • 47.4 kB
JavaScript
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var ethers = require('ethers');
/* Autogenerated file. Do not edit manually. */
const _abi = [
{
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: "_from",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "_amountClaimed",
type: "uint256",
},
],
name: "ClaimTokensEvent",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "validatorShare",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "amountClaimed",
type: "uint256",
},
],
name: "ClaimTotalDelegatedEvent",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "_amountDelegated",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "_remainder",
type: "uint256",
},
],
name: "DelegateEvent",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "_amount",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "totalPooledBefore",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "totalPooledAfter",
type: "uint256",
},
],
name: "DistributeRewardsEvent",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_from",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_amountWithFeeInBONE",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_feeAmountInBONE",
type: "uint256",
},
],
name: "InstantPoolWithdraw",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address",
},
],
name: "Paused",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_from",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_amountInBONE",
type: "uint256",
},
],
name: "RequestWithdrawEvent",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_from",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_totalAmountInKnBONE",
type: "uint256",
},
],
name: "RequestWithdrawSplit",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
indexed: true,
internalType: "bytes32",
name: "previousAdminRole",
type: "bytes32",
},
{
indexed: true,
internalType: "bytes32",
name: "newAdminRole",
type: "bytes32",
},
],
name: "RoleAdminChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
indexed: true,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
],
name: "RoleGranted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
indexed: true,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
],
name: "RoleRevoked",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "bridge",
type: "address",
},
],
name: "SetBridge",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "oldDaoAddress",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "newDaoAddress",
type: "address",
},
],
name: "SetDaoAddress",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "_delegationLowerBound",
type: "uint256",
},
],
name: "SetDelegationLowerBound",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "depositManager",
type: "address",
},
],
name: "SetDepositManager",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "daoFee",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "operatorsFee",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "instantPoolFee",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "stakingFee",
type: "uint256",
},
],
name: "SetFees",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "instantPool",
type: "address",
},
],
name: "SetInstantPool",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "oldInstantPoolUsageFee",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "newInstantPoolUsageFee",
type: "uint256",
},
],
name: "SetInstantPoolUsageFee",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "l2Staking",
type: "address",
},
],
name: "SetL2Staking",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_newNodeOperatorRegistryAddress",
type: "address",
},
],
name: "SetNodeOperatorRegistryAddress",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint8",
name: "oldProtocolFee",
type: "uint8",
},
{
indexed: false,
internalType: "uint8",
name: "newProtocolFee",
type: "uint8",
},
],
name: "SetProtocolFee",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "oldRewardDistributionLowerBound",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "newRewardDistributionLowerBound",
type: "uint256",
},
],
name: "SetRewardDistributionLowerBound",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "oldUnstBONE",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "newUnstBONE",
type: "address",
},
],
name: "SetUnstBONE",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_from",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_amount",
type: "uint256",
},
{
indexed: true,
internalType: "address",
name: "_receiver",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "_transferToL2",
type: "bool",
},
],
name: "SubmitEvent",
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",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address",
},
],
name: "Unpaused",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_from",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "WithdrawTotalDelegatedEvent",
type: "event",
},
{
inputs: [],
name: "BRIDGE_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "DAO_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "DEFAULT_ADMIN_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "PAUSE_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "UNPAUSE_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "bridge",
outputs: [
{
internalType: "contract IBridgeETH",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "calculatePendingBufferedTokens",
outputs: [
{
internalType: "uint256",
name: "pendingBufferedTokens",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_tokenId",
type: "uint256[]",
},
],
name: "claimTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "claimTokensFromValidatorToContract",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_amountInBONE",
type: "uint256",
},
],
name: "convertBONEToKnBONE",
outputs: [
{
internalType: "uint256",
name: "amountInKnBONE",
type: "uint256",
},
{
internalType: "uint256",
name: "totalKnBONESupply",
type: "uint256",
},
{
internalType: "uint256",
name: "totalPooledBONE",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_amountInKnBONE",
type: "uint256",
},
],
name: "convertKnBONEToBONE",
outputs: [
{
internalType: "uint256",
name: "amountInBONE",
type: "uint256",
},
{
internalType: "uint256",
name: "totalKnBONEAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "totalPooledBONE",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "dao",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256",
},
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "delegationLowerBound",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "depositManager",
outputs: [
{
internalType: "contract IDepositManager",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "distributeRewards",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "entityFees",
outputs: [
{
internalType: "uint8",
name: "dao",
type: "uint8",
},
{
internalType: "uint8",
name: "operators",
type: "uint8",
},
{
internalType: "uint8",
name: "instantPool",
type: "uint8",
},
{
internalType: "uint8",
name: "staking",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_tokenId",
type: "uint256",
},
],
name: "getBONEFromTokenId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IValidatorShare",
name: "_validatorShare",
type: "address",
},
],
name: "getLiquidRewards",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "role",
type: "bytes32",
},
],
name: "getRoleAdmin",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_tokenId",
type: "uint256",
},
],
name: "getToken2WithdrawRequests",
outputs: [
{
components: [
{
internalType: "uint256",
name: "amount2WithdrawFromKnBONE",
type: "uint256",
},
{
internalType: "uint256",
name: "validatorNonce",
type: "uint256",
},
{
internalType: "uint256",
name: "requestEpoch",
type: "uint256",
},
{
internalType: "address",
name: "validatorAddress",
type: "address",
},
],
internalType: "struct IKnBONE.RequestWithdraw[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getTotalPooledBONE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IValidatorShare",
name: "_validatorShare",
type: "address",
},
],
name: "getTotalStake",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getTotalStakeAcrossAllValidators",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getTotalWithdrawRequest",
outputs: [
{
components: [
{
internalType: "uint256",
name: "amount2WithdrawFromKnBONE",
type: "uint256",
},
{
internalType: "uint256",
name: "validatorNonce",
type: "uint256",
},
{
internalType: "uint256",
name: "requestEpoch",
type: "uint256",
},
{
internalType: "address",
name: "validatorAddress",
type: "address",
},
],
internalType: "struct IKnBONE.RequestWithdraw[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "grantRole",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "hasRole",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256",
},
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract INodeOperatorRegistry",
name: "_nodeOperatorRegistry",
type: "address",
},
{
internalType: "contract IERC20Upgradeable",
name: "_token",
type: "address",
},
{
internalType: "address",
name: "_dao",
type: "address",
},
{
internalType: "contract IStakeManager",
name: "_stakeManager",
type: "address",
},
{
internalType: "contract IUnstBONE",
name: "_unstBONE",
type: "address",
},
{
internalType: "contract IInstantPool",
name: "_instantPool",
type: "address",
},
{
internalType: "contract IDepositManager",
name: "_depositManager",
type: "address",
},
{
internalType: "contract IBridgeETH",
name: "_bridge",
type: "address",
},
{
internalType: "address",
name: "_l2Staking",
type: "address",
},
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "instantPool",
outputs: [
{
internalType: "contract IInstantPool",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "instantPoolUsageFee",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "knBONEWithdrawRequest",
outputs: [
{
internalType: "uint256",
name: "amount2WithdrawFromKnBONE",
type: "uint256",
},
{
internalType: "uint256",
name: "validatorNonce",
type: "uint256",
},
{
internalType: "uint256",
name: "requestEpoch",
type: "uint256",
},
{
internalType: "address",
name: "validatorAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "l2Staking",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "nodeOperatorRegistry",
outputs: [
{
internalType: "contract INodeOperatorRegistry",
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: "protocolFee",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rebalanceDelegatedTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "renounceRole",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_instantPoolAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "_requestWithdrawAmount",
type: "uint256",
},
{
internalType: "address",
name: "_user",
type: "address",
},
],
name: "requestWithdrawSplit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "reservedFunds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "revokeRole",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "rewardDistributionLowerBound",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IBridgeETH",
name: "_bridge",
type: "address",
},
],
name: "setBridge",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_newDAO",
type: "address",
},
],
name: "setDaoAddress",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_delegationLowerBound",
type: "uint256",
},
],
name: "setDelegationLowerBound",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IDepositManager",
name: "_depositManager",
type: "address",
},
],
name: "setDepositManager",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint8",
name: "_daoFee",
type: "uint8",
},
{
internalType: "uint8",
name: "_operatorsFee",
type: "uint8",
},
{
internalType: "uint8",
name: "_instantPoolFee",
type: "uint8",
},
{
internalType: "uint8",
name: "_stakingFee",
type: "uint8",
},
],
name: "setFees",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IInstantPool",
name: "_instantPool",
type: "address",
},
],
name: "setInstantPool",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_instantPoolUsageFee",
type: "uint256",
},
],
name: "setInstantPoolUsageFee",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_l2Staking",
type: "address",
},
],
name: "setL2Staking",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_address",
type: "address",
},
],
name: "setNodeOperatorRegistryAddress",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint8",
name: "_newProtocolFee",
type: "uint8",
},
],
name: "setProtocolFee",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_newRewardDistributionLowerBound",
type: "uint256",
},
],
name: "setRewardDistributionLowerBound",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_newUnstBONE",
type: "address",
},
],
name: "setUnstBONE",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "stakeManager",
outputs: [
{
internalType: "contract IStakeManager",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
{
internalType: "address",
name: "_receiver",
type: "address",
},
{
internalType: "bool",
name: "_transferToL2",
type: "bool",
},
],
name: "submit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes4",
name: "interfaceId",
type: "bytes4",
},
],
name: "supportsInterface",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "token",
outputs: [
{
internalType: "contract IERC20Upgradeable",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "token2WithdrawRequests",
outputs: [
{
internalType: "uint256",
name: "amount2WithdrawFromKnBONE",
type: "uint256",
},
{
internalType: "uint256",
name: "validatorNonce",
type: "uint256",
},
{
internalType: "uint256",
name: "requestEpoch",
type: "uint256",
},
{
internalType: "address",
name: "validatorAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalBuffered",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "unstBONE",
outputs: [
{
internalType: "contract IUnstBONE",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_validatorShare",
type: "address",
},
],
name: "withdrawTotalDelegated",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class KnboneAbi__factory {
static createInterface() {
return new ethers.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers.Contract(address, _abi, signerOrProvider);
}
}
KnboneAbi__factory.abi = _abi;
exports.KnboneAbi__factory = KnboneAbi__factory;