baluni-contracts
Version:
Smart Contracts for Baluni
131 lines (116 loc) • 3.53 kB
text/typescript
/* 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<this>;
interface: IClearingV2Interface;
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>;
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<T extends ContractMethod = ContractMethod>(
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: {};
}