@waves/node-api-js 1.2.5-beta.15 → 1.2.5-beta.18

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 (93) 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.js +54 -45
  4. package/cjs/api-node/addresses/index.js.map +1 -1
  5. package/cjs/api-node/alias/index.js +5 -5
  6. package/cjs/api-node/alias/index.js.map +1 -1
  7. package/cjs/api-node/assets/index.js +118 -63
  8. package/cjs/api-node/assets/index.js.map +1 -1
  9. package/cjs/api-node/blocks/index.js +60 -49
  10. package/cjs/api-node/blocks/index.js.map +1 -1
  11. package/cjs/api-node/consensus/index.js +6 -5
  12. package/cjs/api-node/consensus/index.js.map +1 -1
  13. package/cjs/api-node/debug/index.js +17 -14
  14. package/cjs/api-node/debug/index.js.map +1 -1
  15. package/cjs/api-node/eth/index.js +5 -5
  16. package/cjs/api-node/eth/index.js.map +1 -1
  17. package/cjs/api-node/leasing/index.js +19 -7
  18. package/cjs/api-node/leasing/index.js.map +1 -1
  19. package/cjs/api-node/node/index.js +7 -5
  20. package/cjs/api-node/node/index.js.map +1 -1
  21. package/cjs/api-node/peers/index.js +17 -13
  22. package/cjs/api-node/peers/index.js.map +1 -1
  23. package/cjs/api-node/rewards/index.js +6 -5
  24. package/cjs/api-node/rewards/index.js.map +1 -1
  25. package/cjs/api-node/transactions/index.js +82 -42
  26. package/cjs/api-node/transactions/index.js.map +1 -1
  27. package/cjs/api-node/utils/index.js +22 -22
  28. package/cjs/api-node/utils/index.js.map +1 -1
  29. package/cjs/create.d.ts +6 -31
  30. package/cjs/create.js +59 -59
  31. package/cjs/create.js.map +1 -1
  32. package/cjs/index.js +5 -5
  33. package/cjs/index.js.map +1 -1
  34. package/cjs/interface.js +6 -2
  35. package/cjs/interface.js.map +1 -1
  36. package/cjs/tools/adresses/availableSponsoredBalances.js +9 -9
  37. package/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -1
  38. package/cjs/tools/adresses/ethAddress2waves.js +29 -16
  39. package/cjs/tools/adresses/ethAddress2waves.js.map +1 -1
  40. package/cjs/tools/adresses/getAssetIdListByTx.js +36 -15
  41. package/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -1
  42. package/cjs/tools/adresses/getAssetsByTransaction.js +4 -4
  43. package/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -1
  44. package/cjs/tools/adresses/getTransactionsWithAssets.js +3 -3
  45. package/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -1
  46. package/cjs/tools/adresses/watch.js +85 -56
  47. package/cjs/tools/adresses/watch.js.map +1 -1
  48. package/cjs/tools/adresses/wavesAddress2eth.js +4 -4
  49. package/cjs/tools/adresses/wavesAddress2eth.js.map +1 -1
  50. package/cjs/tools/assets/wavesAsset2eth.js +4 -4
  51. package/cjs/tools/assets/wavesAsset2eth.js.map +1 -1
  52. package/cjs/tools/blocks/detectInterval.js +4 -4
  53. package/cjs/tools/blocks/detectInterval.js.map +1 -1
  54. package/cjs/tools/blocks/getNetworkByte.js +6 -6
  55. package/cjs/tools/blocks/getNetworkByte.js.map +1 -1
  56. package/cjs/tools/blocks/getNetworkCode.js +2 -2
  57. package/cjs/tools/blocks/getNetworkCode.js.map +1 -1
  58. package/cjs/tools/blocks/waitHeight.js +36 -13
  59. package/cjs/tools/blocks/waitHeight.js.map +1 -1
  60. package/cjs/tools/parse.js +2 -2
  61. package/cjs/tools/parse.js.map +1 -1
  62. package/cjs/tools/query.js +34 -8
  63. package/cjs/tools/query.js.map +1 -1
  64. package/cjs/tools/request.d.ts +1 -1
  65. package/cjs/tools/request.js +19 -7
  66. package/cjs/tools/request.js.map +1 -1
  67. package/cjs/tools/stringify.js +3 -3
  68. package/cjs/tools/stringify.js.map +1 -1
  69. package/cjs/tools/transactions/broadcast.js +29 -18
  70. package/cjs/tools/transactions/broadcast.js.map +1 -1
  71. package/cjs/tools/transactions/ethTxId2waves.js +2 -2
  72. package/cjs/tools/transactions/ethTxId2waves.js.map +1 -1
  73. package/cjs/tools/transactions/transactions.d.ts +2 -2
  74. package/cjs/tools/transactions/transactions.js +66 -52
  75. package/cjs/tools/transactions/transactions.js.map +1 -1
  76. package/cjs/tools/transactions/wait.js +16 -16
  77. package/cjs/tools/transactions/wait.js.map +1 -1
  78. package/cjs/tools/utils.js +63 -30
  79. package/cjs/tools/utils.js.map +1 -1
  80. package/dist/0.node-api.js +467 -0
  81. package/dist/node-api.js +42 -573
  82. package/dist/node-api.min.js +5 -5
  83. package/dist/node-api.min.js.LICENSE.txt +17 -0
  84. package/dist/node_fs-node_path.node-api.js +23 -0
  85. package/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +599 -0
  86. package/es/create.d.ts +6 -31
  87. package/es/tools/request.d.ts +1 -1
  88. package/es/tools/request.js +1 -1
  89. package/es/tools/request.js.map +1 -1
  90. package/es/tools/transactions/transactions.d.ts +2 -2
  91. package/es/tools/transactions/transactions.js +1 -1
  92. package/es/tools/transactions/transactions.js.map +1 -1
  93. package/package.json +4 -4
