@bulletxyz/bullet-sdk 0.25.0-rc.10 → 0.25.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +27 -30
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +27 -30
- package/dist/node/index.js.map +2 -2
- package/dist/types/client.d.ts +11 -1
- package/package.json +1 -1
package/dist/types/client.d.ts
CHANGED
|
@@ -12,6 +12,15 @@ export interface TransactionOpts {
|
|
|
12
12
|
gasLimit: number[] | null;
|
|
13
13
|
chainId: number;
|
|
14
14
|
}
|
|
15
|
+
type ReplaceOrderOptions = {
|
|
16
|
+
existingOrderId: bigint;
|
|
17
|
+
existingClientOrderId?: never;
|
|
18
|
+
placeOrderArgs: PlaceOrderArgs;
|
|
19
|
+
} | {
|
|
20
|
+
existingOrderId?: never;
|
|
21
|
+
existingClientOrderId: bigint;
|
|
22
|
+
placeOrderArgs: PlaceOrderArgs;
|
|
23
|
+
};
|
|
15
24
|
export declare class Client {
|
|
16
25
|
connection: Connection;
|
|
17
26
|
exchange: ExchangeConnection;
|
|
@@ -107,7 +116,7 @@ export declare class Client {
|
|
|
107
116
|
borrowSpot(asset: Asset, amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
108
117
|
placeOrder(placeOrderArgs: PlaceOrderArgs): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
109
118
|
placeTpslsForMarket(market: Market, tpslOrders: PlacePositionTpslArgs): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
110
|
-
replaceOrder(
|
|
119
|
+
replaceOrder(options: ReplaceOrderOptions): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
111
120
|
cancelTpsl(tpslOrderId: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
112
121
|
cancelOrder(orderId: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
113
122
|
cancelAllOrdersForMarket(market: Market): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
@@ -127,3 +136,4 @@ export declare class Client {
|
|
|
127
136
|
depositToUsdcPnlPool(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
128
137
|
depositToInsuranceFund(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
129
138
|
}
|
|
139
|
+
export {};
|