UNPKG

@api3/contracts

Version:

Contracts through which API3 services are delivered

121 lines 7.13 kB
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../common"; export interface MockApi3ServerV1OevExtensionOevBidPayerInterface extends Interface { getFunction(nameOrSignature: "api3ServerV1OevExtension" | "onOevBidPayment" | "owner" | "payOevBid" | "renounceOwnership" | "transferOwnership" | "updateDappOevDataFeed" | "withdraw"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; encodeFunctionData(functionFragment: "api3ServerV1OevExtension", values?: undefined): string; encodeFunctionData(functionFragment: "onOevBidPayment", values: [BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "payOevBid", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]): string; encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string; encodeFunctionData(functionFragment: "updateDappOevDataFeed", values: [BigNumberish, BytesLike[]]): string; encodeFunctionData(functionFragment: "withdraw", values: [AddressLike, BigNumberish]): string; decodeFunctionResult(functionFragment: "api3ServerV1OevExtension", data: BytesLike): Result; decodeFunctionResult(functionFragment: "onOevBidPayment", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "payOevBid", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updateDappOevDataFeed", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export declare namespace OwnershipTransferredEvent { type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; type OutputTuple = [previousOwner: string, newOwner: string]; interface OutputObject { previousOwner: string; newOwner: string; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export interface MockApi3ServerV1OevExtensionOevBidPayer extends BaseContract { connect(runner?: ContractRunner | null): MockApi3ServerV1OevExtensionOevBidPayer; waitForDeployment(): Promise<this>; interface: MockApi3ServerV1OevExtensionOevBidPayerInterface; 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>; api3ServerV1OevExtension: TypedContractMethod<[], [string], "view">; onOevBidPayment: TypedContractMethod<[ bidAmount: BigNumberish, data: BytesLike ], [ string ], "nonpayable">; owner: TypedContractMethod<[], [string], "view">; payOevBid: TypedContractMethod<[ dappId: BigNumberish, bidAmount: BigNumberish, signedDataTimestampCutoff: BigNumberish, signature: BytesLike, data: BytesLike ], [ void ], "nonpayable">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], "nonpayable">; updateDappOevDataFeed: TypedContractMethod<[ dappId: BigNumberish, signedData: BytesLike[] ], [ void ], "nonpayable">; withdraw: TypedContractMethod<[ recipient: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: "api3ServerV1OevExtension"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "onOevBidPayment"): TypedContractMethod<[ bidAmount: BigNumberish, data: BytesLike ], [ string ], "nonpayable">; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "payOevBid"): TypedContractMethod<[ dappId: BigNumberish, bidAmount: BigNumberish, signedDataTimestampCutoff: BigNumberish, signature: BytesLike, data: BytesLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "updateDappOevDataFeed"): TypedContractMethod<[ dappId: BigNumberish, signedData: BytesLike[] ], [ void ], "nonpayable">; getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[ recipient: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; filters: { "OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; }; } //# sourceMappingURL=MockApi3ServerV1OevExtensionOevBidPayer.d.ts.map