@proton/wrap-constants 0.2.157 → 0.2.159

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
@@ -6925,10 +6925,10 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
6925
6925
  }>;
6926
6926
  declare type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
6927
6927
  declare const getOrderLifecycleParser: z.ZodObject<{
6928
- order_id: z.ZodEffects<z.ZodOptional<z.ZodString>, string | number | undefined, string | undefined>;
6928
+ order_id: z.ZodOptional<z.ZodString>;
6929
6929
  ordinal_order_id: z.ZodOptional<z.ZodString>;
6930
6930
  }, "strip", z.ZodTypeAny, {
6931
- order_id?: string | number | undefined;
6931
+ order_id?: string | undefined;
6932
6932
  ordinal_order_id?: string | undefined;
6933
6933
  }, {
6934
6934
  order_id?: string | undefined;
@@ -8384,26 +8384,6 @@ declare type GetLeaderboardResponse = z.infer<typeof getLeaderboardResponseParse
8384
8384
  /**
8385
8385
  * History Transaction
8386
8386
  */
8387
- declare const dbHistoryTransactionParser: z.ZodObject<{
8388
- seq: z.ZodString;
8389
- block_num: z.ZodString;
8390
- block_time: z.ZodString;
8391
- trx_id: z.ZodString;
8392
- trace: z.ZodAny;
8393
- }, "strip", z.ZodTypeAny, {
8394
- block_time: string;
8395
- seq: string;
8396
- block_num: string;
8397
- trx_id: string;
8398
- trace?: any;
8399
- }, {
8400
- block_time: string;
8401
- seq: string;
8402
- block_num: string;
8403
- trx_id: string;
8404
- trace?: any;
8405
- }>;
8406
- declare type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
8407
8387
  declare const historyPartialParser: z.ZodObject<{
8408
8388
  expiration: z.ZodObject<{
8409
8389
  utc_seconds: z.ZodString;
@@ -10494,6 +10474,520 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10494
10474
  } | null;
10495
10475
  }>;
10496
10476
  declare type GetHistoryTransactionResponse = z.input<typeof getHistoryTransactionResponseParser>;
10477
+ declare const chronicleTransactionParser: z.ZodObject<{
10478
+ block_num: z.ZodString;
10479
+ block_timestamp: z.ZodString;
10480
+ trace: z.ZodObject<{
10481
+ id: z.ZodString;
10482
+ status: z.ZodString;
10483
+ cpu_usage_us: z.ZodString;
10484
+ net_usage_words: z.ZodString;
10485
+ elapsed: z.ZodString;
10486
+ net_usage: z.ZodString;
10487
+ scheduled: z.ZodString;
10488
+ action_traces: z.ZodArray<z.ZodObject<{
10489
+ action_ordinal: z.ZodString;
10490
+ creator_action_ordinal: z.ZodString;
10491
+ receipt: z.ZodObject<{
10492
+ receiver: z.ZodString;
10493
+ act_digest: z.ZodString;
10494
+ global_sequence: z.ZodString;
10495
+ recv_sequence: z.ZodString;
10496
+ auth_sequence: z.ZodArray<z.ZodObject<{
10497
+ account: z.ZodString;
10498
+ sequence: z.ZodString;
10499
+ }, "strip", z.ZodTypeAny, {
10500
+ account: string;
10501
+ sequence: string;
10502
+ }, {
10503
+ account: string;
10504
+ sequence: string;
10505
+ }>, "many">;
10506
+ code_sequence: z.ZodString;
10507
+ abi_sequence: z.ZodString;
10508
+ }, "strip", z.ZodTypeAny, {
10509
+ receiver: string;
10510
+ act_digest: string;
10511
+ global_sequence: string;
10512
+ recv_sequence: string;
10513
+ auth_sequence: {
10514
+ account: string;
10515
+ sequence: string;
10516
+ }[];
10517
+ code_sequence: string;
10518
+ abi_sequence: string;
10519
+ }, {
10520
+ receiver: string;
10521
+ act_digest: string;
10522
+ global_sequence: string;
10523
+ recv_sequence: string;
10524
+ auth_sequence: {
10525
+ account: string;
10526
+ sequence: string;
10527
+ }[];
10528
+ code_sequence: string;
10529
+ abi_sequence: string;
10530
+ }>;
10531
+ receiver: z.ZodString;
10532
+ act: z.ZodObject<{
10533
+ account: z.ZodString;
10534
+ name: z.ZodString;
10535
+ authorization: z.ZodArray<z.ZodObject<{
10536
+ actor: z.ZodString;
10537
+ permission: z.ZodString;
10538
+ }, "strip", z.ZodTypeAny, {
10539
+ actor: string;
10540
+ permission: string;
10541
+ }, {
10542
+ actor: string;
10543
+ permission: string;
10544
+ }>, "many">;
10545
+ data: z.ZodAny;
10546
+ }, "strip", z.ZodTypeAny, {
10547
+ account: string;
10548
+ name: string;
10549
+ authorization: {
10550
+ actor: string;
10551
+ permission: string;
10552
+ }[];
10553
+ data?: any;
10554
+ }, {
10555
+ account: string;
10556
+ name: string;
10557
+ authorization: {
10558
+ actor: string;
10559
+ permission: string;
10560
+ }[];
10561
+ data?: any;
10562
+ }>;
10563
+ context_free: z.ZodString;
10564
+ elapsed: z.ZodString;
10565
+ console: z.ZodString;
10566
+ account_ram_deltas: z.ZodArray<z.ZodObject<{
10567
+ account: z.ZodString;
10568
+ delta: z.ZodString;
10569
+ }, "strip", z.ZodTypeAny, {
10570
+ account: string;
10571
+ delta: string;
10572
+ }, {
10573
+ account: string;
10574
+ delta: string;
10575
+ }>, "many">;
10576
+ except: z.ZodString;
10577
+ error_code: z.ZodNullable<z.ZodString>;
10578
+ return_value: z.ZodString;
10579
+ }, "strip", z.ZodTypeAny, {
10580
+ receiver: string;
10581
+ action_ordinal: string;
10582
+ creator_action_ordinal: string;
10583
+ receipt: {
10584
+ receiver: string;
10585
+ act_digest: string;
10586
+ global_sequence: string;
10587
+ recv_sequence: string;
10588
+ auth_sequence: {
10589
+ account: string;
10590
+ sequence: string;
10591
+ }[];
10592
+ code_sequence: string;
10593
+ abi_sequence: string;
10594
+ };
10595
+ act: {
10596
+ account: string;
10597
+ name: string;
10598
+ authorization: {
10599
+ actor: string;
10600
+ permission: string;
10601
+ }[];
10602
+ data?: any;
10603
+ };
10604
+ context_free: string;
10605
+ elapsed: string;
10606
+ console: string;
10607
+ account_ram_deltas: {
10608
+ account: string;
10609
+ delta: string;
10610
+ }[];
10611
+ except: string;
10612
+ error_code: string | null;
10613
+ return_value: string;
10614
+ }, {
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
+ }>, "many">;
10650
+ account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
10651
+ account: z.ZodString;
10652
+ delta: z.ZodString;
10653
+ }, "strip", z.ZodTypeAny, {
10654
+ account: string;
10655
+ delta: string;
10656
+ }, {
10657
+ account: string;
10658
+ delta: string;
10659
+ }>, "many">>;
10660
+ except: z.ZodString;
10661
+ error_code: z.ZodNullable<z.ZodString>;
10662
+ failed_dtrx_trace: z.ZodArray<z.ZodUnknown, "many">;
10663
+ partial: z.ZodObject<{
10664
+ expiration: z.ZodObject<{
10665
+ utc_seconds: z.ZodString;
10666
+ }, "strip", z.ZodTypeAny, {
10667
+ utc_seconds: string;
10668
+ }, {
10669
+ utc_seconds: string;
10670
+ }>;
10671
+ ref_block_num: z.ZodString;
10672
+ ref_block_prefix: z.ZodString;
10673
+ max_net_usage_words: z.ZodString;
10674
+ max_cpu_usage_ms: z.ZodString;
10675
+ delay_sec: z.ZodString;
10676
+ transaction_extensions: z.ZodArray<z.ZodUnknown, "many">;
10677
+ signatures: z.ZodArray<z.ZodString, "many">;
10678
+ context_free_data: z.ZodArray<z.ZodUnknown, "many">;
10679
+ }, "strip", z.ZodTypeAny, {
10680
+ expiration: {
10681
+ utc_seconds: string;
10682
+ };
10683
+ ref_block_num: string;
10684
+ ref_block_prefix: string;
10685
+ max_net_usage_words: string;
10686
+ max_cpu_usage_ms: string;
10687
+ delay_sec: string;
10688
+ transaction_extensions: unknown[];
10689
+ signatures: string[];
10690
+ context_free_data: unknown[];
10691
+ }, {
10692
+ expiration: {
10693
+ utc_seconds: string;
10694
+ };
10695
+ ref_block_num: string;
10696
+ ref_block_prefix: string;
10697
+ max_net_usage_words: string;
10698
+ max_cpu_usage_ms: string;
10699
+ delay_sec: string;
10700
+ transaction_extensions: unknown[];
10701
+ signatures: string[];
10702
+ context_free_data: unknown[];
10703
+ }>;
10704
+ }, "strip", z.ZodTypeAny, {
10705
+ status: string;
10706
+ id: string;
10707
+ elapsed: string;
10708
+ except: string;
10709
+ error_code: string | null;
10710
+ cpu_usage_us: string;
10711
+ net_usage_words: string;
10712
+ net_usage: string;
10713
+ scheduled: string;
10714
+ action_traces: {
10715
+ receiver: string;
10716
+ action_ordinal: string;
10717
+ creator_action_ordinal: string;
10718
+ receipt: {
10719
+ receiver: string;
10720
+ act_digest: string;
10721
+ global_sequence: string;
10722
+ recv_sequence: string;
10723
+ auth_sequence: {
10724
+ account: string;
10725
+ sequence: string;
10726
+ }[];
10727
+ code_sequence: string;
10728
+ abi_sequence: string;
10729
+ };
10730
+ act: {
10731
+ account: string;
10732
+ name: string;
10733
+ authorization: {
10734
+ actor: string;
10735
+ permission: string;
10736
+ }[];
10737
+ data?: any;
10738
+ };
10739
+ context_free: string;
10740
+ elapsed: string;
10741
+ console: string;
10742
+ account_ram_deltas: {
10743
+ account: string;
10744
+ delta: string;
10745
+ }[];
10746
+ except: string;
10747
+ error_code: string | null;
10748
+ return_value: string;
10749
+ }[];
10750
+ account_ram_delta: {
10751
+ account: string;
10752
+ delta: string;
10753
+ }[] | null;
10754
+ failed_dtrx_trace: unknown[];
10755
+ partial: {
10756
+ expiration: {
10757
+ utc_seconds: string;
10758
+ };
10759
+ ref_block_num: string;
10760
+ ref_block_prefix: string;
10761
+ max_net_usage_words: string;
10762
+ max_cpu_usage_ms: string;
10763
+ delay_sec: string;
10764
+ transaction_extensions: unknown[];
10765
+ signatures: string[];
10766
+ context_free_data: unknown[];
10767
+ };
10768
+ }, {
10769
+ status: string;
10770
+ id: string;
10771
+ elapsed: string;
10772
+ except: string;
10773
+ error_code: string | null;
10774
+ cpu_usage_us: string;
10775
+ net_usage_words: string;
10776
+ net_usage: string;
10777
+ scheduled: string;
10778
+ action_traces: {
10779
+ receiver: string;
10780
+ action_ordinal: string;
10781
+ creator_action_ordinal: string;
10782
+ receipt: {
10783
+ receiver: string;
10784
+ act_digest: string;
10785
+ global_sequence: string;
10786
+ recv_sequence: string;
10787
+ auth_sequence: {
10788
+ account: string;
10789
+ sequence: string;
10790
+ }[];
10791
+ code_sequence: string;
10792
+ abi_sequence: string;
10793
+ };
10794
+ act: {
10795
+ account: string;
10796
+ name: string;
10797
+ authorization: {
10798
+ actor: string;
10799
+ permission: string;
10800
+ }[];
10801
+ data?: any;
10802
+ };
10803
+ context_free: string;
10804
+ elapsed: string;
10805
+ console: string;
10806
+ account_ram_deltas: {
10807
+ account: string;
10808
+ delta: string;
10809
+ }[];
10810
+ except: string;
10811
+ error_code: string | null;
10812
+ return_value: string;
10813
+ }[];
10814
+ account_ram_delta: {
10815
+ account: string;
10816
+ delta: string;
10817
+ }[] | null;
10818
+ failed_dtrx_trace: unknown[];
10819
+ partial: {
10820
+ expiration: {
10821
+ utc_seconds: string;
10822
+ };
10823
+ ref_block_num: string;
10824
+ ref_block_prefix: string;
10825
+ max_net_usage_words: string;
10826
+ max_cpu_usage_ms: string;
10827
+ delay_sec: string;
10828
+ transaction_extensions: unknown[];
10829
+ signatures: string[];
10830
+ context_free_data: unknown[];
10831
+ };
10832
+ }>;
10833
+ }, "strip", z.ZodTypeAny, {
10834
+ block_num: string;
10835
+ trace: {
10836
+ status: string;
10837
+ id: string;
10838
+ elapsed: string;
10839
+ except: string;
10840
+ error_code: string | null;
10841
+ cpu_usage_us: string;
10842
+ net_usage_words: string;
10843
+ net_usage: string;
10844
+ scheduled: string;
10845
+ action_traces: {
10846
+ receiver: string;
10847
+ action_ordinal: string;
10848
+ creator_action_ordinal: string;
10849
+ receipt: {
10850
+ receiver: string;
10851
+ act_digest: string;
10852
+ global_sequence: string;
10853
+ recv_sequence: string;
10854
+ auth_sequence: {
10855
+ account: string;
10856
+ sequence: string;
10857
+ }[];
10858
+ code_sequence: string;
10859
+ abi_sequence: string;
10860
+ };
10861
+ act: {
10862
+ account: string;
10863
+ name: string;
10864
+ authorization: {
10865
+ actor: string;
10866
+ permission: string;
10867
+ }[];
10868
+ data?: any;
10869
+ };
10870
+ context_free: string;
10871
+ elapsed: string;
10872
+ console: string;
10873
+ account_ram_deltas: {
10874
+ account: string;
10875
+ delta: string;
10876
+ }[];
10877
+ except: string;
10878
+ error_code: string | null;
10879
+ return_value: string;
10880
+ }[];
10881
+ account_ram_delta: {
10882
+ account: string;
10883
+ delta: string;
10884
+ }[] | null;
10885
+ failed_dtrx_trace: unknown[];
10886
+ partial: {
10887
+ expiration: {
10888
+ utc_seconds: string;
10889
+ };
10890
+ ref_block_num: string;
10891
+ ref_block_prefix: string;
10892
+ max_net_usage_words: string;
10893
+ max_cpu_usage_ms: string;
10894
+ delay_sec: string;
10895
+ transaction_extensions: unknown[];
10896
+ signatures: string[];
10897
+ context_free_data: unknown[];
10898
+ };
10899
+ };
10900
+ block_timestamp: string;
10901
+ }, {
10902
+ block_num: string;
10903
+ trace: {
10904
+ status: string;
10905
+ id: string;
10906
+ elapsed: string;
10907
+ except: string;
10908
+ error_code: string | null;
10909
+ cpu_usage_us: string;
10910
+ net_usage_words: string;
10911
+ net_usage: string;
10912
+ scheduled: string;
10913
+ action_traces: {
10914
+ receiver: string;
10915
+ action_ordinal: string;
10916
+ creator_action_ordinal: string;
10917
+ receipt: {
10918
+ receiver: string;
10919
+ act_digest: string;
10920
+ global_sequence: string;
10921
+ recv_sequence: string;
10922
+ auth_sequence: {
10923
+ account: string;
10924
+ sequence: string;
10925
+ }[];
10926
+ code_sequence: string;
10927
+ abi_sequence: string;
10928
+ };
10929
+ act: {
10930
+ account: string;
10931
+ name: string;
10932
+ authorization: {
10933
+ actor: string;
10934
+ permission: string;
10935
+ }[];
10936
+ data?: any;
10937
+ };
10938
+ context_free: string;
10939
+ elapsed: string;
10940
+ console: string;
10941
+ account_ram_deltas: {
10942
+ account: string;
10943
+ delta: string;
10944
+ }[];
10945
+ except: string;
10946
+ error_code: string | null;
10947
+ return_value: string;
10948
+ }[];
10949
+ account_ram_delta: {
10950
+ account: string;
10951
+ delta: string;
10952
+ }[] | null;
10953
+ failed_dtrx_trace: unknown[];
10954
+ partial: {
10955
+ expiration: {
10956
+ utc_seconds: string;
10957
+ };
10958
+ ref_block_num: string;
10959
+ ref_block_prefix: string;
10960
+ max_net_usage_words: string;
10961
+ max_cpu_usage_ms: string;
10962
+ delay_sec: string;
10963
+ transaction_extensions: unknown[];
10964
+ signatures: string[];
10965
+ context_free_data: unknown[];
10966
+ };
10967
+ };
10968
+ block_timestamp: string;
10969
+ }>;
10970
+ declare type ChronicleTransaction = z.infer<typeof chronicleTransactionParser>;
10971
+ declare const dbHistoryTransactionParser: z.ZodObject<{
10972
+ seq: z.ZodString;
10973
+ block_num: z.ZodString;
10974
+ block_time: z.ZodString;
10975
+ trx_id: z.ZodString;
10976
+ trace: z.ZodAny;
10977
+ }, "strip", z.ZodTypeAny, {
10978
+ block_time: string;
10979
+ seq: string;
10980
+ block_num: string;
10981
+ trx_id: string;
10982
+ trace?: any;
10983
+ }, {
10984
+ block_time: string;
10985
+ seq: string;
10986
+ block_num: string;
10987
+ trx_id: string;
10988
+ trace?: any;
10989
+ }>;
10990
+ declare type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
10497
10991
  /**
10498
10992
  * History Actions
10499
10993
  */
