@waves/node-api-js 1.2.6-cjs.0 → 1.2.7

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.
Files changed (109) hide show
  1. package/cjs/api-node/activation/index.js +2 -2
  2. package/cjs/api-node/activation/index.js.map +1 -1
  3. package/cjs/api-node/addresses/index.d.ts +2 -0
  4. package/cjs/api-node/addresses/index.js +105 -46
  5. package/cjs/api-node/addresses/index.js.map +1 -1
  6. package/cjs/api-node/alias/index.js +5 -5
  7. package/cjs/api-node/alias/index.js.map +1 -1
  8. package/cjs/api-node/assets/index.d.ts +16 -2
  9. package/cjs/api-node/assets/index.js +137 -63
  10. package/cjs/api-node/assets/index.js.map +1 -1
  11. package/cjs/api-node/blocks/index.d.ts +2 -2
  12. package/cjs/api-node/blocks/index.js +60 -49
  13. package/cjs/api-node/blocks/index.js.map +1 -1
  14. package/cjs/api-node/consensus/index.js +6 -5
  15. package/cjs/api-node/consensus/index.js.map +1 -1
  16. package/cjs/api-node/debug/index.d.ts +100 -0
  17. package/cjs/api-node/debug/index.js +196 -15
  18. package/cjs/api-node/debug/index.js.map +1 -1
  19. package/cjs/api-node/eth/index.js +5 -5
  20. package/cjs/api-node/eth/index.js.map +1 -1
  21. package/cjs/api-node/leasing/index.js +19 -7
  22. package/cjs/api-node/leasing/index.js.map +1 -1
  23. package/cjs/api-node/node/index.js +7 -5
  24. package/cjs/api-node/node/index.js.map +1 -1
  25. package/cjs/api-node/peers/index.js +17 -13
  26. package/cjs/api-node/peers/index.js.map +1 -1
  27. package/cjs/api-node/rewards/index.js +6 -5
  28. package/cjs/api-node/rewards/index.js.map +1 -1
  29. package/cjs/api-node/transactions/index.d.ts +9 -5
  30. package/cjs/api-node/transactions/index.js +94 -43
  31. package/cjs/api-node/transactions/index.js.map +1 -1
  32. package/cjs/api-node/utils/index.js +22 -22
  33. package/cjs/api-node/utils/index.js.map +1 -1
  34. package/cjs/create.d.ts +6 -248
  35. package/cjs/create.js +59 -59
  36. package/cjs/create.js.map +1 -1
  37. package/cjs/index.js +5 -5
  38. package/cjs/index.js.map +1 -1
  39. package/cjs/interface.js +6 -2
  40. package/cjs/interface.js.map +1 -1
  41. package/cjs/tools/adresses/availableSponsoredBalances.js +9 -9
  42. package/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -1
  43. package/cjs/tools/adresses/ethAddress2waves.js +29 -16
  44. package/cjs/tools/adresses/ethAddress2waves.js.map +1 -1
  45. package/cjs/tools/adresses/getAssetIdListByTx.js +36 -15
  46. package/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -1
  47. package/cjs/tools/adresses/getAssetsByTransaction.js +4 -4
  48. package/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -1
  49. package/cjs/tools/adresses/getTransactionsWithAssets.d.ts +2 -3
  50. package/cjs/tools/adresses/getTransactionsWithAssets.js +3 -3
  51. package/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -1
  52. package/cjs/tools/adresses/watch.js +85 -56
  53. package/cjs/tools/adresses/watch.js.map +1 -1
  54. package/cjs/tools/adresses/wavesAddress2eth.js +4 -4
  55. package/cjs/tools/adresses/wavesAddress2eth.js.map +1 -1
  56. package/cjs/tools/assets/wavesAsset2eth.js +4 -4
  57. package/cjs/tools/assets/wavesAsset2eth.js.map +1 -1
  58. package/cjs/tools/blocks/detectInterval.js +4 -4
  59. package/cjs/tools/blocks/detectInterval.js.map +1 -1
  60. package/cjs/tools/blocks/getNetworkByte.js +6 -6
  61. package/cjs/tools/blocks/getNetworkByte.js.map +1 -1
  62. package/cjs/tools/blocks/getNetworkCode.js +2 -2
  63. package/cjs/tools/blocks/getNetworkCode.js.map +1 -1
  64. package/cjs/tools/blocks/waitHeight.js +36 -13
  65. package/cjs/tools/blocks/waitHeight.js.map +1 -1
  66. package/cjs/tools/parse.js +2 -2
  67. package/cjs/tools/parse.js.map +1 -1
  68. package/cjs/tools/query.js +34 -8
  69. package/cjs/tools/query.js.map +1 -1
  70. package/cjs/tools/request.d.ts +2 -1
  71. package/cjs/tools/request.js +21 -7
  72. package/cjs/tools/request.js.map +1 -1
  73. package/cjs/tools/stringify.js +7 -4
  74. package/cjs/tools/stringify.js.map +1 -1
  75. package/cjs/tools/transactions/broadcast.js +29 -18
  76. package/cjs/tools/transactions/broadcast.js.map +1 -1
  77. package/cjs/tools/transactions/ethTxId2waves.js +2 -2
  78. package/cjs/tools/transactions/ethTxId2waves.js.map +1 -1
  79. package/cjs/tools/transactions/transactions.js +65 -51
  80. package/cjs/tools/transactions/transactions.js.map +1 -1
  81. package/cjs/tools/transactions/wait.js +16 -16
  82. package/cjs/tools/transactions/wait.js.map +1 -1
  83. package/cjs/tools/utils.js +63 -30
  84. package/cjs/tools/utils.js.map +1 -1
  85. package/dist/0.node-api.js +455 -0
  86. package/dist/node-api.js +367 -720
  87. package/dist/node-api.min.js +5 -5
  88. package/es/api-node/addresses/index.d.ts +2 -0
  89. package/es/api-node/addresses/index.js +17 -1
  90. package/es/api-node/addresses/index.js.map +1 -1
  91. package/es/api-node/assets/index.d.ts +16 -2
  92. package/es/api-node/assets/index.js +13 -6
  93. package/es/api-node/assets/index.js.map +1 -1
  94. package/es/api-node/blocks/index.d.ts +2 -2
  95. package/es/api-node/debug/index.d.ts +100 -0
  96. package/es/api-node/debug/index.js +147 -1
  97. package/es/api-node/debug/index.js.map +1 -1
  98. package/es/api-node/transactions/index.d.ts +9 -5
  99. package/es/api-node/transactions/index.js +12 -3
  100. package/es/api-node/transactions/index.js.map +1 -1
  101. package/es/create.d.ts +6 -248
  102. package/es/tools/adresses/getTransactionsWithAssets.d.ts +2 -3
  103. package/es/tools/adresses/watch.js.map +1 -1
  104. package/es/tools/request.d.ts +2 -1
  105. package/es/tools/request.js +2 -2
  106. package/es/tools/request.js.map +1 -1
  107. package/es/tools/stringify.js +5 -2
  108. package/es/tools/stringify.js.map +1 -1
  109. package/package.json +7 -7
