UNPKG

@price-oracle/v1-core-interfaces

Version:

Price Oracle v1 Core Interfaces and needed integration files

328 lines (324 loc) 6.5 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IBribe, IBribeInterface } from "../IBribe"; const _abi = [ { inputs: [], name: "Bribe_AmountZero", type: "error", }, { inputs: [], name: "Bribe_InvalidLockManager", type: "error", }, { inputs: [], name: "Bribe_InvalidPeriod", type: "error", }, { inputs: [], name: "Bribe_InvalidPoolManager", type: "error", }, { inputs: [], name: "Bribe_InvalidWithdrawAmount", type: "error", }, { inputs: [], name: "Bribe_NothingToUpdate", type: "error", }, { inputs: [], name: "Bribe_NothingToWithdraw", type: "error", }, { inputs: [], name: "Bribe_TokenZeroAddress", type: "error", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "_user", type: "address", }, { indexed: false, internalType: "contract IERC20", name: "_token", type: "address", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "ClaimedRewards", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { indexed: false, internalType: "contract IERC20", name: "_bribeToken", type: "address", }, { indexed: false, internalType: "uint256", name: "_bribeAmount", type: "uint256", }, ], name: "CreatedBribe", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "_caller", type: "address", }, { indexed: false, internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "Deposit", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "_user", type: "address", }, { indexed: false, internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { indexed: false, internalType: "uint256", name: "_toPeriod", type: "uint256", }, ], name: "UpdatedUserBalance", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "_caller", type: "address", }, { indexed: false, internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "Withdraw", type: "event", }, { inputs: [], name: "POOL_MANAGER_FACTORY", outputs: [ { internalType: "contract IPoolManagerFactory", name: "_poolManagerFactory", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { internalType: "contract IERC20[]", name: "_tokens", type: "address[]", }, { internalType: "uint256", name: "_fromPeriod", type: "uint256", }, { internalType: "uint256", name: "_toPeriod", type: "uint256", }, ], name: "claimRewards", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { internalType: "contract IERC20", name: "_bribeToken", type: "address", }, { internalType: "uint256", name: "_bribeAmount", type: "uint256", }, ], name: "createBribe", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "deposit", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { internalType: "uint256", name: "_toPeriod", type: "uint256", }, ], name: "updateUserBalanceFromLastInteractionTo", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_user", type: "address", }, { internalType: "contract ILockManager", name: "_lockManager", type: "address", }, ], name: "userLatestInteraction", outputs: [ { internalType: "uint256", name: "_period", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "contract ILockManager", name: "_lockManager", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "withdraw", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; export class IBribe__factory { static readonly abi = _abi; static createInterface(): IBribeInterface { return new utils.Interface(_abi) as IBribeInterface; } static connect(address: string, signerOrProvider: Signer | Provider): IBribe { return new Contract(address, _abi, signerOrProvider) as IBribe; } }