@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
754 lines (750 loc) • 14.1 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 {
IPoolManagerGovernor,
IPoolManagerGovernorInterface,
} from "../IPoolManagerGovernor";
const _abi = [
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "AlreadyVoted",
type: "error",
},
{
inputs: [],
name: "NoVotes",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "bytes",
name: "_expectedParameters",
type: "bytes",
},
{
internalType: "bytes",
name: "_actualParameters",
type: "bytes",
},
],
name: "ParametersMismatch",
type: "error",
},
{
inputs: [],
name: "PoolManager_FeeManagerAlreadySet",
type: "error",
},
{
inputs: [
{
internalType: "contract IFeeManager",
name: "_expected",
type: "address",
},
{
internalType: "contract IFeeManager",
name: "_actual",
type: "address",
},
],
name: "PoolManager_FeeManagerMismatch",
type: "error",
},
{
inputs: [
{
internalType: "address",
name: "_expected",
type: "address",
},
{
internalType: "address",
name: "_actual",
type: "address",
},
],
name: "PoolManager_MigrationContractMismatch",
type: "error",
},
{
inputs: [],
name: "PoolManager_MigrationFailed",
type: "error",
},
{
inputs: [],
name: "PoolManager_PriceOracleAlreadySet",
type: "error",
},
{
inputs: [
{
internalType: "contract IPriceOracle",
name: "_expected",
type: "address",
},
{
internalType: "contract IPriceOracle",
name: "_actual",
type: "address",
},
],
name: "PoolManager_PriceOracleMismatch",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "ProposalAlreadyQueued",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "ProposalClosed",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "ProposalNotExecutable",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "QuorumNotReached",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IFeeManager",
name: "_newFeeManager",
type: "address",
},
],
name: "FeeManagerMigrated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "NewProposal",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_voter",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_votes",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "NewVote",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IPriceOracle",
name: "_newPriceOracle",
type: "address",
},
],
name: "PriceOracleSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "ProposalCancelled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "ProposalExecuted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "ProposalQueued",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_voter",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "VoteCancelled",
type: "event",
},
{
inputs: [],
name: "POOL_MANAGER_FACTORY",
outputs: [
{
internalType: "contract IPoolManagerFactory",
name: "_poolManagerFactory",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "QUORUM",
outputs: [
{
internalType: "uint256",
name: "_quorum",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IFeeManager",
name: "_newFeeManager",
type: "address",
},
],
name: "acceptFeeManagerChange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_migrationContract",
type: "address",
},
],
name: "acceptMigrate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IPriceOracle",
name: "_newPriceOracle",
type: "address",
},
],
name: "acceptPriceOracleChange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "cancelProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "cancelVote",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "bytes",
name: "_parameters",
type: "bytes",
},
],
name: "execute",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "executionTimelock",
outputs: [
{
internalType: "uint256",
name: "_executionTimelock",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "feeManager",
outputs: [
{
internalType: "contract IFeeManager",
name: "_feeManager",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "getLatest",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256",
},
{
internalType: "bytes",
name: "params",
type: "bytes",
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256",
},
{
internalType: "bool",
name: "open",
type: "bool",
},
{
internalType: "uint256",
name: "timelockExpiry",
type: "uint256",
},
],
internalType: "struct IGovernorMiniBravo.Proposal",
name: "_proposal",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "isExecutable",
outputs: [
{
internalType: "bool",
name: "_availableToExecute",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "poolLiquidity",
outputs: [
{
internalType: "uint256",
name: "_poolLiquidity",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "priceOracle",
outputs: [
{
internalType: "contract IPriceOracle",
name: "_priceOracle",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IFeeManager",
name: "_newFeeManager",
type: "address",
},
],
name: "proposeFeeManagerChange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_migrationContract",
type: "address",
},
],
name: "proposeMigrate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IPriceOracle",
name: "_newPriceOracle",
type: "address",
},
],
name: "proposePriceOracleChange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "bytes",
name: "_parameters",
type: "bytes",
},
],
name: "queue",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "quorumReached",
outputs: [
{
internalType: "bool",
name: "_quorumReached",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_donor",
type: "address",
},
],
name: "seederBalance",
outputs: [
{
internalType: "uint256",
name: "_seederBalance",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_donor",
type: "address",
},
],
name: "seederBurned",
outputs: [
{
internalType: "uint256",
name: "_seederBurned",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalVotes",
outputs: [
{
internalType: "uint256",
name: "_totalVotes",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address",
},
],
name: "votingPower",
outputs: [
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
];
export class IPoolManagerGovernor__factory {
static readonly abi = _abi;
static createInterface(): IPoolManagerGovernorInterface {
return new utils.Interface(_abi) as IPoolManagerGovernorInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPoolManagerGovernor {
return new Contract(
address,
_abi,
signerOrProvider
) as IPoolManagerGovernor;
}
}