UNPKG

@api3/contracts

Version:

Contracts through which API3 services are delivered

34 lines 2.98 kB
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../common"; export interface MockDapiProxyWithOevInterface extends Interface { getFunction(nameOrSignature: "api3ServerV1" | "dapiNameHash" | "oevBeneficiary"): FunctionFragment; encodeFunctionData(functionFragment: "api3ServerV1", values?: undefined): string; encodeFunctionData(functionFragment: "dapiNameHash", values?: undefined): string; encodeFunctionData(functionFragment: "oevBeneficiary", values?: undefined): string; decodeFunctionResult(functionFragment: "api3ServerV1", data: BytesLike): Result; decodeFunctionResult(functionFragment: "dapiNameHash", data: BytesLike): Result; decodeFunctionResult(functionFragment: "oevBeneficiary", data: BytesLike): Result; } export interface MockDapiProxyWithOev extends BaseContract { connect(runner?: ContractRunner | null): MockDapiProxyWithOev; waitForDeployment(): Promise<this>; interface: MockDapiProxyWithOevInterface; queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>; api3ServerV1: TypedContractMethod<[], [string], "view">; dapiNameHash: TypedContractMethod<[], [string], "view">; oevBeneficiary: TypedContractMethod<[], [string], "view">; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: "api3ServerV1"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "dapiNameHash"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "oevBeneficiary"): TypedContractMethod<[], [string], "view">; filters: {}; } //# sourceMappingURL=MockDapiProxyWithOev.d.ts.map