@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
202 lines (172 loc) • 4.96 kB
text/typescript
/* 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 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 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 ILockManagerGovernor extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): ILockManagerGovernor;
clone(): ILockManagerGovernor;
methods: {
POOL_MANAGER_FACTORY(): NonPayableTransactionObject<string>;
QUORUM(): NonPayableTransactionObject<string>;
acceptDeprecate(): NonPayableTransactionObject<void>;
cancelProposal(
_method: number | string | BN
): NonPayableTransactionObject<void>;
cancelVote(
_method: number | string | BN
): NonPayableTransactionObject<void>;
deprecated(): NonPayableTransactionObject<boolean>;
execute(
_method: number | string | BN,
_parameters: string | number[]
): NonPayableTransactionObject<void>;
executionTimelock(): NonPayableTransactionObject<string>;
getLatest(
_method: number | string | BN
): NonPayableTransactionObject<[string, string, string, boolean, string]>;
isExecutable(
_method: number | string | BN
): NonPayableTransactionObject<boolean>;
queue(
_method: number | string | BN,
_parameters: string | number[]
): NonPayableTransactionObject<void>;
quorumReached(
_method: number | string | BN
): NonPayableTransactionObject<boolean>;
totalVotes(): NonPayableTransactionObject<string>;
votingPower(_user: string): NonPayableTransactionObject<string>;
};
events: {
NewProposal(cb?: Callback<NewProposal>): EventEmitter;
NewProposal(
options?: EventOptions,
cb?: Callback<NewProposal>
): EventEmitter;
NewVote(cb?: Callback<NewVote>): EventEmitter;
NewVote(options?: EventOptions, cb?: Callback<NewVote>): 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: "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: "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;
}