@@ -12909,4 +13403,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
12909
13403
  }) => boolean;
12910
13404
  declare const applyDiscountToFee: (fee: number, staked: number) => number;
12911
13405
 
12912
- 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, GetDailyResponse, GetDepth, GetDepthParsed, GetDepthResponse, GetHistoryActions, GetHistoryActionsParsed, GetHistoryActionsResponse, GetHistoryTransactionResponse, GetHistoryTransfers, GetHistoryTransfersParsed, GetHistoryTransfersResponse, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponse, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersBalancesResponse, GetOpenOrdersParsed, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryParsed, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleParsed, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsParsed, GetReferralTotalsResponse, GetReferrals, GetReferralsParsed, GetReferralsResponse, GetSyncResponse, GetTradeHistory, GetTradeHistoryParsed, GetTradeHistoryResponse, GetTrades, GetTradesParsed, GetTradesResponse, Graph, HistoryAccountRamDelta, HistoryAct, HistoryAction, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, HistoryTransfer, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MarketOpenOrdersBalance, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OrderLog, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, PostSerializeOrder, PostSerializeOrderResponse, PostSubmitOrder, PostSubmitOrderResponse, Providers, Rate, RawPool, Referral, ReferralTotal, SortDirection, Status, 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, getHistoryTransfersParser, getHistoryTransfersResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersBalancesResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyActionParser, historyPartialParser, historyTransactionParser, historyTransferParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketOpenOrdersBalanceParser, marketParser, median, metalTransactionParser, ohlcvParser, openOrderParser, orderHistoryParser, orderLogParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, postSerializeOrderParser, postSerializeOrderResponseParser, postSubmitOrderParser, postSubmitOrderResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, similarChains, singleActionTransactionParser, sortDirectionEnum, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
13406
+ export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, ChronicleTransaction, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbHistoryTransaction, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponse, GetDepth, GetDepthParsed, GetDepthResponse, GetHistoryActions, GetHistoryActionsParsed, GetHistoryActionsResponse, GetHistoryTransactionResponse, GetHistoryTransfers, GetHistoryTransfersParsed, GetHistoryTransfersResponse, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponse, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersBalancesResponse, GetOpenOrdersParsed, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryParsed, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleParsed, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsParsed, GetReferralTotalsResponse, GetReferrals, GetReferralsParsed, GetReferralsResponse, GetSyncResponse, GetTradeHistory, GetTradeHistoryParsed, GetTradeHistoryResponse, GetTrades, GetTradesParsed, GetTradesResponse, Graph, HistoryAccountRamDelta, HistoryAct, HistoryAction, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, HistoryTransfer, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MarketOpenOrdersBalance, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OrderLog, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, PostSerializeOrder, PostSerializeOrderResponse, PostSubmitOrder, PostSubmitOrderResponse, Providers, Rate, RawPool, Referral, ReferralTotal, SortDirection, Status, 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, chronicleTransactionParser, 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, getHistoryTransfersParser, getHistoryTransfersResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersBalancesResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyActionParser, historyPartialParser, historyTransactionParser, historyTransferParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketOpenOrdersBalanceParser, marketParser, median, metalTransactionParser, ohlcvParser, openOrderParser, orderHistoryParser, orderLogParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, postSerializeOrderParser, postSerializeOrderResponseParser, postSubmitOrderParser, postSubmitOrderResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, similarChains, singleActionTransactionParser, sortDirectionEnum, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
package/dist/index.js CHANGED
@@ -55,6 +55,7 @@ __export(src_exports, {
55
55
  baseActionParser: () => baseActionParser,
56
56
  baseActionSerializedParser: () => baseActionSerializedParser,
57
57
  bloksRatesParser: () => bloksRatesParser,
58
+ chronicleTransactionParser: () => chronicleTransactionParser,
58
59
  compute_liquidity: () => compute_liquidity,
59
60
  compute_transfer: () => compute_transfer,
60
61
  compute_transfer_curve: () => compute_transfer_curve,
@@ -2027,7 +2028,7 @@ var getOrderHistoryResponseParser = z11.object({
2027
2028
  data: z11.array(orderHistoryParser)
2028
2029
  });
2029
2030
  var getOrderLifecycleParser = z11.object({
2030
- order_id: z11.string().optional().transform((_) => _ ? +_ : _),
2031
+ order_id: z11.string().optional(),
2031
2032
  ordinal_order_id: z11.string().optional()
2032
2033
  });
2033
2034
  var getOrderLifecycleResponseParser = z11.object({
@@ -2263,13 +2264,6 @@ var getLeaderboardResponseParser = z11.object({
2263
2264
  sync: z11.number(),
2264
2265
  data: z11.array(leaderboardParser)
2265
2266
  });
2266
- var dbHistoryTransactionParser = z11.object({
2267
- seq: z11.string(),
2268
- block_num: z11.string(),
2269
- block_time: z11.string(),
2270
- trx_id: z11.string(),
2271
- trace: z11.any()
2272
- });
2273
2267
  var historyPartialParser = z11.object({
2274
2268
  expiration: z11.object({ utc_seconds: z11.string() }),
2275
2269
  ref_block_num: z11.string(),
@@ -2342,6 +2336,18 @@ var historyTransactionParser = z11.object({
2342
2336
  var getHistoryTransactionResponseParser = z11.object({
2343
2337
  data: historyTransactionParser.nullable()
2344
2338
  });
2339
+ var chronicleTransactionParser = z11.object({
2340
+ block_num: z11.string(),
2341
+ block_timestamp: z11.string(),
2342
+ trace: traceParser
2343
+ });
2344
+ var dbHistoryTransactionParser = z11.object({
2345
+ seq: z11.string(),
2346
+ block_num: z11.string(),
2347
+ block_time: z11.string(),
2348
+ trx_id: z11.string(),
2349
+ trace: z11.any()
2350
+ });
2345
2351
  var getHistoryActionsParser = z11.object({
2346
2352
  account: z11.string().min(1, { message: "account is required" }),
2347
2353
  contract_filters: contractFiltersParser,
@@ -4133,6 +4139,7 @@ var applyDiscountToFee = (fee, staked) => {
4133
4139
  baseActionParser,
4134
4140
  baseActionSerializedParser,
4135
4141
  bloksRatesParser,
4142
+ chronicleTransactionParser,
4136
4143
  compute_liquidity,
4137
4144
  compute_transfer,
4138
4145
  compute_transfer_curve,
package/dist/index.mjs CHANGED
@@ -1873,7 +1873,7 @@ var getOrderHistoryResponseParser = z11.object({
1873
1873
  data: z11.array(orderHistoryParser)
1874
1874
  });
1875
1875
  var getOrderLifecycleParser = z11.object({
1876
- order_id: z11.string().optional().transform((_) => _ ? +_ : _),
1876
+ order_id: z11.string().optional(),
1877
1877
  ordinal_order_id: z11.string().optional()
1878
1878
  });
1879
1879
  var getOrderLifecycleResponseParser = z11.object({
@@ -2109,13 +2109,6 @@ var getLeaderboardResponseParser = z11.object({
2109
2109
  sync: z11.number(),
2110
2110
  data: z11.array(leaderboardParser)
2111
2111
  });
2112
- var dbHistoryTransactionParser = z11.object({
2113
- seq: z11.string(),
2114
- block_num: z11.string(),
2115
- block_time: z11.string(),
2116
- trx_id: z11.string(),
2117
- trace: z11.any()
2118
- });
2119
2112
  var historyPartialParser = z11.object({
2120
2113
  expiration: z11.object({ utc_seconds: z11.string() }),
2121
2114
  ref_block_num: z11.string(),
@@ -2188,6 +2181,18 @@ var historyTransactionParser = z11.object({
2188
2181
  var getHistoryTransactionResponseParser = z11.object({
2189
2182
  data: historyTransactionParser.nullable()
2190
2183
  });
2184
+ var chronicleTransactionParser = z11.object({
2185
+ block_num: z11.string(),
2186
+ block_timestamp: z11.string(),
2187
+ trace: traceParser
2188
+ });
2189
+ var dbHistoryTransactionParser = z11.object({
2190
+ seq: z11.string(),
2191
+ block_num: z11.string(),
2192
+ block_time: z11.string(),
2193
+ trx_id: z11.string(),
2194
+ trace: z11.any()
2195
+ });
2191
2196
  var getHistoryActionsParser = z11.object({
2192
2197
  account: z11.string().min(1, { message: "account is required" }),
2193
2198
  contract_filters: contractFiltersParser,
@@ -3978,6 +3983,7 @@ export {
3978
3983
  baseActionParser,
3979
3984
  baseActionSerializedParser,
3980
3985
  bloksRatesParser,
3986
+ chronicleTransactionParser,
3981
3987
  compute_liquidity,
3982
3988
  compute_transfer,
3983
3989
  compute_transfer_curve,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.157",
8
+ "version": "0.2.159",
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": "3744039499590124993b3731aef814d011bb236e"
43
+ "gitHead": "241ab4168e52c344c4fdcb2bbb991906cfd52e7f"
44
44
  }
@@ -176,7 +176,7 @@ export type GetOrderHistoryResponse = z.infer<
176
176
  >;
177
177
 
178
178
  export const getOrderLifecycleParser = z.object({
179
- order_id: z.string().optional().transform(_ => _ ? +_ : _),
179
+ order_id: z.string().optional(),
180
180
  ordinal_order_id: z.string().optional(),
181
181
  });
182
182
  export type GetOrderLifecycle = z.input<typeof getOrderLifecycleParser>;
@@ -529,15 +529,6 @@ export type GetLeaderboardResponse = z.infer<
529
529
  /**
530
530
  * History Transaction
531
531
  */
532
- export const dbHistoryTransactionParser = z.object({
533
- seq: z.string(),
534
- block_num: z.string(),
535
- block_time: z.string(),
536
- trx_id: z.string(),
537
- trace: z.any(),
538
- });
539
- export type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
540
-
541
532
  export const historyPartialParser = z.object({
542
533
  expiration: z.object({ utc_seconds: z.string() }),
543
534
  ref_block_num: z.string(),
@@ -626,6 +617,22 @@ export type GetHistoryTransactionResponse = z.input<
626
617
  typeof getHistoryTransactionResponseParser
627
618
  >;
628
619
 
620
+ export const chronicleTransactionParser = z.object({
621
+ block_num: z.string(),
622
+ block_timestamp: z.string(),
623
+ trace: traceParser,
624
+ });
625
+ export type ChronicleTransaction = z.infer<typeof chronicleTransactionParser>;
626
+
627
+ export const dbHistoryTransactionParser = z.object({
628
+ seq: z.string(),
629
+ block_num: z.string(),
630
+ block_time: z.string(),
631
+ trx_id: z.string(),
632
+ trace: z.any(),
633
+ });
634
+ export type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
635
+
629
636
  /**
630
637
  * History Actions
631
638
  */