@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/es/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[]>;
@@ -1,7 +1,6 @@
1
1
  import { TAssetDetails } from '../../api-node/assets';
2
- import { Transaction, WithApiMixin } from '@waves/ts-types';
3
- import { TLong } from '../../interface';
2
+ import { TransactionFromNode } from '@waves/ts-types';
4
3
  export default function (base: string, address: string, limit: number, after?: string): Promise<{
5
- transactions: Array<Transaction<TLong> & WithApiMixin>;
4
+ transactions: Array<TransactionFromNode>;
6
5
  assets: Record<string, TAssetDetails>;
7
6
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"watch.js","sourceRoot":"","sources":["../../../src/tools/adresses/watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,OAAO,KAAK;IAUd,YAAY,IAAY,EAAE,OAAe,EAAE,EAA4C,EAAE,QAAiB;QALzF,aAAQ,GAA0B,IAAI,YAAY,EAAE,CAAC;QAE9D,WAAM,GAAyC,IAAI,CAAC;QAIxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,QAAQ,IAAI,IAAI,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,UAAU,GAAG;YACd,MAAM,EAAE,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,EAAE,KAAI,EAAE;YACpB,MAAM,EAAE,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,MAAM,KAAI,CAAC;YACvB,YAAY,EAA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B;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CAEJ;AAYD,MAAM,CAAC,OAAO,WAAW,IAAY,EAAE,OAAe,EAAE,QAAiB;IACrE,OAAO,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;SACrC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,EAAuC,EAAE,QAAQ,CAAC,CAAC,CAAC;AACrG,CAAC"}
@@ -1,8 +1,9 @@
1
1
  export default function <T>(params: IRequestParams<T>): Promise<T>;
2
+ export declare function parseResponse<T>(r: Response): Promise<T>;
2
3
  export interface IRequestParams<T> {
3
4
  url: string;
4
5
  base: string;
5
- options?: any;
6
+ options?: RequestInit | undefined;
6
7
  }
7
8
  export interface RequestInit {
8
9
  /**
@@ -1,11 +1,11 @@
1
1
  import resolve from './resolve';
2
2
  import parse from './parse';
3
- import request from 'cross-fetch';
3
+ const request = typeof fetch === 'function' ? fetch : require('node-fetch');
4
4
  export default function (params) {
5
5
  return request(resolve(params.url, params.base), updateHeaders(params.options))
6
6
  .then(parseResponse);
7
7
  }
8
- function parseResponse(r) {
8
+ export function parseResponse(r) {
9
9
  return r.text().then(message => r.ok ? parse(message) : Promise.reject(tryParse(message)));
10
10
  }
11
11
  function tryParse(message) {
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/tools/request.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC,MAAM,CAAC,OAAO,WAAc,MAAyB;IACjD,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SAC1E,IAAI,CAAC,aAAa,C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AAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED,SAAS,QAAQ,CAAC,OAAe;IAC7B,IAAI;QACA,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;KAC9B;IAAC,OAAO,CAAC,EAAE;QACR,OAAO,OAAO,CAAC;KAClB;AACL,CAAC;AAED,SAAS,aAAa,CAAC,UAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;IAC7D,uBACI,WAAW,EAAE,SAAS,IACnB,OAAO,EACZ;AACN,CAAC"}
@@ -1,12 +1,15 @@
1
- const FIELDS = ['amount', 'matcherFee', 'price', 'fee', 'minSponsoredAssetFee', 'quantity', 'sellMatcherFee', 'buyMatcherFee'];
1
+ const FIELDS = ['amount', 'matcherFee', 'price', 'minSponsoredAssetFee', 'fee', 'quantity', 'sellMatcherFee', 'buyMatcherFee'];
2
2
  export default function (data) {
3
3
  return JSON.stringify(data, function (key, value) {
4
- if (FIELDS.includes(key)) {
4
+ if (FIELDS.includes(key) && value) {
5
5
  return `!${value}!`;
6
6
  }
7
7
  else if (key === 'value' && this['type'] === 'integer') {
8
8
  return `!${value}!`;
9
9
  }
10
+ else if (key === 'minSponsoredAssetFee' && value == null) {
11
+ return null;
12
+ }
10
13
  else {
11
14
  return value;
12
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stringify.js","sourceRoot":"","sources":["../../src/tools/stringify.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,GAA4B,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;AAExJ,MAAM,CAAC,OAAO,WAA0C,IAAO;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,GAAG,EAAE,KAAK;QAC5C,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAuB,CAAC,EAAE;YAC1C,OAAO,IAAI,KAAK,GAAG,CAAC;SACvB;aAAM,IAAI,GAAG,KAAK,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE;YACtD,OAAO,IAAI,KAAK,GAAG,CAAC;SACvB;aAAM;YACH,OAAO,KAAK,CAAC;SAChB;IACL,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"file":"stringify.js","sourceRoot":"","sources":["../../src/tools/stringify.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,GAA4B,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;AAExJ,MAAM,CAAC,OAAO,WAA0C,IAAO;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,GAAG,EAAE,KAAK;QAC5C,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAuB,CAAC,IAAI,KAAK,EAAE;YACnD,OAAO,IAAI,KAAK,GAAG,CAAC;SACvB;aAAM,IAAI,GAAG,KAAK,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE;YACtD,OAAO,IAAI,KAAK,GAAG,CAAC;SACvB;aAAM,IAAI,GAAG,KAAK,sBAAsB,IAAI,KAAK,IAAI,IAAI,EAAE;YACxD,OAAO,IAAI,CAAC;SACf;aAAM;YACH,OAAO,KAAK,CAAC;SAChB;IACL,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC"}
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@waves/node-api-js",
3
- "version": "1.2.6-cjs.0",
3
+ "version": "1.2.7",
4
4
  "main": "cjs/index.js",
5
5
  "types": "cjs/index.d.ts",
6
6
  "scripts": {
7
7
  "testCommand": "jest",
8
8
  "prepare": "npm run build",
9
- "build": "rm -rf ./es && tsc -p ./tsconfig-es.json && rm -rf ./cjs && tsc -p ./tsconfig-cjs.json && webpack",
9
+ "build": "tsc -p ./tsconfig-es.json && tsc -p ./tsconfig-cjs.json && webpack",
10
10
  "test": "node-state -e -n -m typescript -o ./test/_state.ts -r"
11
11
  },
12
12
  "dependencies": {
13
13
  "@types/node-fetch": "^2.5.4",
14
14
  "@waves/bignumber": "^1.1.1",
15
- "@waves/ts-types": "^1.0.6-beta.7",
16
- "cross-fetch": "^3.1.5",
15
+ "@waves/ts-types": "^1.0.11",
16
+ "node-fetch": "^2.6.7",
17
17
  "typed-ts-events": "^1.1.1"
18
18
  },
19
19
  "files": [
@@ -55,12 +55,12 @@
55
55
  "devDependencies": {
56
56
  "@types/jest": "^26.0.23",
57
57
  "@waves/node-state": "0.1.0",
58
- "@waves/waves-transactions": "^4.1.8",
58
+ "@waves/waves-transactions": "^4.2.4",
59
59
  "jest": "^26.6.3",
60
60
  "ts-jest": "^26.5.6",
61
61
  "ts-loader": "^7.0.5",
62
62
  "typescript": "^3.9.4",
63
- "webpack": "^4.44.2",
64
- "webpack-cli": "^3.3.12"
63
+ "webpack": "^4.46.0",
64
+ "webpack-cli": "^4.9.2"
65
65
  }
66
66
  }