UNPKG

@knine-sdk/contracts

Version:

Contracts for Knine projects. Part of Knine JS SDK

710 lines (705 loc) 18 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var ethers = require('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: "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: "address", name: "proxyDeployed", type: "address", }, { indexed: false, internalType: "address", name: "currentImplementation", type: "address", }, { indexed: false, internalType: "address", name: "token0", type: "address", }, { indexed: false, internalType: "address", name: "token1", type: "address", }, ], name: "CreateFarming", 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: "amount", type: "uint256", }, ], name: "NativeReceived", 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", }, { 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: [ { internalType: "address", name: "farming", type: "address", }, { components: [ { internalType: "address", name: "rewardToken", type: "address", }, { internalType: "uint64", name: "startTime", type: "uint64", }, { internalType: "uint64", name: "endTime", type: "uint64", }, { internalType: "uint256", name: "rps", type: "uint256", }, ], internalType: "struct IStructV2.RewardPool", name: "rew", type: "tuple", }, ], name: "addBonusPool", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "farming", type: "address", }, { internalType: "uint256", name: "value", type: "uint256", }, ], name: "changeFarmingRPS", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "token0", type: "address", }, { internalType: "address", name: "token1", type: "address", }, ], internalType: "struct IStructV2.LiquidityPool", name: "liq", type: "tuple", }, { components: [ { internalType: "address", name: "rewardToken", type: "address", }, { internalType: "uint64", name: "startTime", type: "uint64", }, { internalType: "uint64", name: "endTime", type: "uint64", }, { internalType: "uint256", name: "rps", type: "uint256", }, ], internalType: "struct IStructV2.RewardPool", name: "rew", type: "tuple", }, ], name: "createFarming", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "esKnine", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "farmingImplementation", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getAllCreatedPools", 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: "_admin", type: "address", }, { internalType: "address", name: "_esKnine", type: "address", }, { internalType: "address", name: "_router", type: "address", }, { internalType: "address", name: "_wbone", type: "address", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "token", type: "address", }, ], name: "recovery", 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: [], name: "router", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "instance", type: "address", }, ], name: "setEsKnine", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "instance", type: "address", }, ], name: "setFarmingImplementation", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "uint32", name: "entry", type: "uint32", }, { internalType: "uint32", name: "exit", type: "uint32", }, ], internalType: "struct FarmingFactoryV2_1.ZapFees", name: "fees", type: "tuple", }, ], name: "setFees", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "instance", type: "address", }, ], name: "setRouter", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "instance", type: "address", }, ], name: "setWrappedBone", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "farming", type: "address", }, { internalType: "uint256", name: "poolId", type: "uint256", }, ], name: "stopBonusPool", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "farming", type: "address", }, ], name: "stopFarming", outputs: [], 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: "wbone", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "zapFees", outputs: [ { internalType: "uint32", name: "entry", type: "uint32", }, { internalType: "uint32", name: "exit", type: "uint32", }, ], stateMutability: "view", type: "function", }, { stateMutability: "payable", type: "receive", }, ]; class FarmingFactoryAbi__factory { static createInterface() { return new ethers.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers.Contract(address, _abi, signerOrProvider); } } FarmingFactoryAbi__factory.abi = _abi; exports.FarmingFactoryAbi__factory = FarmingFactoryAbi__factory;