@bulletxyz/bullet-sdk 0.17.3-rc.5 → 0.17.4-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 +161 -147
- package/dist/browser/index.js.map +3 -3
- package/dist/node/index.js +162 -148
- package/dist/node/index.js.map +3 -3
- package/dist/types/browser.d.ts +0 -1
- package/dist/types/bullet-wasm/index.d.ts +37 -0
- package/dist/types/calc.d.ts +3 -3
- package/dist/types/client.d.ts +33 -29
- package/dist/types/connection.d.ts +2 -3
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/exchange.d.ts +3 -3
- package/dist/types/index.d.ts +0 -1
- package/dist/types/orderbook.d.ts +3 -3
- package/dist/types/rollupTypes.d.ts +135 -0
- package/dist/types/types.d.ts +2 -8
- package/dist/types/wallet/nodeWallet.d.ts +2 -2
- package/dist/types/wallet/wallet.d.ts +2 -2
- package/dist/types/zod-types/rest.d.ts +121 -16
- package/dist/types/zod-types/wasm.d.ts +2 -13
- package/package.json +7 -3
- package/dist/types/test/wasm.d.ts +0 -1
|
@@ -362,6 +362,43 @@ export declare const BaseResponseSchemas: {
|
|
|
362
362
|
meta?: Record<string, unknown> | undefined;
|
|
363
363
|
}>;
|
|
364
364
|
};
|
|
365
|
+
declare const StrippedTpsl: z.ZodObject<{
|
|
366
|
+
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
367
|
+
tpsl_order_id: z.ZodBigInt;
|
|
368
|
+
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
369
|
+
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
370
|
+
trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
|
|
371
|
+
tpsl_price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
|
|
372
|
+
active_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
373
|
+
full_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
374
|
+
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
375
|
+
parent_order_id: z.ZodOptional<z.ZodBigInt>;
|
|
376
|
+
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
side: "Bid" | "Ask";
|
|
379
|
+
tpsl_order_id: bigint;
|
|
380
|
+
order_price: import("decimal.js").Decimal;
|
|
381
|
+
trigger_price: import("decimal.js").Decimal;
|
|
382
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
383
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
384
|
+
active_size: import("decimal.js").Decimal;
|
|
385
|
+
full_size: import("decimal.js").Decimal;
|
|
386
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
387
|
+
linked_tpsl_order_ids: bigint[];
|
|
388
|
+
parent_order_id?: bigint | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
side: "Bid" | "Ask";
|
|
391
|
+
tpsl_order_id: bigint;
|
|
392
|
+
order_price: string | number;
|
|
393
|
+
trigger_price: string | number;
|
|
394
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
395
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
396
|
+
active_size: string | number;
|
|
397
|
+
full_size: string | number;
|
|
398
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
399
|
+
linked_tpsl_order_ids: bigint[];
|
|
400
|
+
parent_order_id?: bigint | undefined;
|
|
401
|
+
}>;
|
|
365
402
|
export declare const Schemas: {
|
|
366
403
|
readonly DummyValue: z.ZodNumber;
|
|
367
404
|
readonly Order: z.ZodObject<{
|
|
@@ -381,22 +418,22 @@ export declare const Schemas: {
|
|
|
381
418
|
side: "Bid" | "Ask";
|
|
382
419
|
order_id: bigint;
|
|
383
420
|
reduce_only: boolean;
|
|
384
|
-
asset_id: number;
|
|
385
421
|
filled_size: import("decimal.js").Decimal;
|
|
386
422
|
average_filled_price: import("decimal.js").Decimal;
|
|
387
|
-
owner: string;
|
|
388
423
|
tpsl_order_ids: bigint[];
|
|
424
|
+
asset_id: number;
|
|
425
|
+
owner: string;
|
|
389
426
|
}, {
|
|
390
427
|
size: string | number;
|
|
391
428
|
price: string | number;
|
|
392
429
|
side: "Bid" | "Ask";
|
|
393
430
|
order_id: bigint;
|
|
394
431
|
reduce_only: boolean;
|
|
395
|
-
asset_id: number;
|
|
396
432
|
filled_size: string | number;
|
|
397
433
|
average_filled_price: string | number;
|
|
398
|
-
owner: string;
|
|
399
434
|
tpsl_order_ids: bigint[];
|
|
435
|
+
asset_id: number;
|
|
436
|
+
owner: string;
|
|
400
437
|
}>;
|
|
401
438
|
readonly Orderbook: z.ZodObject<{
|
|
402
439
|
asset_id: z.ZodNumber;
|
|
@@ -594,18 +631,27 @@ export declare const Schemas: {
|
|
|
594
631
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
595
632
|
order_id: z.ZodBigInt;
|
|
596
633
|
reduce_only: z.ZodBoolean;
|
|
634
|
+
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
635
|
+
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
636
|
+
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
597
637
|
}, "strip", z.ZodTypeAny, {
|
|
598
638
|
size: import("decimal.js").Decimal;
|
|
599
639
|
price: import("decimal.js").Decimal;
|
|
600
640
|
side: "Bid" | "Ask";
|
|
601
641
|
order_id: bigint;
|
|
602
642
|
reduce_only: boolean;
|
|
643
|
+
filled_size: import("decimal.js").Decimal;
|
|
644
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
645
|
+
tpsl_order_ids: bigint[];
|
|
603
646
|
}, {
|
|
604
647
|
size: string | number;
|
|
605
648
|
price: string | number;
|
|
606
649
|
side: "Bid" | "Ask";
|
|
607
650
|
order_id: bigint;
|
|
608
651
|
reduce_only: boolean;
|
|
652
|
+
filled_size: string | number;
|
|
653
|
+
average_filled_price: string | number;
|
|
654
|
+
tpsl_order_ids: bigint[];
|
|
609
655
|
}>, "many">;
|
|
610
656
|
position: z.ZodObject<{
|
|
611
657
|
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -677,6 +723,9 @@ export declare const Schemas: {
|
|
|
677
723
|
side: "Bid" | "Ask";
|
|
678
724
|
order_id: bigint;
|
|
679
725
|
reduce_only: boolean;
|
|
726
|
+
filled_size: import("decimal.js").Decimal;
|
|
727
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
728
|
+
tpsl_order_ids: bigint[];
|
|
680
729
|
}[];
|
|
681
730
|
position: {
|
|
682
731
|
size: import("decimal.js").Decimal;
|
|
@@ -708,6 +757,9 @@ export declare const Schemas: {
|
|
|
708
757
|
side: "Bid" | "Ask";
|
|
709
758
|
order_id: bigint;
|
|
710
759
|
reduce_only: boolean;
|
|
760
|
+
filled_size: string | number;
|
|
761
|
+
average_filled_price: string | number;
|
|
762
|
+
tpsl_order_ids: bigint[];
|
|
711
763
|
}[];
|
|
712
764
|
position: {
|
|
713
765
|
size: string | number;
|
|
@@ -739,6 +791,9 @@ export declare const Schemas: {
|
|
|
739
791
|
side: "Bid" | "Ask";
|
|
740
792
|
order_id: bigint;
|
|
741
793
|
reduce_only: boolean;
|
|
794
|
+
filled_size: import("decimal.js").Decimal;
|
|
795
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
796
|
+
tpsl_order_ids: bigint[];
|
|
742
797
|
}[];
|
|
743
798
|
position: {
|
|
744
799
|
size: import("decimal.js").Decimal;
|
|
@@ -770,6 +825,9 @@ export declare const Schemas: {
|
|
|
770
825
|
side: "Bid" | "Ask";
|
|
771
826
|
order_id: bigint;
|
|
772
827
|
reduce_only: boolean;
|
|
828
|
+
filled_size: string | number;
|
|
829
|
+
average_filled_price: string | number;
|
|
830
|
+
tpsl_order_ids: bigint[];
|
|
773
831
|
}[];
|
|
774
832
|
position: {
|
|
775
833
|
size: string | number;
|
|
@@ -825,6 +883,9 @@ export declare const Schemas: {
|
|
|
825
883
|
side: "Bid" | "Ask";
|
|
826
884
|
order_id: bigint;
|
|
827
885
|
reduce_only: boolean;
|
|
886
|
+
filled_size: import("decimal.js").Decimal;
|
|
887
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
888
|
+
tpsl_order_ids: bigint[];
|
|
828
889
|
}[];
|
|
829
890
|
position: {
|
|
830
891
|
size: import("decimal.js").Decimal;
|
|
@@ -880,6 +941,9 @@ export declare const Schemas: {
|
|
|
880
941
|
side: "Bid" | "Ask";
|
|
881
942
|
order_id: bigint;
|
|
882
943
|
reduce_only: boolean;
|
|
944
|
+
filled_size: string | number;
|
|
945
|
+
average_filled_price: string | number;
|
|
946
|
+
tpsl_order_ids: bigint[];
|
|
883
947
|
}[];
|
|
884
948
|
position: {
|
|
885
949
|
size: string | number;
|
|
@@ -1252,22 +1316,22 @@ export declare const ResponseSchemas: {
|
|
|
1252
1316
|
side: "Bid" | "Ask";
|
|
1253
1317
|
order_id: bigint;
|
|
1254
1318
|
reduce_only: boolean;
|
|
1255
|
-
asset_id: number;
|
|
1256
1319
|
filled_size: import("decimal.js").Decimal;
|
|
1257
1320
|
average_filled_price: import("decimal.js").Decimal;
|
|
1258
|
-
owner: string;
|
|
1259
1321
|
tpsl_order_ids: bigint[];
|
|
1322
|
+
asset_id: number;
|
|
1323
|
+
owner: string;
|
|
1260
1324
|
}, {
|
|
1261
1325
|
size: string | number;
|
|
1262
1326
|
price: string | number;
|
|
1263
1327
|
side: "Bid" | "Ask";
|
|
1264
1328
|
order_id: bigint;
|
|
1265
1329
|
reduce_only: boolean;
|
|
1266
|
-
asset_id: number;
|
|
1267
1330
|
filled_size: string | number;
|
|
1268
1331
|
average_filled_price: string | number;
|
|
1269
|
-
owner: string;
|
|
1270
1332
|
tpsl_order_ids: bigint[];
|
|
1333
|
+
asset_id: number;
|
|
1334
|
+
owner: string;
|
|
1271
1335
|
}>>;
|
|
1272
1336
|
}, "strip", z.ZodTypeAny, {
|
|
1273
1337
|
value: {
|
|
@@ -1276,11 +1340,11 @@ export declare const ResponseSchemas: {
|
|
|
1276
1340
|
side: "Bid" | "Ask";
|
|
1277
1341
|
order_id: bigint;
|
|
1278
1342
|
reduce_only: boolean;
|
|
1279
|
-
asset_id: number;
|
|
1280
1343
|
filled_size: import("decimal.js").Decimal;
|
|
1281
1344
|
average_filled_price: import("decimal.js").Decimal;
|
|
1282
|
-
owner: string;
|
|
1283
1345
|
tpsl_order_ids: bigint[];
|
|
1346
|
+
asset_id: number;
|
|
1347
|
+
owner: string;
|
|
1284
1348
|
} | null;
|
|
1285
1349
|
key: bigint;
|
|
1286
1350
|
}, {
|
|
@@ -1290,11 +1354,11 @@ export declare const ResponseSchemas: {
|
|
|
1290
1354
|
side: "Bid" | "Ask";
|
|
1291
1355
|
order_id: bigint;
|
|
1292
1356
|
reduce_only: boolean;
|
|
1293
|
-
asset_id: number;
|
|
1294
1357
|
filled_size: string | number;
|
|
1295
1358
|
average_filled_price: string | number;
|
|
1296
|
-
owner: string;
|
|
1297
1359
|
tpsl_order_ids: bigint[];
|
|
1360
|
+
asset_id: number;
|
|
1361
|
+
owner: string;
|
|
1298
1362
|
} | null;
|
|
1299
1363
|
key: bigint;
|
|
1300
1364
|
}>;
|
|
@@ -1307,11 +1371,11 @@ export declare const ResponseSchemas: {
|
|
|
1307
1371
|
side: "Bid" | "Ask";
|
|
1308
1372
|
order_id: bigint;
|
|
1309
1373
|
reduce_only: boolean;
|
|
1310
|
-
asset_id: number;
|
|
1311
1374
|
filled_size: import("decimal.js").Decimal;
|
|
1312
1375
|
average_filled_price: import("decimal.js").Decimal;
|
|
1313
|
-
owner: string;
|
|
1314
1376
|
tpsl_order_ids: bigint[];
|
|
1377
|
+
asset_id: number;
|
|
1378
|
+
owner: string;
|
|
1315
1379
|
} | null;
|
|
1316
1380
|
key: bigint;
|
|
1317
1381
|
};
|
|
@@ -1324,11 +1388,11 @@ export declare const ResponseSchemas: {
|
|
|
1324
1388
|
side: "Bid" | "Ask";
|
|
1325
1389
|
order_id: bigint;
|
|
1326
1390
|
reduce_only: boolean;
|
|
1327
|
-
asset_id: number;
|
|
1328
1391
|
filled_size: string | number;
|
|
1329
1392
|
average_filled_price: string | number;
|
|
1330
|
-
owner: string;
|
|
1331
1393
|
tpsl_order_ids: bigint[];
|
|
1394
|
+
asset_id: number;
|
|
1395
|
+
owner: string;
|
|
1332
1396
|
} | null;
|
|
1333
1397
|
key: bigint;
|
|
1334
1398
|
};
|
|
@@ -1454,18 +1518,27 @@ export declare const ResponseSchemas: {
|
|
|
1454
1518
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
1455
1519
|
order_id: z.ZodBigInt;
|
|
1456
1520
|
reduce_only: z.ZodBoolean;
|
|
1521
|
+
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1522
|
+
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1523
|
+
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1457
1524
|
}, "strip", z.ZodTypeAny, {
|
|
1458
1525
|
size: import("decimal.js").Decimal;
|
|
1459
1526
|
price: import("decimal.js").Decimal;
|
|
1460
1527
|
side: "Bid" | "Ask";
|
|
1461
1528
|
order_id: bigint;
|
|
1462
1529
|
reduce_only: boolean;
|
|
1530
|
+
filled_size: import("decimal.js").Decimal;
|
|
1531
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
1532
|
+
tpsl_order_ids: bigint[];
|
|
1463
1533
|
}, {
|
|
1464
1534
|
size: string | number;
|
|
1465
1535
|
price: string | number;
|
|
1466
1536
|
side: "Bid" | "Ask";
|
|
1467
1537
|
order_id: bigint;
|
|
1468
1538
|
reduce_only: boolean;
|
|
1539
|
+
filled_size: string | number;
|
|
1540
|
+
average_filled_price: string | number;
|
|
1541
|
+
tpsl_order_ids: bigint[];
|
|
1469
1542
|
}>, "many">;
|
|
1470
1543
|
position: z.ZodObject<{
|
|
1471
1544
|
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1537,6 +1610,9 @@ export declare const ResponseSchemas: {
|
|
|
1537
1610
|
side: "Bid" | "Ask";
|
|
1538
1611
|
order_id: bigint;
|
|
1539
1612
|
reduce_only: boolean;
|
|
1613
|
+
filled_size: import("decimal.js").Decimal;
|
|
1614
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
1615
|
+
tpsl_order_ids: bigint[];
|
|
1540
1616
|
}[];
|
|
1541
1617
|
position: {
|
|
1542
1618
|
size: import("decimal.js").Decimal;
|
|
@@ -1568,6 +1644,9 @@ export declare const ResponseSchemas: {
|
|
|
1568
1644
|
side: "Bid" | "Ask";
|
|
1569
1645
|
order_id: bigint;
|
|
1570
1646
|
reduce_only: boolean;
|
|
1647
|
+
filled_size: string | number;
|
|
1648
|
+
average_filled_price: string | number;
|
|
1649
|
+
tpsl_order_ids: bigint[];
|
|
1571
1650
|
}[];
|
|
1572
1651
|
position: {
|
|
1573
1652
|
size: string | number;
|
|
@@ -1599,6 +1678,9 @@ export declare const ResponseSchemas: {
|
|
|
1599
1678
|
side: "Bid" | "Ask";
|
|
1600
1679
|
order_id: bigint;
|
|
1601
1680
|
reduce_only: boolean;
|
|
1681
|
+
filled_size: import("decimal.js").Decimal;
|
|
1682
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
1683
|
+
tpsl_order_ids: bigint[];
|
|
1602
1684
|
}[];
|
|
1603
1685
|
position: {
|
|
1604
1686
|
size: import("decimal.js").Decimal;
|
|
@@ -1630,6 +1712,9 @@ export declare const ResponseSchemas: {
|
|
|
1630
1712
|
side: "Bid" | "Ask";
|
|
1631
1713
|
order_id: bigint;
|
|
1632
1714
|
reduce_only: boolean;
|
|
1715
|
+
filled_size: string | number;
|
|
1716
|
+
average_filled_price: string | number;
|
|
1717
|
+
tpsl_order_ids: bigint[];
|
|
1633
1718
|
}[];
|
|
1634
1719
|
position: {
|
|
1635
1720
|
size: string | number;
|
|
@@ -1685,6 +1770,9 @@ export declare const ResponseSchemas: {
|
|
|
1685
1770
|
side: "Bid" | "Ask";
|
|
1686
1771
|
order_id: bigint;
|
|
1687
1772
|
reduce_only: boolean;
|
|
1773
|
+
filled_size: import("decimal.js").Decimal;
|
|
1774
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
1775
|
+
tpsl_order_ids: bigint[];
|
|
1688
1776
|
}[];
|
|
1689
1777
|
position: {
|
|
1690
1778
|
size: import("decimal.js").Decimal;
|
|
@@ -1740,6 +1828,9 @@ export declare const ResponseSchemas: {
|
|
|
1740
1828
|
side: "Bid" | "Ask";
|
|
1741
1829
|
order_id: bigint;
|
|
1742
1830
|
reduce_only: boolean;
|
|
1831
|
+
filled_size: string | number;
|
|
1832
|
+
average_filled_price: string | number;
|
|
1833
|
+
tpsl_order_ids: bigint[];
|
|
1743
1834
|
}[];
|
|
1744
1835
|
position: {
|
|
1745
1836
|
size: string | number;
|
|
@@ -1797,6 +1888,9 @@ export declare const ResponseSchemas: {
|
|
|
1797
1888
|
side: "Bid" | "Ask";
|
|
1798
1889
|
order_id: bigint;
|
|
1799
1890
|
reduce_only: boolean;
|
|
1891
|
+
filled_size: import("decimal.js").Decimal;
|
|
1892
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
1893
|
+
tpsl_order_ids: bigint[];
|
|
1800
1894
|
}[];
|
|
1801
1895
|
position: {
|
|
1802
1896
|
size: import("decimal.js").Decimal;
|
|
@@ -1854,6 +1948,9 @@ export declare const ResponseSchemas: {
|
|
|
1854
1948
|
side: "Bid" | "Ask";
|
|
1855
1949
|
order_id: bigint;
|
|
1856
1950
|
reduce_only: boolean;
|
|
1951
|
+
filled_size: string | number;
|
|
1952
|
+
average_filled_price: string | number;
|
|
1953
|
+
tpsl_order_ids: bigint[];
|
|
1857
1954
|
}[];
|
|
1858
1955
|
position: {
|
|
1859
1956
|
size: string | number;
|
|
@@ -1914,6 +2011,9 @@ export declare const ResponseSchemas: {
|
|
|
1914
2011
|
side: "Bid" | "Ask";
|
|
1915
2012
|
order_id: bigint;
|
|
1916
2013
|
reduce_only: boolean;
|
|
2014
|
+
filled_size: import("decimal.js").Decimal;
|
|
2015
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
2016
|
+
tpsl_order_ids: bigint[];
|
|
1917
2017
|
}[];
|
|
1918
2018
|
position: {
|
|
1919
2019
|
size: import("decimal.js").Decimal;
|
|
@@ -1974,6 +2074,9 @@ export declare const ResponseSchemas: {
|
|
|
1974
2074
|
side: "Bid" | "Ask";
|
|
1975
2075
|
order_id: bigint;
|
|
1976
2076
|
reduce_only: boolean;
|
|
2077
|
+
filled_size: string | number;
|
|
2078
|
+
average_filled_price: string | number;
|
|
2079
|
+
tpsl_order_ids: bigint[];
|
|
1977
2080
|
}[];
|
|
1978
2081
|
position: {
|
|
1979
2082
|
size: string | number;
|
|
@@ -2880,3 +2983,5 @@ export type BorrowLendMarket = z.infer<typeof Schemas.BorrowLendMarket>;
|
|
|
2880
2983
|
export type PerpMarket = z.infer<typeof Schemas.PerpMarket>;
|
|
2881
2984
|
export type MarginConfig = z.infer<typeof Schemas.MarginConfig>;
|
|
2882
2985
|
export type Assets = z.infer<typeof Schemas.Assets>;
|
|
2986
|
+
export type StrippedTpsl = z.infer<typeof StrippedTpsl>;
|
|
2987
|
+
export {};
|
|
@@ -10,7 +10,7 @@ export declare const WasmResponseSchemas: {
|
|
|
10
10
|
current: string | number;
|
|
11
11
|
updated: string | number;
|
|
12
12
|
}>;
|
|
13
|
-
PositionAdditionalMetadataSchema: z.
|
|
13
|
+
PositionAdditionalMetadataSchema: z.ZodMap<z.ZodNumber, z.ZodObject<{
|
|
14
14
|
projected_funding_payment: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
15
15
|
unrealized_pnl: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
16
16
|
liquidation_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -28,18 +28,6 @@ export declare const WasmResponseSchemas: {
|
|
|
28
28
|
liquidation_price: string | number;
|
|
29
29
|
liquidation_risk_percentage: string | number;
|
|
30
30
|
max_leverage_to_use: number;
|
|
31
|
-
}>>, Map<number, {
|
|
32
|
-
projected_funding_payment: import("decimal.js").Decimal;
|
|
33
|
-
unrealized_pnl: import("decimal.js").Decimal;
|
|
34
|
-
liquidation_price: import("decimal.js").Decimal;
|
|
35
|
-
liquidation_risk_percentage: import("decimal.js").Decimal;
|
|
36
|
-
max_leverage_to_use: number;
|
|
37
|
-
}>, Record<string, {
|
|
38
|
-
projected_funding_payment: string | number;
|
|
39
|
-
unrealized_pnl: string | number;
|
|
40
|
-
liquidation_price: string | number;
|
|
41
|
-
liquidation_risk_percentage: string | number;
|
|
42
|
-
max_leverage_to_use: number;
|
|
43
31
|
}>>;
|
|
44
32
|
BorrowLendMarketAdditionalMetadataSchema: z.ZodObject<{
|
|
45
33
|
utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -55,3 +43,4 @@ export declare const WasmResponseSchemas: {
|
|
|
55
43
|
current_borrow_rate: string | number;
|
|
56
44
|
}>;
|
|
57
45
|
};
|
|
46
|
+
export type PositionAdditionalMetadata = z.infer<typeof WasmResponseSchemas.PositionAdditionalMetadataSchema>;
|
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.17.
|
|
7
|
+
"version": "0.17.4-rc.0",
|
|
8
8
|
"description": "Bullet SDK",
|
|
9
9
|
"author": "@bulletxyz",
|
|
10
10
|
"license": "Apache-2.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build:types": "tsc --emitDeclarationOnly --outDir dist/types",
|
|
30
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist/types && mkdir -p dist/types/bullet-wasm && cp src/bullet-wasm/index.d.ts dist/types/bullet-wasm/index.d.ts",
|
|
31
31
|
"build:js": "node build.mjs",
|
|
32
32
|
"clean": "rm -rf dist",
|
|
33
33
|
"build": "pnpm clean && pnpm install && pnpm build:types && pnpm build:js",
|
|
@@ -42,9 +42,13 @@
|
|
|
42
42
|
"release:release": "npm run release:patch",
|
|
43
43
|
"release:major": "npm version major && git push --tags && npm publish",
|
|
44
44
|
"release:minor": "npm version minor && git push --tags && npm publish",
|
|
45
|
-
"release:patch": "npm version patch && git push --tags && npm publish"
|
|
45
|
+
"release:patch": "npm version patch && git push --tags && npm publish",
|
|
46
|
+
"ci": "biome ci",
|
|
47
|
+
"fix": "biome check --write",
|
|
48
|
+
"lint": "biome lint"
|
|
46
49
|
},
|
|
47
50
|
"devDependencies": {
|
|
51
|
+
"@biomejs/biome": "^1.9.4",
|
|
48
52
|
"@eslint/js": "^9.22.0",
|
|
49
53
|
"@types/collections": "^5.1.5",
|
|
50
54
|
"@types/node": "^22.13.10",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|