@proton/wrap-constants 0.2.137 → 0.2.138

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
@@ -11140,8 +11140,8 @@ declare const getHistoryTransfersParser: z.ZodObject<{
11140
11140
  amount_max: z.ZodOptional<z.ZodString>;
11141
11141
  date_from: z.ZodOptional<z.ZodString>;
11142
11142
  date_to: z.ZodOptional<z.ZodString>;
11143
- global_seq_from: z.ZodOptional<z.ZodString>;
11144
- global_seq_to: z.ZodOptional<z.ZodString>;
11143
+ tx_seq_from: z.ZodOptional<z.ZodString>;
11144
+ tx_seq_to: z.ZodOptional<z.ZodString>;
11145
11145
  direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
11146
11146
  limit: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, number | undefined>;
11147
11147
  }, "strip", z.ZodTypeAny, {
@@ -11154,8 +11154,8 @@ declare const getHistoryTransfersParser: z.ZodObject<{
11154
11154
  amount_max?: string | undefined;
11155
11155
  date_from?: string | undefined;
11156
11156
  date_to?: string | undefined;
11157
- global_seq_from?: string | undefined;
11158
- global_seq_to?: string | undefined;
11157
+ tx_seq_from?: string | undefined;
11158
+ tx_seq_to?: string | undefined;
11159
11159
  direction?: "asc" | "desc" | undefined;
11160
11160
  }, {
11161
11161
  transfer_from?: string | undefined;
@@ -11166,13 +11166,633 @@ declare const getHistoryTransfersParser: z.ZodObject<{
11166
11166
  amount_max?: string | undefined;
11167
11167
  date_from?: string | undefined;
11168
11168
  date_to?: string | undefined;
11169
- global_seq_from?: string | undefined;
11170
- global_seq_to?: string | undefined;
11169
+ tx_seq_from?: string | undefined;
11170
+ tx_seq_to?: string | undefined;
11171
11171
  direction?: "asc" | "desc" | undefined;
11172
11172
  limit?: number | undefined;
11173
11173
  }>;
11174
11174
  declare type GetHistoryTransfers = z.input<typeof getHistoryTransfersParser>;
11175
11175
  declare type GetHistoryTransfersParsed = z.output<typeof getHistoryTransfersParser>;
11176
+ declare const historyTransferParser: z.ZodObject<{
11177
+ block_num: z.ZodNumber;
11178
+ block_time: z.ZodString;
11179
+ trx_id: z.ZodString;
11180
+ trx_seq: z.ZodNumber;
11181
+ account_action_seq: z.ZodNumber;
11182
+ global_action_seq: z.ZodNumber;
11183
+ action_trace: z.ZodObject<{
11184
+ action_ordinal: z.ZodString;
11185
+ creator_action_ordinal: z.ZodString;
11186
+ receipt: z.ZodObject<{
11187
+ receiver: z.ZodString;
11188
+ act_digest: z.ZodString;
11189
+ global_sequence: z.ZodString;
11190
+ recv_sequence: z.ZodString;
11191
+ auth_sequence: z.ZodArray<z.ZodObject<{
11192
+ account: z.ZodString;
11193
+ sequence: z.ZodString;
11194
+ }, "strip", z.ZodTypeAny, {
11195
+ account: string;
11196
+ sequence: string;
11197
+ }, {
11198
+ account: string;
11199
+ sequence: string;
11200
+ }>, "many">;
11201
+ code_sequence: z.ZodString;
11202
+ abi_sequence: z.ZodString;
11203
+ }, "strip", z.ZodTypeAny, {
11204
+ receiver: string;
11205
+ act_digest: string;
11206
+ global_sequence: string;
11207
+ recv_sequence: string;
11208
+ auth_sequence: {
11209
+ account: string;
11210
+ sequence: string;
11211
+ }[];
11212
+ code_sequence: string;
11213
+ abi_sequence: string;
11214
+ }, {
11215
+ receiver: string;
11216
+ act_digest: string;
11217
+ global_sequence: string;
11218
+ recv_sequence: string;
11219
+ auth_sequence: {
11220
+ account: string;
11221
+ sequence: string;
11222
+ }[];
11223
+ code_sequence: string;
11224
+ abi_sequence: string;
11225
+ }>;
11226
+ receiver: z.ZodString;
11227
+ act: z.ZodObject<{
11228
+ account: z.ZodString;
11229
+ name: z.ZodString;
11230
+ authorization: z.ZodArray<z.ZodObject<{
11231
+ actor: z.ZodString;
11232
+ permission: z.ZodString;
11233
+ }, "strip", z.ZodTypeAny, {
11234
+ actor: string;
11235
+ permission: string;
11236
+ }, {
11237
+ actor: string;
11238
+ permission: string;
11239
+ }>, "many">;
11240
+ data: z.ZodAny;
11241
+ }, "strip", z.ZodTypeAny, {
11242
+ account: string;
11243
+ name: string;
11244
+ authorization: {
11245
+ actor: string;
11246
+ permission: string;
11247
+ }[];
11248
+ data?: any;
11249
+ }, {
11250
+ account: string;
11251
+ name: string;
11252
+ authorization: {
11253
+ actor: string;
11254
+ permission: string;
11255
+ }[];
11256
+ data?: any;
11257
+ }>;
11258
+ context_free: z.ZodString;
11259
+ elapsed: z.ZodString;
11260
+ console: z.ZodString;
11261
+ account_ram_deltas: z.ZodArray<z.ZodObject<{
11262
+ account: z.ZodString;
11263
+ delta: z.ZodString;
11264
+ }, "strip", z.ZodTypeAny, {
11265
+ account: string;
11266
+ delta: string;
11267
+ }, {
11268
+ account: string;
11269
+ delta: string;
11270
+ }>, "many">;
11271
+ except: z.ZodString;
11272
+ error_code: z.ZodNullable<z.ZodString>;
11273
+ return_value: z.ZodString;
11274
+ }, "strip", z.ZodTypeAny, {
11275
+ receiver: string;
11276
+ action_ordinal: string;
11277
+ creator_action_ordinal: string;
11278
+ receipt: {
11279
+ receiver: string;
11280
+ act_digest: string;
11281
+ global_sequence: string;
11282
+ recv_sequence: string;
11283
+ auth_sequence: {
11284
+ account: string;
11285
+ sequence: string;
11286
+ }[];
11287
+ code_sequence: string;
11288
+ abi_sequence: string;
11289
+ };
11290
+ act: {
11291
+ account: string;
11292
+ name: string;
11293
+ authorization: {
11294
+ actor: string;
11295
+ permission: string;
11296
+ }[];
11297
+ data?: any;
11298
+ };
11299
+ context_free: string;
11300
+ elapsed: string;
11301
+ console: string;
11302
+ account_ram_deltas: {
11303
+ account: string;
11304
+ delta: string;
11305
+ }[];
11306
+ except: string;
11307
+ error_code: string | null;
11308
+ return_value: string;
11309
+ }, {
11310
+ receiver: string;
11311
+ action_ordinal: string;
11312
+ creator_action_ordinal: string;
11313
+ receipt: {
11314
+ receiver: string;
11315
+ act_digest: string;
11316
+ global_sequence: string;
11317
+ recv_sequence: string;
11318
+ auth_sequence: {
11319
+ account: string;
11320
+ sequence: string;
11321
+ }[];
11322
+ code_sequence: string;
11323
+ abi_sequence: string;
11324
+ };
11325
+ act: {
11326
+ account: string;
11327
+ name: string;
11328
+ authorization: {
11329
+ actor: string;
11330
+ permission: string;
11331
+ }[];
11332
+ data?: any;
11333
+ };
11334
+ context_free: string;
11335
+ elapsed: string;
11336
+ console: string;
11337
+ account_ram_deltas: {
11338
+ account: string;
11339
+ delta: string;
11340
+ }[];
11341
+ except: string;
11342
+ error_code: string | null;
11343
+ return_value: string;
11344
+ }>;
11345
+ irreversible: z.ZodBoolean;
11346
+ }, "strip", z.ZodTypeAny, {
11347
+ block_time: string;
11348
+ block_num: number;
11349
+ trx_id: string;
11350
+ irreversible: boolean;
11351
+ account_action_seq: number;
11352
+ global_action_seq: number;
11353
+ action_trace: {
11354
+ receiver: string;
11355
+ action_ordinal: string;
11356
+ creator_action_ordinal: string;
11357
+ receipt: {
11358
+ receiver: string;
11359
+ act_digest: string;
11360
+ global_sequence: string;
11361
+ recv_sequence: string;
11362
+ auth_sequence: {
11363
+ account: string;
11364
+ sequence: string;
11365
+ }[];
11366
+ code_sequence: string;
11367
+ abi_sequence: string;
11368
+ };
11369
+ act: {
11370
+ account: string;
11371
+ name: string;
11372
+ authorization: {
11373
+ actor: string;
11374
+ permission: string;
11375
+ }[];
11376
+ data?: any;
11377
+ };
11378
+ context_free: string;
11379
+ elapsed: string;
11380
+ console: string;
11381
+ account_ram_deltas: {
11382
+ account: string;
11383
+ delta: string;
11384
+ }[];
11385
+ except: string;
11386
+ error_code: string | null;
11387
+ return_value: string;
11388
+ };
11389
+ trx_seq: number;
11390
+ }, {
11391
+ block_time: string;
11392
+ block_num: number;
11393
+ trx_id: string;
11394
+ irreversible: boolean;
11395
+ account_action_seq: number;
11396
+ global_action_seq: number;
11397
+ action_trace: {
11398
+ receiver: string;
11399
+ action_ordinal: string;
11400
+ creator_action_ordinal: string;
11401
+ receipt: {
11402
+ receiver: string;
11403
+ act_digest: string;
11404
+ global_sequence: string;
11405
+ recv_sequence: string;
11406
+ auth_sequence: {
11407
+ account: string;
11408
+ sequence: string;
11409
+ }[];
11410
+ code_sequence: string;
11411
+ abi_sequence: string;
11412
+ };
11413
+ act: {
11414
+ account: string;
11415
+ name: string;
11416
+ authorization: {
11417
+ actor: string;
11418
+ permission: string;
11419
+ }[];
11420
+ data?: any;
11421
+ };
11422
+ context_free: string;
11423
+ elapsed: string;
11424
+ console: string;
11425
+ account_ram_deltas: {
11426
+ account: string;
11427
+ delta: string;
11428
+ }[];
11429
+ except: string;
11430
+ error_code: string | null;
11431
+ return_value: string;
11432
+ };
11433
+ trx_seq: number;
11434
+ }>;
11435
+ declare type HistoryTransfer = z.infer<typeof historyTransferParser>;
11436
+ declare const getHistoryTransfersResponseParser: z.ZodObject<{
11437
+ sync: z.ZodNumber;
11438
+ last_irreversible_block_num: z.ZodNumber;
11439
+ data: z.ZodArray<z.ZodObject<{
11440
+ block_num: z.ZodNumber;
11441
+ block_time: z.ZodString;
11442
+ trx_id: z.ZodString;
11443
+ trx_seq: z.ZodNumber;
11444
+ account_action_seq: z.ZodNumber;
11445
+ global_action_seq: z.ZodNumber;
11446
+ action_trace: z.ZodObject<{
11447
+ action_ordinal: z.ZodString;
11448
+ creator_action_ordinal: z.ZodString;
11449
+ receipt: z.ZodObject<{
11450
+ receiver: z.ZodString;
11451
+ act_digest: z.ZodString;
11452
+ global_sequence: z.ZodString;
11453
+ recv_sequence: z.ZodString;
11454
+ auth_sequence: z.ZodArray<z.ZodObject<{
11455
+ account: z.ZodString;
11456
+ sequence: z.ZodString;
11457
+ }, "strip", z.ZodTypeAny, {
11458
+ account: string;
11459
+ sequence: string;
11460
+ }, {
11461
+ account: string;
11462
+ sequence: string;
11463
+ }>, "many">;
11464
+ code_sequence: z.ZodString;
11465
+ abi_sequence: z.ZodString;
11466
+ }, "strip", z.ZodTypeAny, {
11467
+ receiver: string;
11468
+ act_digest: string;
11469
+ global_sequence: string;
11470
+ recv_sequence: string;
11471
+ auth_sequence: {
11472
+ account: string;
11473
+ sequence: string;
11474
+ }[];
11475
+ code_sequence: string;
11476
+ abi_sequence: string;
11477
+ }, {
11478
+ receiver: string;
11479
+ act_digest: string;
11480
+ global_sequence: string;
11481
+ recv_sequence: string;
11482
+ auth_sequence: {
11483
+ account: string;
11484
+ sequence: string;
11485
+ }[];
11486
+ code_sequence: string;
11487
+ abi_sequence: string;
11488
+ }>;
11489
+ receiver: z.ZodString;
11490
+ act: z.ZodObject<{
11491
+ account: z.ZodString;
11492
+ name: z.ZodString;
11493
+ authorization: z.ZodArray<z.ZodObject<{
11494
+ actor: z.ZodString;
11495
+ permission: z.ZodString;
11496
+ }, "strip", z.ZodTypeAny, {
11497
+ actor: string;
11498
+ permission: string;
11499
+ }, {
11500
+ actor: string;
11501
+ permission: string;
11502
+ }>, "many">;
11503
+ data: z.ZodAny;
11504
+ }, "strip", z.ZodTypeAny, {
11505
+ account: string;
11506
+ name: string;
11507
+ authorization: {
11508
+ actor: string;
11509
+ permission: string;
11510
+ }[];
11511
+ data?: any;
11512
+ }, {
11513
+ account: string;
11514
+ name: string;
11515
+ authorization: {
11516
+ actor: string;
11517
+ permission: string;
11518
+ }[];
11519
+ data?: any;
11520
+ }>;
11521
+ context_free: z.ZodString;
11522
+ elapsed: z.ZodString;
11523
+ console: z.ZodString;
11524
+ account_ram_deltas: z.ZodArray<z.ZodObject<{
11525
+ account: z.ZodString;
11526
+ delta: z.ZodString;
11527
+ }, "strip", z.ZodTypeAny, {
11528
+ account: string;
11529
+ delta: string;
11530
+ }, {
11531
+ account: string;
11532
+ delta: string;
11533
+ }>, "many">;
11534
+ except: z.ZodString;
11535
+ error_code: z.ZodNullable<z.ZodString>;
11536
+ return_value: z.ZodString;
11537
+ }, "strip", z.ZodTypeAny, {
11538
+ receiver: string;
11539
+ action_ordinal: string;
11540
+ creator_action_ordinal: string;
11541
+ receipt: {
11542
+ receiver: string;
11543
+ act_digest: string;
11544
+ global_sequence: string;
11545
+ recv_sequence: string;
11546
+ auth_sequence: {
11547
+ account: string;
11548
+ sequence: string;
11549
+ }[];
11550
+ code_sequence: string;
11551
+ abi_sequence: string;
11552
+ };
11553
+ act: {
11554
+ account: string;
11555
+ name: string;
11556
+ authorization: {
11557
+ actor: string;
11558
+ permission: string;
11559
+ }[];
11560
+ data?: any;
11561
+ };
11562
+ context_free: string;
11563
+ elapsed: string;
11564
+ console: string;
11565
+ account_ram_deltas: {
11566
+ account: string;
11567
+ delta: string;
11568
+ }[];
11569
+ except: string;
11570
+ error_code: string | null;
11571
+ return_value: string;
11572
+ }, {
11573
+ receiver: string;
11574
+ action_ordinal: string;
11575
+ creator_action_ordinal: string;
11576
+ receipt: {
11577
+ receiver: string;
11578
+ act_digest: string;
11579
+ global_sequence: string;
11580
+ recv_sequence: string;
11581
+ auth_sequence: {
11582
+ account: string;
11583
+ sequence: string;
11584
+ }[];
11585
+ code_sequence: string;
11586
+ abi_sequence: string;
11587
+ };
11588
+ act: {
11589
+ account: string;
11590
+ name: string;
11591
+ authorization: {
11592
+ actor: string;
11593
+ permission: string;
11594
+ }[];
11595
+ data?: any;
11596
+ };
11597
+ context_free: string;
11598
+ elapsed: string;
11599
+ console: string;
11600
+ account_ram_deltas: {
11601
+ account: string;
11602
+ delta: string;
11603
+ }[];
11604
+ except: string;
11605
+ error_code: string | null;
11606
+ return_value: string;
11607
+ }>;
11608
+ irreversible: z.ZodBoolean;
11609
+ }, "strip", z.ZodTypeAny, {
11610
+ block_time: string;
11611
+ block_num: number;
11612
+ trx_id: string;
11613
+ irreversible: boolean;
11614
+ account_action_seq: number;
11615
+ global_action_seq: number;
11616
+ action_trace: {
11617
+ receiver: string;
11618
+ action_ordinal: string;
11619
+ creator_action_ordinal: string;
11620
+ receipt: {
11621
+ receiver: string;
11622
+ act_digest: string;
11623
+ global_sequence: string;
11624
+ recv_sequence: string;
11625
+ auth_sequence: {
11626
+ account: string;
11627
+ sequence: string;
11628
+ }[];
11629
+ code_sequence: string;
11630
+ abi_sequence: string;
11631
+ };
11632
+ act: {
11633
+ account: string;
11634
+ name: string;
11635
+ authorization: {
11636
+ actor: string;
11637
+ permission: string;
11638
+ }[];
11639
+ data?: any;
11640
+ };
11641
+ context_free: string;
11642
+ elapsed: string;
11643
+ console: string;
11644
+ account_ram_deltas: {
11645
+ account: string;
11646
+ delta: string;
11647
+ }[];
11648
+ except: string;
11649
+ error_code: string | null;
11650
+ return_value: string;
11651
+ };
11652
+ trx_seq: number;
11653
+ }, {
11654
+ block_time: string;
11655
+ block_num: number;
11656
+ trx_id: string;
11657
+ irreversible: boolean;
11658
+ account_action_seq: number;
11659
+ global_action_seq: number;
11660
+ action_trace: {
11661
+ receiver: string;
11662
+ action_ordinal: string;
11663
+ creator_action_ordinal: string;
11664
+ receipt: {
11665
+ receiver: string;
11666
+ act_digest: string;
11667
+ global_sequence: string;
11668
+ recv_sequence: string;
11669
+ auth_sequence: {
11670
+ account: string;
11671
+ sequence: string;
11672
+ }[];
11673
+ code_sequence: string;
11674
+ abi_sequence: string;
11675
+ };
11676
+ act: {
11677
+ account: string;
11678
+ name: string;
11679
+ authorization: {
11680
+ actor: string;
11681
+ permission: string;
11682
+ }[];
11683
+ data?: any;
11684
+ };
11685
+ context_free: string;
11686
+ elapsed: string;
11687
+ console: string;
11688
+ account_ram_deltas: {
11689
+ account: string;
11690
+ delta: string;
11691
+ }[];
11692
+ except: string;
11693
+ error_code: string | null;
11694
+ return_value: string;
11695
+ };
11696
+ trx_seq: number;
11697
+ }>, "many">;
11698
+ }, "strip", z.ZodTypeAny, {
11699
+ data: {
11700
+ block_time: string;
11701
+ block_num: number;
11702
+ trx_id: string;
11703
+ irreversible: boolean;
11704
+ account_action_seq: number;
11705
+ global_action_seq: number;
11706
+ action_trace: {
11707
+ receiver: string;
11708
+ action_ordinal: string;
11709
+ creator_action_ordinal: string;
11710
+ receipt: {
11711
+ receiver: string;
11712
+ act_digest: string;
11713
+ global_sequence: string;
11714
+ recv_sequence: string;
11715
+ auth_sequence: {
11716
+ account: string;
11717
+ sequence: string;
11718
+ }[];
11719
+ code_sequence: string;
11720
+ abi_sequence: string;
11721
+ };
11722
+ act: {
11723
+ account: string;
11724
+ name: string;
11725
+ authorization: {
11726
+ actor: string;
11727
+ permission: string;
11728
+ }[];
11729
+ data?: any;
11730
+ };
11731
+ context_free: string;
11732
+ elapsed: string;
11733
+ console: string;
11734
+ account_ram_deltas: {
11735
+ account: string;
11736
+ delta: string;
11737
+ }[];
11738
+ except: string;
11739
+ error_code: string | null;
11740
+ return_value: string;
11741
+ };
11742
+ trx_seq: number;
11743
+ }[];
11744
+ sync: number;
11745
+ last_irreversible_block_num: number;
11746
+ }, {
11747
+ data: {
11748
+ block_time: string;
11749
+ block_num: number;
11750
+ trx_id: string;
11751
+ irreversible: boolean;
11752
+ account_action_seq: number;
11753
+ global_action_seq: number;
11754
+ action_trace: {
11755
+ receiver: string;
11756
+ action_ordinal: string;
11757
+ creator_action_ordinal: string;
11758
+ receipt: {
11759
+ receiver: string;
11760
+ act_digest: string;
11761
+ global_sequence: string;
11762
+ recv_sequence: string;
11763
+ auth_sequence: {
11764
+ account: string;
11765
+ sequence: string;
11766
+ }[];
11767
+ code_sequence: string;
11768
+ abi_sequence: string;
11769
+ };
11770
+ act: {
11771
+ account: string;
11772
+ name: string;
11773
+ authorization: {
11774
+ actor: string;
11775
+ permission: string;
11776
+ }[];
11777
+ data?: any;
11778
+ };
11779
+ context_free: string;
11780
+ elapsed: string;
11781
+ console: string;
11782
+ account_ram_deltas: {
11783
+ account: string;
11784
+ delta: string;
11785
+ }[];
11786
+ except: string;
11787
+ error_code: string | null;
11788
+ return_value: string;
11789
+ };
11790
+ trx_seq: number;
11791
+ }[];
11792
+ sync: number;
11793
+ last_irreversible_block_num: number;
11794
+ }>;
11795
+ declare type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResponseParser>;
11176
11796
  /**
11177
11797
  * Basic Types
11178
11798
  */
@@ -12219,4 +12839,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
12219
12839
  }) => boolean;
