UNPKG

@api3/contracts

Version:

Contracts through which API3 services are delivered

251 lines 14.3 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 OevDataFeedServerInterface extends Interface { getFunction(nameOrSignature: "containsBytecode" | "getBalance" | "getBlockBasefee" | "getBlockNumber" | "getBlockTimestamp" | "getChainId" | "multicall" | "oevProxyToBalance" | "tryMulticall" | "updateBeaconSetWithBeacons" | "updateOevProxyDataFeedWithSignedData" | "withdraw"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "UpdatedBeaconSetWithBeacons" | "UpdatedBeaconWithSignedData" | "UpdatedOevProxyBeaconSetWithSignedData" | "UpdatedOevProxyBeaconWithSignedData" | "Withdrew"): EventFragment; encodeFunctionData(functionFragment: "containsBytecode", values: [AddressLike]): string; encodeFunctionData(functionFragment: "getBalance", values: [AddressLike]): string; encodeFunctionData(functionFragment: "getBlockBasefee", values?: undefined): string; encodeFunctionData(functionFragment: "getBlockNumber", values?: undefined): string; encodeFunctionData(functionFragment: "getBlockTimestamp", values?: undefined): string; encodeFunctionData(functionFragment: "getChainId", values?: undefined): string; encodeFunctionData(functionFragment: "multicall", values: [BytesLike[]]): string; encodeFunctionData(functionFragment: "oevProxyToBalance", values: [AddressLike]): string; encodeFunctionData(functionFragment: "tryMulticall", values: [BytesLike[]]): string; encodeFunctionData(functionFragment: "updateBeaconSetWithBeacons", values: [BytesLike[]]): string; encodeFunctionData(functionFragment: "updateOevProxyDataFeedWithSignedData", values: [ AddressLike, BytesLike, BytesLike, BigNumberish, BytesLike, BytesLike[] ]): string; encodeFunctionData(functionFragment: "withdraw", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "containsBytecode", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getBalance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getBlockBasefee", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getBlockNumber", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getBlockTimestamp", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getChainId", data: BytesLike): Result; decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result; decodeFunctionResult(functionFragment: "oevProxyToBalance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "tryMulticall", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updateBeaconSetWithBeacons", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updateOevProxyDataFeedWithSignedData", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export declare namespace UpdatedBeaconSetWithBeaconsEvent { type InputTuple = [ beaconSetId: BytesLike, value: BigNumberish, timestamp: BigNumberish ]; type OutputTuple = [ beaconSetId: string, value: bigint, timestamp: bigint ]; interface OutputObject { beaconSetId: string; value: bigint; timestamp: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace UpdatedBeaconWithSignedDataEvent { type InputTuple = [ beaconId: BytesLike, value: BigNumberish, timestamp: BigNumberish ]; type OutputTuple = [ beaconId: string, value: bigint, timestamp: bigint ]; interface OutputObject { beaconId: string; value: bigint; timestamp: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace UpdatedOevProxyBeaconSetWithSignedDataEvent { type InputTuple = [ beaconSetId: BytesLike, proxy: AddressLike, updateId: BytesLike, value: BigNumberish, timestamp: BigNumberish ]; type OutputTuple = [ beaconSetId: string, proxy: string, updateId: string, value: bigint, timestamp: bigint ]; interface OutputObject { beaconSetId: string; proxy: string; updateId: string; value: bigint; timestamp: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace UpdatedOevProxyBeaconWithSignedDataEvent { type InputTuple = [ beaconId: BytesLike, proxy: AddressLike, updateId: BytesLike, value: BigNumberish, timestamp: BigNumberish ]; type OutputTuple = [ beaconId: string, proxy: string, updateId: string, value: bigint, timestamp: bigint ]; interface OutputObject { beaconId: string; proxy: string; updateId: string; value: bigint; timestamp: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace WithdrewEvent { type InputTuple = [ oevProxy: AddressLike, oevBeneficiary: AddressLike, amount: BigNumberish ]; type OutputTuple = [ oevProxy: string, oevBeneficiary: string, amount: bigint ]; interface OutputObject { oevProxy: string; oevBeneficiary: string; amount: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export interface OevDataFeedServer extends BaseContract { connect(runner?: ContractRunner | null): OevDataFeedServer; waitForDeployment(): Promise<this>; interface: OevDataFeedServerInterface; 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>; containsBytecode: TypedContractMethod<[ account: AddressLike ], [ boolean ], "view">; getBalance: TypedContractMethod<[account: AddressLike], [bigint], "view">; getBlockBasefee: TypedContractMethod<[], [bigint], "view">; getBlockNumber: TypedContractMethod<[], [bigint], "view">; getBlockTimestamp: TypedContractMethod<[], [bigint], "view">; getChainId: TypedContractMethod<[], [bigint], "view">; multicall: TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">; oevProxyToBalance: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; tryMulticall: TypedContractMethod<[ data: BytesLike[] ], [ [boolean[], string[]] & { successes: boolean[]; returndata: string[]; } ], "nonpayable">; updateBeaconSetWithBeacons: TypedContractMethod<[ beaconIds: BytesLike[] ], [ string ], "nonpayable">; updateOevProxyDataFeedWithSignedData: TypedContractMethod<[ oevProxy: AddressLike, dataFeedId: BytesLike, updateId: BytesLike, timestamp: BigNumberish, data: BytesLike, packedOevUpdateSignatures: BytesLike[] ], [ void ], "payable">; withdraw: TypedContractMethod<[oevProxy: AddressLike], [void], "nonpayable">; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: "containsBytecode"): TypedContractMethod<[account: AddressLike], [boolean], "view">; getFunction(nameOrSignature: "getBalance"): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "getBlockBasefee"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "getBlockNumber"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "getBlockTimestamp"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "getChainId"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "multicall"): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">; getFunction(nameOrSignature: "oevProxyToBalance"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "tryMulticall"): TypedContractMethod<[ data: BytesLike[] ], [ [boolean[], string[]] & { successes: boolean[]; returndata: string[]; } ], "nonpayable">; getFunction(nameOrSignature: "updateBeaconSetWithBeacons"): TypedContractMethod<[beaconIds: BytesLike[]], [string], "nonpayable">; getFunction(nameOrSignature: "updateOevProxyDataFeedWithSignedData"): TypedContractMethod<[ oevProxy: AddressLike, dataFeedId: BytesLike, updateId: BytesLike, timestamp: BigNumberish, data: BytesLike, packedOevUpdateSignatures: BytesLike[] ], [ void ], "payable">; getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[oevProxy: AddressLike], [void], "nonpayable">; getEvent(key: "UpdatedBeaconSetWithBeacons"): TypedContractEvent<UpdatedBeaconSetWithBeaconsEvent.InputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputObject>; getEvent(key: "UpdatedBeaconWithSignedData"): TypedContractEvent<UpdatedBeaconWithSignedDataEvent.InputTuple, UpdatedBeaconWithSignedDataEvent.OutputTuple, UpdatedBeaconWithSignedDataEvent.OutputObject>; getEvent(key: "UpdatedOevProxyBeaconSetWithSignedData"): TypedContractEvent<UpdatedOevProxyBeaconSetWithSignedDataEvent.InputTuple, UpdatedOevProxyBeaconSetWithSignedDataEvent.OutputTuple, UpdatedOevProxyBeaconSetWithSignedDataEvent.OutputObject>; getEvent(key: "UpdatedOevProxyBeaconWithSignedData"): TypedContractEvent<UpdatedOevProxyBeaconWithSignedDataEvent.InputTuple, UpdatedOevProxyBeaconWithSignedDataEvent.OutputTuple, UpdatedOevProxyBeaconWithSignedDataEvent.OutputObject>; getEvent(key: "Withdrew"): TypedContractEvent<WithdrewEvent.InputTuple, WithdrewEvent.OutputTuple, WithdrewEvent.OutputObject>; filters: { "UpdatedBeaconSetWithBeacons(bytes32,int224,uint32)": TypedContractEvent<UpdatedBeaconSetWithBeaconsEvent.InputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputObject>; UpdatedBeaconSetWithBeacons: TypedContractEvent<UpdatedBeaconSetWithBeaconsEvent.InputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputObject>; "UpdatedBeaconWithSignedData(bytes32,int224,uint32)": TypedContractEvent<UpdatedBeaconWithSignedDataEvent.InputTuple, UpdatedBeaconWithSignedDataEvent.OutputTuple, UpdatedBeaconWithSignedDataEvent.OutputObject>; UpdatedBeaconWithSignedData: TypedContractEvent<UpdatedBeaconWithSignedDataEvent.InputTuple, UpdatedBeaconWithSignedDataEvent.OutputTuple, UpdatedBeaconWithSignedDataEvent.OutputObject>; "UpdatedOevProxyBeaconSetWithSignedData(bytes32,address,bytes32,int224,uint32)": TypedContractEvent<UpdatedOevProxyBeaconSetWithSignedDataEvent.InputTuple, UpdatedOevProxyBeaconSetWithSignedDataEvent.OutputTuple, UpdatedOevProxyBeaconSetWithSignedDataEvent.OutputObject>; UpdatedOevProxyBeaconSetWithSignedData: TypedContractEvent<UpdatedOevProxyBeaconSetWithSignedDataEvent.InputTuple, UpdatedOevProxyBeaconSetWithSignedDataEvent.OutputTuple, UpdatedOevProxyBeaconSetWithSignedDataEvent.OutputObject>; "UpdatedOevProxyBeaconWithSignedData(bytes32,address,bytes32,int224,uint32)": TypedContractEvent<UpdatedOevProxyBeaconWithSignedDataEvent.InputTuple, UpdatedOevProxyBeaconWithSignedDataEvent.OutputTuple, UpdatedOevProxyBeaconWithSignedDataEvent.OutputObject>; UpdatedOevProxyBeaconWithSignedData: TypedContractEvent<UpdatedOevProxyBeaconWithSignedDataEvent.InputTuple, UpdatedOevProxyBeaconWithSignedDataEvent.OutputTuple, UpdatedOevProxyBeaconWithSignedDataEvent.OutputObject>; "Withdrew(address,address,uint256)": TypedContractEvent<WithdrewEvent.InputTuple, WithdrewEvent.OutputTuple, WithdrewEvent.OutputObject>; Withdrew: TypedContractEvent<WithdrewEvent.InputTuple, WithdrewEvent.OutputTuple, WithdrewEvent.OutputObject>; }; } //# sourceMappingURL=OevDataFeedServer.d.ts.map