@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.
@@ -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(existingOrderId: bigint | undefined, existingClientOrderId: bigint | undefined, placeOrderArgs: PlaceOrderArgs): Promise<TransactionResult<Transaction<RuntimeCall>>>;
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 {};
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/zetamarkets/bullet-sdk.git"
6
6
  },
7
- "version": "0.25.0-rc.10",
7
+ "version": "0.25.0-rc.11",
8
8
  "description": "Bullet SDK",
9
9
  "author": "@bulletxyz",
10
10
  "license": "Apache-2.0",