@proton/wrap-constants 0.2.127 → 0.2.130

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 CHANGED
@@ -8377,7 +8377,7 @@ declare const getLeaderboardResponseParser: z.ZodObject<{
8377
8377
  }>;
8378
8378
  declare type GetLeaderboardResponseParser = z.infer<typeof getLeaderboardResponseParser>;
8379
8379
  /**
8380
- * History
8380
+ * History Transaction
8381
8381
  */
8382
8382
  declare const dbHistoryTransactionParser: z.ZodObject<{
8383
8383
  seq: z.ZodString;
@@ -10480,8 +10480,652 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10480
10480
  };
10481
10481
  } | null;
10482
10482
  }>;
10483
- declare type GetHistoryTransaction = z.input<typeof getHistoryTransactionResponseParser>;
10484
- declare type GetHistoryTransactionParsed = z.output<typeof getHistoryTransactionResponseParser>;
10483
+ declare type GetHistoryTransactionResponse = z.input<typeof getHistoryTransactionResponseParser>;
10484
+ /**
10485
+ * History Actions
10486
+ */
10487
+ declare const getHistoryActionsParser: z.ZodObject<{
10488
+ account: z.ZodString;
10489
+ contract_filters: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>, string[], string | string[] | undefined>;
10490
+ account_seq_from: z.ZodOptional<z.ZodNumber>;
10491
+ account_seq_to: z.ZodOptional<z.ZodNumber>;
10492
+ date_from: z.ZodOptional<z.ZodString>;
10493
+ date_to: z.ZodOptional<z.ZodString>;
10494
+ direction: z.ZodOptional<z.ZodString>;
10495
+ limit: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, number | undefined>;
10496
+ }, "strip", z.ZodTypeAny, {
10497
+ account: string;
10498
+ limit: number;
10499
+ contract_filters: string[];
10500
+ account_seq_from?: number | undefined;
10501
+ account_seq_to?: number | undefined;
10502
+ date_from?: string | undefined;
10503
+ date_to?: string | undefined;
10504
+ direction?: string | undefined;
10505
+ }, {
10506
+ account: string;
10507
+ contract_filters?: string | string[] | undefined;
10508
+ account_seq_from?: number | undefined;
10509
+ account_seq_to?: number | undefined;
10510
+ date_from?: string | undefined;
10511
+ date_to?: string | undefined;
10512
+ direction?: string | undefined;
10513
+ limit?: number | undefined;
10514
+ }>;
10515
+ declare type GetHistoryActions = z.input<typeof getHistoryActionsParser>;
10516
+ declare type GetHistoryActionsParsed = z.output<typeof getHistoryActionsParser>;
10517
+ declare const historyActionParser: z.ZodObject<{
10518
+ block_num: z.ZodNumber;
10519
+ block_time: z.ZodString;
10520
+ trx_id: z.ZodString;
10521
+ account_action_seq: z.ZodNumber;
10522
+ global_action_seq: z.ZodNumber;
10523
+ action_trace: z.ZodObject<{
10524
+ action_ordinal: z.ZodString;
10525
+ creator_action_ordinal: z.ZodString;
10526
+ receipt: z.ZodObject<{
10527
+ receiver: z.ZodString;
10528
+ act_digest: z.ZodString;
10529
+ global_sequence: z.ZodString;
10530
+ recv_sequence: z.ZodString;
10531
+ auth_sequence: z.ZodArray<z.ZodObject<{
10532
+ account: z.ZodString;
10533
+ sequence: z.ZodString;
10534
+ }, "strip", z.ZodTypeAny, {
10535
+ account: string;
10536
+ sequence: string;
10537
+ }, {
10538
+ account: string;
10539
+ sequence: string;
10540
+ }>, "many">;
10541
+ code_sequence: z.ZodString;
10542
+ abi_sequence: z.ZodString;
10543
+ }, "strip", z.ZodTypeAny, {
10544
+ receiver: string;
10545
+ act_digest: string;
10546
+ global_sequence: string;
10547
+ recv_sequence: string;
10548
+ auth_sequence: {
10549
+ account: string;
10550
+ sequence: string;
10551
+ }[];
10552
+ code_sequence: string;
10553
+ abi_sequence: string;
10554
+ }, {
10555
+ receiver: string;
10556
+ act_digest: string;
10557
+ global_sequence: string;
10558
+ recv_sequence: string;
10559
+ auth_sequence: {
10560
+ account: string;
10561
+ sequence: string;
10562
+ }[];
10563
+ code_sequence: string;
10564
+ abi_sequence: string;
10565
+ }>;
10566
+ receiver: z.ZodString;
10567
+ act: z.ZodObject<{
10568
+ account: z.ZodString;
10569
+ name: z.ZodString;
10570
+ authorization: z.ZodArray<z.ZodObject<{
10571
+ actor: z.ZodString;
10572
+ permission: z.ZodString;
10573
+ }, "strip", z.ZodTypeAny, {
10574
+ actor: string;
10575
+ permission: string;
10576
+ }, {
10577
+ actor: string;
10578
+ permission: string;
10579
+ }>, "many">;
10580
+ data: z.ZodAny;
10581
+ }, "strip", z.ZodTypeAny, {
10582
+ account: string;
10583
+ name: string;
10584
+ authorization: {
10585
+ actor: string;
10586
+ permission: string;
10587
+ }[];
10588
+ data?: any;
10589
+ }, {
10590
+ account: string;
10591
+ name: string;
10592
+ authorization: {
10593
+ actor: string;
10594
+ permission: string;
10595
+ }[];
10596
+ data?: any;
10597
+ }>;
10598
+ context_free: z.ZodString;
10599
+ elapsed: z.ZodString;
10600
+ console: z.ZodString;
10601
+ account_ram_deltas: z.ZodArray<z.ZodObject<{
10602
+ account: z.ZodString;
10603
+ delta: z.ZodString;
10604
+ }, "strip", z.ZodTypeAny, {
10605
+ account: string;
10606
+ delta: string;
10607
+ }, {
10608
+ account: string;
10609
+ delta: string;
10610
+ }>, "many">;
10611
+ except: z.ZodString;
10612
+ error_code: z.ZodNullable<z.ZodString>;
10613
+ return_value: z.ZodString;
10614
+ }, "strip", z.ZodTypeAny, {
10615
+ receiver: string;
10616
+ action_ordinal: string;
10617
+ creator_action_ordinal: string;
10618
+ receipt: {
10619
+ receiver: string;
10620
+ act_digest: string;
10621
+ global_sequence: string;
10622
+ recv_sequence: string;
10623
+ auth_sequence: {
10624
+ account: string;
10625
+ sequence: string;
10626
+ }[];
10627
+ code_sequence: string;
10628
+ abi_sequence: string;
10629
+ };
10630
+ act: {
10631
+ account: string;
10632
+ name: string;
10633
+ authorization: {
10634
+ actor: string;
10635
+ permission: string;
10636
+ }[];
10637
+ data?: any;
10638
+ };
10639
+ context_free: string;
10640
+ elapsed: string;
10641
+ console: string;
10642
+ account_ram_deltas: {
10643
+ account: string;
10644
+ delta: string;
10645
+ }[];
10646
+ except: string;
10647
+ error_code: string | null;
10648
+ return_value: string;
10649
+ }, {
10650
+ receiver: string;
10651
+ action_ordinal: string;
10652
+ creator_action_ordinal: string;
10653
+ receipt: {
10654
+ receiver: string;
10655
+ act_digest: string;
10656
+ global_sequence: string;
10657
+ recv_sequence: string;
10658
+ auth_sequence: {
10659
+ account: string;
10660
+ sequence: string;
10661
+ }[];
10662
+ code_sequence: string;
10663
+ abi_sequence: string;
10664
+ };
10665
+ act: {
10666
+ account: string;
10667
+ name: string;
10668
+ authorization: {
10669
+ actor: string;
10670
+ permission: string;
10671
+ }[];
10672
+ data?: any;
10673
+ };
10674
+ context_free: string;
10675
+ elapsed: string;
10676
+ console: string;
10677
+ account_ram_deltas: {
10678
+ account: string;
10679
+ delta: string;
10680
+ }[];
10681
+ except: string;
10682
+ error_code: string | null;
10683
+ return_value: string;
10684
+ }>;
10685
+ irreversible: z.ZodBoolean;
10686
+ }, "strip", z.ZodTypeAny, {
10687
+ block_time: string;
10688
+ block_num: number;
10689
+ trx_id: string;
10690
+ irreversible: boolean;
10691
+ account_action_seq: number;
10692
+ global_action_seq: number;
10693
+ action_trace: {
10694
+ receiver: string;
10695
+ action_ordinal: string;
10696
+ creator_action_ordinal: string;
10697
+ receipt: {
10698
+ receiver: string;
10699
+ act_digest: string;
10700
+ global_sequence: string;
10701
+ recv_sequence: string;
10702
+ auth_sequence: {
10703
+ account: string;
10704
+ sequence: string;
10705
+ }[];
10706
+ code_sequence: string;
10707
+ abi_sequence: string;
10708
+ };
10709
+ act: {
10710
+ account: string;
10711
+ name: string;
10712
+ authorization: {
10713
+ actor: string;
10714
+ permission: string;
10715
+ }[];
10716
+ data?: any;
10717
+ };
10718
+ context_free: string;
10719
+ elapsed: string;
10720
+ console: string;
10721
+ account_ram_deltas: {
10722
+ account: string;
10723
+ delta: string;
10724
+ }[];
10725
+ except: string;
10726
+ error_code: string | null;
10727
+ return_value: string;
10728
+ };
10729
+ }, {
10730
+ block_time: string;
10731
+ block_num: number;
10732
+ trx_id: string;
10733
+ irreversible: boolean;
10734
+ account_action_seq: number;
10735
+ global_action_seq: number;
10736
+ action_trace: {
10737
+ receiver: string;
10738
+ action_ordinal: string;
10739
+ creator_action_ordinal: string;
10740
+ receipt: {
10741
+ receiver: string;
10742
+ act_digest: string;
10743
+ global_sequence: string;
10744
+ recv_sequence: string;
10745
+ auth_sequence: {
10746
+ account: string;
10747
+ sequence: string;
10748
+ }[];
10749
+ code_sequence: string;
10750
+ abi_sequence: string;
10751
+ };
10752
+ act: {
10753
+ account: string;
10754
+ name: string;
10755
+ authorization: {
10756
+ actor: string;
10757
+ permission: string;
10758
+ }[];
10759
+ data?: any;
10760
+ };
10761
+ context_free: string;
10762
+ elapsed: string;
10763
+ console: string;
10764
+ account_ram_deltas: {
10765
+ account: string;
10766
+ delta: string;
10767
+ }[];
10768
+ except: string;
10769
+ error_code: string | null;
10770
+ return_value: string;
10771
+ };
10772
+ }>;
10773
+ declare type HistoryAction = z.infer<typeof historyActionParser>;
10774
+ declare const getHistoryActionsResponseParser: z.ZodObject<{
10775
+ sync: z.ZodNumber;
10776
+ last_irreversible_block_num: z.ZodNumber;
10777
+ data: z.ZodArray<z.ZodObject<{
10778
+ block_num: z.ZodNumber;
10779
+ block_time: z.ZodString;
10780
+ trx_id: z.ZodString;
10781
+ account_action_seq: z.ZodNumber;
10782
+ global_action_seq: z.ZodNumber;
10783
+ action_trace: z.ZodObject<{
10784
+ action_ordinal: z.ZodString;
10785
+ creator_action_ordinal: z.ZodString;
10786
+ receipt: z.ZodObject<{
10787
+ receiver: z.ZodString;
10788
+ act_digest: z.ZodString;
10789
+ global_sequence: z.ZodString;
10790
+ recv_sequence: z.ZodString;
10791
+ auth_sequence: z.ZodArray<z.ZodObject<{
10792
+ account: z.ZodString;
10793
+ sequence: z.ZodString;
10794
+ }, "strip", z.ZodTypeAny, {
10795
+ account: string;
10796
+ sequence: string;
10797
+ }, {
10798
+ account: string;
10799
+ sequence: string;
10800
+ }>, "many">;
10801
+ code_sequence: z.ZodString;
10802
+ abi_sequence: z.ZodString;
10803
+ }, "strip", z.ZodTypeAny, {
10804
+ receiver: string;
10805
+ act_digest: string;
10806
+ global_sequence: string;
10807
+ recv_sequence: string;
10808
+ auth_sequence: {
10809
+ account: string;
10810
+ sequence: string;
10811
+ }[];
10812
+ code_sequence: string;
10813
+ abi_sequence: string;
10814
+ }, {
10815
+ receiver: string;
10816
+ act_digest: string;
10817
+ global_sequence: string;
10818
+ recv_sequence: string;
10819
+ auth_sequence: {
10820
+ account: string;
10821
+ sequence: string;
10822
+ }[];
10823
+ code_sequence: string;
10824
+ abi_sequence: string;
10825
+ }>;
10826
+ receiver: z.ZodString;
10827
+ act: z.ZodObject<{
10828
+ account: z.ZodString;
10829
+ name: z.ZodString;
10830
+ authorization: z.ZodArray<z.ZodObject<{
10831
+ actor: z.ZodString;
10832
+ permission: z.ZodString;
10833
+ }, "strip", z.ZodTypeAny, {
10834
+ actor: string;
10835
+ permission: string;
10836
+ }, {
10837
+ actor: string;
10838
+ permission: string;
10839
+ }>, "many">;
10840
+ data: z.ZodAny;
10841
+ }, "strip", z.ZodTypeAny, {
10842
+ account: string;
10843
+ name: string;
10844
+ authorization: {
10845
+ actor: string;
10846
+ permission: string;
10847
+ }[];
10848
+ data?: any;
10849
+ }, {
10850
+ account: string;
10851
+ name: string;
10852
+ authorization: {
10853
+ actor: string;
10854
+ permission: string;
10855
+ }[];
10856
+ data?: any;
10857
+ }>;
10858
+ context_free: z.ZodString;
10859
+ elapsed: z.ZodString;
10860
+ console: z.ZodString;
10861
+ account_ram_deltas: z.ZodArray<z.ZodObject<{
10862
+ account: z.ZodString;
10863
+ delta: z.ZodString;
10864
+ }, "strip", z.ZodTypeAny, {
10865
+ account: string;
10866
+ delta: string;
10867
+ }, {
10868
+ account: string;
10869
+ delta: string;
10870
+ }>, "many">;
10871
+ except: z.ZodString;
10872
+ error_code: z.ZodNullable<z.ZodString>;
10873
+ return_value: z.ZodString;
10874
+ }, "strip", z.ZodTypeAny, {
10875
+ receiver: string;
10876
+ action_ordinal: string;
10877
+ creator_action_ordinal: string;
10878
+ receipt: {
10879
+ receiver: string;
10880
+ act_digest: string;
10881
+ global_sequence: string;
10882
+ recv_sequence: string;
10883
+ auth_sequence: {
10884
+ account: string;
10885
+ sequence: string;
10886
+ }[];
10887
+ code_sequence: string;
10888
+ abi_sequence: string;
10889
+ };
10890
+ act: {
10891
+ account: string;
10892
+ name: string;
10893
+ authorization: {
10894
+ actor: string;
10895
+ permission: string;
10896
+ }[];
10897
+ data?: any;
10898
+ };
10899
+ context_free: string;
10900
+ elapsed: string;
10901
+ console: string;
10902
+ account_ram_deltas: {
10903
+ account: string;
10904
+ delta: string;
10905
+ }[];
10906
+ except: string;
10907
+ error_code: string | null;
10908
+ return_value: string;
10909
+ }, {
10910
+ receiver: string;
10911
+ action_ordinal: string;
10912
+ creator_action_ordinal: string;
10913
+ receipt: {
10914
+ receiver: string;
10915
+ act_digest: string;
10916
+ global_sequence: string;
10917
+ recv_sequence: string;
10918
+ auth_sequence: {
10919
+ account: string;
10920
+ sequence: string;
10921
+ }[];
10922
+ code_sequence: string;
10923
+ abi_sequence: string;
10924
+ };
10925
+ act: {
10926
+ account: string;
10927
+ name: string;
10928
+ authorization: {
10929
+ actor: string;
10930
+ permission: string;
10931
+ }[];
10932
+ data?: any;
10933
+ };
10934
+ context_free: string;
10935
+ elapsed: string;
10936
+ console: string;
10937
+ account_ram_deltas: {
10938
+ account: string;
10939
+ delta: string;
10940
+ }[];
10941
+ except: string;
10942
+ error_code: string | null;
10943
+ return_value: string;
10944
+ }>;
10945
+ irreversible: z.ZodBoolean;
10946
+ }, "strip", z.ZodTypeAny, {
10947
+ block_time: string;
10948
+ block_num: number;
10949
+ trx_id: string;
10950
+ irreversible: boolean;
10951
+ account_action_seq: number;
10952
+ global_action_seq: number;
10953
+ action_trace: {
10954
+ receiver: string;
10955
+ action_ordinal: string;
10956
+ creator_action_ordinal: string;
10957
+ receipt: {
10958
+ receiver: string;
10959
+ act_digest: string;
10960
+ global_sequence: string;
10961
+ recv_sequence: string;
10962
+ auth_sequence: {
10963
+ account: string;
10964
+ sequence: string;
10965
+ }[];
10966
+ code_sequence: string;
10967
+ abi_sequence: string;
10968
+ };
10969
+ act: {
10970
+ account: string;
10971
+ name: string;
10972
+ authorization: {
10973
+ actor: string;
10974
+ permission: string;
10975
+ }[];
10976
+ data?: any;
10977
+ };
10978
+ context_free: string;
10979
+ elapsed: string;
10980
+ console: string;
10981
+ account_ram_deltas: {
10982
+ account: string;
10983
+ delta: string;
10984
+ }[];
10985
+ except: string;
10986
+ error_code: string | null;
10987
+ return_value: string;
10988
+ };
10989
+ }, {
10990
+ block_time: string;
10991
+ block_num: number;
10992
+ trx_id: string;
10993
+ irreversible: boolean;
10994
+ account_action_seq: number;
10995
+ global_action_seq: number;
10996
+ action_trace: {
10997
+ receiver: string;
10998
+ action_ordinal: string;
10999
+ creator_action_ordinal: string;
11000
+ receipt: {
11001
+ receiver: string;
11002
+ act_digest: string;
11003
+ global_sequence: string;
11004
+ recv_sequence: string;
11005
+ auth_sequence: {
11006
+ account: string;
11007
+ sequence: string;
11008
+ }[];
11009
+ code_sequence: string;
11010
+ abi_sequence: string;
11011
+ };
11012
+ act: {
11013
+ account: string;
11014
+ name: string;
11015
+ authorization: {
11016
+ actor: string;
11017
+ permission: string;
11018
+ }[];
11019
+ data?: any;
11020
+ };
11021
+ context_free: string;
11022
+ elapsed: string;
11023
+ console: string;
11024
+ account_ram_deltas: {
11025
+ account: string;
11026
+ delta: string;
11027
+ }[];
11028
+ except: string;
11029
+ error_code: string | null;
11030
+ return_value: string;
11031
+ };
11032
+ }>, "many">;
11033
+ }, "strip", z.ZodTypeAny, {
11034
+ data: {
11035
+ block_time: string;
11036
+ block_num: number;
11037
+ trx_id: string;
11038
+ irreversible: boolean;
11039
+ account_action_seq: number;
11040
+ global_action_seq: number;
11041
+ action_trace: {
11042
+ receiver: string;
11043
+ action_ordinal: string;
11044
+ creator_action_ordinal: string;
11045
+ receipt: {
11046
+ receiver: string;
11047
+ act_digest: string;
11048
+ global_sequence: string;
11049
+ recv_sequence: string;
11050
+ auth_sequence: {
11051
+ account: string;
11052
+ sequence: string;
11053
+ }[];
11054
+ code_sequence: string;
11055
+ abi_sequence: string;
11056
+ };
11057
+ act: {
11058
+ account: string;
11059
+ name: string;
11060
+ authorization: {
11061
+ actor: string;
11062
+ permission: string;
11063
+ }[];
11064
+ data?: any;
11065
+ };
11066
+ context_free: string;
11067
+ elapsed: string;
11068
+ console: string;
11069
+ account_ram_deltas: {
11070
+ account: string;
11071
+ delta: string;
11072
+ }[];
11073
+ except: string;
11074
+ error_code: string | null;
11075
+ return_value: string;
11076
+ };
11077
+ }[];
11078
+ sync: number;
11079
+ last_irreversible_block_num: number;
11080
+ }, {
11081
+ data: {
11082
+ block_time: string;
11083
+ block_num: number;
11084
+ trx_id: string;
11085
+ irreversible: boolean;
11086
+ account_action_seq: number;
11087
+ global_action_seq: number;
11088
+ action_trace: {
11089
+ receiver: string;
11090
+ action_ordinal: string;
11091
+ creator_action_ordinal: string;
11092
+ receipt: {
11093
+ receiver: string;
11094
+ act_digest: string;
11095
+ global_sequence: string;
11096
+ recv_sequence: string;
11097
+ auth_sequence: {
11098
+ account: string;
11099
+ sequence: string;
11100
+ }[];
11101
+ code_sequence: string;
11102
+ abi_sequence: string;
11103
+ };
11104
+ act: {
11105
+ account: string;
11106
+ name: string;
11107
+ authorization: {
11108
+ actor: string;
11109
+ permission: string;
11110
+ }[];
11111
+ data?: any;
11112
+ };
11113
+ context_free: string;
11114
+ elapsed: string;
11115
+ console: string;
11116
+ account_ram_deltas: {
11117
+ account: string;
11118
+ delta: string;
11119
+ }[];
11120
+ except: string;
11121
+ error_code: string | null;
11122
+ return_value: string;
11123
+ };
11124
+ }[];
11125
+ sync: number;
11126
+ last_irreversible_block_num: number;
11127
+ }>;
11128
+ declare type GetHistoryActionsResponse = z.infer<typeof getHistoryActionsResponseParser>;
10485
11129
  /**
10486
11130
  * Basic Types
10487
11131
  */
