UNPKG

@api3/contracts

Version:

Contracts through which API3 services are delivered

150 lines 9.2 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 BeaconUpdatesWithSignedDataInterface extends Interface { getFunction(nameOrSignature: "containsBytecode" | "getBalance" | "getBlockBasefee" | "getBlockNumber" | "getBlockTimestamp" | "getChainId" | "multicall" | "tryMulticall" | "updateBeaconSetWithBeacons" | "updateBeaconWithSignedData"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "UpdatedBeaconSetWithBeacons" | "UpdatedBeaconWithSignedData"): 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: "tryMulticall", values: [BytesLike[]]): string; encodeFunctionData(functionFragment: "updateBeaconSetWithBeacons", values: [BytesLike[]]): string; encodeFunctionData(functionFragment: "updateBeaconWithSignedData", values: [AddressLike, BytesLike, BigNumberish, BytesLike, BytesLike]): 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: "tryMulticall", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updateBeaconSetWithBeacons", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updateBeaconWithSignedData", 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 interface BeaconUpdatesWithSignedData extends BaseContract { connect(runner?: ContractRunner | null): BeaconUpdatesWithSignedData; waitForDeployment(): Promise<this>; interface: BeaconUpdatesWithSignedDataInterface; 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">; tryMulticall: TypedContractMethod<[ data: BytesLike[] ], [ [boolean[], string[]] & { successes: boolean[]; returndata: string[]; } ], "nonpayable">; updateBeaconSetWithBeacons: TypedContractMethod<[ beaconIds: BytesLike[] ], [ string ], "nonpayable">; updateBeaconWithSignedData: TypedContractMethod<[ airnode: AddressLike, templateId: BytesLike, timestamp: BigNumberish, data: BytesLike, signature: BytesLike ], [ string ], "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: "tryMulticall"): TypedContractMethod<[ data: BytesLike[] ], [ [boolean[], string[]] & { successes: boolean[]; returndata: string[]; } ], "nonpayable">; getFunction(nameOrSignature: "updateBeaconSetWithBeacons"): TypedContractMethod<[beaconIds: BytesLike[]], [string], "nonpayable">; getFunction(nameOrSignature: "updateBeaconWithSignedData"): TypedContractMethod<[ airnode: AddressLike, templateId: BytesLike, timestamp: BigNumberish, data: BytesLike, signature: BytesLike ], [ string ], "nonpayable">; getEvent(key: "UpdatedBeaconSetWithBeacons"): TypedContractEvent<UpdatedBeaconSetWithBeaconsEvent.InputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputTuple, UpdatedBeaconSetWithBeaconsEvent.OutputObject>; getEvent(key: "UpdatedBeaconWithSignedData"): TypedContractEvent<UpdatedBeaconWithSignedDataEvent.InputTuple, UpdatedBeaconWithSignedDataEvent.OutputTuple, UpdatedBeaconWithSignedDataEvent.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>; }; } //# sourceMappingURL=BeaconUpdatesWithSignedData.d.ts.map