UNPKG

@knine-sdk/contracts

Version:

Contracts for Knine projects. Part of Knine JS SDK

1,082 lines (1,079 loc) 27.2 kB
import { utils, Contract } from 'ethers'; /* Autogenerated file. Do not edit manually. */ const _abi = [ { inputs: [], name: "AccessControlBadConfirmation", type: "error", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, { internalType: "bytes32", name: "neededRole", type: "bytes32", }, ], name: "AccessControlUnauthorizedAccount", type: "error", }, { inputs: [ { internalType: "address", name: "target", type: "address", }, ], name: "AddressEmptyCode", type: "error", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, ], name: "AddressInsufficientBalance", type: "error", }, { inputs: [], name: "EnforcedPause", type: "error", }, { inputs: [], name: "ExpectedPause", type: "error", }, { inputs: [], name: "FailedInnerCall", type: "error", }, { inputs: [], name: "InvalidInitialization", type: "error", }, { inputs: [], name: "NotInitializing", type: "error", }, { inputs: [ { internalType: "address", name: "token", type: "address", }, ], name: "SafeERC20FailedOperation", type: "error", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "ratio", type: "uint64", }, ], name: "BackingRatioChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "user", type: "address", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, ], name: "Claimed", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "user", type: "address", }, { indexed: false, internalType: "uint256", name: "debt", type: "uint256", }, ], name: "DepositDebtTransfer", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "user", type: "address", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, { indexed: false, internalType: "uint256", name: "potentialReward", type: "uint256", }, { indexed: false, internalType: "uint64", name: "lockEnd", type: "uint64", }, ], name: "Deposited", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "user", type: "address", }, { indexed: false, internalType: "uint256", name: "debt", type: "uint256", }, ], name: "EarnedDebtTransfer", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "version", type: "uint64", }, ], name: "Initialized", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "bool", name: "status", type: "bool", }, ], name: "OnlyLockedChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address", }, ], name: "Paused", type: "event", }, { anonymous: false, inputs: [], name: "Paused", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "user", type: "address", }, { indexed: false, internalType: "uint256", name: "esKnineExcluded", type: "uint256", }, ], name: "Recalculated", 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: "token", type: "address", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, ], name: "StockTokensWithdrawed", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "endTime", type: "uint64", }, ], name: "Stopped", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address", }, ], name: "Unpaused", type: "event", }, { anonymous: false, inputs: [], name: "Unpaused", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "duration", type: "uint64", }, ], name: "VestingPeriodChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "ratio", type: "uint64", }, ], name: "VestingRatioChanged", type: "event", }, { inputs: [], name: "ADMIN_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: "DENOMINATOR", outputs: [ { internalType: "uint8", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "KNINE", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "STAKING", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, ], name: "beforeDeposit", outputs: [ { internalType: "uint256", name: "esKnineBalance", type: "uint256", }, { internalType: "uint256", name: "depositLimit", type: "uint256", }, { components: [ { internalType: "bool", name: "lockedOnly", type: "bool", }, { internalType: "uint64", name: "backingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingPeriod", type: "uint64", }, ], internalType: "struct VestingTest.Settings", name: "userSettings", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "changeIsOnlyLocked", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "value", type: "uint256", }, ], name: "changeTestTime", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "claim", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "deposit", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, ], name: "depositInfo", outputs: [ { internalType: "uint256", name: "inVesting", type: "uint256", }, { internalType: "uint64", name: "vestingEnds", type: "uint64", }, { internalType: "uint256", name: "reward", type: "uint256", }, { internalType: "uint256", name: "lockedInStaking", type: "uint256", }, { internalType: "uint256", name: "usedForVesting", type: "uint256", }, { internalType: "uint256", name: "vestingLimit", type: "uint256", }, { internalType: "uint256", name: "availableForVesting", type: "uint256", }, { internalType: "uint256", name: "stakingEnds", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "deposits", outputs: [ { internalType: "uint64", name: "startTime", type: "uint64", }, { internalType: "uint64", name: "endTime", type: "uint64", }, { internalType: "uint256", name: "depositAmount", type: "uint256", }, { internalType: "uint256", name: "reservedAmount", type: "uint256", }, { internalType: "uint256", name: "lockedAmount", type: "uint256", }, { internalType: "uint256", name: "stakedAmount", type: "uint256", }, { internalType: "uint256", name: "potentialRewards", type: "uint256", }, { internalType: "uint256", name: "claimed", type: "uint256", }, { components: [ { internalType: "bool", name: "lockedOnly", type: "bool", }, { internalType: "uint64", name: "backingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingPeriod", type: "uint64", }, ], internalType: "struct VestingTest.Settings", name: "settings", type: "tuple", }, { components: [ { internalType: "uint256", name: "deposited", type: "uint256", }, { internalType: "uint256", name: "earned", type: "uint256", }, ], internalType: "struct VestingTest.Debt", name: "debt", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "emergencyStop", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "endTime", outputs: [ { internalType: "uint64", name: "", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "esKNINE", outputs: [ { internalType: "address", name: "", type: "address", }, ], 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: "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: "_knine", type: "address", }, { internalType: "address", name: "_esknine", type: "address", }, { internalType: "address", name: "_staking", type: "address", }, { internalType: "address", name: "_admin", type: "address", }, { components: [ { internalType: "bool", name: "lockedOnly", type: "bool", }, { internalType: "uint64", name: "backingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingPeriod", type: "uint64", }, ], internalType: "struct VestingTest.Settings", name: "_settings", type: "tuple", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "paused", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, ], name: "pendingRewards", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, { internalType: "uint256", name: "unstakeAmount", type: "uint256", }, ], name: "recalculate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32", }, { internalType: "address", name: "callerConfirmation", type: "address", }, ], name: "renounceRole", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32", }, { internalType: "address", name: "account", type: "address", }, ], name: "revokeRole", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint64", name: "value", type: "uint64", }, ], name: "setBackingRatio", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint64", name: "value", type: "uint64", }, ], name: "setVestingPeriod", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint64", name: "value", type: "uint64", }, ], name: "setVestingRatio", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "settings", outputs: [ { internalType: "bool", name: "lockedOnly", type: "bool", }, { internalType: "uint64", name: "backingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingRatio", type: "uint64", }, { internalType: "uint64", name: "vestingPeriod", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes4", name: "interfaceId", type: "bytes4", }, ], name: "supportsInterface", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "testTime", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "token", type: "address", }, ], name: "withdrawStockTokens", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class VestingAbi__factory { static createInterface() { return new utils.Interface(_abi); } static connect(address, signerOrProvider) { return new Contract(address, _abi, signerOrProvider); } } VestingAbi__factory.abi = _abi; export { VestingAbi__factory };