@@ -11527,4 +12171,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
11527
12171
  }) => boolean;
11528
12172
  declare const applyDiscountToFee: (fee: number, staked: number) => number;
11529
12173
 
11530
- 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, 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, 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, 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 };
12174
+ 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, GetHistoryTransactionResponse, 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 };
package/dist/index.js CHANGED
@@ -74,6 +74,8 @@ __export(src_exports, {
74
74
  getDailyResponseParser: () => getDailyResponseParser,
75
75
  getDepthParser: () => getDepthParser,
76
76
  getDepthResponseParser: () => getDepthResponseParser,
77
+ getHistoryActionsParser: () => getHistoryActionsParser,
78
+ getHistoryActionsResponseParser: () => getHistoryActionsResponseParser,
77
79
  getHistoryTransactionResponseParser: () => getHistoryTransactionResponseParser,
78
80
  getLeaderboardParser: () => getLeaderboardParser,
79
81
  getLeaderboardResponseParser: () => getLeaderboardResponseParser,
@@ -95,6 +97,7 @@ __export(src_exports, {
95
97
  getTradeHistoryResponseParser: () => getTradeHistoryResponseParser,
96
98
  getTradesParser: () => getTradesParser,
97
99
  getTradesResponseParser: () => getTradesResponseParser,
100
+ historyActionParser: () => historyActionParser,
98
101
  historyPartialParser: () => historyPartialParser,
99
102
  historyTransactionParser: () => historyTransactionParser,
100
103
  initializeCoins: () => initializeCoins,
@@ -1906,6 +1909,11 @@ var ordinalOrderIdsParser = z11.array(z11.string()).or(z11.string()).optional().
1906
1909
  return Array.isArray(oids) ? oids : [oids];
1907
1910
  });
1908
1911
  var marketIdsParser = z11.array(z11.coerce.number()).or(z11.coerce.number()).transform((mids) => Array.isArray(mids) ? mids : [mids]).refine((mids) => mids.length > 0, "Must provide atleast one market ID");
1912
+ var contractFiltersParser = z11.array(z11.string()).or(z11.string()).optional().transform((oids) => {
1913
+ if (!oids)
1914
+ return [];
1915
+ return Array.isArray(oids) ? oids : [oids];
1916
+ });
1909
1917
  var ohlcvParser = z11.object({
1910
1918
  time: z11.number(),
1911
1919
  open: z11.number(),
@@ -2326,6 +2334,30 @@ var historyTransactionParser = z11.object({
2326
2334
  var getHistoryTransactionResponseParser = z11.object({
2327
2335
  data: historyTransactionParser.nullable()
2328
2336
  });
2337
+ var getHistoryActionsParser = z11.object({
2338
+ account: z11.string(),
2339
+ contract_filters: contractFiltersParser,
2340
+ account_seq_from: z11.coerce.number().optional(),
2341
+ account_seq_to: z11.coerce.number().optional(),
2342
+ date_from: z11.string().optional(),
2343
+ date_to: z11.string().optional(),
2344
+ direction: z11.string().optional(),
2345
+ limit: createLimit(100, 250)
2346
+ });
2347
+ var historyActionParser = z11.object({
2348
+ block_num: z11.number(),
2349
+ block_time: z11.string(),
2350
+ trx_id: z11.string(),
2351
+ account_action_seq: z11.number(),
2352
+ global_action_seq: z11.number(),
2353
+ action_trace: actionTraceParser,
2354
+ irreversible: z11.boolean()
2355
+ });
2356
+ var getHistoryActionsResponseParser = z11.object({
2357
+ sync: z11.number(),
2358
+ last_irreversible_block_num: z11.number(),
2359
+ data: z11.array(historyActionParser)
2360
+ });
2329
2361
  var orderType = /* @__PURE__ */ ((orderType2) => {
2330
2362
  orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
2331
2363
  orderType2[orderType2["LIMIT"] = 1] = "LIMIT";
@@ -4072,6 +4104,8 @@ var applyDiscountToFee = (fee, staked) => {
4072
4104
  getDailyResponseParser,
4073
4105
  getDepthParser,
4074
4106
  getDepthResponseParser,
4107
+ getHistoryActionsParser,
4108
+ getHistoryActionsResponseParser,
4075
4109
  getHistoryTransactionResponseParser,
4076
4110
  getLeaderboardParser,
4077
4111
  getLeaderboardResponseParser,
@@ -4093,6 +4127,7 @@ var applyDiscountToFee = (fee, staked) => {
4093
4127
  getTradeHistoryResponseParser,
4094
4128
  getTradesParser,
4095
4129
  getTradesResponseParser,
4130
+ historyActionParser,
4096
4131
  historyPartialParser,
4097
4132
  historyTransactionParser,
4098
4133
  initializeCoins,
package/dist/index.mjs CHANGED
@@ -1761,6 +1761,11 @@ var ordinalOrderIdsParser = z11.array(z11.string()).or(z11.string()).optional().
1761
1761
  return Array.isArray(oids) ? oids : [oids];
1762
1762
  });
1763
1763
  var marketIdsParser = z11.array(z11.coerce.number()).or(z11.coerce.number()).transform((mids) => Array.isArray(mids) ? mids : [mids]).refine((mids) => mids.length > 0, "Must provide atleast one market ID");
1764
+ var contractFiltersParser = z11.array(z11.string()).or(z11.string()).optional().transform((oids) => {
1765
+ if (!oids)
1766
+ return [];
1767
+ return Array.isArray(oids) ? oids : [oids];
1768
+ });
1764
1769
  var ohlcvParser = z11.object({
1765
1770
  time: z11.number(),
1766
1771
  open: z11.number(),
@@ -2181,6 +2186,30 @@ var historyTransactionParser = z11.object({
2181
2186
  var getHistoryTransactionResponseParser = z11.object({
2182
2187
  data: historyTransactionParser.nullable()
2183
2188
  });
2189
+ var getHistoryActionsParser = z11.object({
2190
+ account: z11.string(),
2191
+ contract_filters: contractFiltersParser,
2192
+ account_seq_from: z11.coerce.number().optional(),
2193
+ account_seq_to: z11.coerce.number().optional(),
2194
+ date_from: z11.string().optional(),
2195
+ date_to: z11.string().optional(),
2196
+ direction: z11.string().optional(),
2197
+ limit: createLimit(100, 250)
2198
+ });
2199
+ var historyActionParser = z11.object({
2200
+ block_num: z11.number(),
2201
+ block_time: z11.string(),
2202
+ trx_id: z11.string(),
2203
+ account_action_seq: z11.number(),
2204
+ global_action_seq: z11.number(),
2205
+ action_trace: actionTraceParser,
2206
+ irreversible: z11.boolean()
2207
+ });
2208
+ var getHistoryActionsResponseParser = z11.object({
2209
+ sync: z11.number(),
2210
+ last_irreversible_block_num: z11.number(),
2211
+ data: z11.array(historyActionParser)
2212
+ });
2184
2213
  var orderType = /* @__PURE__ */ ((orderType2) => {
2185
2214
  orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
2186
2215
  orderType2[orderType2["LIMIT"] = 1] = "LIMIT";
@@ -3926,6 +3955,8 @@ export {
3926
3955
  getDailyResponseParser,
3927
3956
  getDepthParser,
3928
3957
  getDepthResponseParser,
3958
+ getHistoryActionsParser,
3959
+ getHistoryActionsResponseParser,
3929
3960
  getHistoryTransactionResponseParser,
3930
3961
  getLeaderboardParser,
3931
3962
  getLeaderboardResponseParser,
@@ -3947,6 +3978,7 @@ export {
3947
3978
  getTradeHistoryResponseParser,
3948
3979
  getTradesParser,
3949
3980
  getTradesResponseParser,
3981
+ historyActionParser,
3950
3982
  historyPartialParser,
3951
3983
  historyTransactionParser,
3952
3984
  initializeCoins,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.127",
8
+ "version": "0.2.130",
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": "6c50e9ef07e993439e3a62cd7895f345eb317dd6"
43
+ "gitHead": "73df3733d09b07e681faa19b23a8c61d4fad7af4"
44
44
  }
@@ -24,6 +24,15 @@ const marketIdsParser = z
24
24
  .transform((mids) => (Array.isArray(mids) ? mids : [mids]))
25
25
  .refine((mids) => mids.length > 0, "Must provide atleast one market ID")
26
26
 
27
+ const contractFiltersParser = z
28
+ .array(z.string())
29
+ .or(z.string())
30
+ .optional()
31
+ .transform((oids) => {
32
+ if (!oids) return [];
33
+ return Array.isArray(oids) ? oids : [oids];
34
+ });
35
+
27
36
  /**
28
37
  * OHLCV
29
38
  */
@@ -512,7 +521,7 @@ export type GetLeaderboardResponseParser = z.infer<
512
521
  >;
513
522
 
514
523
  /**
515
- * History
524
+ * History Transaction
516
525
  */
517
526
  export const dbHistoryTransactionParser = z.object({
518
527
  seq: z.string(),
@@ -606,13 +615,44 @@ export type HistoryTransaction = z.infer<typeof historyTransactionParser>;
606
615
  export const getHistoryTransactionResponseParser = z.object({
607
616
  data: historyTransactionParser.nullable(),
608
617
  });
609
- export type GetHistoryTransaction = z.input<
610
- typeof getHistoryTransactionResponseParser
611
- >;
612
- export type GetHistoryTransactionParsed = z.output<
618
+ export type GetHistoryTransactionResponse = z.input<
613
619
  typeof getHistoryTransactionResponseParser
614
620
  >;
615
621
 
622
+ /**
623
+ * History Actions
624
+ */
625
+ export const getHistoryActionsParser = z.object({
626
+ account: z.string(),
627
+ contract_filters: contractFiltersParser,
628
+ account_seq_from: z.coerce.number().optional(),
629
+ account_seq_to: z.coerce.number().optional(),
630
+ date_from: z.string().optional(),
631
+ date_to: z.string().optional(),
632
+ direction: z.string().optional(),
633
+ limit: createLimit(100, 250)
634
+ });
635
+ export type GetHistoryActions = z.input<typeof getHistoryActionsParser>;
636
+ export type GetHistoryActionsParsed = z.output<typeof getHistoryActionsParser>;
637
+
638
+ export const historyActionParser = z.object({
639
+ block_num: z.number(),
640
+ block_time: z.string(),
641
+ trx_id: z.string(),
642
+ account_action_seq: z.number(),
643
+ global_action_seq: z.number(),
644
+ action_trace: actionTraceParser,
645
+ irreversible: z.boolean()
646
+ });
647
+ export type HistoryAction = z.infer<typeof historyActionParser>;
648
+
649
+ export const getHistoryActionsResponseParser = z.object({
650
+ sync: z.number(),
651
+ last_irreversible_block_num: z.number(),
652
+ data: z.array(historyActionParser)
653
+ });
654
+ export type GetHistoryActionsResponse = z.infer<typeof getHistoryActionsResponseParser>;
655
+
616
656
  /**
617
657
  * Basic Types
618
658
  */