@firefly-exchange/library-sui
Version:
Sui library housing helper methods, classes to interact with Bluefin protocol(s) deployed on Sui
29 lines (28 loc) • 773 B
TypeScript
import { BigNumberable, TransactionBlock } from "../../types";
import { NumStr } from "../../types";
import { ISignedOrder } from "./IOrder";
export interface ITxBuilderOptionalParams {
txBlock?: TransactionBlock;
gasBudget?: number;
sender?: string;
}
export interface IBluefinV3OptionalParams extends ITxBuilderOptionalParams {
dryRun?: boolean;
returnTxb?: boolean;
}
export interface IOraclePriceUpdate {
perpetual: string;
price: BigNumberable;
}
export interface IBatchTradeArgs {
makerOrder: ISignedOrder;
takerOrder: ISignedOrder;
quantity: BigNumberable;
oraclePrices: Array<IOraclePriceUpdate>;
sequenceHash: string;
timestamp: NumStr;
}
export interface ISignedNumber {
value: NumStr;
sign: boolean;
}