package/es/create.d.ts CHANGED
@@ -237,12 +237,7 @@ export declare function create(base: string): {
237
237
  } & import("@waves/ts-types").WithId & {
238
238
  sender: string;
239
239
  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> & {
240
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
246
241
  version: 1;
247
242
  } & import("@waves/ts-types").WithId & {
248
243
  sender: string;
@@ -449,12 +444,7 @@ export declare function create(base: string): {
449
444
  } & import("@waves/ts-types").WithId & {
450
445
  sender: string;
451
446
  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> & {
447
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
458
448
  version: 1;
459
449
  } & import("@waves/ts-types").WithId & {
460
450
  sender: string;
@@ -661,12 +651,7 @@ export declare function create(base: string): {
661
651
  } & import("@waves/ts-types").WithId & {
662
652
  sender: string;
663
653
  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> & {
654
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
670
655
  version: 1;
671
656
  } & import("@waves/ts-types").WithId & {
672
657
  sender: string;
@@ -873,12 +858,7 @@ export declare function create(base: string): {
873
858
  } & import("@waves/ts-types").WithId & {
874
859
  sender: string;
875
860
  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> & {
861
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
882
862
  version: 1;
883
863
  } & import("@waves/ts-types").WithId & {
884
864
  sender: string;
@@ -898,7 +878,7 @@ export declare function create(base: string): {
898
878
  fee: import("@waves/ts-types").Long;
899
879
  }, 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
880
  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>>>;
881
+ }, 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
882
  getAssetIdListByTx: typeof getAssetIdListByTx;
903
883
  getTransactionsWithAssets: (address: string, limit: number, after?: string | undefined) => Promise<{
904
884
  transactions: ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
@@ -1103,12 +1083,7 @@ export declare function create(base: string): {
1103
1083
  } & import("@waves/ts-types").WithId & {
1104
1084
  sender: string;
1105
1085
  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> & {
1086
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
1112
1087
  version: 1;
1113
1088
  } & import("@waves/ts-types").WithId & {
1114
1089
  sender: string;
@@ -2,7 +2,7 @@ export default function <T>(params: IRequestParams<T>): Promise<T>;
2
2
  export interface IRequestParams<T> {
3
3
  url: string;
4
4
  base: string;
5
- options?: any;
5
+ options?: RequestInit | undefined;
6
6
  }
7
7
  export interface RequestInit {
8
8
  /**
@@ -1,6 +1,6 @@
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);
@@ -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,GAA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AI,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,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,5 +1,5 @@
1
1
  import { IWithStateChanges, TPayment, TStateChanges } from "../../api-node/debug";
2
- import { AssetDecimals, DataTransactionEntry, InvokeExpressionTransaction, EthereumTransaction, WithApiMixin } from "@waves/ts-types/";
2
+ import { AssetDecimals, DataTransactionEntry, EthereumTransaction, WithApiMixin } from "@waves/ts-types/";
3
3
  import { Long } from "@waves/ts-types/";
4
4
  import { AliasTransaction, BurnTransaction, CancelLeaseTransaction, DataTransaction, ExchangeTransaction, GenesisTransaction, InvokeScriptTransaction, IssueTransaction, LeaseTransaction, MassTransferTransaction, PaymentTransaction, ReissueTransaction, SetAssetScriptTransaction, SetScriptTransaction, SponsorshipTransaction, TransferTransaction, UpdateAssetInfoTransaction } from "@waves/ts-types/";
5
5
  import { IWithApplicationStatus, TLong } from "../../interface";
@@ -55,6 +55,6 @@ export declare type TWithStateUpdate = {
55
55
  stateUpdate: TStateUpdate;
56
56
  };
57
57
  export declare type TWithState = IWithStateChanges & TWithStateUpdate;
58
- export declare type TTransaction<LONG = Long> = GenesisTransaction<LONG> | PaymentTransaction<LONG> | IssueTransaction<LONG> | TransferTransaction<LONG> | ReissueTransaction<LONG> | BurnTransaction<LONG> | LeaseTransaction<LONG> | CancelLeaseTransaction<LONG> | AliasTransaction<LONG> | MassTransferTransaction<LONG> | DataTransaction<LONG> | SetScriptTransaction<LONG> | SponsorshipTransaction<LONG> | ExchangeTransaction<LONG> | SetAssetScriptTransaction<LONG> | (InvokeScriptTransaction<LONG> & TWithState) | UpdateAssetInfoTransaction<LONG> | (InvokeExpressionTransaction<LONG> & TWithState) | EthereumTransaction<LONG>;
58
+ export declare type TTransaction<LONG = Long> = GenesisTransaction<LONG> | PaymentTransaction<LONG> | IssueTransaction<LONG> | TransferTransaction<LONG> | ReissueTransaction<LONG> | BurnTransaction<LONG> | LeaseTransaction<LONG> | CancelLeaseTransaction<LONG> | AliasTransaction<LONG> | MassTransferTransaction<LONG> | DataTransaction<LONG> | SetScriptTransaction<LONG> | SponsorshipTransaction<LONG> | ExchangeTransaction<LONG> | SetAssetScriptTransaction<LONG> | (InvokeScriptTransaction<LONG> & TWithState) | UpdateAssetInfoTransaction<LONG> | EthereumTransaction<LONG>;
59
59
  export declare function addStateUpdateField(transaction: TTransaction & WithApiMixin & IWithApplicationStatus): TTransaction & WithApiMixin & IWithApplicationStatus;
60
60
  export declare function makeStateUpdate(stateChanges: TStateChanges, payment: TPayment[], dApp: string | undefined, sender: string): TStateUpdate;
@@ -1,7 +1,7 @@
1
1
  import { BigNumber } from "@waves/bignumber";
2
2
  import { TRANSACTION_TYPE } from "@waves/ts-types/";
3
3
  export function addStateUpdateField(transaction) {
4
- if (transaction.type === TRANSACTION_TYPE.INVOKE_SCRIPT || transaction.type === TRANSACTION_TYPE.INVOKE_EXPRESSION && transaction.stateChanges.invokes && transaction.stateChanges.invokes.length) {
4
+ if (transaction.type === TRANSACTION_TYPE.INVOKE_SCRIPT && transaction.stateChanges.invokes && transaction.stateChanges.invokes.length) {
5
5
  const payments = transaction.payment ? transaction.payment.map((p) => ({
6
6
  assetId: p.assetId,
7
7
  amount: p.amount
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.js","s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CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;oBACzG,KAAK,KAAK,CAAC,CAAC;wBACR,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,mCAAO,CAAC,KAAE,OAAO,EAAE,CAAC,CAAC,IAAI,GAAC;wBAC1D,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,iCAAK,CAAC,KAAE,OAAO,EAAE,CAAC,CAAC,IAAI,IAAE,CAAA;gBAC/D,CAAC,CACJ,CAAA;gBACD,wBAAwB;gBACxB,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,iCAAK,CAAC,KAAE,MAAM,EAAE,CAAC,CAAC,IAAI,IAAE,CAAC,CAAA;gBACnF,CAAC,CAAC,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,iCAAK,CAAC,KAAE,OAAO,EAAE,CAAC,CAAC,IAAI,IAAE,CAAC,CAAA;gBAEhG,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,CAAA;YAC7C,CAAC,CACJ,CAAA;SACJ;IACL,CAAC,CAAA;IAED,iBAAiB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;IACvC,OAAO,WAAW,CAAA;AACtB,CAAC"}
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@waves/node-api-js",
3
- "version": "1.2.5-beta.15",
3
+ "version": "1.2.5-beta.18",
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.8-beta.2",
16
+ "node-fetch": "^2.6.7",
17
17
  "typed-ts-events": "^1.1.1"
18
18
  },
19
19
  "files": [