package/cjs/create.d.ts CHANGED
@@ -76,8 +76,6 @@ export declare function create(base: string): {
76
76
  sender: string;
77
77
  height: number;
78
78
  }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
79
- feeAssetId: string | null;
80
- } & {
81
79
  version: 3;
82
80
  } & import("@waves/ts-types").WithId & {
83
81
  sender: string;
@@ -237,12 +235,7 @@ export declare function create(base: string): {
237
235
  } & import("@waves/ts-types").WithId & {
238
236
  sender: string;
239
237
  height: number;
240
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
241
- version: 1;
242
- } & import("@waves/ts-types").WithId & {
243
- sender: string;
244
- height: number;
245
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
238
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
246
239
  version: 1;
247
240
  } & import("@waves/ts-types").WithId & {
248
241
  sender: string;
@@ -288,8 +281,6 @@ export declare function create(base: string): {
288
281
  sender: string;
289
282
  height: number;
290
283
  }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
291
- feeAssetId: string | null;
292
- } & {
293
284
  version: 3;
294
285
  } & import("@waves/ts-types").WithId & {
295
286
  sender: string;
@@ -449,12 +440,7 @@ export declare function create(base: string): {
449
440
  } & import("@waves/ts-types").WithId & {
450
441
  sender: string;
451
442
  height: number;
452
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
453
- version: 1;
454
- } & import("@waves/ts-types").WithId & {
455
- sender: string;
456
- height: number;
457
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
443
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
458
444
  version: 1;
459
445
  } & import("@waves/ts-types").WithId & {
460
446
  sender: string;
@@ -500,8 +486,6 @@ export declare function create(base: string): {
500
486
  sender: string;
501
487
  height: number;
502
488
  }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
503
- feeAssetId: string | null;
504
- } & {
505
489
  version: 3;
506
490
  } & import("@waves/ts-types").WithId & {
507
491
  sender: string;
@@ -661,12 +645,7 @@ export declare function create(base: string): {
661
645
  } & import("@waves/ts-types").WithId & {
662
646
  sender: string;
663
647
  height: number;
664
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
665
- version: 1;
666
- } & import("@waves/ts-types").WithId & {
667
- sender: string;
668
- height: number;
669
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
648
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
670
649
  version: 1;
671
650
  } & import("@waves/ts-types").WithId & {
672
651
  sender: string;
@@ -712,8 +691,6 @@ export declare function create(base: string): {
712
691
  sender: string;
713
692
  height: number;
714
693
  }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
715
- feeAssetId: string | null;
716
- } & {
717
694
  version: 3;
718
695
  } & import("@waves/ts-types").WithId & {
719
696
  sender: string;
@@ -873,12 +850,7 @@ export declare function create(base: string): {
873
850
  } & import("@waves/ts-types").WithId & {
874
851
  sender: string;
875
852
  height: number;
876
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
877
- version: 1;
878
- } & import("@waves/ts-types").WithId & {
879
- sender: string;
880
- height: number;
881
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
853
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
882
854
  version: 1;
883
855
  } & import("@waves/ts-types").WithId & {
884
856
  sender: string;
@@ -896,224 +868,10 @@ export declare function create(base: string): {
896
868
  chainId: number;
897
869
  timestamp: number;
898
870
  fee: import("@waves/ts-types").Long;
899
- }, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").PaymentTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 2>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
900
- feeAssetId: string | null;
901
- }, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").UpdateAssetInfoTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 17>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18>, 1> | Transaction<import("@waves/ts-types").Long>[]) => Promise<Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>>;
871
+ }, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").PaymentTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 2>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").UpdateAssetInfoTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 17>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18>, 1> | Transaction<import("@waves/ts-types").Long>[]) => Promise<Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>>;
902
872
  getAssetIdListByTx: typeof getAssetIdListByTx;
903
873
  getTransactionsWithAssets: (address: string, limit: number, after?: string | undefined) => Promise<{
904
- transactions: ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
905
- version: 1;
906
- } & import("@waves/ts-types").WithId & {
907
- sender: string;
908
- height: number;
909
- }) | (import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
910
- version: 2;
911
- } & import("@waves/ts-types").WithId & {
912
- sender: string;
913
- height: number;
914
- }) | (import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
915
- version: 3;
916
- } & import("@waves/ts-types").WithId & {
917
- sender: string;
918
- height: number;
919
- }) | (import("@waves/ts-types").GenesisTransactionFields<import("@waves/ts-types").Long> & {
920
- type: 1;
921
- chainId: number;
922
- timestamp: number;
923
- fee: import("@waves/ts-types").Long;
924
- } & {
925
- version: 1;
926
- } & import("@waves/ts-types").WithId & {
927
- sender: string;
928
- height: number;
929
- }) | (import("@waves/ts-types").PaymentTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 2> & {
930
- version: 1;
931
- } & import("@waves/ts-types").WithId & {
932
- sender: string;
933
- height: number;
934
- }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
935
- version: 1;
936
- } & import("@waves/ts-types").WithId & {
937
- sender: string;
938
- height: number;
939
- }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
940
- version: 2;
941
- } & import("@waves/ts-types").WithId & {
942
- sender: string;
943
- height: number;
944
- }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
945
- feeAssetId: string | null;
946
- } & {
947
- version: 3;
948
- } & import("@waves/ts-types").WithId & {
949
- sender: string;
950
- height: number;
951
- }) | (import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4> & {
952
- version: 1;
953
- } & import("@waves/ts-types").WithId & {
954
- sender: string;
955
- height: number;
956
- }) | (import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4> & {
957
- version: 2;
958
- } & import("@waves/ts-types").WithId & {
959
- sender: string;
960
- height: number;
961
- }) | (import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4> & {
962
- version: 3;
963
- } & import("@waves/ts-types").WithId & {
964
- sender: string;
965
- height: number;
966
- }) | (import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5> & {
967
- version: 1;
968
- } & import("@waves/ts-types").WithId & {
969
- sender: string;
970
- height: number;
971
- }) | (import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5> & {
972
- version: 2;
973
- } & import("@waves/ts-types").WithId & {
974
- sender: string;
975
- height: number;
976
- }) | (import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5> & {
977
- version: 3;
978
- } & import("@waves/ts-types").WithId & {
979
- sender: string;
980
- height: number;
981
- }) | (import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6> & {
982
- version: 1;
983
- } & import("@waves/ts-types").WithId & {
984
- sender: string;
985
- height: number;
986
- }) | (import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6> & {
987
- version: 2;
988
- } & import("@waves/ts-types").WithId & {
989
- sender: string;
990
- height: number;
991
- }) | (import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6> & {
992
- version: 3;
993
- } & import("@waves/ts-types").WithId & {
994
- sender: string;
995
- height: number;
996
- }) | (import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8> & {
997
- version: 1;
998
- } & import("@waves/ts-types").WithId & {
999
- sender: string;
1000
- height: number;
1001
- }) | (import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8> & {
1002
- version: 2;
1003
- } & import("@waves/ts-types").WithId & {
1004
- sender: string;
1005
- height: number;
1006
- }) | (import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8> & {
1007
- version: 3;
1008
- } & import("@waves/ts-types").WithId & {
1009
- sender: string;
1010
- height: number;
1011
- }) | (import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9> & {
1012
- version: 1;
1013
- } & import("@waves/ts-types").WithId & {
1014
- sender: string;
1015
- height: number;
1016
- }) | (import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9> & {
1017
- version: 2;
1018
- } & import("@waves/ts-types").WithId & {
1019
- sender: string;
1020
- height: number;
1021
- }) | (import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9> & {
1022
- version: 3;
1023
- } & import("@waves/ts-types").WithId & {
1024
- sender: string;
1025
- height: number;
1026
- }) | (import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10> & {
1027
- version: 1;
1028
- } & import("@waves/ts-types").WithId & {
1029
- sender: string;
1030
- height: number;
1031
- }) | (import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10> & {
1032
- version: 2;
1033
- } & import("@waves/ts-types").WithId & {
1034
- sender: string;
1035
- height: number;
1036
- }) | (import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10> & {
1037
- version: 3;
1038
- } & import("@waves/ts-types").WithId & {
1039
- sender: string;
1040
- height: number;
1041
- }) | (import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11> & {
1042
- version: 1;
1043
- } & import("@waves/ts-types").WithId & {
1044
- sender: string;
1045
- height: number;
1046
- }) | (import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11> & {
1047
- version: 2;
1048
- } & import("@waves/ts-types").WithId & {
1049
- sender: string;
1050
- height: number;
1051
- }) | (import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12> & {
1052
- version: 1;
1053
- } & import("@waves/ts-types").WithId & {
1054
- sender: string;
1055
- height: number;
1056
- }) | (import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12> & {
1057
- version: 2;
1058
- } & import("@waves/ts-types").WithId & {
1059
- sender: string;
1060
- height: number;
1061
- }) | (import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13> & {
1062
- version: 1;
1063
- } & import("@waves/ts-types").WithId & {
1064
- sender: string;
1065
- height: number;
1066
- }) | (import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13> & {
1067
- version: 2;
1068
- } & import("@waves/ts-types").WithId & {
1069
- sender: string;
1070
- height: number;
1071
- }) | (import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14> & {
1072
- version: 1;
1073
- } & import("@waves/ts-types").WithId & {
1074
- sender: string;
1075
- height: number;
1076
- }) | (import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14> & {
1077
- version: 2;
1078
- } & import("@waves/ts-types").WithId & {
1079
- sender: string;
1080
- height: number;
1081
- }) | (import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15> & {
1082
- version: 1;
1083
- } & import("@waves/ts-types").WithId & {
1084
- sender: string;
1085
- height: number;
1086
- }) | (import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15> & {
1087
- version: 2;
1088
- } & import("@waves/ts-types").WithId & {
1089
- sender: string;
1090
- height: number;
1091
- }) | (import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16> & {
1092
- version: 1;
1093
- } & import("@waves/ts-types").WithId & {
1094
- sender: string;
1095
- height: number;
1096
- }) | (import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16> & {
1097
- version: 2;
1098
- } & import("@waves/ts-types").WithId & {
1099
- sender: string;
1100
- height: number;
1101
- }) | (import("@waves/ts-types").UpdateAssetInfoTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 17> & {
1102
- version: 1;
1103
- } & import("@waves/ts-types").WithId & {
1104
- sender: string;
1105
- height: number;
1106
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
1107
- version: 1;
1108
- } & import("@waves/ts-types").WithId & {
1109
- sender: string;
1110
- height: number;
1111
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
1112
- version: 1;
1113
- } & import("@waves/ts-types").WithId & {
1114
- sender: string;
1115
- height: number;
1116
- }))[];
874
+ transactions: import("@waves/ts-types").TransactionFromNode<import("@waves/ts-types").Long>[];
1117
875
  assets: Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>;
