@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
488 lines (484 loc) • 9.16 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
ILiquidityIncreaserJob,
ILiquidityIncreaserJobInterface,
} from "../ILiquidityIncreaserJob";
const _abi = [
{
inputs: [],
name: "InvalidKeeper",
type: "error",
},
{
inputs: [],
name: "LiquidityIncreaserJob_InsufficientIncrease",
type: "error",
},
{
inputs: [],
name: "LiquidityIncreaserJob_InvalidPoolManager",
type: "error",
},
{
inputs: [],
name: "LiquidityIncreaserJob_PoolManipulated",
type: "error",
},
{
inputs: [],
name: "PriceGovernable_NoGovernanceZeroAddress",
type: "error",
},
{
inputs: [],
name: "PriceGovernable_OnlyGovernance",
type: "error",
},
{
inputs: [],
name: "PriceGovernable_OnlyPendingGovernance",
type: "error",
},
{
inputs: [],
name: "PricePausable_Paused",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_pendingGovernance",
type: "address",
},
],
name: "GovernanceProposal",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_governance",
type: "address",
},
],
name: "GovernanceSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IERC20",
name: "_bond",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_minBond",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_earnings",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_age",
type: "uint256",
},
],
name: "Keep3rRequirementsSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IKeep3r",
name: "_keep3r",
type: "address",
},
],
name: "Keep3rSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_minIncreaseWeth",
type: "uint256",
},
],
name: "MinIncreaseWethSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bool",
name: "_paused",
type: "bool",
},
],
name: "PausedSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IPoolManager",
name: "_poolManager",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_amountWeth",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_amountToken",
type: "uint256",
},
],
name: "Worked",
type: "event",
},
{
inputs: [],
name: "POOL_MANAGER_FACTORY",
outputs: [
{
internalType: "contract IPoolManagerFactory",
name: "_poolManagerFactory",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "WETH",
outputs: [
{
internalType: "contract IERC20",
name: "_weth",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "acceptGovernance",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "_governance",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isPaused",
outputs: [
{
internalType: "bool",
name: "_isPaused",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IPoolManager",
name: "_poolManager",
type: "address",
},
],
name: "isWorkable",
outputs: [
{
internalType: "bool",
name: "_workable",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IPoolManager",
name: "_poolManager",
type: "address",
},
{
internalType: "address",
name: "_keeper",
type: "address",
},
],
name: "isWorkable",
outputs: [
{
internalType: "bool",
name: "_workable",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "keep3r",
outputs: [
{
internalType: "contract IKeep3r",
name: "_keep3r",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "minIncreaseWeth",
outputs: [
{
internalType: "uint256",
name: "_minIncreaseWeth",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "pendingGovernance",
outputs: [
{
internalType: "address",
name: "_pendingGovernance",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "requiredAge",
outputs: [
{
internalType: "uint256",
name: "_requiredAge",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "requiredBond",
outputs: [
{
internalType: "contract IERC20",
name: "_requiredBond",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "requiredEarnings",
outputs: [
{
internalType: "uint256",
name: "_requiredEarnings",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "requiredMinBond",
outputs: [
{
internalType: "uint256",
name: "_requiredMinBond",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_governance",
type: "address",
},
],
name: "setGovernance",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IKeep3r",
name: "_keep3r",
type: "address",
},
],
name: "setKeep3r",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IERC20",
name: "_bond",
type: "address",
},
{
internalType: "uint256",
name: "_minBond",
type: "uint256",
},
{
internalType: "uint256",
name: "_earnings",
type: "uint256",
},
{
internalType: "uint256",
name: "_age",
type: "uint256",
},
],
name: "setKeep3rRequirements",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_minIncreaseWeth",
type: "uint256",
},
],
name: "setMinIncreaseWeth",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "_paused",
type: "bool",
},
],
name: "setPaused",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IPoolManager",
name: "_poolManager",
type: "address",
},
{
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "_tokenAmount",
type: "uint256",
},
],
name: "work",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
export class ILiquidityIncreaserJob__factory {
static readonly abi = _abi;
static createInterface(): ILiquidityIncreaserJobInterface {
return new utils.Interface(_abi) as ILiquidityIncreaserJobInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): ILiquidityIncreaserJob {
return new Contract(
address,
_abi,
signerOrProvider
) as ILiquidityIncreaserJob;
}
}