@proton/wrap-constants 0.2.82 → 0.2.84
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/index.d.ts +60 -21
- package/dist/index.js +12 -7
- package/dist/index.mjs +10 -5
- package/package.json +2 -2
- package/src/parsers/dex.ts +12 -19
package/dist/index.d.ts
CHANGED
|
@@ -6463,6 +6463,7 @@ declare const orderHistoryParser: z.ZodObject<{
|
|
|
6463
6463
|
block_num: z.ZodString;
|
|
6464
6464
|
block_time: z.ZodString;
|
|
6465
6465
|
order_id: z.ZodString;
|
|
6466
|
+
ordinal_order_id: z.ZodString;
|
|
6466
6467
|
market_id: z.ZodNumber;
|
|
6467
6468
|
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
6468
6469
|
quantity_curr: z.ZodNumber;
|
|
@@ -6485,6 +6486,7 @@ declare const orderHistoryParser: z.ZodObject<{
|
|
|
6485
6486
|
block_num: string;
|
|
6486
6487
|
block_time: string;
|
|
6487
6488
|
order_id: string;
|
|
6489
|
+
ordinal_order_id: string;
|
|
6488
6490
|
market_id: number;
|
|
6489
6491
|
quantity_curr: number;
|
|
6490
6492
|
account_name: string;
|
|
@@ -6505,6 +6507,7 @@ declare const orderHistoryParser: z.ZodObject<{
|
|
|
6505
6507
|
block_num: string;
|
|
6506
6508
|
block_time: string;
|
|
6507
6509
|
order_id: string;
|
|
6510
|
+
ordinal_order_id: string;
|
|
6508
6511
|
market_id: number;
|
|
6509
6512
|
quantity_curr: number;
|
|
6510
6513
|
account_name: string;
|
|
@@ -6545,6 +6548,7 @@ declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
|
6545
6548
|
block_num: z.ZodString;
|
|
6546
6549
|
block_time: z.ZodString;
|
|
6547
6550
|
order_id: z.ZodString;
|
|
6551
|
+
ordinal_order_id: z.ZodString;
|
|
6548
6552
|
market_id: z.ZodNumber;
|
|
6549
6553
|
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
6550
6554
|
quantity_curr: z.ZodNumber;
|
|
@@ -6567,6 +6571,7 @@ declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
|
6567
6571
|
block_num: string;
|
|
6568
6572
|
block_time: string;
|
|
6569
6573
|
order_id: string;
|
|
6574
|
+
ordinal_order_id: string;
|
|
6570
6575
|
market_id: number;
|
|
6571
6576
|
quantity_curr: number;
|
|
6572
6577
|
account_name: string;
|
|
@@ -6587,6 +6592,7 @@ declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
|
6587
6592
|
block_num: string;
|
|
6588
6593
|
block_time: string;
|
|
6589
6594
|
order_id: string;
|
|
6595
|
+
ordinal_order_id: string;
|
|
6590
6596
|
market_id: number;
|
|
6591
6597
|
quantity_curr: number;
|
|
6592
6598
|
account_name: string;
|
|
@@ -6609,6 +6615,7 @@ declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
|
6609
6615
|
block_num: string;
|
|
6610
6616
|
block_time: string;
|
|
6611
6617
|
order_id: string;
|
|
6618
|
+
ordinal_order_id: string;
|
|
6612
6619
|
market_id: number;
|
|
6613
6620
|
quantity_curr: number;
|
|
6614
6621
|
account_name: string;
|
|
@@ -6633,6 +6640,7 @@ declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
|
6633
6640
|
block_num: string;
|
|
6634
6641
|
block_time: string;
|
|
6635
6642
|
order_id: string;
|
|
6643
|
+
ordinal_order_id: string;
|
|
6636
6644
|
market_id: number;
|
|
6637
6645
|
quantity_curr: number;
|
|
6638
6646
|
account_name: string;
|
|
@@ -6682,6 +6690,7 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6682
6690
|
block_num: z.ZodString;
|
|
6683
6691
|
block_time: z.ZodString;
|
|
6684
6692
|
order_id: z.ZodString;
|
|
6693
|
+
ordinal_order_id: z.ZodString;
|
|
6685
6694
|
market_id: z.ZodNumber;
|
|
6686
6695
|
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
6687
6696
|
quantity_curr: z.ZodNumber;
|
|
@@ -6704,6 +6713,7 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6704
6713
|
block_num: string;
|
|
6705
6714
|
block_time: string;
|
|
6706
6715
|
order_id: string;
|
|
6716
|
+
ordinal_order_id: string;
|
|
6707
6717
|
market_id: number;
|
|
6708
6718
|
quantity_curr: number;
|
|
6709
6719
|
account_name: string;
|
|
@@ -6724,6 +6734,7 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6724
6734
|
block_num: string;
|
|
6725
6735
|
block_time: string;
|
|
6726
6736
|
order_id: string;
|
|
6737
|
+
ordinal_order_id: string;
|
|
6727
6738
|
market_id: number;
|
|
6728
6739
|
quantity_curr: number;
|
|
6729
6740
|
account_name: string;
|
|
@@ -6746,6 +6757,7 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6746
6757
|
block_num: string;
|
|
6747
6758
|
block_time: string;
|
|
6748
6759
|
order_id: string;
|
|
6760
|
+
ordinal_order_id: string;
|
|
6749
6761
|
market_id: number;
|
|
6750
6762
|
quantity_curr: number;
|
|
6751
6763
|
account_name: string;
|
|
@@ -6770,6 +6782,7 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6770
6782
|
block_num: string;
|
|
6771
6783
|
block_time: string;
|
|
6772
6784
|
order_id: string;
|
|
6785
|
+
ordinal_order_id: string;
|
|
6773
6786
|
market_id: number;
|
|
6774
6787
|
quantity_curr: number;
|
|
6775
6788
|
account_name: string;
|
|
@@ -6789,20 +6802,24 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6789
6802
|
sync: number;
|
|
6790
6803
|
}>;
|
|
6791
6804
|
declare type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
|
|
6792
|
-
declare const
|
|
6793
|
-
order_id: z.ZodString
|
|
6805
|
+
declare const getOrderLifecycleParser: z.ZodObject<{
|
|
6806
|
+
order_id: z.ZodOptional<z.ZodString>;
|
|
6807
|
+
ordinal_order_id: z.ZodOptional<z.ZodString>;
|
|
6794
6808
|
}, "strip", z.ZodTypeAny, {
|
|
6795
|
-
order_id
|
|
6809
|
+
order_id?: string | undefined;
|
|
6810
|
+
ordinal_order_id?: string | undefined;
|
|
6796
6811
|
}, {
|
|
6797
|
-
order_id
|
|
6812
|
+
order_id?: string | undefined;
|
|
6813
|
+
ordinal_order_id?: string | undefined;
|
|
6798
6814
|
}>;
|
|
6799
|
-
declare type
|
|
6800
|
-
declare const
|
|
6815
|
+
declare type GetOrderLifecycle = z.infer<typeof getOrderLifecycleParser>;
|
|
6816
|
+
declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
6801
6817
|
sync: z.ZodNumber;
|
|
6802
6818
|
data: z.ZodArray<z.ZodObject<{
|
|
6803
6819
|
block_num: z.ZodString;
|
|
6804
6820
|
block_time: z.ZodString;
|
|
6805
6821
|
order_id: z.ZodString;
|
|
6822
|
+
ordinal_order_id: z.ZodString;
|
|
6806
6823
|
market_id: z.ZodNumber;
|
|
6807
6824
|
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
6808
6825
|
quantity_curr: z.ZodNumber;
|
|
@@ -6825,6 +6842,7 @@ declare const getOrderResponseParser: z.ZodObject<{
|
|
|
6825
6842
|
block_num: string;
|
|
6826
6843
|
block_time: string;
|
|
6827
6844
|
order_id: string;
|
|
6845
|
+
ordinal_order_id: string;
|
|
6828
6846
|
market_id: number;
|
|
6829
6847
|
quantity_curr: number;
|
|
6830
6848
|
account_name: string;
|
|
@@ -6845,6 +6863,7 @@ declare const getOrderResponseParser: z.ZodObject<{
|
|
|
6845
6863
|
block_num: string;
|
|
6846
6864
|
block_time: string;
|
|
6847
6865
|
order_id: string;
|
|
6866
|
+
ordinal_order_id: string;
|
|
6848
6867
|
market_id: number;
|
|
6849
6868
|
quantity_curr: number;
|
|
6850
6869
|
account_name: string;
|
|
@@ -6867,6 +6886,7 @@ declare const getOrderResponseParser: z.ZodObject<{
|
|
|
6867
6886
|
block_num: string;
|
|
6868
6887
|
block_time: string;
|
|
6869
6888
|
order_id: string;
|
|
6889
|
+
ordinal_order_id: string;
|
|
6870
6890
|
market_id: number;
|
|
6871
6891
|
quantity_curr: number;
|
|
6872
6892
|
account_name: string;
|
|
@@ -6890,6 +6910,7 @@ declare const getOrderResponseParser: z.ZodObject<{
|
|
|
6890
6910
|
block_num: string;
|
|
6891
6911
|
block_time: string;
|
|
6892
6912
|
order_id: string;
|
|
6913
|
+
ordinal_order_id: string;
|
|
6893
6914
|
market_id: number;
|
|
6894
6915
|
quantity_curr: number;
|
|
6895
6916
|
account_name: string;
|
|
@@ -6907,7 +6928,7 @@ declare const getOrderResponseParser: z.ZodObject<{
|
|
|
6907
6928
|
}[];
|
|
6908
6929
|
sync: number;
|
|
6909
6930
|
}>;
|
|
6910
|
-
declare type
|
|
6931
|
+
declare type GetOrderLifecycleResponse = z.infer<typeof getOrderLifecycleResponseParser>;
|
|
6911
6932
|
declare const submitOrderParser: z.ZodObject<{
|
|
6912
6933
|
serialized_tx_hex: z.ZodString;
|
|
6913
6934
|
signatures: z.ZodArray<z.ZodString, "many">;
|
|
@@ -6922,24 +6943,29 @@ declare type SubmitOrderParser = z.infer<typeof submitOrderParser>;
|
|
|
6922
6943
|
declare const submitOrderResponseParser: z.ZodObject<{
|
|
6923
6944
|
sync: z.ZodNumber;
|
|
6924
6945
|
data: z.ZodObject<{
|
|
6946
|
+
ordinal_order_ids: z.ZodArray<z.ZodString, "many">;
|
|
6925
6947
|
order_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
6926
6948
|
trx_id: z.ZodString;
|
|
6927
6949
|
}, "strip", z.ZodTypeAny, {
|
|
6928
6950
|
trx_id: string;
|
|
6951
|
+
ordinal_order_ids: string[];
|
|
6929
6952
|
order_ids: number[];
|
|
6930
6953
|
}, {
|
|
6931
6954
|
trx_id: string;
|
|
6955
|
+
ordinal_order_ids: string[];
|
|
6932
6956
|
order_ids: number[];
|
|
6933
6957
|
}>;
|
|
6934
6958
|
}, "strip", z.ZodTypeAny, {
|
|
6935
6959
|
data: {
|
|
6936
6960
|
trx_id: string;
|
|
6961
|
+
ordinal_order_ids: string[];
|
|
6937
6962
|
order_ids: number[];
|
|
6938
6963
|
};
|
|
6939
6964
|
sync: number;
|
|
6940
6965
|
}, {
|
|
6941
6966
|
data: {
|
|
6942
6967
|
trx_id: string;
|
|
6968
|
+
ordinal_order_ids: string[];
|
|
6943
6969
|
order_ids: number[];
|
|
6944
6970
|
};
|
|
6945
6971
|
sync: number;
|
|
@@ -7398,11 +7424,13 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7398
7424
|
price: z.ZodNumber;
|
|
7399
7425
|
bid_user: z.ZodString;
|
|
7400
7426
|
bid_user_order_id: z.ZodString;
|
|
7427
|
+
bid_user_ordinal_order_id: z.ZodString;
|
|
7401
7428
|
bid_total: z.ZodNumber;
|
|
7402
7429
|
bid_amount: z.ZodNumber;
|
|
7403
7430
|
bid_fee: z.ZodNumber;
|
|
7404
7431
|
ask_user: z.ZodString;
|
|
7405
7432
|
ask_user_order_id: z.ZodString;
|
|
7433
|
+
ask_user_ordinal_order_id: z.ZodString;
|
|
7406
7434
|
ask_total: z.ZodNumber;
|
|
7407
7435
|
ask_amount: z.ZodNumber;
|
|
7408
7436
|
ask_fee: z.ZodNumber;
|
|
@@ -7418,11 +7446,13 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7418
7446
|
trade_id: string;
|
|
7419
7447
|
bid_user: string;
|
|
7420
7448
|
bid_user_order_id: string;
|
|
7449
|
+
bid_user_ordinal_order_id: string;
|
|
7421
7450
|
bid_total: number;
|
|
7422
7451
|
bid_amount: number;
|
|
7423
7452
|
bid_fee: number;
|
|
7424
7453
|
ask_user: string;
|
|
7425
7454
|
ask_user_order_id: string;
|
|
7455
|
+
ask_user_ordinal_order_id: string;
|
|
7426
7456
|
ask_total: number;
|
|
7427
7457
|
ask_amount: number;
|
|
7428
7458
|
ask_fee: number;
|
|
@@ -7436,11 +7466,13 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7436
7466
|
trade_id: string;
|
|
7437
7467
|
bid_user: string;
|
|
7438
7468
|
bid_user_order_id: string;
|
|
7469
|
+
bid_user_ordinal_order_id: string;
|
|
7439
7470
|
bid_total: number;
|
|
7440
7471
|
bid_amount: number;
|
|
7441
7472
|
bid_fee: number;
|
|
7442
7473
|
ask_user: string;
|
|
7443
7474
|
ask_user_order_id: string;
|
|
7475
|
+
ask_user_ordinal_order_id: string;
|
|
7444
7476
|
ask_total: number;
|
|
7445
7477
|
ask_amount: number;
|
|
7446
7478
|
ask_fee: number;
|
|
@@ -7470,11 +7502,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7470
7502
|
price: z.ZodNumber;
|
|
7471
7503
|
bid_user: z.ZodString;
|
|
7472
7504
|
bid_user_order_id: z.ZodString;
|
|
7505
|
+
bid_user_ordinal_order_id: z.ZodString;
|
|
7473
7506
|
bid_total: z.ZodNumber;
|
|
7474
7507
|
bid_amount: z.ZodNumber;
|
|
7475
7508
|
bid_fee: z.ZodNumber;
|
|
7476
7509
|
ask_user: z.ZodString;
|
|
7477
7510
|
ask_user_order_id: z.ZodString;
|
|
7511
|
+
ask_user_ordinal_order_id: z.ZodString;
|
|
7478
7512
|
ask_total: z.ZodNumber;
|
|
7479
7513
|
ask_amount: z.ZodNumber;
|
|
7480
7514
|
ask_fee: z.ZodNumber;
|
|
@@ -7490,11 +7524,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7490
7524
|
trade_id: string;
|
|
7491
7525
|
bid_user: string;
|
|
7492
7526
|
bid_user_order_id: string;
|
|
7527
|
+
bid_user_ordinal_order_id: string;
|
|
7493
7528
|
bid_total: number;
|
|
7494
7529
|
bid_amount: number;
|
|
7495
7530
|
bid_fee: number;
|
|
7496
7531
|
ask_user: string;
|
|
7497
7532
|
ask_user_order_id: string;
|
|
7533
|
+
ask_user_ordinal_order_id: string;
|
|
7498
7534
|
ask_total: number;
|
|
7499
7535
|
ask_amount: number;
|
|
7500
7536
|
ask_fee: number;
|
|
@@ -7508,11 +7544,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7508
7544
|
trade_id: string;
|
|
7509
7545
|
bid_user: string;
|
|
7510
7546
|
bid_user_order_id: string;
|
|
7547
|
+
bid_user_ordinal_order_id: string;
|
|
7511
7548
|
bid_total: number;
|
|
7512
7549
|
bid_amount: number;
|
|
7513
7550
|
bid_fee: number;
|
|
7514
7551
|
ask_user: string;
|
|
7515
7552
|
ask_user_order_id: string;
|
|
7553
|
+
ask_user_ordinal_order_id: string;
|
|
7516
7554
|
ask_total: number;
|
|
7517
7555
|
ask_amount: number;
|
|
7518
7556
|
ask_fee: number;
|
|
@@ -7528,11 +7566,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7528
7566
|
trade_id: string;
|
|
7529
7567
|
bid_user: string;
|
|
7530
7568
|
bid_user_order_id: string;
|
|
7569
|
+
bid_user_ordinal_order_id: string;
|
|
7531
7570
|
bid_total: number;
|
|
7532
7571
|
bid_amount: number;
|
|
7533
7572
|
bid_fee: number;
|
|
7534
7573
|
ask_user: string;
|
|
7535
7574
|
ask_user_order_id: string;
|
|
7575
|
+
ask_user_ordinal_order_id: string;
|
|
7536
7576
|
ask_total: number;
|
|
7537
7577
|
ask_amount: number;
|
|
7538
7578
|
ask_fee: number;
|
|
@@ -7549,11 +7589,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7549
7589
|
trade_id: string;
|
|
7550
7590
|
bid_user: string;
|
|
7551
7591
|
bid_user_order_id: string;
|
|
7592
|
+
bid_user_ordinal_order_id: string;
|
|
7552
7593
|
bid_total: number;
|
|
7553
7594
|
bid_amount: number;
|
|
7554
7595
|
bid_fee: number;
|
|
7555
7596
|
ask_user: string;
|
|
7556
7597
|
ask_user_order_id: string;
|
|
7598
|
+
ask_user_ordinal_order_id: string;
|
|
7557
7599
|
ask_total: number;
|
|
7558
7600
|
ask_amount: number;
|
|
7559
7601
|
ask_fee: number;
|
|
@@ -7589,11 +7631,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7589
7631
|
price: z.ZodNumber;
|
|
7590
7632
|
bid_user: z.ZodString;
|
|
7591
7633
|
bid_user_order_id: z.ZodString;
|
|
7634
|
+
bid_user_ordinal_order_id: z.ZodString;
|
|
7592
7635
|
bid_total: z.ZodNumber;
|
|
7593
7636
|
bid_amount: z.ZodNumber;
|
|
7594
7637
|
bid_fee: z.ZodNumber;
|
|
7595
7638
|
ask_user: z.ZodString;
|
|
7596
7639
|
ask_user_order_id: z.ZodString;
|
|
7640
|
+
ask_user_ordinal_order_id: z.ZodString;
|
|
7597
7641
|
ask_total: z.ZodNumber;
|
|
7598
7642
|
ask_amount: z.ZodNumber;
|
|
7599
7643
|
ask_fee: z.ZodNumber;
|
|
@@ -7609,11 +7653,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7609
7653
|
trade_id: string;
|
|
7610
7654
|
bid_user: string;
|
|
7611
7655
|
bid_user_order_id: string;
|
|
7656
|
+
bid_user_ordinal_order_id: string;
|
|
7612
7657
|
bid_total: number;
|
|
7613
7658
|
bid_amount: number;
|
|
7614
7659
|
bid_fee: number;
|
|
7615
7660
|
ask_user: string;
|
|
7616
7661
|
ask_user_order_id: string;
|
|
7662
|
+
ask_user_ordinal_order_id: string;
|
|
7617
7663
|
ask_total: number;
|
|
7618
7664
|
ask_amount: number;
|
|
7619
7665
|
ask_fee: number;
|
|
@@ -7627,11 +7673,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7627
7673
|
trade_id: string;
|
|
7628
7674
|
bid_user: string;
|
|
7629
7675
|
bid_user_order_id: string;
|
|
7676
|
+
bid_user_ordinal_order_id: string;
|
|
7630
7677
|
bid_total: number;
|
|
7631
7678
|
bid_amount: number;
|
|
7632
7679
|
bid_fee: number;
|
|
7633
7680
|
ask_user: string;
|
|
7634
7681
|
ask_user_order_id: string;
|
|
7682
|
+
ask_user_ordinal_order_id: string;
|
|
7635
7683
|
ask_total: number;
|
|
7636
7684
|
ask_amount: number;
|
|
7637
7685
|
ask_fee: number;
|
|
@@ -7647,11 +7695,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7647
7695
|
trade_id: string;
|
|
7648
7696
|
bid_user: string;
|
|
7649
7697
|
bid_user_order_id: string;
|
|
7698
|
+
bid_user_ordinal_order_id: string;
|
|
7650
7699
|
bid_total: number;
|
|
7651
7700
|
bid_amount: number;
|
|
7652
7701
|
bid_fee: number;
|
|
7653
7702
|
ask_user: string;
|
|
7654
7703
|
ask_user_order_id: string;
|
|
7704
|
+
ask_user_ordinal_order_id: string;
|
|
7655
7705
|
ask_total: number;
|
|
7656
7706
|
ask_amount: number;
|
|
7657
7707
|
ask_fee: number;
|
|
@@ -7669,11 +7719,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7669
7719
|
trade_id: string;
|
|
7670
7720
|
bid_user: string;
|
|
7671
7721
|
bid_user_order_id: string;
|
|
7722
|
+
bid_user_ordinal_order_id: string;
|
|
7672
7723
|
bid_total: number;
|
|
7673
7724
|
bid_amount: number;
|
|
7674
7725
|
bid_fee: number;
|
|
7675
7726
|
ask_user: string;
|
|
7676
7727
|
ask_user_order_id: string;
|
|
7728
|
+
ask_user_ordinal_order_id: string;
|
|
7677
7729
|
ask_total: number;
|
|
7678
7730
|
ask_amount: number;
|
|
7679
7731
|
ask_fee: number;
|
|
@@ -7922,19 +7974,6 @@ declare enum logStatus {
|
|
|
7922
7974
|
CANCEL = "cancel",
|
|
7923
7975
|
DELETE = "delete"
|
|
7924
7976
|
}
|
|
7925
|
-
interface CurrentOrder {
|
|
7926
|
-
order_id: number;
|
|
7927
|
-
market_id: number;
|
|
7928
|
-
quantity_init: number;
|
|
7929
|
-
quantity_curr: number;
|
|
7930
|
-
price: number;
|
|
7931
|
-
account_name: string;
|
|
7932
|
-
order_side: number;
|
|
7933
|
-
order_type: number;
|
|
7934
|
-
status: string;
|
|
7935
|
-
created_at: string;
|
|
7936
|
-
updated_at: string;
|
|
7937
|
-
}
|
|
7938
7977
|
interface DbMarket {
|
|
7939
7978
|
market_id: number;
|
|
7940
7979
|
order_min: number;
|
|
@@ -8968,4 +9007,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
|
8968
9007
|
}) => boolean;
|
|
8969
9008
|
declare const applyDiscountToFee: (fee: number, staked: number) => number;
|
|
8970
9009
|
|
|
8971
|
-
export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, Coin, CoinWallet, CurrencyStat, CurrencyStats,
|
|
9010
|
+
export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponseParser, GetDepth, GetDepthResponse, GetLeaderboard, GetLeaderboardResponseParser, GetMarketsResponse, GetOHLCV, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsResponseParser, GetReferrals, GetReferralsResponseParser, GetSyncResponse, GetTradeHistory, GetTradeHistoryResponse, GetTrades, GetTradesResponseParser, Graph, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, Networks, OHLCV, OrderHistory, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, Providers, Rate, RawPool, Referral, ReferralTotal, Status, SubmitOrderParser, SubmitOrderResponse, Sync, TOPICS, Trade, Transaction, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, Wallet, WithdrawBody, WithdrawBodyBaseAction, WithdrawHistoryMetalResponse, WithdrawHistoryMetalSwap, WithdrawMetalResponse, WithdrawalFeeQuote, Wrap, WrapSetConf, WrapStart, accountParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketParser, median, ohlcvParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, refferalParser, refferalTotalParser, similarChains, singleActionTransactionParser, submitOrderParser, submitOrderResponseParser, syncParser, tradeParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
package/dist/index.js
CHANGED
|
@@ -78,8 +78,8 @@ __export(src_exports, {
|
|
|
78
78
|
getOpenOrdersResponseParser: () => getOpenOrdersResponseParser,
|
|
79
79
|
getOrderHistoryParser: () => getOrderHistoryParser,
|
|
80
80
|
getOrderHistoryResponseParser: () => getOrderHistoryResponseParser,
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
getOrderLifecycleParser: () => getOrderLifecycleParser,
|
|
82
|
+
getOrderLifecycleResponseParser: () => getOrderLifecycleResponseParser,
|
|
83
83
|
getReferralTotalsParser: () => getReferralTotalsParser,
|
|
84
84
|
getReferralTotalsResponseParser: () => getReferralTotalsResponseParser,
|
|
85
85
|
getReferralsParser: () => getReferralsParser,
|
|
@@ -1854,6 +1854,7 @@ var orderHistoryParser = z11.object({
|
|
|
1854
1854
|
block_num: z11.string(),
|
|
1855
1855
|
block_time: z11.string(),
|
|
1856
1856
|
order_id: z11.string(),
|
|
1857
|
+
ordinal_order_id: z11.string(),
|
|
1857
1858
|
market_id: z11.number(),
|
|
1858
1859
|
quantity_init: z11.number().optional(),
|
|
1859
1860
|
quantity_curr: z11.number(),
|
|
@@ -1895,10 +1896,11 @@ var getOrderHistoryResponseParser = z11.object({
|
|
|
1895
1896
|
count: z11.number(),
|
|
1896
1897
|
data: z11.array(orderHistoryParser)
|
|
1897
1898
|
});
|
|
1898
|
-
var
|
|
1899
|
-
order_id: z11.string()
|
|
1899
|
+
var getOrderLifecycleParser = z11.object({
|
|
1900
|
+
order_id: z11.string().optional(),
|
|
1901
|
+
ordinal_order_id: z11.string().optional()
|
|
1900
1902
|
});
|
|
1901
|
-
var
|
|
1903
|
+
var getOrderLifecycleResponseParser = z11.object({
|
|
1902
1904
|
sync: z11.number(),
|
|
1903
1905
|
data: z11.array(orderHistoryParser)
|
|
1904
1906
|
});
|
|
@@ -1909,6 +1911,7 @@ var submitOrderParser = z11.object({
|
|
|
1909
1911
|
var submitOrderResponseParser = z11.object({
|
|
1910
1912
|
sync: z11.number(),
|
|
1911
1913
|
data: z11.object({
|
|
1914
|
+
ordinal_order_ids: z11.array(z11.string()),
|
|
1912
1915
|
order_ids: z11.array(z11.number()),
|
|
1913
1916
|
trx_id: z11.string()
|
|
1914
1917
|
})
|
|
@@ -1979,11 +1982,13 @@ var tradeParser = z11.object({
|
|
|
1979
1982
|
price: z11.number(),
|
|
1980
1983
|
bid_user: z11.string(),
|
|
1981
1984
|
bid_user_order_id: z11.string(),
|
|
1985
|
+
bid_user_ordinal_order_id: z11.string(),
|
|
1982
1986
|
bid_total: z11.number(),
|
|
1983
1987
|
bid_amount: z11.number(),
|
|
1984
1988
|
bid_fee: z11.number(),
|
|
1985
1989
|
ask_user: z11.string(),
|
|
1986
1990
|
ask_user_order_id: z11.string(),
|
|
1991
|
+
ask_user_ordinal_order_id: z11.string(),
|
|
1987
1992
|
ask_total: z11.number(),
|
|
1988
1993
|
ask_amount: z11.number(),
|
|
1989
1994
|
ask_fee: z11.number(),
|
|
@@ -3811,8 +3816,8 @@ var applyDiscountToFee = (fee, staked) => {
|
|
|
3811
3816
|
getOpenOrdersResponseParser,
|
|
3812
3817
|
getOrderHistoryParser,
|
|
3813
3818
|
getOrderHistoryResponseParser,
|
|
3814
|
-
|
|
3815
|
-
|
|
3819
|
+
getOrderLifecycleParser,
|
|
3820
|
+
getOrderLifecycleResponseParser,
|
|
3816
3821
|
getReferralTotalsParser,
|
|
3817
3822
|
getReferralTotalsResponseParser,
|
|
3818
3823
|
getReferralsParser,
|
package/dist/index.mjs
CHANGED
|
@@ -1724,6 +1724,7 @@ var orderHistoryParser = z11.object({
|
|
|
1724
1724
|
block_num: z11.string(),
|
|
1725
1725
|
block_time: z11.string(),
|
|
1726
1726
|
order_id: z11.string(),
|
|
1727
|
+
ordinal_order_id: z11.string(),
|
|
1727
1728
|
market_id: z11.number(),
|
|
1728
1729
|
quantity_init: z11.number().optional(),
|
|
1729
1730
|
quantity_curr: z11.number(),
|
|
@@ -1765,10 +1766,11 @@ var getOrderHistoryResponseParser = z11.object({
|
|
|
1765
1766
|
count: z11.number(),
|
|
1766
1767
|
data: z11.array(orderHistoryParser)
|
|
1767
1768
|
});
|
|
1768
|
-
var
|
|
1769
|
-
order_id: z11.string()
|
|
1769
|
+
var getOrderLifecycleParser = z11.object({
|
|
1770
|
+
order_id: z11.string().optional(),
|
|
1771
|
+
ordinal_order_id: z11.string().optional()
|
|
1770
1772
|
});
|
|
1771
|
-
var
|
|
1773
|
+
var getOrderLifecycleResponseParser = z11.object({
|
|
1772
1774
|
sync: z11.number(),
|
|
1773
1775
|
data: z11.array(orderHistoryParser)
|
|
1774
1776
|
});
|
|
@@ -1779,6 +1781,7 @@ var submitOrderParser = z11.object({
|
|
|
1779
1781
|
var submitOrderResponseParser = z11.object({
|
|
1780
1782
|
sync: z11.number(),
|
|
1781
1783
|
data: z11.object({
|
|
1784
|
+
ordinal_order_ids: z11.array(z11.string()),
|
|
1782
1785
|
order_ids: z11.array(z11.number()),
|
|
1783
1786
|
trx_id: z11.string()
|
|
1784
1787
|
})
|
|
@@ -1849,11 +1852,13 @@ var tradeParser = z11.object({
|
|
|
1849
1852
|
price: z11.number(),
|
|
1850
1853
|
bid_user: z11.string(),
|
|
1851
1854
|
bid_user_order_id: z11.string(),
|
|
1855
|
+
bid_user_ordinal_order_id: z11.string(),
|
|
1852
1856
|
bid_total: z11.number(),
|
|
1853
1857
|
bid_amount: z11.number(),
|
|
1854
1858
|
bid_fee: z11.number(),
|
|
1855
1859
|
ask_user: z11.string(),
|
|
1856
1860
|
ask_user_order_id: z11.string(),
|
|
1861
|
+
ask_user_ordinal_order_id: z11.string(),
|
|
1857
1862
|
ask_total: z11.number(),
|
|
1858
1863
|
ask_amount: z11.number(),
|
|
1859
1864
|
ask_fee: z11.number(),
|
|
@@ -3680,8 +3685,8 @@ export {
|
|
|
3680
3685
|
getOpenOrdersResponseParser,
|
|
3681
3686
|
getOrderHistoryParser,
|
|
3682
3687
|
getOrderHistoryResponseParser,
|
|
3683
|
-
|
|
3684
|
-
|
|
3688
|
+
getOrderLifecycleParser,
|
|
3689
|
+
getOrderLifecycleResponseParser,
|
|
3685
3690
|
getReferralTotalsParser,
|
|
3686
3691
|
getReferralTotalsResponseParser,
|
|
3687
3692
|
getReferralsParser,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.84",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "210af683a62531350135dcdfac047b5c49bd2a77"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -40,6 +40,7 @@ export const orderHistoryParser = z.object({
|
|
|
40
40
|
block_num: z.string(),
|
|
41
41
|
block_time: z.string(),
|
|
42
42
|
order_id: z.string(),
|
|
43
|
+
ordinal_order_id: z.string(),
|
|
43
44
|
market_id: z.number(),
|
|
44
45
|
quantity_init: z.number().optional(),
|
|
45
46
|
quantity_curr: z.number(),
|
|
@@ -99,16 +100,19 @@ export type GetOrderHistoryResponse = z.infer<
|
|
|
99
100
|
typeof getOrderHistoryResponseParser
|
|
100
101
|
>;
|
|
101
102
|
|
|
102
|
-
export const
|
|
103
|
-
order_id: z.string(),
|
|
103
|
+
export const getOrderLifecycleParser = z.object({
|
|
104
|
+
order_id: z.string().optional(),
|
|
105
|
+
ordinal_order_id: z.string().optional(),
|
|
104
106
|
});
|
|
105
|
-
export type
|
|
107
|
+
export type GetOrderLifecycle = z.infer<typeof getOrderLifecycleParser>;
|
|
106
108
|
|
|
107
|
-
export const
|
|
109
|
+
export const getOrderLifecycleResponseParser = z.object({
|
|
108
110
|
sync: z.number(),
|
|
109
111
|
data: z.array(orderHistoryParser),
|
|
110
112
|
});
|
|
111
|
-
export type
|
|
113
|
+
export type GetOrderLifecycleResponse = z.infer<
|
|
114
|
+
typeof getOrderLifecycleResponseParser
|
|
115
|
+
>;
|
|
112
116
|
|
|
113
117
|
export const submitOrderParser = z.object({
|
|
114
118
|
serialized_tx_hex: z.string(),
|
|
@@ -119,6 +123,7 @@ export type SubmitOrderParser = z.infer<typeof submitOrderParser>;
|
|
|
119
123
|
export const submitOrderResponseParser = z.object({
|
|
120
124
|
sync: z.number(),
|
|
121
125
|
data: z.object({
|
|
126
|
+
ordinal_order_ids: z.array(z.string()),
|
|
122
127
|
order_ids: z.array(z.number()),
|
|
123
128
|
trx_id: z.string(),
|
|
124
129
|
}),
|
|
@@ -220,11 +225,13 @@ export const tradeParser = z.object({
|
|
|
220
225
|
price: z.number(),
|
|
221
226
|
bid_user: z.string(),
|
|
222
227
|
bid_user_order_id: z.string(),
|
|
228
|
+
bid_user_ordinal_order_id: z.string(),
|
|
223
229
|
bid_total: z.number(),
|
|
224
230
|
bid_amount: z.number(),
|
|
225
231
|
bid_fee: z.number(),
|
|
226
232
|
ask_user: z.string(),
|
|
227
233
|
ask_user_order_id: z.string(),
|
|
234
|
+
ask_user_ordinal_order_id: z.string(),
|
|
228
235
|
ask_total: z.number(),
|
|
229
236
|
ask_amount: z.number(),
|
|
230
237
|
ask_fee: z.number(),
|
|
@@ -391,20 +398,6 @@ export enum logStatus {
|
|
|
391
398
|
DELETE = "delete",
|
|
392
399
|
}
|
|
393
400
|
|
|
394
|
-
export interface CurrentOrder {
|
|
395
|
-
order_id: number;
|
|
396
|
-
market_id: number;
|
|
397
|
-
quantity_init: number;
|
|
398
|
-
quantity_curr: number;
|
|
399
|
-
price: number;
|
|
400
|
-
account_name: string;
|
|
401
|
-
order_side: number;
|
|
402
|
-
order_type: number;
|
|
403
|
-
status: string;
|
|
404
|
-
created_at: string;
|
|
405
|
-
updated_at: string;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
401
|
export interface DbMarket {
|
|
409
402
|
market_id: number;
|
|
410
403
|
order_min: number;
|