UNPKG

@price-oracle/v1-core-interfaces

Version:

Price Oracle v1 Core Interfaces and needed integration files

540 lines (536 loc) 10 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 { ILockManagerGovernor, ILockManagerGovernorInterface, } from "../ILockManagerGovernor"; const _abi = [ { inputs: [ { internalType: "uint256", name: "_method", type: "uint256", }, { internalType: "uint256", name: "_id", type: "uint256", }, ], name: "AlreadyVoted", type: "error", }, { inputs: [], name: "LockManager_ArithmeticUnderflow", type: "error", }, { inputs: [], name: "LockManager_Deprecated", 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: [ { 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: "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: "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: [], name: "acceptDeprecate", 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: [], name: "deprecated", outputs: [ { internalType: "bool", name: "_deprecated", type: "bool", }, ], stateMutability: "view", 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: [ { 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: [ { 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: [], 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 ILockManagerGovernor__factory { static readonly abi = _abi; static createInterface(): ILockManagerGovernorInterface { return new utils.Interface(_abi) as ILockManagerGovernorInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): ILockManagerGovernor { return new Contract( address, _abi, signerOrProvider ) as ILockManagerGovernor; } }