@waves/node-api-js 1.2.5-beta.9 → 1.2.7-beta

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 (80) hide show
  1. package/cjs/api-node/addresses/index.d.ts +2 -0
  2. package/cjs/api-node/addresses/index.js +52 -2
  3. package/cjs/api-node/addresses/index.js.map +1 -1
  4. package/cjs/api-node/assets/index.d.ts +16 -2
  5. package/cjs/api-node/assets/index.js +28 -7
  6. package/cjs/api-node/assets/index.js.map +1 -1
  7. package/cjs/api-node/blocks/index.d.ts +2 -2
  8. package/cjs/api-node/debug/index.d.ts +100 -0
  9. package/cjs/api-node/debug/index.js +180 -2
  10. package/cjs/api-node/debug/index.js.map +1 -1
  11. package/cjs/api-node/transactions/index.d.ts +9 -5
  12. package/cjs/api-node/transactions/index.js +15 -4
  13. package/cjs/api-node/transactions/index.js.map +1 -1
  14. package/cjs/create.d.ts +6 -223
  15. package/cjs/index.d.ts +1 -0
  16. package/cjs/index.js.map +1 -1
  17. package/cjs/tools/adresses/getTransactionsWithAssets.d.ts +2 -3
  18. package/cjs/tools/adresses/watch.js.map +1 -1
  19. package/cjs/tools/request.d.ts +1 -0
  20. package/cjs/tools/request.js +2 -0
  21. package/cjs/tools/request.js.map +1 -1
  22. package/cjs/tools/stringify.js +5 -2
  23. package/cjs/tools/stringify.js.map +1 -1
  24. package/cjs/tools/transactions/transactions.d.ts +5 -5
  25. package/cjs/tools/transactions/transactions.js +7 -7
  26. package/cjs/tools/transactions/transactions.js.map +1 -1
  27. package/dist/0.node-api.js +455 -0
  28. package/dist/node-api.js +328 -150
  29. package/dist/node-api.min.js +5 -5
  30. package/es/api-node/addresses/index.d.ts +2 -0
  31. package/es/api-node/addresses/index.js +17 -1
  32. package/es/api-node/addresses/index.js.map +1 -1
  33. package/es/api-node/assets/index.d.ts +16 -2
  34. package/es/api-node/assets/index.js +13 -6
  35. package/es/api-node/assets/index.js.map +1 -1
  36. package/es/api-node/blocks/index.d.ts +2 -2
  37. package/es/api-node/debug/index.d.ts +100 -0
  38. package/es/api-node/debug/index.js +147 -1
  39. package/es/api-node/debug/index.js.map +1 -1
  40. package/es/api-node/transactions/index.d.ts +9 -5
  41. package/es/api-node/transactions/index.js +12 -3
  42. package/es/api-node/transactions/index.js.map +1 -1
  43. package/es/create.d.ts +6 -223
  44. package/es/index.d.ts +1 -0
  45. package/es/index.js.map +1 -1
  46. package/es/tools/adresses/getTransactionsWithAssets.d.ts +2 -3
  47. package/es/tools/adresses/watch.js.map +1 -1
  48. package/es/tools/request.d.ts +1 -0
  49. package/es/tools/request.js +1 -1
  50. package/es/tools/request.js.map +1 -1
  51. package/es/tools/stringify.js +5 -2
  52. package/es/tools/stringify.js.map +1 -1
  53. package/es/tools/transactions/transactions.d.ts +5 -5
  54. package/es/tools/transactions/transactions.js +7 -7
  55. package/es/tools/transactions/transactions.js.map +1 -1
  56. package/package.json +6 -6
  57. package/cjs/tools/adresses/eth2waves.d.ts +0 -1
  58. package/cjs/tools/adresses/eth2waves.js +0 -38
  59. package/cjs/tools/adresses/eth2waves.js.map +0 -1
  60. package/cjs/tools/adresses/ethTxId2waves.d.ts +0 -1
  61. package/cjs/tools/adresses/ethTxId2waves.js +0 -8
  62. package/cjs/tools/adresses/ethTxId2waves.js.map +0 -1
  63. package/cjs/tools/adresses/waves2eth.d.ts +0 -1
  64. package/cjs/tools/adresses/waves2eth.js +0 -10
  65. package/cjs/tools/adresses/waves2eth.js.map +0 -1
  66. package/cjs/tools/assets/convertWaves2Eth.d.ts +0 -1
  67. package/cjs/tools/assets/convertWaves2Eth.js +0 -10
  68. package/cjs/tools/assets/convertWaves2Eth.js.map +0 -1
  69. package/es/tools/adresses/eth2waves.d.ts +0 -1
  70. package/es/tools/adresses/eth2waves.js +0 -22
  71. package/es/tools/adresses/eth2waves.js.map +0 -1
  72. package/es/tools/adresses/ethTxId2waves.d.ts +0 -1
  73. package/es/tools/adresses/ethTxId2waves.js +0 -5
  74. package/es/tools/adresses/ethTxId2waves.js.map +0 -1
  75. package/es/tools/adresses/waves2eth.d.ts +0 -1
  76. package/es/tools/adresses/waves2eth.js +0 -7
  77. package/es/tools/adresses/waves2eth.js.map +0 -1
  78. package/es/tools/assets/convertWaves2Eth.d.ts +0 -1
  79. package/es/tools/assets/convertWaves2Eth.js +0 -7
  80. package/es/tools/assets/convertWaves2Eth.js.map +0 -1
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,7 +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> & {
238
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
241
239
  version: 1;
242
240
  } & import("@waves/ts-types").WithId & {
243
241
  sender: string;
@@ -283,8 +281,6 @@ export declare function create(base: string): {
283
281
  sender: string;
284
282
  height: number;
285
283
  }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
286
- feeAssetId: string | null;
287
- } & {
288
284
  version: 3;
289
285
  } & import("@waves/ts-types").WithId & {
290
286
  sender: string;
@@ -444,7 +440,7 @@ export declare function create(base: string): {
444
440
  } & import("@waves/ts-types").WithId & {
445
441
  sender: string;
446
442
  height: number;
447
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
443
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
448
444
  version: 1;
449
445
  } & import("@waves/ts-types").WithId & {
450
446
  sender: string;
@@ -490,8 +486,6 @@ export declare function create(base: string): {
490
486
  sender: string;
491
487
  height: number;
492
488
  }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
493
- feeAssetId: string | null;
494
- } & {
495
489
  version: 3;
496
490
  } & import("@waves/ts-types").WithId & {
497
491
  sender: string;
@@ -651,7 +645,7 @@ export declare function create(base: string): {
651
645
  } & import("@waves/ts-types").WithId & {
652
646
  sender: string;
653
647
  height: number;
654
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
648
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
655
649
  version: 1;
656
650
  } & import("@waves/ts-types").WithId & {
657
651
  sender: string;
@@ -697,8 +691,6 @@ export declare function create(base: string): {
697
691
  sender: string;
698
692
  height: number;
699
693
  }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
700
- feeAssetId: string | null;
701
- } & {
702
694
  version: 3;
703
695
  } & import("@waves/ts-types").WithId & {
704
696
  sender: string;
@@ -858,7 +850,7 @@ export declare function create(base: string): {
858
850
  } & import("@waves/ts-types").WithId & {
859
851
  sender: string;
860
852
  height: number;
861
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
853
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
862
854
  version: 1;
863
855
  } & import("@waves/ts-types").WithId & {
864
856
  sender: string;
@@ -876,219 +868,10 @@ export declare function create(base: string): {
876
868
  chainId: number;
877
869
  timestamp: number;
878
870
  fee: import("@waves/ts-types").Long;
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> & {
880
- feeAssetId: string | null;
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, 19>, 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>>>;
882
872
  getAssetIdListByTx: typeof getAssetIdListByTx;
883
873
  getTransactionsWithAssets: (address: string, limit: number, after?: string | undefined) => Promise<{
884
- transactions: ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
885
- version: 1;
886
- } & import("@waves/ts-types").WithId & {
887
- sender: string;
888
- height: number;
889
- }) | (import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
890
- version: 2;
891
- } & import("@waves/ts-types").WithId & {
892
- sender: string;
893
- height: number;
894
- }) | (import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
895
- version: 3;
896
- } & import("@waves/ts-types").WithId & {
897
- sender: string;
898
- height: number;
899
- }) | (import("@waves/ts-types").GenesisTransactionFields<import("@waves/ts-types").Long> & {
900
- type: 1;
901
- chainId: number;
902
- timestamp: number;
903
- fee: import("@waves/ts-types").Long;
904
- } & {
905
- version: 1;
906
- } & import("@waves/ts-types").WithId & {
907
- sender: string;
908
- height: number;
909
- }) | (import("@waves/ts-types").PaymentTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 2> & {
910
- version: 1;
911
- } & import("@waves/ts-types").WithId & {
912
- sender: string;
913
- height: number;
914
- }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
915
- version: 1;
916
- } & import("@waves/ts-types").WithId & {
917
- sender: string;
918
- height: number;
919
- }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
920
- version: 2;
921
- } & import("@waves/ts-types").WithId & {
922
- sender: string;
923
- height: number;
924
- }) | (import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
925
- feeAssetId: string | null;
926
- } & {
927
- version: 3;
928
- } & import("@waves/ts-types").WithId & {
929
- sender: string;
930
- height: number;
931
- }) | (import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4> & {
932
- version: 1;
933
- } & import("@waves/ts-types").WithId & {
934
- sender: string;
935
- height: number;
936
- }) | (import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4> & {
937
- version: 2;
938
- } & import("@waves/ts-types").WithId & {
939
- sender: string;
940
- height: number;
941
- }) | (import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4> & {
942
- version: 3;
943
- } & import("@waves/ts-types").WithId & {
944
- sender: string;
945
- height: number;
946
- }) | (import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5> & {
947
- version: 1;
948
- } & import("@waves/ts-types").WithId & {
949
- sender: string;
950
- height: number;
951
- }) | (import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5> & {
952
- version: 2;
953
- } & import("@waves/ts-types").WithId & {
954
- sender: string;
955
- height: number;
956
- }) | (import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5> & {
957
- version: 3;
958
- } & import("@waves/ts-types").WithId & {
959
- sender: string;
960
- height: number;
961
- }) | (import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6> & {
962
- version: 1;
963
- } & import("@waves/ts-types").WithId & {
964
- sender: string;
965
- height: number;
966
- }) | (import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6> & {
967
- version: 2;
968
- } & import("@waves/ts-types").WithId & {
969
- sender: string;
970
- height: number;
971
- }) | (import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6> & {
972
- version: 3;
973
- } & import("@waves/ts-types").WithId & {
974
- sender: string;
975
- height: number;
976
- }) | (import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8> & {
977
- version: 1;
978
- } & import("@waves/ts-types").WithId & {
979
- sender: string;
980
- height: number;
981
- }) | (import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8> & {
982
- version: 2;
983
- } & import("@waves/ts-types").WithId & {
984
- sender: string;
985
- height: number;
986
- }) | (import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8> & {
987
- version: 3;
988
- } & import("@waves/ts-types").WithId & {
989
- sender: string;
990
- height: number;
991
- }) | (import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9> & {
992
- version: 1;
993
- } & import("@waves/ts-types").WithId & {
994
- sender: string;
995
- height: number;
996
- }) | (import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9> & {
997
- version: 2;
998
- } & import("@waves/ts-types").WithId & {
999
- sender: string;
1000
- height: number;
1001
- }) | (import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9> & {
1002
- version: 3;
1003
- } & import("@waves/ts-types").WithId & {
1004
- sender: string;
1005
- height: number;
1006
- }) | (import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10> & {
1007
- version: 1;
1008
- } & import("@waves/ts-types").WithId & {
1009
- sender: string;
1010
- height: number;
1011
- }) | (import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10> & {
1012
- version: 2;
1013
- } & import("@waves/ts-types").WithId & {
1014
- sender: string;
1015
- height: number;
1016
- }) | (import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10> & {
1017
- version: 3;
1018
- } & import("@waves/ts-types").WithId & {
1019
- sender: string;
1020
- height: number;
1021
- }) | (import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11> & {
1022
- version: 1;
1023
- } & import("@waves/ts-types").WithId & {
1024
- sender: string;
1025
- height: number;
1026
- }) | (import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11> & {
1027
- version: 2;
1028
- } & import("@waves/ts-types").WithId & {
1029
- sender: string;
1030
- height: number;
1031
- }) | (import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12> & {
1032
- version: 1;
1033
- } & import("@waves/ts-types").WithId & {
1034
- sender: string;
1035
- height: number;
1036
- }) | (import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12> & {
1037
- version: 2;
1038
- } & import("@waves/ts-types").WithId & {
1039
- sender: string;
1040
- height: number;
1041
- }) | (import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13> & {
1042
- version: 1;
1043
- } & import("@waves/ts-types").WithId & {
1044
- sender: string;
1045
- height: number;
1046
- }) | (import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13> & {
1047
- version: 2;
1048
- } & import("@waves/ts-types").WithId & {
1049
- sender: string;
1050
- height: number;
1051
- }) | (import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14> & {
1052
- version: 1;
1053
- } & import("@waves/ts-types").WithId & {
1054
- sender: string;
1055
- height: number;
1056
- }) | (import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14> & {
1057
- version: 2;
1058
- } & import("@waves/ts-types").WithId & {
1059
- sender: string;
1060
- height: number;
1061
- }) | (import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15> & {
1062
- version: 1;
1063
- } & import("@waves/ts-types").WithId & {
1064
- sender: string;
1065
- height: number;
1066
- }) | (import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15> & {
1067
- version: 2;
1068
- } & import("@waves/ts-types").WithId & {
1069
- sender: string;
1070
- height: number;
1071
- }) | (import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16> & {
1072
- version: 1;
1073
- } & import("@waves/ts-types").WithId & {
1074
- sender: string;
1075
- height: number;
1076
- }) | (import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16> & {
1077
- version: 2;
1078
- } & import("@waves/ts-types").WithId & {
1079
- sender: string;
1080
- height: number;
1081
- }) | (import("@waves/ts-types").UpdateAssetInfoTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 17> & {
1082
- version: 1;
1083
- } & import("@waves/ts-types").WithId & {
1084
- sender: string;
1085
- height: number;
1086
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
1087
- version: 1;
1088
- } & import("@waves/ts-types").WithId & {
1089
- sender: string;
1090
- height: number;
1091
- }))[];
874
+ transactions: import("@waves/ts-types").TransactionFromNode<import("@waves/ts-types").Long>[];
1092
875
  assets: Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>;
