UNPKG

baluni-contracts

Version:
119 lines (104 loc) 3.2 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "../../common"; export interface IBaluniV1OracleInterface extends Interface { getFunction(nameOrSignature: "convert" | "convertScaled"): FunctionFragment; encodeFunctionData( functionFragment: "convert", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "convertScaled", values: [AddressLike, AddressLike, BigNumberish] ): string; decodeFunctionResult(functionFragment: "convert", data: BytesLike): Result; decodeFunctionResult( functionFragment: "convertScaled", data: BytesLike ): Result; } export interface IBaluniV1Oracle extends BaseContract { connect(runner?: ContractRunner | null): IBaluniV1Oracle; waitForDeployment(): Promise<this>; interface: IBaluniV1OracleInterface; 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>; convert: TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; convertScaled: TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "convert" ): TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "convertScaled" ): TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; filters: {}; }