///
import type BN from "bn.js";
import type { ContractOptions } from "web3-eth-contract";
import type { EventLog } from "web3-core";
import type { EventEmitter } from "events";
import type { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, BaseContract } from "./types";
export interface EventOptions {
filter?: object;
fromBlock?: BlockType;
topics?: string[];
}
export interface IGmxOrderBook extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): IGmxOrderBook;
clone(): IGmxOrderBook;
methods: {
cancelDecreaseOrder(_orderIndex: number | string | BN): NonPayableTransactionObject;
cancelIncreaseOrder(_orderIndex: number | string | BN): NonPayableTransactionObject;
createDecreaseOrder(_indexToken: string, _sizeDelta: number | string | BN, _collateralToken: string, _collateralDelta: number | string | BN, _isLong: boolean, _triggerPrice: number | string | BN, _triggerAboveThreshold: boolean): PayableTransactionObject;
createIncreaseOrder(_path: string[], _amountIn: number | string | BN, _indexToken: string, _minOut: number | string | BN, _sizeDelta: number | string | BN, _collateralToken: string, _isLong: boolean, _triggerPrice: number | string | BN, _triggerAboveThreshold: boolean, _executionFee: number | string | BN, _shouldWrap: boolean): PayableTransactionObject;
executeDecreaseOrder(arg0: string, arg1: number | string | BN, arg2: string): NonPayableTransactionObject;
executeIncreaseOrder(arg0: string, arg1: number | string | BN, arg2: string): NonPayableTransactionObject;
executeSwapOrder(arg0: string, arg1: number | string | BN, arg2: string): NonPayableTransactionObject;
getDecreaseOrder(_account: string, _orderIndex: number | string | BN): NonPayableTransactionObject<{
collateralToken: string;
collateralDelta: string;
indexToken: string;
sizeDelta: string;
isLong: boolean;
triggerPrice: string;
triggerAboveThreshold: boolean;
executionFee: string;
0: string;
1: string;
2: string;
3: string;
4: boolean;
5: string;
6: boolean;
7: string;
}>;
getIncreaseOrder(_account: string, _orderIndex: number | string | BN): NonPayableTransactionObject<{
purchaseToken: string;
purchaseTokenAmount: string;
collateralToken: string;
indexToken: string;
sizeDelta: string;
isLong: boolean;
triggerPrice: string;
triggerAboveThreshold: boolean;
executionFee: string;
0: string;
1: string;
2: string;
3: string;
4: string;
5: boolean;
6: string;
7: boolean;
8: string;
}>;
getSwapOrder(_account: string, _orderIndex: number | string | BN): NonPayableTransactionObject<{
path0: string;
path1: string;
path2: string;
amountIn: string;
minOut: string;
triggerRatio: string;
triggerAboveThreshold: boolean;
shouldUnwrap: boolean;
executionFee: string;
0: string;
1: string;
2: string;
3: string;
4: string;
5: string;
6: boolean;
7: boolean;
8: string;
}>;
};
events: {
allEvents(options?: EventOptions, cb?: Callback): EventEmitter;
};
}