/* 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 IClearingV2Interface extends Interface { getFunction( nameOrSignature: "applyRatio" | "getDepositAmount" ): FunctionFragment; encodeFunctionData( functionFragment: "applyRatio", values: [AddressLike, AddressLike, BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "getDepositAmount", values: [AddressLike, AddressLike, BigNumberish] ): string; decodeFunctionResult(functionFragment: "applyRatio", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getDepositAmount", data: BytesLike ): Result; } export interface IClearingV2 extends BaseContract { connect(runner?: ContractRunner | null): IClearingV2; waitForDeployment(): Promise; interface: IClearingV2Interface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; once( event: TCEvent, listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; listeners( event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( event?: TCEvent ): Promise; applyRatio: TypedContractMethod< [ pos: AddressLike, token: AddressLike, total0: BigNumberish, total1: BigNumberish ], [[bigint, bigint] & { ratioStart: bigint; ratioEnd: bigint }], "view" >; getDepositAmount: TypedContractMethod< [pos: AddressLike, token: AddressLike, _deposit: BigNumberish], [[bigint, bigint] & { amountStart: bigint; amountEnd: bigint }], "view" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "applyRatio" ): TypedContractMethod< [ pos: AddressLike, token: AddressLike, total0: BigNumberish, total1: BigNumberish ], [[bigint, bigint] & { ratioStart: bigint; ratioEnd: bigint }], "view" >; getFunction( nameOrSignature: "getDepositAmount" ): TypedContractMethod< [pos: AddressLike, token: AddressLike, _deposit: BigNumberish], [[bigint, bigint] & { amountStart: bigint; amountEnd: bigint }], "view" >; filters: {}; }