UNPKG

@price-oracle/v1-core-interfaces

Version:

Price Oracle v1 Core Interfaces and needed integration files

97 lines (81 loc) 2.49 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 GovernanceProposal = ContractEventLog<{ _pendingGovernance: string; 0: string; }>; export type GovernanceSet = ContractEventLog<{ _governance: string; 0: string; }>; export type PausedSet = ContractEventLog<{ _paused: boolean; 0: boolean; }>; export interface IPricePausable extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): IPricePausable; clone(): IPricePausable; methods: { acceptGovernance(): NonPayableTransactionObject<void>; governance(): NonPayableTransactionObject<string>; isPaused(): NonPayableTransactionObject<boolean>; pendingGovernance(): NonPayableTransactionObject<string>; setGovernance(_governance: string): NonPayableTransactionObject<void>; setPaused(_paused: boolean): NonPayableTransactionObject<void>; }; events: { GovernanceProposal(cb?: Callback<GovernanceProposal>): EventEmitter; GovernanceProposal( options?: EventOptions, cb?: Callback<GovernanceProposal> ): EventEmitter; GovernanceSet(cb?: Callback<GovernanceSet>): EventEmitter; GovernanceSet( options?: EventOptions, cb?: Callback<GovernanceSet> ): EventEmitter; PausedSet(cb?: Callback<PausedSet>): EventEmitter; PausedSet(options?: EventOptions, cb?: Callback<PausedSet>): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "GovernanceProposal", cb: Callback<GovernanceProposal>): void; once( event: "GovernanceProposal", options: EventOptions, cb: Callback<GovernanceProposal> ): void; once(event: "GovernanceSet", cb: Callback<GovernanceSet>): void; once( event: "GovernanceSet", options: EventOptions, cb: Callback<GovernanceSet> ): void; once(event: "PausedSet", cb: Callback<PausedSet>): void; once( event: "PausedSet", options: EventOptions, cb: Callback<PausedSet> ): void; }