UNPKG

@orionprotocol/contracts

Version:
343 lines (342 loc) 8.1 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.OrionFarmV2__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [ { internalType: "address", name: "_smartVote", type: "address", }, { internalType: "address", name: "_libStakingReward", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "pool", type: "address", }, { indexed: false, internalType: "address", name: "smart", type: "address", }, { indexed: false, internalType: "uint8", name: "decimals", type: "uint8", }, ], name: "CreateSmartReward", type: "event", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, ], name: "allStake", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, ], name: "claimReward", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, ], name: "createSmartReward", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "lock_period", type: "uint256", }, ], name: "create_lock_period", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "address", name: "account", type: "address", }, ], name: "getBoost", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "address", name: "account", type: "address", }, ], name: "getReward", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "address", name: "account", type: "address", }, ], name: "getStake", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "increase_amount", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "uint256", name: "new_lock_period", type: "uint256", }, ], name: "increase_lock_period", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "libStakingReward", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "listSmartReward", outputs: [ { internalType: "contract IStakingReward", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "address", name: "account", type: "address", }, ], name: "lockTimePeriod", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "address", name: "account", type: "address", }, ], name: "lockTimeStart", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "smartVote", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, ], name: "withdraw", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class OrionFarmV2__factory { static createInterface() { return new ethers_1.Interface(_abi); } static connect(address, runner) { return new ethers_1.Contract(address, _abi, runner); } } OrionFarmV2__factory.abi = _abi; exports.OrionFarmV2__factory = OrionFarmV2__factory;