@proton/wrap-constants 0.2.158 → 0.2.160

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
@@ -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,
@@ -908,6 +909,34 @@ var initializeCoins = (protonChain) => {
908
909
  coingeckoId: "litecoin",
909
910
  unifiedCryptoassetId: "2"
910
911
  },
912
+ {
913
+ allowSwap: false,
914
+ allowBridge: IS_MAINNET,
915
+ allowLend: false,
916
+ allowBorrow: false,
917
+ name: "PayPal USD",
918
+ coin: "PYUSD",
919
+ xtokenSymbol: "XPYUSD",
920
+ xtokenPrecision: 6,
921
+ xtokenContract: "xtokens",
922
+ wallets: [
923
+ ...IS_MAINNET ? [
924
+ {
925
+ wallet: "PYUSD",
926
+ symbol: "PYUSD",
927
+ chain: "Ethereum" /* EthereumMainnet */,
928
+ network: "erc20" /* ERC20 */,
929
+ precision: 6,
930
+ contract: void 0,
931
+ provider: "fireblocks" /* FIREBLOCKS */,
932
+ hasWithdrawMemo: false
933
+ }
934
+ ] : []
935
+ ],
936
+ image: "https://github.com/eoscafe/eos-airdrops/blob/master/logos/pyusd.png?raw=true",
937
+ coingeckoId: "paypal-usd",
938
+ unifiedCryptoassetId: "27772"
939
+ },
911
940
  {
912
941
  allowSwap: false,
913
942
  allowBridge: false,
@@ -2263,13 +2292,6 @@ var getLeaderboardResponseParser = z11.object({
2263
2292
  sync: z11.number(),
2264
2293
  data: z11.array(leaderboardParser)
2265
2294
  });
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
2295
  var historyPartialParser = z11.object({
2274
2296
  expiration: z11.object({ utc_seconds: z11.string() }),
2275
2297
  ref_block_num: z11.string(),
@@ -2342,6 +2364,18 @@ var historyTransactionParser = z11.object({
2342
2364
  var getHistoryTransactionResponseParser = z11.object({
2343
2365
  data: historyTransactionParser.nullable()
2344
2366
  });
2367
+ var chronicleTransactionParser = z11.object({
2368
+ block_num: z11.string(),
2369
+ block_timestamp: z11.string(),
2370
+ trace: traceParser
2371
+ });
2372
+ var dbHistoryTransactionParser = z11.object({
2373
+ seq: z11.string(),
2374
+ block_num: z11.string(),
2375
+ block_time: z11.string(),
2376
+ trx_id: z11.string(),
2377
+ trace: z11.any()
2378
+ });
2345
2379
  var getHistoryActionsParser = z11.object({
2346
2380
  account: z11.string().min(1, { message: "account is required" }),
2347
2381
  contract_filters: contractFiltersParser,
@@ -4133,6 +4167,7 @@ var applyDiscountToFee = (fee, staked) => {
4133
4167
  baseActionParser,
4134
4168
  baseActionSerializedParser,
4135
4169
  bloksRatesParser,
4170
+ chronicleTransactionParser,
4136
4171
  compute_liquidity,
4137
4172
  compute_transfer,
4138
4173
  compute_transfer_curve,
package/dist/index.mjs CHANGED
@@ -754,6 +754,34 @@ var initializeCoins = (protonChain) => {
754
754
  coingeckoId: "litecoin",
755
755
  unifiedCryptoassetId: "2"
756
756
  },
757
+ {
758
+ allowSwap: false,
759
+ allowBridge: IS_MAINNET,
760
+ allowLend: false,
761
+ allowBorrow: false,
762
+ name: "PayPal USD",
763
+ coin: "PYUSD",
764
+ xtokenSymbol: "XPYUSD",
765
+ xtokenPrecision: 6,
766
+ xtokenContract: "xtokens",
767
+ wallets: [
768
+ ...IS_MAINNET ? [
769
+ {
770
+ wallet: "PYUSD",
771
+ symbol: "PYUSD",
772
+ chain: "Ethereum" /* EthereumMainnet */,
773
+ network: "erc20" /* ERC20 */,
774
+ precision: 6,
775
+ contract: void 0,
776
+ provider: "fireblocks" /* FIREBLOCKS */,
777
+ hasWithdrawMemo: false
778
+ }
779
+ ] : []
780
+ ],
781
+ image: "https://github.com/eoscafe/eos-airdrops/blob/master/logos/pyusd.png?raw=true",
782
+ coingeckoId: "paypal-usd",
783
+ unifiedCryptoassetId: "27772"
784
+ },
757
785
  {
758
786
  allowSwap: false,
759
787
  allowBridge: false,
@@ -2109,13 +2137,6 @@ var getLeaderboardResponseParser = z11.object({
2109
2137
  sync: z11.number(),
2110
2138
  data: z11.array(leaderboardParser)
2111
2139
  });
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
2140
  var historyPartialParser = z11.object({
2120
2141
  expiration: z11.object({ utc_seconds: z11.string() }),
2121
2142
  ref_block_num: z11.string(),
@@ -2188,6 +2209,18 @@ var historyTransactionParser = z11.object({
2188
2209
  var getHistoryTransactionResponseParser = z11.object({
2189
2210
  data: historyTransactionParser.nullable()
2190
2211
  });
2212
+ var chronicleTransactionParser = z11.object({
2213
+ block_num: z11.string(),
2214
+ block_timestamp: z11.string(),
2215
+ trace: traceParser
2216
+ });
2217
+ var dbHistoryTransactionParser = z11.object({
2218
+ seq: z11.string(),
2219
+ block_num: z11.string(),
2220
+ block_time: z11.string(),
2221
+ trx_id: z11.string(),
2222
+ trace: z11.any()
2223
+ });
2191
2224
  var getHistoryActionsParser = z11.object({
2192
2225
  account: z11.string().min(1, { message: "account is required" }),
2193
2226
  contract_filters: contractFiltersParser,
@@ -3978,6 +4011,7 @@ export {
3978
4011
  baseActionParser,
3979
4012
  baseActionSerializedParser,
3980
4013
  bloksRatesParser,
4014
+ chronicleTransactionParser,
3981
4015
  compute_liquidity,
3982
4016
  compute_transfer,
3983
4017
  compute_transfer_curve,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.158",
8
+ "version": "0.2.160",
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": "ad807db550aeac34fc4a3ae7a5e0dad980896ccd"
43
+ "gitHead": "8b65cc9eaad71465f9a6d95dd581519effce5773"
44
44
  }
package/src/coins.ts CHANGED
@@ -885,6 +885,36 @@ export const initializeCoins = (
885
885
  coingeckoId: "litecoin",
886
886
  unifiedCryptoassetId: "2",
887
887
  },
888
+ {
889
+ allowSwap: false,
890
+ allowBridge: IS_MAINNET,
891
+ allowLend: false,
892
+ allowBorrow: false,
893
+ name: "PayPal USD",
894
+ coin: "PYUSD",
895
+ xtokenSymbol: "XPYUSD",
896
+ xtokenPrecision: 6,
897
+ xtokenContract: "xtokens",
898
+ wallets: [
899
+ ...(IS_MAINNET
900
+ ? [
901
+ {
902
+ wallet: "PYUSD",
903
+ symbol: "PYUSD",
904
+ chain: Chains.EthereumMainnet,
905
+ network: Networks.ERC20,
906
+ precision: 6,
907
+ contract: undefined,
908
+ provider: Providers.FIREBLOCKS,
909
+ hasWithdrawMemo: false,
910
+ },
911
+ ]
912
+ : []),
913
+ ],
914
+ image: "https://github.com/eoscafe/eos-airdrops/blob/master/logos/pyusd.png?raw=true",
915
+ coingeckoId: "paypal-usd",
916
+ unifiedCryptoassetId: "27772",
917
+ },
888
918
  {
889
919
  allowSwap: false,
890
920
  allowBridge: false,
@@ -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
  */