UNPKG

@price-oracle/v1-core-interfaces

Version:

Price Oracle v1 Core Interfaces and needed integration files

266 lines (223 loc) 6.68 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type BN from "bn.js"; import type { ContractOptions } from "web3-eth-contract"; import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract, } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type FeeManagerMigrated = ContractEventLog<{ _newFeeManager: string; 0: string; }>; export type NewProposal = ContractEventLog<{ _id: string; _method: string; _params: string; 0: string; 1: string; 2: string; }>; export type NewVote = ContractEventLog<{ _voter: string; _votes: string; _method: string; _id: string; 0: string; 1: string; 2: string; 3: string; }>; export type PriceOracleSet = ContractEventLog<{ _newPriceOracle: string; 0: string; }>; export type ProposalCancelled = ContractEventLog<{ _id: string; _method: string; _params: string; 0: string; 1: string; 2: string; }>; export type ProposalExecuted = ContractEventLog<{ _id: string; _method: string; _params: string; 0: string; 1: string; 2: string; }>; export type ProposalQueued = ContractEventLog<{ _id: string; _method: string; _params: string; 0: string; 1: string; 2: string; }>; export type VoteCancelled = ContractEventLog<{ _voter: string; _method: string; _id: string; 0: string; 1: string; 2: string; }>; export interface IPoolManagerGovernor extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): IPoolManagerGovernor; clone(): IPoolManagerGovernor; methods: { POOL_MANAGER_FACTORY(): NonPayableTransactionObject<string>; QUORUM(): NonPayableTransactionObject<string>; acceptFeeManagerChange( _newFeeManager: string ): NonPayableTransactionObject<void>; acceptMigrate( _migrationContract: string ): NonPayableTransactionObject<void>; acceptPriceOracleChange( _newPriceOracle: string ): NonPayableTransactionObject<void>; cancelProposal( _method: number | string | BN ): NonPayableTransactionObject<void>; cancelVote( _method: number | string | BN ): NonPayableTransactionObject<void>; execute( _method: number | string | BN, _parameters: string | number[] ): NonPayableTransactionObject<void>; executionTimelock(): NonPayableTransactionObject<string>; feeManager(): NonPayableTransactionObject<string>; getLatest( _method: number | string | BN ): NonPayableTransactionObject<[string, string, string, boolean, string]>; isExecutable( _method: number | string | BN ): NonPayableTransactionObject<boolean>; poolLiquidity(): NonPayableTransactionObject<string>; priceOracle(): NonPayableTransactionObject<string>; proposeFeeManagerChange( _newFeeManager: string ): NonPayableTransactionObject<void>; proposeMigrate( _migrationContract: string ): NonPayableTransactionObject<void>; proposePriceOracleChange( _newPriceOracle: string ): NonPayableTransactionObject<void>; queue( _method: number | string | BN, _parameters: string | number[] ): NonPayableTransactionObject<void>; quorumReached( _method: number | string | BN ): NonPayableTransactionObject<boolean>; seederBalance(_donor: string): NonPayableTransactionObject<string>; seederBurned(_donor: string): NonPayableTransactionObject<string>; totalVotes(): NonPayableTransactionObject<string>; votingPower(_user: string): NonPayableTransactionObject<string>; }; events: { FeeManagerMigrated(cb?: Callback<FeeManagerMigrated>): EventEmitter; FeeManagerMigrated( options?: EventOptions, cb?: Callback<FeeManagerMigrated> ): EventEmitter; NewProposal(cb?: Callback<NewProposal>): EventEmitter; NewProposal( options?: EventOptions, cb?: Callback<NewProposal> ): EventEmitter; NewVote(cb?: Callback<NewVote>): EventEmitter; NewVote(options?: EventOptions, cb?: Callback<NewVote>): EventEmitter; PriceOracleSet(cb?: Callback<PriceOracleSet>): EventEmitter; PriceOracleSet( options?: EventOptions, cb?: Callback<PriceOracleSet> ): EventEmitter; ProposalCancelled(cb?: Callback<ProposalCancelled>): EventEmitter; ProposalCancelled( options?: EventOptions, cb?: Callback<ProposalCancelled> ): EventEmitter; ProposalExecuted(cb?: Callback<ProposalExecuted>): EventEmitter; ProposalExecuted( options?: EventOptions, cb?: Callback<ProposalExecuted> ): EventEmitter; ProposalQueued(cb?: Callback<ProposalQueued>): EventEmitter; ProposalQueued( options?: EventOptions, cb?: Callback<ProposalQueued> ): EventEmitter; VoteCancelled(cb?: Callback<VoteCancelled>): EventEmitter; VoteCancelled( options?: EventOptions, cb?: Callback<VoteCancelled> ): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "FeeManagerMigrated", cb: Callback<FeeManagerMigrated>): void; once( event: "FeeManagerMigrated", options: EventOptions, cb: Callback<FeeManagerMigrated> ): void; once(event: "NewProposal", cb: Callback<NewProposal>): void; once( event: "NewProposal", options: EventOptions, cb: Callback<NewProposal> ): void; once(event: "NewVote", cb: Callback<NewVote>): void; once(event: "NewVote", options: EventOptions, cb: Callback<NewVote>): void; once(event: "PriceOracleSet", cb: Callback<PriceOracleSet>): void; once( event: "PriceOracleSet", options: EventOptions, cb: Callback<PriceOracleSet> ): void; once(event: "ProposalCancelled", cb: Callback<ProposalCancelled>): void; once( event: "ProposalCancelled", options: EventOptions, cb: Callback<ProposalCancelled> ): void; once(event: "ProposalExecuted", cb: Callback<ProposalExecuted>): void; once( event: "ProposalExecuted", options: EventOptions, cb: Callback<ProposalExecuted> ): void; once(event: "ProposalQueued", cb: Callback<ProposalQueued>): void; once( event: "ProposalQueued", options: EventOptions, cb: Callback<ProposalQueued> ): void; once(event: "VoteCancelled", cb: Callback<VoteCancelled>): void; once( event: "VoteCancelled", options: EventOptions, cb: Callback<VoteCancelled> ): void; }