@proton/wrap-constants 0.2.126 → 0.2.129
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 +803 -40
- package/dist/index.js +79 -0
- package/dist/index.mjs +74 -0
- package/package.json +2 -2
- package/src/parsers/dex.ts +90 -1
package/dist/index.d.ts
CHANGED
|
@@ -6531,6 +6531,56 @@ declare const openOrderParser: z.ZodObject<{
|
|
|
6531
6531
|
filled_fee?: number | undefined;
|
|
6532
6532
|
}>;
|
|
6533
6533
|
declare type OpenOrder = z.infer<typeof openOrderParser>;
|
|
6534
|
+
declare const orderLogParser: z.ZodObject<{
|
|
6535
|
+
seq: z.ZodString;
|
|
6536
|
+
block_num: z.ZodString;
|
|
6537
|
+
block_time: z.ZodString;
|
|
6538
|
+
order_id: z.ZodString;
|
|
6539
|
+
market_id: z.ZodNumber;
|
|
6540
|
+
quantity: z.ZodString;
|
|
6541
|
+
price: z.ZodString;
|
|
6542
|
+
account_name: z.ZodString;
|
|
6543
|
+
order_side: z.ZodNumber;
|
|
6544
|
+
order_type: z.ZodNumber;
|
|
6545
|
+
trigger_price: z.ZodString;
|
|
6546
|
+
fill_type: z.ZodNumber;
|
|
6547
|
+
status: z.ZodString;
|
|
6548
|
+
quantity_change: z.ZodString;
|
|
6549
|
+
trx_id: z.ZodString;
|
|
6550
|
+
}, "strip", z.ZodTypeAny, {
|
|
6551
|
+
status: string;
|
|
6552
|
+
quantity: string;
|
|
6553
|
+
price: string;
|
|
6554
|
+
block_time: string;
|
|
6555
|
+
order_id: string;
|
|
6556
|
+
market_id: number;
|
|
6557
|
+
account_name: string;
|
|
6558
|
+
order_side: number;
|
|
6559
|
+
order_type: number;
|
|
6560
|
+
trigger_price: string;
|
|
6561
|
+
fill_type: number;
|
|
6562
|
+
seq: string;
|
|
6563
|
+
block_num: string;
|
|
6564
|
+
quantity_change: string;
|
|
6565
|
+
trx_id: string;
|
|
6566
|
+
}, {
|
|
6567
|
+
status: string;
|
|
6568
|
+
quantity: string;
|
|
6569
|
+
price: string;
|
|
6570
|
+
block_time: string;
|
|
6571
|
+
order_id: string;
|
|
6572
|
+
market_id: number;
|
|
6573
|
+
account_name: string;
|
|
6574
|
+
order_side: number;
|
|
6575
|
+
order_type: number;
|
|
6576
|
+
trigger_price: string;
|
|
6577
|
+
fill_type: number;
|
|
6578
|
+
seq: string;
|
|
6579
|
+
block_num: string;
|
|
6580
|
+
quantity_change: string;
|
|
6581
|
+
trx_id: string;
|
|
6582
|
+
}>;
|
|
6583
|
+
declare type OrderLog = z.infer<typeof orderLogParser>;
|
|
6534
6584
|
declare const orderHistoryParser: z.ZodObject<{
|
|
6535
6585
|
block_num: z.ZodString;
|
|
6536
6586
|
block_time: z.ZodString;
|
|
@@ -6565,9 +6615,9 @@ declare const orderHistoryParser: z.ZodObject<{
|
|
|
6565
6615
|
order_type: number;
|
|
6566
6616
|
trigger_price: number;
|
|
6567
6617
|
fill_type: number;
|
|
6618
|
+
seq: string;
|
|
6568
6619
|
block_num: string;
|
|
6569
6620
|
quantity_change: number;
|
|
6570
|
-
seq: string;
|
|
6571
6621
|
trx_id: string;
|
|
6572
6622
|
quantity_init?: number | undefined;
|
|
6573
6623
|
filled_total?: number | undefined;
|
|
@@ -6586,9 +6636,9 @@ declare const orderHistoryParser: z.ZodObject<{
|
|
|
6586
6636
|
order_type: number;
|
|
6587
6637
|
trigger_price: number;
|
|
6588
6638
|
fill_type: number;
|
|
6639
|
+
seq: string;
|
|
6589
6640
|
block_num: string;
|
|
6590
6641
|
quantity_change: number;
|
|
6591
|
-
seq: string;
|
|
6592
6642
|
trx_id: string;
|
|
6593
6643
|
quantity_init?: number | undefined;
|
|
6594
6644
|
filled_total?: number | undefined;
|
|
@@ -6790,9 +6840,9 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6790
6840
|
order_type: number;
|
|
6791
6841
|
trigger_price: number;
|
|
6792
6842
|
fill_type: number;
|
|
6843
|
+
seq: string;
|
|
6793
6844
|
block_num: string;
|
|
6794
6845
|
quantity_change: number;
|
|
6795
|
-
seq: string;
|
|
6796
6846
|
trx_id: string;
|
|
6797
6847
|
quantity_init?: number | undefined;
|
|
6798
6848
|
filled_total?: number | undefined;
|
|
@@ -6811,9 +6861,9 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6811
6861
|
order_type: number;
|
|
6812
6862
|
trigger_price: number;
|
|
6813
6863
|
fill_type: number;
|
|
6864
|
+
seq: string;
|
|
6814
6865
|
block_num: string;
|
|
6815
6866
|
quantity_change: number;
|
|
6816
|
-
seq: string;
|
|
6817
6867
|
trx_id: string;
|
|
6818
6868
|
quantity_init?: number | undefined;
|
|
6819
6869
|
filled_total?: number | undefined;
|
|
@@ -6834,9 +6884,9 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6834
6884
|
order_type: number;
|
|
6835
6885
|
trigger_price: number;
|
|
6836
6886
|
fill_type: number;
|
|
6887
|
+
seq: string;
|
|
6837
6888
|
block_num: string;
|
|
6838
6889
|
quantity_change: number;
|
|
6839
|
-
seq: string;
|
|
6840
6890
|
trx_id: string;
|
|
6841
6891
|
quantity_init?: number | undefined;
|
|
6842
6892
|
filled_total?: number | undefined;
|
|
@@ -6859,9 +6909,9 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6859
6909
|
order_type: number;
|
|
6860
6910
|
trigger_price: number;
|
|
6861
6911
|
fill_type: number;
|
|
6912
|
+
seq: string;
|
|
6862
6913
|
block_num: string;
|
|
6863
6914
|
quantity_change: number;
|
|
6864
|
-
seq: string;
|
|
6865
6915
|
trx_id: string;
|
|
6866
6916
|
quantity_init?: number | undefined;
|
|
6867
6917
|
filled_total?: number | undefined;
|
|
@@ -6920,9 +6970,9 @@ declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
|
6920
6970
|
order_type: number;
|
|
6921
6971
|
trigger_price: number;
|
|
6922
6972
|
fill_type: number;
|
|
6973
|
+
seq: string;
|
|
6923
6974
|
block_num: string;
|
|
6924
6975
|
quantity_change: number;
|
|
6925
|
-
seq: string;
|
|
6926
6976
|
trx_id: string;
|
|
6927
6977
|
quantity_init?: number | undefined;
|
|
6928
6978
|
filled_total?: number | undefined;
|
|
@@ -6941,9 +6991,9 @@ declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
|
6941
6991
|
order_type: number;
|
|
6942
6992
|
trigger_price: number;
|
|
6943
6993
|
fill_type: number;
|
|
6994
|
+
seq: string;
|
|
6944
6995
|
block_num: string;
|
|
6945
6996
|
quantity_change: number;
|
|
6946
|
-
seq: string;
|
|
6947
6997
|
trx_id: string;
|
|
6948
6998
|
quantity_init?: number | undefined;
|
|
6949
6999
|
filled_total?: number | undefined;
|
|
@@ -6964,9 +7014,9 @@ declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
|
6964
7014
|
order_type: number;
|
|
6965
7015
|
trigger_price: number;
|
|
6966
7016
|
fill_type: number;
|
|
7017
|
+
seq: string;
|
|
6967
7018
|
block_num: string;
|
|
6968
7019
|
quantity_change: number;
|
|
6969
|
-
seq: string;
|
|
6970
7020
|
trx_id: string;
|
|
6971
7021
|
quantity_init?: number | undefined;
|
|
6972
7022
|
filled_total?: number | undefined;
|
|
@@ -6988,9 +7038,9 @@ declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
|
6988
7038
|
order_type: number;
|
|
6989
7039
|
trigger_price: number;
|
|
6990
7040
|
fill_type: number;
|
|
7041
|
+
seq: string;
|
|
6991
7042
|
block_num: string;
|
|
6992
7043
|
quantity_change: number;
|
|
6993
|
-
seq: string;
|
|
6994
7044
|
trx_id: string;
|
|
6995
7045
|
quantity_init?: number | undefined;
|
|
6996
7046
|
filled_total?: number | undefined;
|
|
@@ -7666,6 +7716,74 @@ declare type GetMarketsResponse = z.infer<typeof getMarketsResponseParser>;
|
|
|
7666
7716
|
/**
|
|
7667
7717
|
* Trades
|
|
7668
7718
|
*/
|
|
7719
|
+
declare const tradeLogParser: z.ZodObject<{
|
|
7720
|
+
block_num: z.ZodString;
|
|
7721
|
+
block_time: z.ZodString;
|
|
7722
|
+
trade_id: z.ZodString;
|
|
7723
|
+
market_id: z.ZodNumber;
|
|
7724
|
+
price: z.ZodString;
|
|
7725
|
+
bid_user: z.ZodString;
|
|
7726
|
+
bid_user_order_id: z.ZodString;
|
|
7727
|
+
bid_total: z.ZodString;
|
|
7728
|
+
bid_amount: z.ZodString;
|
|
7729
|
+
bid_fee: z.ZodString;
|
|
7730
|
+
bid_referrer: z.ZodString;
|
|
7731
|
+
bid_referrer_fee: z.ZodString;
|
|
7732
|
+
ask_user: z.ZodString;
|
|
7733
|
+
ask_user_order_id: z.ZodString;
|
|
7734
|
+
ask_total: z.ZodString;
|
|
7735
|
+
ask_amount: z.ZodString;
|
|
7736
|
+
ask_fee: z.ZodString;
|
|
7737
|
+
ask_referrer: z.ZodString;
|
|
7738
|
+
ask_referrer_fee: z.ZodString;
|
|
7739
|
+
order_side: z.ZodNumber;
|
|
7740
|
+
trx_id: z.ZodString;
|
|
7741
|
+
}, "strip", z.ZodTypeAny, {
|
|
7742
|
+
price: string;
|
|
7743
|
+
block_time: string;
|
|
7744
|
+
market_id: number;
|
|
7745
|
+
order_side: number;
|
|
7746
|
+
block_num: string;
|
|
7747
|
+
trx_id: string;
|
|
7748
|
+
trade_id: string;
|
|
7749
|
+
bid_user: string;
|
|
7750
|
+
bid_user_order_id: string;
|
|
7751
|
+
bid_total: string;
|
|
7752
|
+
bid_amount: string;
|
|
7753
|
+
bid_fee: string;
|
|
7754
|
+
bid_referrer: string;
|
|
7755
|
+
bid_referrer_fee: string;
|
|
7756
|
+
ask_user: string;
|
|
7757
|
+
ask_user_order_id: string;
|
|
7758
|
+
ask_total: string;
|
|
7759
|
+
ask_amount: string;
|
|
7760
|
+
ask_fee: string;
|
|
7761
|
+
ask_referrer: string;
|
|
7762
|
+
ask_referrer_fee: string;
|
|
7763
|
+
}, {
|
|
7764
|
+
price: string;
|
|
7765
|
+
block_time: string;
|
|
7766
|
+
market_id: number;
|
|
7767
|
+
order_side: number;
|
|
7768
|
+
block_num: string;
|
|
7769
|
+
trx_id: string;
|
|
7770
|
+
trade_id: string;
|
|
7771
|
+
bid_user: string;
|
|
7772
|
+
bid_user_order_id: string;
|
|
7773
|
+
bid_total: string;
|
|
7774
|
+
bid_amount: string;
|
|
7775
|
+
bid_fee: string;
|
|
7776
|
+
bid_referrer: string;
|
|
7777
|
+
bid_referrer_fee: string;
|
|
7778
|
+
ask_user: string;
|
|
7779
|
+
ask_user_order_id: string;
|
|
7780
|
+
ask_total: string;
|
|
7781
|
+
ask_amount: string;
|
|
7782
|
+
ask_fee: string;
|
|
7783
|
+
ask_referrer: string;
|
|
7784
|
+
ask_referrer_fee: string;
|
|
7785
|
+
}>;
|
|
7786
|
+
declare type TradeLog = z.infer<typeof tradeLogParser>;
|
|
7669
7787
|
declare const tradeParser: z.ZodObject<{
|
|
7670
7788
|
block_num: z.ZodString;
|
|
7671
7789
|
block_time: z.ZodString;
|
|
@@ -7700,7 +7818,6 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7700
7818
|
trade_id: string;
|
|
7701
7819
|
bid_user: string;
|
|
7702
7820
|
bid_user_order_id: string;
|
|
7703
|
-
bid_user_ordinal_order_id: string;
|
|
7704
7821
|
bid_total: number;
|
|
7705
7822
|
bid_amount: number;
|
|
7706
7823
|
bid_fee: number;
|
|
@@ -7708,12 +7825,13 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7708
7825
|
bid_referrer_fee: number;
|
|
7709
7826
|
ask_user: string;
|
|
7710
7827
|
ask_user_order_id: string;
|
|
7711
|
-
ask_user_ordinal_order_id: string;
|
|
7712
7828
|
ask_total: number;
|
|
7713
7829
|
ask_amount: number;
|
|
7714
7830
|
ask_fee: number;
|
|
7715
7831
|
ask_referrer: string;
|
|
7716
7832
|
ask_referrer_fee: number;
|
|
7833
|
+
bid_user_ordinal_order_id: string;
|
|
7834
|
+
ask_user_ordinal_order_id: string;
|
|
7717
7835
|
}, {
|
|
7718
7836
|
price: number;
|
|
7719
7837
|
block_time: string;
|
|
@@ -7724,7 +7842,6 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7724
7842
|
trade_id: string;
|
|
7725
7843
|
bid_user: string;
|
|
7726
7844
|
bid_user_order_id: string;
|
|
7727
|
-
bid_user_ordinal_order_id: string;
|
|
7728
7845
|
bid_total: number;
|
|
7729
7846
|
bid_amount: number;
|
|
7730
7847
|
bid_fee: number;
|
|
@@ -7732,12 +7849,13 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7732
7849
|
bid_referrer_fee: number;
|
|
7733
7850
|
ask_user: string;
|
|
7734
7851
|
ask_user_order_id: string;
|
|
7735
|
-
ask_user_ordinal_order_id: string;
|
|
7736
7852
|
ask_total: number;
|
|
7737
7853
|
ask_amount: number;
|
|
7738
7854
|
ask_fee: number;
|
|
7739
7855
|
ask_referrer: string;
|
|
7740
7856
|
ask_referrer_fee: number;
|
|
7857
|
+
bid_user_ordinal_order_id: string;
|
|
7858
|
+
ask_user_ordinal_order_id: string;
|
|
7741
7859
|
}>;
|
|
7742
7860
|
declare type Trade = z.infer<typeof tradeParser>;
|
|
7743
7861
|
declare const getTradesParser: z.ZodObject<{
|
|
@@ -7791,7 +7909,6 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7791
7909
|
trade_id: string;
|
|
7792
7910
|
bid_user: string;
|
|
7793
7911
|
bid_user_order_id: string;
|
|
7794
|
-
bid_user_ordinal_order_id: string;
|
|
7795
7912
|
bid_total: number;
|
|
7796
7913
|
bid_amount: number;
|
|
7797
7914
|
bid_fee: number;
|
|
@@ -7799,12 +7916,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7799
7916
|
bid_referrer_fee: number;
|
|
7800
7917
|
ask_user: string;
|
|
7801
7918
|
ask_user_order_id: string;
|
|
7802
|
-
ask_user_ordinal_order_id: string;
|
|
7803
7919
|
ask_total: number;
|
|
7804
7920
|
ask_amount: number;
|
|
7805
7921
|
ask_fee: number;
|
|
7806
7922
|
ask_referrer: string;
|
|
7807
7923
|
ask_referrer_fee: number;
|
|
7924
|
+
bid_user_ordinal_order_id: string;
|
|
7925
|
+
ask_user_ordinal_order_id: string;
|
|
7808
7926
|
}, {
|
|
7809
7927
|
price: number;
|
|
7810
7928
|
block_time: string;
|
|
@@ -7815,7 +7933,6 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7815
7933
|
trade_id: string;
|
|
7816
7934
|
bid_user: string;
|
|
7817
7935
|
bid_user_order_id: string;
|
|
7818
|
-
bid_user_ordinal_order_id: string;
|
|
7819
7936
|
bid_total: number;
|
|
7820
7937
|
bid_amount: number;
|
|
7821
7938
|
bid_fee: number;
|
|
@@ -7823,12 +7940,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7823
7940
|
bid_referrer_fee: number;
|
|
7824
7941
|
ask_user: string;
|
|
7825
7942
|
ask_user_order_id: string;
|
|
7826
|
-
ask_user_ordinal_order_id: string;
|
|
7827
7943
|
ask_total: number;
|
|
7828
7944
|
ask_amount: number;
|
|
7829
7945
|
ask_fee: number;
|
|
7830
7946
|
ask_referrer: string;
|
|
7831
7947
|
ask_referrer_fee: number;
|
|
7948
|
+
bid_user_ordinal_order_id: string;
|
|
7949
|
+
ask_user_ordinal_order_id: string;
|
|
7832
7950
|
}>, "many">;
|
|
7833
7951
|
}, "strip", z.ZodTypeAny, {
|
|
7834
7952
|
data: {
|
|
@@ -7841,7 +7959,6 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7841
7959
|
trade_id: string;
|
|
7842
7960
|
bid_user: string;
|
|
7843
7961
|
bid_user_order_id: string;
|
|
7844
|
-
bid_user_ordinal_order_id: string;
|
|
7845
7962
|
bid_total: number;
|
|
7846
7963
|
bid_amount: number;
|
|
7847
7964
|
bid_fee: number;
|
|
@@ -7849,12 +7966,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7849
7966
|
bid_referrer_fee: number;
|
|
7850
7967
|
ask_user: string;
|
|
7851
7968
|
ask_user_order_id: string;
|
|
7852
|
-
ask_user_ordinal_order_id: string;
|
|
7853
7969
|
ask_total: number;
|
|
7854
7970
|
ask_amount: number;
|
|
7855
7971
|
ask_fee: number;
|
|
7856
7972
|
ask_referrer: string;
|
|
7857
7973
|
ask_referrer_fee: number;
|
|
7974
|
+
bid_user_ordinal_order_id: string;
|
|
7975
|
+
ask_user_ordinal_order_id: string;
|
|
7858
7976
|
}[];
|
|
7859
7977
|
sync: number;
|
|
7860
7978
|
}, {
|
|
@@ -7868,7 +7986,6 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7868
7986
|
trade_id: string;
|
|
7869
7987
|
bid_user: string;
|
|
7870
7988
|
bid_user_order_id: string;
|
|
7871
|
-
bid_user_ordinal_order_id: string;
|
|
7872
7989
|
bid_total: number;
|
|
7873
7990
|
bid_amount: number;
|
|
7874
7991
|
bid_fee: number;
|
|
@@ -7876,12 +7993,13 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7876
7993
|
bid_referrer_fee: number;
|
|
7877
7994
|
ask_user: string;
|
|
7878
7995
|
ask_user_order_id: string;
|
|
7879
|
-
ask_user_ordinal_order_id: string;
|
|
7880
7996
|
ask_total: number;
|
|
7881
7997
|
ask_amount: number;
|
|
7882
7998
|
ask_fee: number;
|
|
7883
7999
|
ask_referrer: string;
|
|
7884
8000
|
ask_referrer_fee: number;
|
|
8001
|
+
bid_user_ordinal_order_id: string;
|
|
8002
|
+
ask_user_ordinal_order_id: string;
|
|
7885
8003
|
}[];
|
|
7886
8004
|
sync: number;
|
|
7887
8005
|
}>;
|
|
@@ -7944,7 +8062,6 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7944
8062
|
trade_id: string;
|
|
7945
8063
|
bid_user: string;
|
|
7946
8064
|
bid_user_order_id: string;
|
|
7947
|
-
bid_user_ordinal_order_id: string;
|
|
7948
8065
|
bid_total: number;
|
|
7949
8066
|
bid_amount: number;
|
|
7950
8067
|
bid_fee: number;
|
|
@@ -7952,12 +8069,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7952
8069
|
bid_referrer_fee: number;
|
|
7953
8070
|
ask_user: string;
|
|
7954
8071
|
ask_user_order_id: string;
|
|
7955
|
-
ask_user_ordinal_order_id: string;
|
|
7956
8072
|
ask_total: number;
|
|
7957
8073
|
ask_amount: number;
|
|
7958
8074
|
ask_fee: number;
|
|
7959
8075
|
ask_referrer: string;
|
|
7960
8076
|
ask_referrer_fee: number;
|
|
8077
|
+
bid_user_ordinal_order_id: string;
|
|
8078
|
+
ask_user_ordinal_order_id: string;
|
|
7961
8079
|
}, {
|
|
7962
8080
|
price: number;
|
|
7963
8081
|
block_time: string;
|
|
@@ -7968,7 +8086,6 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7968
8086
|
trade_id: string;
|
|
7969
8087
|
bid_user: string;
|
|
7970
8088
|
bid_user_order_id: string;
|
|
7971
|
-
bid_user_ordinal_order_id: string;
|
|
7972
8089
|
bid_total: number;
|
|
7973
8090
|
bid_amount: number;
|
|
7974
8091
|
bid_fee: number;
|
|
@@ -7976,12 +8093,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7976
8093
|
bid_referrer_fee: number;
|
|
7977
8094
|
ask_user: string;
|
|
7978
8095
|
ask_user_order_id: string;
|
|
7979
|
-
ask_user_ordinal_order_id: string;
|
|
7980
8096
|
ask_total: number;
|
|
7981
8097
|
ask_amount: number;
|
|
7982
8098
|
ask_fee: number;
|
|
7983
8099
|
ask_referrer: string;
|
|
7984
8100
|
ask_referrer_fee: number;
|
|
8101
|
+
bid_user_ordinal_order_id: string;
|
|
8102
|
+
ask_user_ordinal_order_id: string;
|
|
7985
8103
|
}>, "many">;
|
|
7986
8104
|
}, "strip", z.ZodTypeAny, {
|
|
7987
8105
|
data: {
|
|
@@ -7994,7 +8112,6 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
7994
8112
|
trade_id: string;
|
|
7995
8113
|
bid_user: string;
|
|
7996
8114
|
bid_user_order_id: string;
|
|
7997
|
-
bid_user_ordinal_order_id: string;
|
|
7998
8115
|
bid_total: number;
|
|
7999
8116
|
bid_amount: number;
|
|
8000
8117
|
bid_fee: number;
|
|
@@ -8002,12 +8119,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
8002
8119
|
bid_referrer_fee: number;
|
|
8003
8120
|
ask_user: string;
|
|
8004
8121
|
ask_user_order_id: string;
|
|
8005
|
-
ask_user_ordinal_order_id: string;
|
|
8006
8122
|
ask_total: number;
|
|
8007
8123
|
ask_amount: number;
|
|
8008
8124
|
ask_fee: number;
|
|
8009
8125
|
ask_referrer: string;
|
|
8010
8126
|
ask_referrer_fee: number;
|
|
8127
|
+
bid_user_ordinal_order_id: string;
|
|
8128
|
+
ask_user_ordinal_order_id: string;
|
|
8011
8129
|
}[];
|
|
8012
8130
|
count: number;
|
|
8013
8131
|
sync: number;
|
|
@@ -8022,7 +8140,6 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
8022
8140
|
trade_id: string;
|
|
8023
8141
|
bid_user: string;
|
|
8024
8142
|
bid_user_order_id: string;
|
|
8025
|
-
bid_user_ordinal_order_id: string;
|
|
8026
8143
|
bid_total: number;
|
|
8027
8144
|
bid_amount: number;
|
|
8028
8145
|
bid_fee: number;
|
|
@@ -8030,12 +8147,13 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
8030
8147
|
bid_referrer_fee: number;
|
|
8031
8148
|
ask_user: string;
|
|
8032
8149
|
ask_user_order_id: string;
|
|
8033
|
-
ask_user_ordinal_order_id: string;
|
|
8034
8150
|
ask_total: number;
|
|
8035
8151
|
ask_amount: number;
|
|
8036
8152
|
ask_fee: number;
|
|
8037
8153
|
ask_referrer: string;
|
|
8038
8154
|
ask_referrer_fee: number;
|
|
8155
|
+
bid_user_ordinal_order_id: string;
|
|
8156
|
+
ask_user_ordinal_order_id: string;
|
|
8039
8157
|
}[];
|
|
8040
8158
|
count: number;
|
|
8041
8159
|
sync: number;
|
|
@@ -8259,7 +8377,7 @@ declare const getLeaderboardResponseParser: z.ZodObject<{
|
|
|
8259
8377
|
}>;
|
|
8260
8378
|
declare type GetLeaderboardResponseParser = z.infer<typeof getLeaderboardResponseParser>;
|
|
8261
8379
|
/**
|
|
8262
|
-
* History
|
|
8380
|
+
* History Transaction
|
|
8263
8381
|
*/
|
|
8264
8382
|
declare const dbHistoryTransactionParser: z.ZodObject<{
|
|
8265
8383
|
seq: z.ZodString;
|
|
@@ -8269,14 +8387,14 @@ declare const dbHistoryTransactionParser: z.ZodObject<{
|
|
|
8269
8387
|
trace: z.ZodAny;
|
|
8270
8388
|
}, "strip", z.ZodTypeAny, {
|
|
8271
8389
|
block_time: string;
|
|
8272
|
-
block_num: string;
|
|
8273
8390
|
seq: string;
|
|
8391
|
+
block_num: string;
|
|
8274
8392
|
trx_id: string;
|
|
8275
8393
|
trace?: any;
|
|
8276
8394
|
}, {
|
|
8277
8395
|
block_time: string;
|
|
8278
|
-
block_num: string;
|
|
8279
8396
|
seq: string;
|
|
8397
|
+
block_num: string;
|
|
8280
8398
|
trx_id: string;
|
|
8281
8399
|
trace?: any;
|
|
8282
8400
|
}>;
|
|
@@ -9413,8 +9531,8 @@ declare const historyTransactionParser: z.ZodObject<{
|
|
|
9413
9531
|
}>;
|
|
9414
9532
|
}, "strip", z.ZodTypeAny, {
|
|
9415
9533
|
block_time: string;
|
|
9416
|
-
block_num: string;
|
|
9417
9534
|
seq: string;
|
|
9535
|
+
block_num: string;
|
|
9418
9536
|
trx_id: string;
|
|
9419
9537
|
trace: {
|
|
9420
9538
|
block_num: string;
|
|
@@ -9487,8 +9605,8 @@ declare const historyTransactionParser: z.ZodObject<{
|
|
|
9487
9605
|
};
|
|
9488
9606
|
}, {
|
|
9489
9607
|
block_time: string;
|
|
9490
|
-
block_num: string;
|
|
9491
9608
|
seq: string;
|
|
9609
|
+
block_num: string;
|
|
9492
9610
|
trx_id: string;
|
|
9493
9611
|
trace: {
|
|
9494
9612
|
block_num: string;
|
|
@@ -10062,8 +10180,8 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10062
10180
|
}>;
|
|
10063
10181
|
}, "strip", z.ZodTypeAny, {
|
|
10064
10182
|
block_time: string;
|
|
10065
|
-
block_num: string;
|
|
10066
10183
|
seq: string;
|
|
10184
|
+
block_num: string;
|
|
10067
10185
|
trx_id: string;
|
|
10068
10186
|
trace: {
|
|
10069
10187
|
block_num: string;
|
|
@@ -10136,8 +10254,8 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10136
10254
|
};
|
|
10137
10255
|
}, {
|
|
10138
10256
|
block_time: string;
|
|
10139
|
-
block_num: string;
|
|
10140
10257
|
seq: string;
|
|
10258
|
+
block_num: string;
|
|
10141
10259
|
trx_id: string;
|
|
10142
10260
|
trace: {
|
|
10143
10261
|
block_num: string;
|
|
@@ -10212,8 +10330,8 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10212
10330
|
}, "strip", z.ZodTypeAny, {
|
|
10213
10331
|
data: {
|
|
10214
10332
|
block_time: string;
|
|
10215
|
-
block_num: string;
|
|
10216
10333
|
seq: string;
|
|
10334
|
+
block_num: string;
|
|
10217
10335
|
trx_id: string;
|
|
10218
10336
|
trace: {
|
|
10219
10337
|
block_num: string;
|
|
@@ -10288,8 +10406,8 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10288
10406
|
}, {
|
|
10289
10407
|
data: {
|
|
10290
10408
|
block_time: string;
|
|
10291
|
-
block_num: string;
|
|
10292
10409
|
seq: string;
|
|
10410
|
+
block_num: string;
|
|
10293
10411
|
trx_id: string;
|
|
10294
10412
|
trace: {
|
|
10295
10413
|
block_num: string;
|
|
@@ -10364,6 +10482,651 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10364
10482
|
}>;
|
|
10365
10483
|
declare type GetHistoryTransaction = z.input<typeof getHistoryTransactionResponseParser>;
|
|
10366
10484
|
declare type GetHistoryTransactionParsed = z.output<typeof getHistoryTransactionResponseParser>;
|
|
10485
|
+
/**
|
|
10486
|
+
* History Actions
|
|
10487
|
+
*/
|
|
10488
|
+
declare const getHistoryActionsParser: z.ZodObject<{
|
|
10489
|
+
account: z.ZodString;
|
|
10490
|
+
contract_filters: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>, string[], string | string[] | undefined>;
|
|
10491
|
+
account_seq_from: z.ZodOptional<z.ZodNumber>;
|
|
10492
|
+
account_seq_to: z.ZodOptional<z.ZodNumber>;
|
|
10493
|
+
date_from: z.ZodOptional<z.ZodString>;
|
|
10494
|
+
date_to: z.ZodOptional<z.ZodString>;
|
|
10495
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
10496
|
+
limit: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, number | undefined>;
|
|
10497
|
+
}, "strip", z.ZodTypeAny, {
|
|
10498
|
+
account: string;
|
|
10499
|
+
limit: number;
|
|
10500
|
+
contract_filters: string[];
|
|
10501
|
+
account_seq_from?: number | undefined;
|
|
10502
|
+
account_seq_to?: number | undefined;
|
|
10503
|
+
date_from?: string | undefined;
|
|
10504
|
+
date_to?: string | undefined;
|
|
10505
|
+
direction?: string | undefined;
|
|
10506
|
+
}, {
|
|
10507
|
+
account: string;
|
|
10508
|
+
contract_filters?: string | string[] | undefined;
|
|
10509
|
+
account_seq_from?: number | undefined;
|
|
10510
|
+
account_seq_to?: number | undefined;
|
|
10511
|
+
date_from?: string | undefined;
|
|
10512
|
+
date_to?: string | undefined;
|
|
10513
|
+
direction?: string | undefined;
|
|
10514
|
+
limit?: number | undefined;
|
|
10515
|
+
}>;
|
|
10516
|
+
declare type GetHistoryActions = z.input<typeof getHistoryActionsParser>;
|
|
10517
|
+
declare type GetHistoryActionsParsed = z.output<typeof getHistoryActionsParser>;
|
|
10518
|
+
declare const historyActionParser: z.ZodObject<{
|
|
10519
|
+
block_num: z.ZodNumber;
|
|
10520
|
+
block_time: z.ZodString;
|
|
10521
|
+
trx_id: z.ZodString;
|
|
10522
|
+
account_action_seq: z.ZodNumber;
|
|
10523
|
+
global_action_seq: z.ZodNumber;
|
|
10524
|
+
action_trace: z.ZodObject<{
|
|
10525
|
+
action_ordinal: z.ZodString;
|
|
10526
|
+
creator_action_ordinal: z.ZodString;
|
|
10527
|
+
receipt: z.ZodObject<{
|
|
10528
|
+
receiver: z.ZodString;
|
|
10529
|
+
act_digest: z.ZodString;
|
|
10530
|
+
global_sequence: z.ZodString;
|
|
10531
|
+
recv_sequence: z.ZodString;
|
|
10532
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
10533
|
+
account: z.ZodString;
|
|
10534
|
+
sequence: z.ZodString;
|
|
10535
|
+
}, "strip", z.ZodTypeAny, {
|
|
10536
|
+
account: string;
|
|
10537
|
+
sequence: string;
|
|
10538
|
+
}, {
|
|
10539
|
+
account: string;
|
|
10540
|
+
sequence: string;
|
|
10541
|
+
}>, "many">;
|
|
10542
|
+
code_sequence: z.ZodString;
|
|
10543
|
+
abi_sequence: z.ZodString;
|
|
10544
|
+
}, "strip", z.ZodTypeAny, {
|
|
10545
|
+
receiver: string;
|
|
10546
|
+
act_digest: string;
|
|
10547
|
+
global_sequence: string;
|
|
10548
|
+
recv_sequence: string;
|
|
10549
|
+
auth_sequence: {
|
|
10550
|
+
account: string;
|
|
10551
|
+
sequence: string;
|
|
10552
|
+
}[];
|
|
10553
|
+
code_sequence: string;
|
|
10554
|
+
abi_sequence: string;
|
|
10555
|
+
}, {
|
|
10556
|
+
receiver: string;
|
|
10557
|
+
act_digest: string;
|
|
10558
|
+
global_sequence: string;
|
|
10559
|
+
recv_sequence: string;
|
|
10560
|
+
auth_sequence: {
|
|
10561
|
+
account: string;
|
|
10562
|
+
sequence: string;
|
|
10563
|
+
}[];
|
|
10564
|
+
code_sequence: string;
|
|
10565
|
+
abi_sequence: string;
|
|
10566
|
+
}>;
|
|
10567
|
+
receiver: z.ZodString;
|
|
10568
|
+
act: z.ZodObject<{
|
|
10569
|
+
account: z.ZodString;
|
|
10570
|
+
name: z.ZodString;
|
|
10571
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
10572
|
+
actor: z.ZodString;
|
|
10573
|
+
permission: z.ZodString;
|
|
10574
|
+
}, "strip", z.ZodTypeAny, {
|
|
10575
|
+
actor: string;
|
|
10576
|
+
permission: string;
|
|
10577
|
+
}, {
|
|
10578
|
+
actor: string;
|
|
10579
|
+
permission: string;
|
|
10580
|
+
}>, "many">;
|
|
10581
|
+
data: z.ZodAny;
|
|
10582
|
+
}, "strip", z.ZodTypeAny, {
|
|
10583
|
+
account: string;
|
|
10584
|
+
name: string;
|
|
10585
|
+
authorization: {
|
|
10586
|
+
actor: string;
|
|
10587
|
+
permission: string;
|
|
10588
|
+
}[];
|
|
10589
|
+
data?: any;
|
|
10590
|
+
}, {
|
|
10591
|
+
account: string;
|
|
10592
|
+
name: string;
|
|
10593
|
+
authorization: {
|
|
10594
|
+
actor: string;
|
|
10595
|
+
permission: string;
|
|
10596
|
+
}[];
|
|
10597
|
+
data?: any;
|
|
10598
|
+
}>;
|
|
10599
|
+
context_free: z.ZodString;
|
|
10600
|
+
elapsed: z.ZodString;
|
|
10601
|
+
console: z.ZodString;
|
|
10602
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
10603
|
+
account: z.ZodString;
|
|
10604
|
+
delta: z.ZodString;
|
|
10605
|
+
}, "strip", z.ZodTypeAny, {
|
|
10606
|
+
account: string;
|
|
10607
|
+
delta: string;
|
|
10608
|
+
}, {
|
|
10609
|
+
account: string;
|
|
10610
|
+
delta: string;
|
|
10611
|
+
}>, "many">;
|
|
10612
|
+
except: z.ZodString;
|
|
10613
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
10614
|
+
return_value: z.ZodString;
|
|
10615
|
+
}, "strip", z.ZodTypeAny, {
|
|
10616
|
+
receiver: string;
|
|
10617
|
+
action_ordinal: string;
|
|
10618
|
+
creator_action_ordinal: string;
|
|
10619
|
+
receipt: {
|
|
10620
|
+
receiver: string;
|
|
10621
|
+
act_digest: string;
|
|
10622
|
+
global_sequence: string;
|
|
10623
|
+
recv_sequence: string;
|
|
10624
|
+
auth_sequence: {
|
|
10625
|
+
account: string;
|
|
10626
|
+
sequence: string;
|
|
10627
|
+
}[];
|
|
10628
|
+
code_sequence: string;
|
|
10629
|
+
abi_sequence: string;
|
|
10630
|
+
};
|
|
10631
|
+
act: {
|
|
10632
|
+
account: string;
|
|
10633
|
+
name: string;
|
|
10634
|
+
authorization: {
|
|
10635
|
+
actor: string;
|
|
10636
|
+
permission: string;
|
|
10637
|
+
}[];
|
|
10638
|
+
data?: any;
|
|
10639
|
+
};
|
|
10640
|
+
context_free: string;
|
|
10641
|
+
elapsed: string;
|
|
10642
|
+
console: string;
|
|
10643
|
+
account_ram_deltas: {
|
|
10644
|
+
account: string;
|
|
10645
|
+
delta: string;
|
|
10646
|
+
}[];
|
|
10647
|
+
except: string;
|
|
10648
|
+
error_code: string | null;
|
|
10649
|
+
return_value: string;
|
|
10650
|
+
}, {
|
|
10651
|
+
receiver: string;
|
|
10652
|
+
action_ordinal: string;
|
|
10653
|
+
creator_action_ordinal: string;
|
|
10654
|
+
receipt: {
|
|
10655
|
+
receiver: string;
|
|
10656
|
+
act_digest: string;
|
|
10657
|
+
global_sequence: string;
|
|
10658
|
+
recv_sequence: string;
|
|
10659
|
+
auth_sequence: {
|
|
10660
|
+
account: string;
|
|
10661
|
+
sequence: string;
|
|
10662
|
+
}[];
|
|
10663
|
+
code_sequence: string;
|
|
10664
|
+
abi_sequence: string;
|
|
10665
|
+
};
|
|
10666
|
+
act: {
|
|
10667
|
+
account: string;
|
|
10668
|
+
name: string;
|
|
10669
|
+
authorization: {
|
|
10670
|
+
actor: string;
|
|
10671
|
+
permission: string;
|
|
10672
|
+
}[];
|
|
10673
|
+
data?: any;
|
|
10674
|
+
};
|
|
10675
|
+
context_free: string;
|
|
10676
|
+
elapsed: string;
|
|
10677
|
+
console: string;
|
|
10678
|
+
account_ram_deltas: {
|
|
10679
|
+
account: string;
|
|
10680
|
+
delta: string;
|
|
10681
|
+
}[];
|
|
10682
|
+
except: string;
|
|
10683
|
+
error_code: string | null;
|
|
10684
|
+
return_value: string;
|
|
10685
|
+
}>;
|
|
10686
|
+
irreversible: z.ZodBoolean;
|
|
10687
|
+
}, "strip", z.ZodTypeAny, {
|
|
10688
|
+
block_time: string;
|
|
10689
|
+
block_num: number;
|
|
10690
|
+
trx_id: string;
|
|
10691
|
+
irreversible: boolean;
|
|
10692
|
+
account_action_seq: number;
|
|
10693
|
+
global_action_seq: number;
|
|
10694
|
+
action_trace: {
|
|
10695
|
+
receiver: string;
|
|
10696
|
+
action_ordinal: string;
|
|
10697
|
+
creator_action_ordinal: string;
|
|
10698
|
+
receipt: {
|
|
10699
|
+
receiver: string;
|
|
10700
|
+
act_digest: string;
|
|
10701
|
+
global_sequence: string;
|
|
10702
|
+
recv_sequence: string;
|
|
10703
|
+
auth_sequence: {
|
|
10704
|
+
account: string;
|
|
10705
|
+
sequence: string;
|
|
10706
|
+
}[];
|
|
10707
|
+
code_sequence: string;
|
|
10708
|
+
abi_sequence: string;
|
|
10709
|
+
};
|
|
10710
|
+
act: {
|
|
10711
|
+
account: string;
|
|
10712
|
+
name: string;
|
|
10713
|
+
authorization: {
|
|
10714
|
+
actor: string;
|
|
10715
|
+
permission: string;
|
|
10716
|
+
}[];
|
|
10717
|
+
data?: any;
|
|
10718
|
+
};
|
|
10719
|
+
context_free: string;
|
|
10720
|
+
elapsed: string;
|
|
10721
|
+
console: string;
|
|
10722
|
+
account_ram_deltas: {
|
|
10723
|
+
account: string;
|
|
10724
|
+
delta: string;
|
|
10725
|
+
}[];
|
|
10726
|
+
except: string;
|
|
10727
|
+
error_code: string | null;
|
|
10728
|
+
return_value: string;
|
|
10729
|
+
};
|
|
10730
|
+
}, {
|
|
10731
|
+
block_time: string;
|
|
10732
|
+
block_num: number;
|
|
10733
|
+
trx_id: string;
|
|
10734
|
+
irreversible: boolean;
|
|
10735
|
+
account_action_seq: number;
|
|
10736
|
+
global_action_seq: number;
|
|
10737
|
+
action_trace: {
|
|
10738
|
+
receiver: string;
|
|
10739
|
+
action_ordinal: string;
|
|
10740
|
+
creator_action_ordinal: string;
|
|
10741
|
+
receipt: {
|
|
10742
|
+
receiver: string;
|
|
10743
|
+
act_digest: string;
|
|
10744
|
+
global_sequence: string;
|
|
10745
|
+
recv_sequence: string;
|
|
10746
|
+
auth_sequence: {
|
|
10747
|
+
account: string;
|
|
10748
|
+
sequence: string;
|
|
10749
|
+
}[];
|
|
10750
|
+
code_sequence: string;
|
|
10751
|
+
abi_sequence: string;
|
|
10752
|
+
};
|
|
10753
|
+
act: {
|
|
10754
|
+
account: string;
|
|
10755
|
+
name: string;
|
|
10756
|
+
authorization: {
|
|
10757
|
+
actor: string;
|
|
10758
|
+
permission: string;
|
|
10759
|
+
}[];
|
|
10760
|
+
data?: any;
|
|
10761
|
+
};
|
|
10762
|
+
context_free: string;
|
|
10763
|
+
elapsed: string;
|
|
10764
|
+
console: string;
|
|
10765
|
+
account_ram_deltas: {
|
|
10766
|
+
account: string;
|
|
10767
|
+
delta: string;
|
|
10768
|
+
}[];
|
|
10769
|
+
except: string;
|
|
10770
|
+
error_code: string | null;
|
|
10771
|
+
return_value: string;
|
|
10772
|
+
};
|
|
10773
|
+
}>;
|
|
10774
|
+
declare type HistoryAction = z.infer<typeof historyActionParser>;
|
|
10775
|
+
declare const getHistoryActionsResponseParser: z.ZodObject<{
|
|
10776
|
+
sync: z.ZodNumber;
|
|
10777
|
+
last_irreversible_block_num: z.ZodNumber;
|
|
10778
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10779
|
+
block_num: z.ZodNumber;
|
|
10780
|
+
block_time: z.ZodString;
|
|
10781
|
+
trx_id: z.ZodString;
|
|
10782
|
+
account_action_seq: z.ZodNumber;
|
|
10783
|
+
global_action_seq: z.ZodNumber;
|
|
10784
|
+
action_trace: z.ZodObject<{
|
|
10785
|
+
action_ordinal: z.ZodString;
|
|
10786
|
+
creator_action_ordinal: z.ZodString;
|
|
10787
|
+
receipt: z.ZodObject<{
|
|
10788
|
+
receiver: z.ZodString;
|
|
10789
|
+
act_digest: z.ZodString;
|
|
10790
|
+
global_sequence: z.ZodString;
|
|
10791
|
+
recv_sequence: z.ZodString;
|
|
10792
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
10793
|
+
account: z.ZodString;
|
|
10794
|
+
sequence: z.ZodString;
|
|
10795
|
+
}, "strip", z.ZodTypeAny, {
|
|
10796
|
+
account: string;
|
|
10797
|
+
sequence: string;
|
|
10798
|
+
}, {
|
|
10799
|
+
account: string;
|
|
10800
|
+
sequence: string;
|
|
10801
|
+
}>, "many">;
|
|
10802
|
+
code_sequence: z.ZodString;
|
|
10803
|
+
abi_sequence: z.ZodString;
|
|
10804
|
+
}, "strip", z.ZodTypeAny, {
|
|
10805
|
+
receiver: string;
|
|
10806
|
+
act_digest: string;
|
|
10807
|
+
global_sequence: string;
|
|
10808
|
+
recv_sequence: string;
|
|
10809
|
+
auth_sequence: {
|
|
10810
|
+
account: string;
|
|
10811
|
+
sequence: string;
|
|
10812
|
+
}[];
|
|
10813
|
+
code_sequence: string;
|
|
10814
|
+
abi_sequence: string;
|
|
10815
|
+
}, {
|
|
10816
|
+
receiver: string;
|
|
10817
|
+
act_digest: string;
|
|
10818
|
+
global_sequence: string;
|
|
10819
|
+
recv_sequence: string;
|
|
10820
|
+
auth_sequence: {
|
|
10821
|
+
account: string;
|
|
10822
|
+
sequence: string;
|
|
10823
|
+
}[];
|
|
10824
|
+
code_sequence: string;
|
|
10825
|
+
abi_sequence: string;
|
|
10826
|
+
}>;
|
|
10827
|
+
receiver: z.ZodString;
|
|
10828
|
+
act: z.ZodObject<{
|
|
10829
|
+
account: z.ZodString;
|
|
10830
|
+
name: z.ZodString;
|
|
10831
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
10832
|
+
actor: z.ZodString;
|
|
10833
|
+
permission: z.ZodString;
|
|
10834
|
+
}, "strip", z.ZodTypeAny, {
|
|
10835
|
+
actor: string;
|
|
10836
|
+
permission: string;
|
|
10837
|
+
}, {
|
|
10838
|
+
actor: string;
|
|
10839
|
+
permission: string;
|
|
10840
|
+
}>, "many">;
|
|
10841
|
+
data: z.ZodAny;
|
|
10842
|
+
}, "strip", z.ZodTypeAny, {
|
|
10843
|
+
account: string;
|
|
10844
|
+
name: string;
|
|
10845
|
+
authorization: {
|
|
10846
|
+
actor: string;
|
|
10847
|
+
permission: string;
|
|
10848
|
+
}[];
|
|
10849
|
+
data?: any;
|
|
10850
|
+
}, {
|
|
10851
|
+
account: string;
|
|
10852
|
+
name: string;
|
|
10853
|
+
authorization: {
|
|
10854
|
+
actor: string;
|
|
10855
|
+
permission: string;
|
|
10856
|
+
}[];
|
|
10857
|
+
data?: any;
|
|
10858
|
+
}>;
|
|
10859
|
+
context_free: z.ZodString;
|
|
10860
|
+
elapsed: z.ZodString;
|
|
10861
|
+
console: z.ZodString;
|
|
10862
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
10863
|
+
account: z.ZodString;
|
|
10864
|
+
delta: z.ZodString;
|
|
10865
|
+
}, "strip", z.ZodTypeAny, {
|
|
10866
|
+
account: string;
|
|
10867
|
+
delta: string;
|
|
10868
|
+
}, {
|
|
10869
|
+
account: string;
|
|
10870
|
+
delta: string;
|
|
10871
|
+
}>, "many">;
|
|
10872
|
+
except: z.ZodString;
|
|
10873
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
10874
|
+
return_value: z.ZodString;
|
|
10875
|
+
}, "strip", z.ZodTypeAny, {
|
|
10876
|
+
receiver: string;
|
|
10877
|
+
action_ordinal: string;
|
|
10878
|
+
creator_action_ordinal: string;
|
|
10879
|
+
receipt: {
|
|
10880
|
+
receiver: string;
|
|
10881
|
+
act_digest: string;
|
|
10882
|
+
global_sequence: string;
|
|
10883
|
+
recv_sequence: string;
|
|
10884
|
+
auth_sequence: {
|
|
10885
|
+
account: string;
|
|
10886
|
+
sequence: string;
|
|
10887
|
+
}[];
|
|
10888
|
+
code_sequence: string;
|
|
10889
|
+
abi_sequence: string;
|
|
10890
|
+
};
|
|
10891
|
+
act: {
|
|
10892
|
+
account: string;
|
|
10893
|
+
name: string;
|
|
10894
|
+
authorization: {
|
|
10895
|
+
actor: string;
|
|
10896
|
+
permission: string;
|
|
10897
|
+
}[];
|
|
10898
|
+
data?: any;
|
|
10899
|
+
};
|
|
10900
|
+
context_free: string;
|
|
10901
|
+
elapsed: string;
|
|
10902
|
+
console: string;
|
|
10903
|
+
account_ram_deltas: {
|
|
10904
|
+
account: string;
|
|
10905
|
+
delta: string;
|
|
10906
|
+
}[];
|
|
10907
|
+
except: string;
|
|
10908
|
+
error_code: string | null;
|
|
10909
|
+
return_value: string;
|
|
10910
|
+
}, {
|
|
10911
|
+
receiver: string;
|
|
10912
|
+
action_ordinal: string;
|
|
10913
|
+
creator_action_ordinal: string;
|
|
10914
|
+
receipt: {
|
|
10915
|
+
receiver: string;
|
|
10916
|
+
act_digest: string;
|
|
10917
|
+
global_sequence: string;
|
|
10918
|
+
recv_sequence: string;
|
|
10919
|
+
auth_sequence: {
|
|
10920
|
+
account: string;
|
|
10921
|
+
sequence: string;
|
|
10922
|
+
}[];
|
|
10923
|
+
code_sequence: string;
|
|
10924
|
+
abi_sequence: string;
|
|
10925
|
+
};
|
|
10926
|
+
act: {
|
|
10927
|
+
account: string;
|
|
10928
|
+
name: string;
|
|
10929
|
+
authorization: {
|
|
10930
|
+
actor: string;
|
|
10931
|
+
permission: string;
|
|
10932
|
+
}[];
|
|
10933
|
+
data?: any;
|
|
10934
|
+
};
|
|
10935
|
+
context_free: string;
|
|
10936
|
+
elapsed: string;
|
|
10937
|
+
console: string;
|
|
10938
|
+
account_ram_deltas: {
|
|
10939
|
+
account: string;
|
|
10940
|
+
delta: string;
|
|
10941
|
+
}[];
|
|
10942
|
+
except: string;
|
|
10943
|
+
error_code: string | null;
|
|
10944
|
+
return_value: string;
|
|
10945
|
+
}>;
|
|
10946
|
+
irreversible: z.ZodBoolean;
|
|
10947
|
+
}, "strip", z.ZodTypeAny, {
|
|
10948
|
+
block_time: string;
|
|
10949
|
+
block_num: number;
|
|
10950
|
+
trx_id: string;
|
|
10951
|
+
irreversible: boolean;
|
|
10952
|
+
account_action_seq: number;
|
|
10953
|
+
global_action_seq: number;
|
|
10954
|
+
action_trace: {
|
|
10955
|
+
receiver: string;
|
|
10956
|
+
action_ordinal: string;
|
|
10957
|
+
creator_action_ordinal: string;
|
|
10958
|
+
receipt: {
|
|
10959
|
+
receiver: string;
|
|
10960
|
+
act_digest: string;
|
|
10961
|
+
global_sequence: string;
|
|
10962
|
+
recv_sequence: string;
|
|
10963
|
+
auth_sequence: {
|
|
10964
|
+
account: string;
|
|
10965
|
+
sequence: string;
|
|
10966
|
+
}[];
|
|
10967
|
+
code_sequence: string;
|
|
10968
|
+
abi_sequence: string;
|
|
10969
|
+
};
|
|
10970
|
+
act: {
|
|
10971
|
+
account: string;
|
|
10972
|
+
name: string;
|
|
10973
|
+
authorization: {
|
|
10974
|
+
actor: string;
|
|
10975
|
+
permission: string;
|
|
10976
|
+
}[];
|
|
10977
|
+
data?: any;
|
|
10978
|
+
};
|
|
10979
|
+
context_free: string;
|
|
10980
|
+
elapsed: string;
|
|
10981
|
+
console: string;
|
|
10982
|
+
account_ram_deltas: {
|
|
10983
|
+
account: string;
|
|
10984
|
+
delta: string;
|
|
10985
|
+
}[];
|
|
10986
|
+
except: string;
|
|
10987
|
+
error_code: string | null;
|
|
10988
|
+
return_value: string;
|
|
10989
|
+
};
|
|
10990
|
+
}, {
|
|
10991
|
+
block_time: string;
|
|
10992
|
+
block_num: number;
|
|
10993
|
+
trx_id: string;
|
|
10994
|
+
irreversible: boolean;
|
|
10995
|
+
account_action_seq: number;
|
|
10996
|
+
global_action_seq: number;
|
|
10997
|
+
action_trace: {
|
|
10998
|
+
receiver: string;
|
|
10999
|
+
action_ordinal: string;
|
|
11000
|
+
creator_action_ordinal: string;
|
|
11001
|
+
receipt: {
|
|
11002
|
+
receiver: string;
|
|
11003
|
+
act_digest: string;
|
|
11004
|
+
global_sequence: string;
|
|
11005
|
+
recv_sequence: string;
|
|
11006
|
+
auth_sequence: {
|
|
11007
|
+
account: string;
|
|
11008
|
+
sequence: string;
|
|
11009
|
+
}[];
|
|
11010
|
+
code_sequence: string;
|
|
11011
|
+
abi_sequence: string;
|
|
11012
|
+
};
|
|
11013
|
+
act: {
|
|
11014
|
+
account: string;
|
|
11015
|
+
name: string;
|
|
11016
|
+
authorization: {
|
|
11017
|
+
actor: string;
|
|
11018
|
+
permission: string;
|
|
11019
|
+
}[];
|
|
11020
|
+
data?: any;
|
|
11021
|
+
};
|
|
11022
|
+
context_free: string;
|
|
11023
|
+
elapsed: string;
|
|
11024
|
+
console: string;
|
|
11025
|
+
account_ram_deltas: {
|
|
11026
|
+
account: string;
|
|
11027
|
+
delta: string;
|
|
11028
|
+
}[];
|
|
11029
|
+
except: string;
|
|
11030
|
+
error_code: string | null;
|
|
11031
|
+
return_value: string;
|
|
11032
|
+
};
|
|
11033
|
+
}>, "many">;
|
|
11034
|
+
}, "strip", z.ZodTypeAny, {
|
|
11035
|
+
data: {
|
|
11036
|
+
block_time: string;
|
|
11037
|
+
block_num: number;
|
|
11038
|
+
trx_id: string;
|
|
11039
|
+
irreversible: boolean;
|
|
11040
|
+
account_action_seq: number;
|
|
11041
|
+
global_action_seq: number;
|
|
11042
|
+
action_trace: {
|
|
11043
|
+
receiver: string;
|
|
11044
|
+
action_ordinal: string;
|
|
11045
|
+
creator_action_ordinal: string;
|
|
11046
|
+
receipt: {
|
|
11047
|
+
receiver: string;
|
|
11048
|
+
act_digest: string;
|
|
11049
|
+
global_sequence: string;
|
|
11050
|
+
recv_sequence: string;
|
|
11051
|
+
auth_sequence: {
|
|
11052
|
+
account: string;
|
|
11053
|
+
sequence: string;
|
|
11054
|
+
}[];
|
|
11055
|
+
code_sequence: string;
|
|
11056
|
+
abi_sequence: string;
|
|
11057
|
+
};
|
|
11058
|
+
act: {
|
|
11059
|
+
account: string;
|
|
11060
|
+
name: string;
|
|
11061
|
+
authorization: {
|
|
11062
|
+
actor: string;
|
|
11063
|
+
permission: string;
|
|
11064
|
+
}[];
|
|
11065
|
+
data?: any;
|
|
11066
|
+
};
|
|
11067
|
+
context_free: string;
|
|
11068
|
+
elapsed: string;
|
|
11069
|
+
console: string;
|
|
11070
|
+
account_ram_deltas: {
|
|
11071
|
+
account: string;
|
|
11072
|
+
delta: string;
|
|
11073
|
+
}[];
|
|
11074
|
+
except: string;
|
|
11075
|
+
error_code: string | null;
|
|
11076
|
+
return_value: string;
|
|
11077
|
+
};
|
|
11078
|
+
}[];
|
|
11079
|
+
sync: number;
|
|
11080
|
+
last_irreversible_block_num: number;
|
|
11081
|
+
}, {
|
|
11082
|
+
data: {
|
|
11083
|
+
block_time: string;
|
|
11084
|
+
block_num: number;
|
|
11085
|
+
trx_id: string;
|
|
11086
|
+
irreversible: boolean;
|
|
11087
|
+
account_action_seq: number;
|
|
11088
|
+
global_action_seq: number;
|
|
11089
|
+
action_trace: {
|
|
11090
|
+
receiver: string;
|
|
11091
|
+
action_ordinal: string;
|
|
11092
|
+
creator_action_ordinal: string;
|
|
11093
|
+
receipt: {
|
|
11094
|
+
receiver: string;
|
|
11095
|
+
act_digest: string;
|
|
11096
|
+
global_sequence: string;
|
|
11097
|
+
recv_sequence: string;
|
|
11098
|
+
auth_sequence: {
|
|
11099
|
+
account: string;
|
|
11100
|
+
sequence: string;
|
|
11101
|
+
}[];
|
|
11102
|
+
code_sequence: string;
|
|
11103
|
+
abi_sequence: string;
|
|
11104
|
+
};
|
|
11105
|
+
act: {
|
|
11106
|
+
account: string;
|
|
11107
|
+
name: string;
|
|
11108
|
+
authorization: {
|
|
11109
|
+
actor: string;
|
|
11110
|
+
permission: string;
|
|
11111
|
+
}[];
|
|
11112
|
+
data?: any;
|
|
11113
|
+
};
|
|
11114
|
+
context_free: string;
|
|
11115
|
+
elapsed: string;
|
|
11116
|
+
console: string;
|
|
11117
|
+
account_ram_deltas: {
|
|
11118
|
+
account: string;
|
|
11119
|
+
delta: string;
|
|
11120
|
+
}[];
|
|
11121
|
+
except: string;
|
|
11122
|
+
error_code: string | null;
|
|
11123
|
+
return_value: string;
|
|
11124
|
+
};
|
|
11125
|
+
}[];
|
|
11126
|
+
sync: number;
|
|
11127
|
+
last_irreversible_block_num: number;
|
|
11128
|
+
}>;
|
|
11129
|
+
declare type GetHistoryActionsResponse = z.infer<typeof getHistoryActionsResponseParser>;
|
|
10367
11130
|
/**
|
|
10368
11131
|
* Basic Types
|
|
10369
11132
|
*/
|
|
@@ -11409,4 +12172,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
|
11409
12172
|
}) => boolean;
|
|
11410
12173
|
declare const applyDiscountToFee: (fee: number, staked: number) => number;
|
|
11411
12174
|
|
|
11412
|
-
export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbHistoryTransaction, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponseParser, GetDepth, GetDepthParsed, GetDepthResponse, GetHistoryTransaction, GetHistoryTransactionParsed, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponseParser, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersParsed, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryParsed, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleParsed, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsParsed, GetReferralTotalsResponseParser, GetReferrals, GetReferralsParsed, GetReferralsResponseParser, GetSyncResponse, GetTradeHistory, GetTradeHistoryParsed, GetTradeHistoryResponse, GetTrades, GetTradesParsed, GetTradesResponseParser, Graph, HistoryAccountRamDelta, HistoryAct, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, Providers, Rate, RawPool, Referral, ReferralTotal, SerializeOrderParser, SerializeOrderResponse, Status, SubmitOrderParser, SubmitOrderResponse, Sync, TOPICS, Trade, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, Wallet, WithdrawBody, WithdrawBodyBaseAction, WithdrawHistoryMetalResponse, WithdrawHistoryMetalSwap, WithdrawMetalResponse, WithdrawalFeeQuote, Wrap, WrapSetConf, WrapStart, accountParser, accountRamDeltaParser, actParser, actionTraceParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, dbHistoryTransactionParser, dbMarketParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getHistoryTransactionResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyPartialParser, historyTransactionParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketParser, median, metalTransactionParser, ohlcvParser, openOrderParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, serializeOrderParser, serializeOrderResponseParser, similarChains, singleActionTransactionParser, submitOrderParser, submitOrderResponseParser, syncParser, traceParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
|
12175
|
+
export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbHistoryTransaction, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponseParser, GetDepth, GetDepthParsed, GetDepthResponse, GetHistoryActions, GetHistoryActionsParsed, GetHistoryActionsResponse, GetHistoryTransaction, GetHistoryTransactionParsed, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponseParser, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersParsed, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryParsed, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleParsed, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsParsed, GetReferralTotalsResponseParser, GetReferrals, GetReferralsParsed, GetReferralsResponseParser, GetSyncResponse, GetTradeHistory, GetTradeHistoryParsed, GetTradeHistoryResponse, GetTrades, GetTradesParsed, GetTradesResponseParser, Graph, HistoryAccountRamDelta, HistoryAct, HistoryAction, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OrderLog, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, Providers, Rate, RawPool, Referral, ReferralTotal, SerializeOrderParser, SerializeOrderResponse, Status, SubmitOrderParser, SubmitOrderResponse, Sync, TOPICS, Trade, TradeLog, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, Wallet, WithdrawBody, WithdrawBodyBaseAction, WithdrawHistoryMetalResponse, WithdrawHistoryMetalSwap, WithdrawMetalResponse, WithdrawalFeeQuote, Wrap, WrapSetConf, WrapStart, accountParser, accountRamDeltaParser, actParser, actionTraceParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, dbHistoryTransactionParser, dbMarketParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getHistoryActionsParser, getHistoryActionsResponseParser, getHistoryTransactionResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyActionParser, historyPartialParser, historyTransactionParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketParser, median, metalTransactionParser, ohlcvParser, openOrderParser, orderHistoryParser, orderLogParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, serializeOrderParser, serializeOrderResponseParser, similarChains, singleActionTransactionParser, submitOrderParser, submitOrderResponseParser, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|