@bulletxyz/bullet-sdk 0.17.5-rc.3 → 0.17.6-rc.0
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 +22 -23
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +22 -23
- package/dist/node/index.js.map +2 -2
- package/dist/types/bullet-wasm/index.d.ts +1 -1
- package/dist/types/client.d.ts +4 -4
- package/dist/types/zod-types/index.d.ts +1 -1
- package/dist/types/zod-types/rest.d.ts +156 -72
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ export class BulletWasm {
|
|
|
31
31
|
static calculate_max_borrow_amount(asset_id: number, user_account: any, margin_context: any): string;
|
|
32
32
|
static calculate_max_order_size(user_account: any, asset_id: number, side: Side, price: string, reduce_only: boolean, margin_context: any, maker_book: any, n_iterations: number, error_tolerance: string): string;
|
|
33
33
|
static simulate_used_margin_on_borrow(asset_id: number, borrow_amount: string, user_account: any, margin_type: MarginType, margin_context: any): any;
|
|
34
|
-
static simulate_used_margin_on_order(
|
|
34
|
+
static simulate_used_margin_on_order(asset_id: number, side: Side, price: string, size: string, reduce_only: boolean, user_account: any, margin_context: any): any;
|
|
35
35
|
static calculate_positions_additional_metadata(user_account: any, margin_context: any, funding_parameters: any): any;
|
|
36
36
|
static calculate_borrow_lend_additional_metadata(borrow_lend_market: any): any;
|
|
37
37
|
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare class Client {
|
|
|
48
48
|
liability: Decimal;
|
|
49
49
|
}>;
|
|
50
50
|
perp_ledgers: Map<number, {
|
|
51
|
-
orders: {
|
|
51
|
+
orders: Map<bigint, {
|
|
52
52
|
size: Decimal;
|
|
53
53
|
price: Decimal;
|
|
54
54
|
side: "Bid" | "Ask";
|
|
@@ -57,7 +57,7 @@ export declare class Client {
|
|
|
57
57
|
filled_size: Decimal;
|
|
58
58
|
average_filled_price: Decimal;
|
|
59
59
|
tpsl_order_ids: bigint[];
|
|
60
|
-
}
|
|
60
|
+
}>;
|
|
61
61
|
position: {
|
|
62
62
|
size: Decimal;
|
|
63
63
|
cost_of_trades: Decimal;
|
|
@@ -68,7 +68,7 @@ export declare class Client {
|
|
|
68
68
|
funding_payments_on_position: Decimal;
|
|
69
69
|
};
|
|
70
70
|
user_selected_max_leverage: number;
|
|
71
|
-
tpsls: {
|
|
71
|
+
tpsls: Map<bigint, {
|
|
72
72
|
side: "Bid" | "Ask";
|
|
73
73
|
tpsl_order_id: bigint;
|
|
74
74
|
order_price: Decimal;
|
|
@@ -80,7 +80,7 @@ export declare class Client {
|
|
|
80
80
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
81
81
|
parent_order_id: bigint | null;
|
|
82
82
|
linked_tpsl_order_ids: bigint[];
|
|
83
|
-
}
|
|
83
|
+
}>;
|
|
84
84
|
}>;
|
|
85
85
|
}>;
|
|
86
86
|
submitTransaction(runtimeCall: RuntimeCall): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
@@ -11,7 +11,7 @@ export declare const AssetId: z.ZodNumber;
|
|
|
11
11
|
export declare const OrderId: z.ZodBigInt;
|
|
12
12
|
export declare const Amount: z.ZodBigInt;
|
|
13
13
|
export declare const UnixTimestampMillis: z.ZodBigInt;
|
|
14
|
-
type MapKeySchema = z.ZodString | z.ZodNumber | z.ZodUnknown;
|
|
14
|
+
type MapKeySchema = z.ZodString | z.ZodNumber | z.ZodUnknown | z.ZodBigInt;
|
|
15
15
|
export declare const createJsonMap: <K extends MapKeySchema, V extends z.ZodTypeAny, KeyType = z.infer<K>, // Explicitly infer key type
|
|
16
16
|
ValueType = z.infer<V>>(keySchema: K, valueSchema: V) => z.ZodEffects<z.ZodRecord<z.ZodString, V>, Map<KeyType, ValueType>, Record<string, V["_input"]>>;
|
|
17
17
|
export {};
|