@proton/wrap-constants 0.2.127 → 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 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;
@@ -10482,6 +10482,651 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10482
10482
  }>;
10483
10483
  declare type GetHistoryTransaction = z.input<typeof getHistoryTransactionResponseParser>;
10484
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>;
10485
11130
  /**
10486
11131
  * Basic Types
10487
11132
  */
@@ -11527,4 +12172,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
11527
12172
  }) => boolean;
11528
12173
  declare const applyDiscountToFee: (fee: number, staked: number) => number;
11529
12174
 
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 };
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 };
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.129",
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": "14580e1d52f0afb9d2989aa3bd5906e291f2cd5d"
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(),
@@ -613,6 +622,41 @@ export type GetHistoryTransactionParsed = z.output<
613
622
  typeof getHistoryTransactionResponseParser
614
623
  >;
615
624
 
625
+
626
+ /**
627
+ * History Actions
628
+ */
629
+ export const getHistoryActionsParser = z.object({
630
+ account: z.string(),
631
+ contract_filters: contractFiltersParser,
632
+ account_seq_from: z.coerce.number().optional(),
633
+ account_seq_to: z.coerce.number().optional(),
634
+ date_from: z.string().optional(),
635
+ date_to: z.string().optional(),
636
+ direction: z.string().optional(),
637
+ limit: createLimit(100, 250)
638
+ });
639
+ export type GetHistoryActions = z.input<typeof getHistoryActionsParser>;
640
+ export type GetHistoryActionsParsed = z.output<typeof getHistoryActionsParser>;
641
+
642
+ export const historyActionParser = z.object({
643
+ block_num: z.number(),
644
+ block_time: z.string(),
645
+ trx_id: z.string(),
646
+ account_action_seq: z.number(),
647
+ global_action_seq: z.number(),
648
+ action_trace: actionTraceParser,
649
+ irreversible: z.boolean()
650
+ });
651
+ export type HistoryAction = z.infer<typeof historyActionParser>;
652
+
653
+ export const getHistoryActionsResponseParser = z.object({
654
+ sync: z.number(),
655
+ last_irreversible_block_num: z.number(),
656
+ data: z.array(historyActionParser)
657
+ });
658
+ export type GetHistoryActionsResponse = z.infer<typeof getHistoryActionsResponseParser>;
659
+
616
660
  /**
617
661
  * Basic Types
618
662
  */