1118
876
  }>;
1119
877
  availableSponsoredBalances: (address: string, wavesFee: import("@waves/ts-types").Long) => Promise<import("./tools/adresses/availableSponsoredBalances").TAssetFeeInfo[]>;
package/cjs/create.js CHANGED
@@ -23,50 +23,50 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.create = void 0;
26
- const addressesModule = __importStar(require("./api-node/addresses"));
27
- const blocksModule = __importStar(require("./api-node/blocks"));
28
- const transactionsModule = __importStar(require("./api-node/transactions"));
29
- const leasingModule = __importStar(require("./api-node/leasing"));
30
- const peersModule = __importStar(require("./api-node/peers"));
31
- const rewardsModule = __importStar(require("./api-node/rewards"));
32
- const utilsModule = __importStar(require("./api-node/utils"));
33
- const debugModule = __importStar(require("./api-node/debug"));
34
- const aliasModule = __importStar(require("./api-node/alias"));
35
- const consensusModule = __importStar(require("./api-node/consensus"));
36
- const activationModule = __importStar(require("./api-node/activation"));
37
- const nodeModule = __importStar(require("./api-node/node"));
38
- const assetsModule = __importStar(require("./api-node/assets"));
39
- const ethModule = __importStar(require("./api-node/eth"));
40
- const query_1 = __importDefault(require("./tools/query"));
41
- const resolve_1 = __importDefault(require("./tools/resolve"));
42
- const request_1 = __importDefault(require("./tools/request"));
43
- const broadcast_1 = __importDefault(require("./tools/transactions/broadcast"));
44
- const getAssetsByTransaction_1 = __importDefault(require("./tools/adresses/getAssetsByTransaction"));
45
- const getAssetIdListByTx_1 = __importDefault(require("./tools/adresses/getAssetIdListByTx"));
46
- const getTransactionsWithAssets_1 = __importDefault(require("./tools/adresses/getTransactionsWithAssets"));
47
- const availableSponsoredBalances_1 = __importDefault(require("./tools/adresses/availableSponsoredBalances"));
48
- const wait_1 = __importDefault(require("./tools/transactions/wait"));
49
- const parse_1 = __importDefault(require("./tools/parse"));
50
- const getNetworkByte_1 = __importDefault(require("./tools/blocks/getNetworkByte"));
51
- const getNetworkCode_1 = __importDefault(require("./tools/blocks/getNetworkCode"));
52
- const watch_1 = __importDefault(require("./tools/adresses/watch"));
53
- const toolsUtilsModule = __importStar(require("./tools/utils"));
26
+ var addressesModule = __importStar(require("./api-node/addresses"));
27
+ var blocksModule = __importStar(require("./api-node/blocks"));
28
+ var transactionsModule = __importStar(require("./api-node/transactions"));
29
+ var leasingModule = __importStar(require("./api-node/leasing"));
30
+ var peersModule = __importStar(require("./api-node/peers"));
31
+ var rewardsModule = __importStar(require("./api-node/rewards"));
32
+ var utilsModule = __importStar(require("./api-node/utils"));
33
+ var debugModule = __importStar(require("./api-node/debug"));
34
+ var aliasModule = __importStar(require("./api-node/alias"));
35
+ var consensusModule = __importStar(require("./api-node/consensus"));
36
+ var activationModule = __importStar(require("./api-node/activation"));
37
+ var nodeModule = __importStar(require("./api-node/node"));
38
+ var assetsModule = __importStar(require("./api-node/assets"));
39
+ var ethModule = __importStar(require("./api-node/eth"));
40
+ var query_1 = __importDefault(require("./tools/query"));
41
+ var resolve_1 = __importDefault(require("./tools/resolve"));
42
+ var request_1 = __importDefault(require("./tools/request"));
43
+ var broadcast_1 = __importDefault(require("./tools/transactions/broadcast"));
44
+ var getAssetsByTransaction_1 = __importDefault(require("./tools/adresses/getAssetsByTransaction"));
45
+ var getAssetIdListByTx_1 = __importDefault(require("./tools/adresses/getAssetIdListByTx"));
46
+ var getTransactionsWithAssets_1 = __importDefault(require("./tools/adresses/getTransactionsWithAssets"));
47
+ var availableSponsoredBalances_1 = __importDefault(require("./tools/adresses/availableSponsoredBalances"));
48
+ var wait_1 = __importDefault(require("./tools/transactions/wait"));
49
+ var parse_1 = __importDefault(require("./tools/parse"));
50
+ var getNetworkByte_1 = __importDefault(require("./tools/blocks/getNetworkByte"));
51
+ var getNetworkCode_1 = __importDefault(require("./tools/blocks/getNetworkCode"));
52
+ var watch_1 = __importDefault(require("./tools/adresses/watch"));
53
+ var toolsUtilsModule = __importStar(require("./tools/utils"));
54
54
  function create(base) {
55
- const addresses = wrapRecord(base, addressesModule);
56
- const blocks = wrapRecord(base, blocksModule);
57
- const transactions = wrapRecord(base, transactionsModule);
58
- const leasing = wrapRecord(base, leasingModule);
59
- const peers = wrapRecord(base, peersModule);
60
- const rewards = wrapRecord(base, rewardsModule);
61
- const utils = wrapRecord(base, utilsModule);
62
- const debug = wrapRecord(base, debugModule);
63
- const alias = wrapRecord(base, aliasModule);
64
- const consensus = wrapRecord(base, consensusModule);
65
- const activation = wrapRecord(base, activationModule);
66
- const node = wrapRecord(base, nodeModule);
67
- const assets = wrapRecord(base, assetsModule);
68
- const eth = wrapRecord(base, ethModule);
69
- const tools = {
55
+ var addresses = wrapRecord(base, addressesModule);
56
+ var blocks = wrapRecord(base, blocksModule);
57
+ var transactions = wrapRecord(base, transactionsModule);
58
+ var leasing = wrapRecord(base, leasingModule);
59
+ var peers = wrapRecord(base, peersModule);
60
+ var rewards = wrapRecord(base, rewardsModule);
61
+ var utils = wrapRecord(base, utilsModule);
62
+ var debug = wrapRecord(base, debugModule);
63
+ var alias = wrapRecord(base, aliasModule);
64
+ var consensus = wrapRecord(base, consensusModule);
65
+ var activation = wrapRecord(base, activationModule);
66
+ var node = wrapRecord(base, nodeModule);
67
+ var assets = wrapRecord(base, assetsModule);
68
+ var eth = wrapRecord(base, ethModule);
69
+ var tools = {
70
70
  transactions: {
71
71
  broadcast: wrapRequest(base, broadcast_1.default),
72
72
  wait: wrapRequest(base, wait_1.default)
@@ -89,26 +89,26 @@ function create(base) {
89
89
  parse: parse_1.default
90
90
  };
91
91
  return {
92
- addresses,
93
- blocks,
94
- transactions,
95
- leasing,
96
- tools,
97
- peers,
98
- rewards,
99
- utils,
100
- debug,
101
- alias,
102
- consensus,
103
- activation,
104
- node,
105
- assets,
106
- eth
92
+ addresses: addresses,
93
+ blocks: blocks,
94
+ transactions: transactions,
95
+ leasing: leasing,
96
+ tools: tools,
97
+ peers: peers,
98
+ rewards: rewards,
99
+ utils: utils,
100
+ debug: debug,
101
+ alias: alias,
102
+ consensus: consensus,
103
+ activation: activation,
104
+ node: node,
105
+ assets: assets,
106
+ eth: eth
107
107
  };
108
108
  }
109
109
  exports.create = create;
110
110
  function wrapRecord(base, hash) {
111
- return Object.keys(hash).reduce((acc, methodName) => {
111
+ return Object.keys(hash).reduce(function (acc, methodName) {
112
112
  acc[methodName] = wrapRequest(base, hash[methodName]);
113
113
  return acc;
114
114
  }, {});
package/cjs/create.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAwD;AACxD,gEAAkD;AAClD,4EAA8D;AAC9D,kEAAoD;AACpD,8DAAgD;AAChD,kEAAoD;AACpD,8DAAgD;AAChD,8DAAgD;AAChD,8DAAgD;AAChD,sEAAwD;AACxD,wEAA0D;AAC1D,4DAA8C;AAC9C,gEAAkD;AAClD,0DAA4C;AAC5C,0DAAkC;AAClC,8DAAsC;AACtC,8DAAsC;AACtC,+EAAoF;AACpF,qGAA6E;AAC7E,6FAAqE;AACrE,2GAAmF;AACnF,6GAAqF;AACrF,qEAA6C;AAC7C,0DAAkC;AAClC,mFAA2D;AAC3D,mFAA2D;AAC3D,mEAAiD;AACjD,gEAAkD;AAYlD,SAAgB,MAAM,CAAC,IAAY;IAC/B,MAAM,SAAS,GAAwC,UAAU,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACzF,MAAM,MAAM,GAAqC,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAChF,MAAM,YAAY,GAA2C,UAAU,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;IAClG,MAAM,OAAO,GAAsC,UAAU,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACnF,MAAM,KAAK,GAAoC,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAC7E,MAAM,OAAO,GAAsC,UAAU,C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
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.create = exports.ethTxId2waves = exports.wavesAsset2Eth = exports.ethAddress2waves = exports.wavesAddress2eth = void 0;
7
- const wavesAddress2eth_1 = __importDefault(require("./tools/adresses/wavesAddress2eth"));
7
+ var wavesAddress2eth_1 = __importDefault(require("./tools/adresses/wavesAddress2eth"));
8
8
  exports.wavesAddress2eth = wavesAddress2eth_1.default;
9
- const ethAddress2waves_1 = __importDefault(require("./tools/adresses/ethAddress2waves"));
9
+ var ethAddress2waves_1 = __importDefault(require("./tools/adresses/ethAddress2waves"));
10
10
  exports.ethAddress2waves = ethAddress2waves_1.default;
11
- const wavesAsset2eth_1 = __importDefault(require("./tools/assets/wavesAsset2eth"));
11
+ var wavesAsset2eth_1 = __importDefault(require("./tools/assets/wavesAsset2eth"));
12
12
  exports.wavesAsset2Eth = wavesAsset2eth_1.default;
13
- const ethTxId2waves_1 = __importDefault(require("./tools/transactions/ethTxId2waves"));
13
+ var ethTxId2waves_1 = __importDefault(require("./tools/transactions/ethTxId2waves"));
14
14
  exports.ethTxId2waves = ethTxId2waves_1.default;
15
- const create_1 = require("./create");
15
+ var create_1 = require("./create");
16
16
  exports.create = create_1.create;
17
17
  exports.default = create_1.create;
18
18
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,yFAAiE;AAQ7D,2BARG,0BAAgB,CAQH;AAPpB,yFAAiE;AAQ7D,2BARG,0BAAgB,CAQH;AAPpB,mFAA2D;AAQvD,yBARG,wBAAc,CAQH;AAPlB,uFAA+D;AAQ3D,wBARG,uBAAa,CAQH;AANjB,qCAA8C;AASjC,QAAA,MAAM,GAAG,eAAQ,CAAC;AAE/B,kBAAe,eAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,uFAAiE;AAQ7D,2BARG,0BAAgB,CAQH;AAPpB,uFAAiE;AAQ7D,2BARG,0BAAgB,CAQH;AAPpB,iFAA2D;AAQvD,yBARG,wBAAc,CAQH;AAPlB,qFAA+D;AAQ3D,wBARG,uBAAa,CAQH;AANjB,mCAA8C;AASjC,QAAA,MAAM,GAAG,eAAQ,CAAC;AAE/B,kBAAe,eAAQ,CAAC"}
package/cjs/interface.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isCallableFuncRecordArguments = exports.isCallableFuncArrayArguments = void 0;
4
- exports.isCallableFuncArrayArguments = (scriptInfoMeta) => !!scriptInfoMeta.isArrayArguments;
5
- exports.isCallableFuncRecordArguments = (scriptInfoMeta) => !scriptInfoMeta.isArrayArguments;
4
+ exports.isCallableFuncArrayArguments = function (scriptInfoMeta) {
5
+ return !!scriptInfoMeta.isArrayArguments;
6
+ };
7
+ exports.isCallableFuncRecordArguments = function (scriptInfoMeta) {
8
+ return !scriptInfoMeta.isArrayArguments;
9
+ };
6
10
  //# sourceMappingURL=interface.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":";;;AAiDa,QAAA,4BAA4B,GAAG,CAAC,cAAuD,EAAkE,EAAE,CACpK,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAA;AAExB,QAAA,6BAA6B,GAAG,CAAC,cAAuD,EAAmE,EAAE,CACtK,CAAC,cAAc,CAAC,gBAAgB,CAAA"}
1
+ {"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":";;;AAiDa,QAAA,4BAA4B,GAAG,UAAC,cAAuD;IAChG,OAAA,CAAC,CAAC,cAAc,CAAC,gBAAgB;AAAjC,CAAiC,CAAA;AAExB,QAAA,6BAA6B,GAAG,UAAC,cAAuD;IACjG,OAAA,CAAC,cAAc,CAAC,gBAAgB;AAAhC,CAAgC,CAAA"}
@@ -1,30 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const bignumber_1 = require("@waves/bignumber");
4
- const assets_1 = require("../../api-node/assets");
5
- const utils_1 = require("../utils");
3
+ var bignumber_1 = require("@waves/bignumber");
4
+ var assets_1 = require("../../api-node/assets");
5
+ var utils_1 = require("../utils");
6
6
  function default_1(base, address, wavesFee) {
7
7
  return assets_1.fetchAssetsBalance(base, address).then(utils_1.pipe(utils_1.prop('balances'), utils_1.filter(canBeSponsor(wavesFee)), utils_1.map(currentFee(wavesFee))));
8
8
  }
9
9
  exports.default = default_1;
10
10
  function canBeSponsor(wavesFee) {
11
- return balance => (balance.minSponsoredAssetFee
11
+ return function (balance) { return (balance.minSponsoredAssetFee
12
12
  && bignumber_1.BigNumber.toBigNumber(balance.sponsorBalance || 0)
13
13
  .gte(wavesFee)
14
14
  && bignumber_1.BigNumber.toBigNumber(wavesFee)
15
15
  .div(0.001 * Math.pow(10, 8))
16
16
  .mul(balance.minSponsoredAssetFee)
17
- .lte(balance.balance)) || false;
17
+ .lte(balance.balance)) || false; };
18
18
  }
19
19
  function currentFee(wavesFee) {
20
- const count = bignumber_1.BigNumber.toBigNumber(wavesFee)
20
+ var count = bignumber_1.BigNumber.toBigNumber(wavesFee)
21
21
  .div(0.001 * Math.pow(10, 8));
22
- return balance => ({
22
+ return function (balance) { return ({
23
23
  assetId: balance.assetId,
24
- wavesFee,
24
+ wavesFee: wavesFee,
25
25
  assetFee: bignumber_1.BigNumber.toBigNumber(balance.minSponsoredAssetFee)
26
26
  .mul(count)
27
27
  .toFixed()
28
- });
28
+ }); };
29
29
  }
30
30
  //# sourceMappingURL=availableSponsoredBalances.js.map