12220
12840
  declare const applyDiscountToFee: (fee: number, staked: number) => number;
12221
12841
 
12222
- 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, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponse, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, 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, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, 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, 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, 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 };
12842
+ 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, 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, 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, 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, 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
@@ -78,6 +78,7 @@ __export(src_exports, {
78
78
  getHistoryActionsResponseParser: () => getHistoryActionsResponseParser,
79
79
  getHistoryTransactionResponseParser: () => getHistoryTransactionResponseParser,
80
80
  getHistoryTransfersParser: () => getHistoryTransfersParser,
81
+ getHistoryTransfersResponseParser: () => getHistoryTransfersResponseParser,
81
82
  getLeaderboardParser: () => getLeaderboardParser,
82
83
  getLeaderboardResponseParser: () => getLeaderboardResponseParser,
83
84
  getMarketsResponseParser: () => getMarketsResponseParser,
@@ -101,6 +102,7 @@ __export(src_exports, {
101
102
  historyActionParser: () => historyActionParser,
102
103
  historyPartialParser: () => historyPartialParser,
103
104
  historyTransactionParser: () => historyTransactionParser,
105
+ historyTransferParser: () => historyTransferParser,
104
106
  initializeCoins: () => initializeCoins,
105
107
  initializeConstants: () => initializeConstants,
106
108
  isInputInvalid: () => isInputInvalid,
@@ -2368,11 +2370,26 @@ var getHistoryTransfersParser = z11.object({
2368
2370
  amount_max: z11.string().optional(),
2369
2371
  date_from: z11.string().optional(),
2370
2372
  date_to: z11.string().optional(),
2371
- global_seq_from: z11.string().optional(),
2372
- global_seq_to: z11.string().optional(),
2373
+ tx_seq_from: z11.string().optional(),
2374
+ tx_seq_to: z11.string().optional(),
2373
2375
  direction: sortDirectionEnum.optional(),
2374
2376
  limit: createLimit(100, 250)
2375
2377
  });
2378
+ var historyTransferParser = z11.object({
2379
+ block_num: z11.number(),
2380
+ block_time: z11.string(),
2381
+ trx_id: z11.string(),
2382
+ trx_seq: z11.number(),
2383
+ account_action_seq: z11.number(),
2384
+ global_action_seq: z11.number(),
2385
+ action_trace: actionTraceParser,
2386
+ irreversible: z11.boolean()
2387
+ });
2388
+ var getHistoryTransfersResponseParser = z11.object({
2389
+ sync: z11.number(),
2390
+ last_irreversible_block_num: z11.number(),
2391
+ data: z11.array(historyTransferParser)
2392
+ });
2376
2393
  var orderType = /* @__PURE__ */ ((orderType2) => {
2377
2394
  orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
2378
2395
  orderType2[orderType2["LIMIT"] = 1] = "LIMIT";
@@ -4123,6 +4140,7 @@ var applyDiscountToFee = (fee, staked) => {
4123
4140
  getHistoryActionsResponseParser,
4124
4141
  getHistoryTransactionResponseParser,
4125
4142
  getHistoryTransfersParser,
4143
+ getHistoryTransfersResponseParser,
4126
4144
  getLeaderboardParser,
4127
4145
  getLeaderboardResponseParser,
4128
4146
  getMarketsResponseParser,
@@ -4146,6 +4164,7 @@ var applyDiscountToFee = (fee, staked) => {
4146
4164
  historyActionParser,
4147
4165
  historyPartialParser,
4148
4166
  historyTransactionParser,
4167
+ historyTransferParser,
4149
4168
  initializeCoins,
4150
4169
  initializeConstants,
4151
4170
  isInputInvalid,
package/dist/index.mjs CHANGED
@@ -2218,11 +2218,26 @@ var getHistoryTransfersParser = z11.object({
2218
2218
  amount_max: z11.string().optional(),
2219
2219
  date_from: z11.string().optional(),
2220
2220
  date_to: z11.string().optional(),
2221
- global_seq_from: z11.string().optional(),
2222
- global_seq_to: z11.string().optional(),
2221
+ tx_seq_from: z11.string().optional(),
2222
+ tx_seq_to: z11.string().optional(),
2223
2223
  direction: sortDirectionEnum.optional(),
2224
2224
  limit: createLimit(100, 250)
2225
2225
  });
2226
+ var historyTransferParser = z11.object({
2227
+ block_num: z11.number(),
2228
+ block_time: z11.string(),
2229
+ trx_id: z11.string(),
2230
+ trx_seq: z11.number(),
2231
+ account_action_seq: z11.number(),
2232
+ global_action_seq: z11.number(),
2233
+ action_trace: actionTraceParser,
2234
+ irreversible: z11.boolean()
2235
+ });
2236
+ var getHistoryTransfersResponseParser = z11.object({
2237
+ sync: z11.number(),
2238
+ last_irreversible_block_num: z11.number(),
2239
+ data: z11.array(historyTransferParser)
2240
+ });
2226
2241
  var orderType = /* @__PURE__ */ ((orderType2) => {
2227
2242
  orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
2228
2243
  orderType2[orderType2["LIMIT"] = 1] = "LIMIT";
@@ -3972,6 +3987,7 @@ export {
3972
3987
  getHistoryActionsResponseParser,
3973
3988
  getHistoryTransactionResponseParser,
3974
3989
  getHistoryTransfersParser,
3990
+ getHistoryTransfersResponseParser,
3975
3991
  getLeaderboardParser,
3976
3992
  getLeaderboardResponseParser,
3977
3993
  getMarketsResponseParser,
@@ -3995,6 +4011,7 @@ export {
3995
4011
  historyActionParser,
3996
4012
  historyPartialParser,
3997
4013
  historyTransactionParser,
4014
+ historyTransferParser,
3998
4015
  initializeCoins,
3999
4016
  initializeConstants,
4000
4017
  isInputInvalid,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.137",
8
+ "version": "0.2.138",
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": "0e33f4a8aaea10295c5dde7c033451532e8304fc"
43
+ "gitHead": "7d442c26ce51e65c4e395d5fde1ec578827a2183"
44
44
  }
@@ -668,14 +668,33 @@ export const getHistoryTransfersParser = z.object({
668
668
  amount_max: z.string().optional(),
669
669
  date_from: z.string().optional(),
670
670
  date_to: z.string().optional(),
671
- global_seq_from: z.string().optional(),
672
- global_seq_to: z.string().optional(),
671
+ tx_seq_from: z.string().optional(),
672
+ tx_seq_to: z.string().optional(),
673
673
  direction: sortDirectionEnum.optional(),
674
674
  limit: createLimit(100, 250)
675
675
  });
676
676
  export type GetHistoryTransfers = z.input<typeof getHistoryTransfersParser>;
677
677
  export type GetHistoryTransfersParsed = z.output<typeof getHistoryTransfersParser>;
678
678
 
679
+ export const historyTransferParser = z.object({
680
+ block_num: z.number(),
681
+ block_time: z.string(),
682
+ trx_id: z.string(),
683
+ trx_seq: z.number(),
684
+ account_action_seq: z.number(),
685
+ global_action_seq: z.number(),
686
+ action_trace: actionTraceParser,
687
+ irreversible: z.boolean()
688
+ });
689
+ export type HistoryTransfer = z.infer<typeof historyTransferParser>;
690
+
691
+ export const getHistoryTransfersResponseParser = z.object({
692
+ sync: z.number(),
693
+ last_irreversible_block_num: z.number(),
694
+ data: z.array(historyTransferParser)
695
+ });
696
+ export type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResponseParser>;
697
+
679
698
  /**
680
699
  * Basic Types
681
700
  */