1093
876
  }>;
1094
877
  availableSponsoredBalances: (address: string, wavesFee: import("@waves/ts-types").Long) => Promise<import("./tools/adresses/availableSponsoredBalances").TAssetFeeInfo[]>;
package/es/index.d.ts CHANGED
@@ -6,3 +6,4 @@ import { create as createFn } from './create';
6
6
  export { wavesAddress2eth, ethAddress2waves, wavesAsset2Eth, ethTxId2waves };
7
7
  export declare const create: typeof createFn;
8
8
  export default createFn;
9
+ export { ICallableFuncArgumentType, TCallableFuncArgumentsArray, TCallableFuncArgumentsRecord, TCallableFuncArguments, } from './api-node/addresses';
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAE/D,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EAChB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAE/B,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAE/D,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EAChB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAE/B,eAAe,QAAQ,CAAC"}
@@ -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,K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AC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5B,CAAC;IAEO,MAAM,CAAC,0BAA0B,CAAC,IAA8C,EAAE,UAA6D,EAAE,MAAc;QACnK,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAClC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACnB,IAAI,EAAE,CAAC,EAAE,KAAK,MAAM,EAAE;gBAClB,MAAM;aACT;YACD,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;gBACpB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aACnB;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,4 +1,5 @@
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,7 +5,7 @@ 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":[],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CAAC,CAAC;AAE5E,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,CAAe,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,CAAW;IACxC,OAAO,CAAC,CAAC,IAAI,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,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"}
@@ -1,7 +1,7 @@
1
1
  import { IWithStateChanges, TPayment, TStateChanges } from "../../api-node/debug";
2
- import { AssetDecimals, DataTransactionEntry, EthereumTransaction, WithApiMixin } from "@waves/ts-types";
3
- import { Long } from "@waves/ts-types/src/index";
4
- import { AliasTransaction, BurnTransaction, CancelLeaseTransaction, DataTransaction, ExchangeTransaction, GenesisTransaction, InvokeScriptTransaction, IssueTransaction, LeaseTransaction, MassTransferTransaction, PaymentTransaction, ReissueTransaction, SetAssetScriptTransaction, SetScriptTransaction, SponsorshipTransaction, TransferTransaction, UpdateAssetInfoTransaction } from "@waves/ts-types/transactions/index";
2
+ import { AssetDecimals, DataTransactionEntry, InvokeExpressionTransaction, EthereumTransaction, WithApiMixin } from "@waves/ts-types/";
3
+ import { Long } from "@waves/ts-types/";
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";
6
6
  export declare type TStateUpdate = {
7
7
  data: (DataTransactionEntry & {
@@ -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> | (EthereumTransaction<LONG> & TWithState);
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>;
59
59
  export declare function addStateUpdateField(transaction: TTransaction & WithApiMixin & IWithApplicationStatus): TTransaction & WithApiMixin & IWithApplicationStatus;
60
- export declare function makeStateUpdate(stateChanges: TStateChanges, payment: TPayment[], dApp: string, sender: string): TStateUpdate;
60
+ export declare function makeStateUpdate(stateChanges: TStateChanges, payment: TPayment[], dApp: string | undefined, sender: string): TStateUpdate;
@@ -1,20 +1,20 @@
1
1
  import { BigNumber } from "@waves/bignumber";
2
- import { TRANSACTION_TYPE } from "@waves/ts-types";
2
+ import { TRANSACTION_TYPE } from "@waves/ts-types/";
3
3
  export function addStateUpdateField(transaction) {
4
- if (transaction.type === TRANSACTION_TYPE.INVOKE_SCRIPT && transaction.stateChanges.invokes && transaction.stateChanges.invokes.length) {
5
- const payments = transaction.payment ? transaction.payment.map(p => ({
4
+ if (transaction.type === TRANSACTION_TYPE.INVOKE_SCRIPT || transaction.type === TRANSACTION_TYPE.INVOKE_EXPRESSION && transaction.stateChanges.invokes && transaction.stateChanges.invokes.length) {
5
+ const payments = transaction.payment ? transaction.payment.map((p) => ({
6
6
  assetId: p.assetId,
7
7
  amount: p.amount
8
8
  })) : [];
9
- return Object.defineProperty(transaction, 'stateUpdate', { get: () => makeStateUpdate(transaction.stateChanges, payments, transaction.dApp, transaction.sender) });
10
9
  }
11
- if (transaction.type === TRANSACTION_TYPE.ETHEREUM && transaction.payload.type === 'invocation' && transaction.stateChanges.invokes && transaction.stateChanges.invokes.length) {
12
- const payments = transaction.payload.payment ? transaction.payload.payment.map(p => ({
10
+ if (transaction.type === TRANSACTION_TYPE.ETHEREUM && transaction.payload.type === 'invocation' && transaction.payload.stateChanges.invokes && transaction.payload.stateChanges.invokes.length) {
11
+ const payments = transaction.payload.payment ? transaction.payload.payment.map((p) => ({
13
12
  assetId: p.assetId,
14
13
  amount: p.amount
15
14
  })) : [];
16
15
  const dApp = transaction.payload.dApp || '';
17
- return Object.defineProperty(transaction, 'stateUpdate', { get: () => makeStateUpdate(transaction.stateChanges, payments, dApp, transaction.sender) });
16
+ // @ts-ignore
17
+ return Object.defineProperty(transaction, 'stateUpdate', { get: () => makeStateUpdate(transaction.payload.stateChanges, payments, dApp, transaction.sender) });
18
18
  }
19
19
  else
20
20
  return transaction;
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/tools/transactions/transactions.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAIH,gBAAgB,EAEnB,MAAM,iBAAiB,CAAC;AAiFzB,MAAM,UAAU,mBAAmB,CAAC,WAAiE;IACjG,IAAI,WAAW,CAAC,IAAI,KAAK,gBAAgB,CAAC,aAAa,IAAI,WAAW,CAAC,YAAY,CAAC,OAAO,IAAI,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE;Q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,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@waves/node-api-js",
3
- "version": "1.2.5-beta.9",
3
+ "version": "1.2.7-beta",
4
4
  "main": "cjs/index.js",
5
5
  "types": "cjs/index.d.ts",
6
6
  "scripts": {
@@ -12,8 +12,8 @@
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.5",
16
- "node-fetch": "^2.6.1",
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
  }
@@ -1 +0,0 @@
1
- export default function eth2waves(ethAddress: string, chainId: number): string;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __read = (this && this.__read) || function (o, n) {
3
- var m = typeof Symbol === "function" && o[Symbol.iterator];
4
- if (!m) return o;
5
- var i = m.call(o), r, ar = [], e;
6
- try {
7
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8
- }
9
- catch (error) { e = { error: error }; }
10
- finally {
11
- try {
12
- if (r && !r.done && (m = i["return"])) m.call(i);
13
- }
14
- finally { if (e) throw e.error; }
15
- }
16
- return ar;
17
- };
18
- var __spread = (this && this.__spread) || function () {
19
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
20
- return ar;
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- var ts_lib_crypto_1 = require("@waves/ts-lib-crypto");
24
- function eth2waves(ethAddress, chainId) {
25
- var prefixBytes = new Uint8Array([0x01, chainId]);
26
- // Раскодировать HEX строку в байты (PK_HASH)
27
- var pkHashBytes = ts_lib_crypto_1.base16Decode(ethAddress);
28
- // Сделать чексумму CHECKSUM=keccak256(blake2b256([0x01, CHAIN_ID] + PK_HASH))
29
- var checksumBytes = new Uint8Array(__spread(prefixBytes, pkHashBytes));
30
- var checksum = ts_lib_crypto_1.keccak(ts_lib_crypto_1.blake2b(checksumBytes));
31
- // склеить [0x01, CHAIN_ID] (два байта) + PK_HASH (изначальные 20 байт) + CHECKSUM[1:4] (первые четыре байта чексуммы)
32
- var wavesBytes = new Uint8Array(__spread(prefixBytes, pkHashBytes.slice(0, 20), checksum.slice(0, 4)));
33
- // закодировать в base58
34
- var wavesAddress = ts_lib_crypto_1.base58Encode(wavesBytes);
35
- return wavesAddress;
36
- }
37
- exports.default = eth2waves;
38
- //# sourceMappingURL=ethAddress2waves.js.map