@waves/node-api-js 1.2.5-beta.9 → 1.2.6-cjs.0

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 (116) 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 +45 -54
  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 +60 -113
  8. package/cjs/api-node/assets/index.js.map +1 -1
  9. package/cjs/api-node/blocks/index.js +49 -60
  10. package/cjs/api-node/blocks/index.js.map +1 -1
  11. package/cjs/api-node/consensus/index.js +5 -6
  12. package/cjs/api-node/consensus/index.js.map +1 -1
  13. package/cjs/api-node/debug/index.js +14 -17
  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 +7 -19
  18. package/cjs/api-node/leasing/index.js.map +1 -1
  19. package/cjs/api-node/node/index.js +5 -7
  20. package/cjs/api-node/node/index.js.map +1 -1
  21. package/cjs/api-node/peers/index.js +13 -17
  22. package/cjs/api-node/peers/index.js.map +1 -1
  23. package/cjs/api-node/rewards/index.js +5 -6
  24. package/cjs/api-node/rewards/index.js.map +1 -1
  25. package/cjs/api-node/transactions/index.js +42 -82
  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 +26 -1
  30. package/cjs/create.js +59 -59
  31. package/cjs/create.js.map +1 -1
  32. package/cjs/index.d.ts +1 -0
  33. package/cjs/index.js +5 -5
  34. package/cjs/index.js.map +1 -1
  35. package/cjs/interface.js +2 -6
  36. package/cjs/interface.js.map +1 -1
  37. package/cjs/tools/adresses/availableSponsoredBalances.js +9 -9
  38. package/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -1
  39. package/cjs/tools/adresses/ethAddress2waves.js +16 -29
  40. package/cjs/tools/adresses/ethAddress2waves.js.map +1 -1
  41. package/cjs/tools/adresses/getAssetIdListByTx.js +15 -36
  42. package/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -1
  43. package/cjs/tools/adresses/getAssetsByTransaction.js +4 -4
  44. package/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -1
  45. package/cjs/tools/adresses/getTransactionsWithAssets.js +3 -3
  46. package/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -1
  47. package/cjs/tools/adresses/watch.js +56 -85
  48. package/cjs/tools/adresses/watch.js.map +1 -1
  49. package/cjs/tools/adresses/wavesAddress2eth.js +4 -4
  50. package/cjs/tools/adresses/wavesAddress2eth.js.map +1 -1
  51. package/cjs/tools/assets/wavesAsset2eth.js +4 -4
  52. package/cjs/tools/assets/wavesAsset2eth.js.map +1 -1
  53. package/cjs/tools/blocks/detectInterval.js +4 -4
  54. package/cjs/tools/blocks/detectInterval.js.map +1 -1
  55. package/cjs/tools/blocks/getNetworkByte.js +6 -6
  56. package/cjs/tools/blocks/getNetworkByte.js.map +1 -1
  57. package/cjs/tools/blocks/getNetworkCode.js +2 -2
  58. package/cjs/tools/blocks/getNetworkCode.js.map +1 -1
  59. package/cjs/tools/blocks/waitHeight.js +13 -36
  60. package/cjs/tools/blocks/waitHeight.js.map +1 -1
  61. package/cjs/tools/parse.js +2 -2
  62. package/cjs/tools/parse.js.map +1 -1
  63. package/cjs/tools/query.js +8 -34
  64. package/cjs/tools/query.js.map +1 -1
  65. package/cjs/tools/request.d.ts +1 -1
  66. package/cjs/tools/request.js +7 -19
  67. package/cjs/tools/request.js.map +1 -1
  68. package/cjs/tools/stringify.js +3 -3
  69. package/cjs/tools/stringify.js.map +1 -1
  70. package/cjs/tools/transactions/broadcast.js +18 -29
  71. package/cjs/tools/transactions/broadcast.js.map +1 -1
  72. package/cjs/tools/transactions/ethTxId2waves.js +2 -2
  73. package/cjs/tools/transactions/ethTxId2waves.js.map +1 -1
  74. package/cjs/tools/transactions/transactions.d.ts +5 -5
  75. package/cjs/tools/transactions/transactions.js +54 -68
  76. package/cjs/tools/transactions/transactions.js.map +1 -1
  77. package/cjs/tools/transactions/wait.js +16 -16
  78. package/cjs/tools/transactions/wait.js.map +1 -1
  79. package/cjs/tools/utils.js +30 -63
  80. package/cjs/tools/utils.js.map +1 -1
  81. package/dist/node-api.js +578 -47
  82. package/dist/node-api.min.js +5 -5
  83. package/es/create.d.ts +26 -1
  84. package/es/index.d.ts +1 -0
  85. package/es/index.js.map +1 -1
  86. package/es/tools/request.d.ts +1 -1
  87. package/es/tools/request.js +1 -1
  88. package/es/tools/request.js.map +1 -1
  89. package/es/tools/transactions/transactions.d.ts +5 -5
  90. package/es/tools/transactions/transactions.js +7 -7
  91. package/es/tools/transactions/transactions.js.map +1 -1
  92. package/package.json +4 -4
  93. package/cjs/tools/adresses/eth2waves.d.ts +0 -1
  94. package/cjs/tools/adresses/eth2waves.js +0 -38
  95. package/cjs/tools/adresses/eth2waves.js.map +0 -1
  96. package/cjs/tools/adresses/ethTxId2waves.d.ts +0 -1
  97. package/cjs/tools/adresses/ethTxId2waves.js +0 -8
  98. package/cjs/tools/adresses/ethTxId2waves.js.map +0 -1
  99. package/cjs/tools/adresses/waves2eth.d.ts +0 -1
  100. package/cjs/tools/adresses/waves2eth.js +0 -10
  101. package/cjs/tools/adresses/waves2eth.js.map +0 -1
  102. package/cjs/tools/assets/convertWaves2Eth.d.ts +0 -1
  103. package/cjs/tools/assets/convertWaves2Eth.js +0 -10
  104. package/cjs/tools/assets/convertWaves2Eth.js.map +0 -1
  105. package/es/tools/adresses/eth2waves.d.ts +0 -1
  106. package/es/tools/adresses/eth2waves.js +0 -22
  107. package/es/tools/adresses/eth2waves.js.map +0 -1
  108. package/es/tools/adresses/ethTxId2waves.d.ts +0 -1
  109. package/es/tools/adresses/ethTxId2waves.js +0 -5
  110. package/es/tools/adresses/ethTxId2waves.js.map +0 -1
  111. package/es/tools/adresses/waves2eth.d.ts +0 -1
  112. package/es/tools/adresses/waves2eth.js +0 -7
  113. package/es/tools/adresses/waves2eth.js.map +0 -1
  114. package/es/tools/assets/convertWaves2Eth.d.ts +0 -1
  115. package/es/tools/assets/convertWaves2Eth.js +0 -7
  116. package/es/tools/assets/convertWaves2Eth.js.map +0 -1
@@ -1,50 +1,23 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __read = (this && this.__read) || function (o, n) {
14
- var m = typeof Symbol === "function" && o[Symbol.iterator];
15
- if (!m) return o;
16
- var i = m.call(o), r, ar = [], e;
17
- try {
18
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
19
- }
20
- catch (error) { e = { error: error }; }
21
- finally {
22
- try {
23
- if (r && !r.done && (m = i["return"])) m.call(i);
24
- }
25
- finally { if (e) throw e.error; }
26
- }
27
- return ar;
28
- };
29
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
30
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
31
4
  };
32
5
  Object.defineProperty(exports, "__esModule", { value: true });
33
6
  exports.broadcast = exports.fetchStatus = exports.fetchInfo = exports.fetchUnconfirmedInfo = exports.fetchTransactions = exports.fetchUnconfirmed = exports.fetchCalculateFee = exports.fetchUnconfirmedSize = void 0;
34
- var constants_1 = require("../../constants");
35
- var blocks_1 = require("../blocks");
36
- var request_1 = __importDefault(require("../../tools/request"));
37
- var query_1 = __importDefault(require("../../tools/query"));
38
- var utils_1 = require("../../tools/utils");
39
- var stringify_1 = __importDefault(require("../../tools/stringify"));
40
- var transactions_1 = require("../../tools/transactions/transactions");
7
+ const constants_1 = require("../../constants");
8
+ const blocks_1 = require("../blocks");
9
+ const request_1 = __importDefault(require("../../tools/request"));
10
+ const query_1 = __importDefault(require("../../tools/query"));
11
+ const utils_1 = require("../../tools/utils");
12
+ const stringify_1 = __importDefault(require("../../tools/stringify"));
13
+ const transactions_1 = require("../../tools/transactions/transactions");
41
14
  /**
42
15
  * GET /transactions/unconfirmed/size
43
16
  * Number of unconfirmed transactions
44
17
  */
45
18
  function fetchUnconfirmedSize(base) {
46
19
  return request_1.default({
47
- base: base,
20
+ base,
48
21
  url: '/transactions/unconfirmed/size'
49
22
  });
50
23
  }
@@ -58,12 +31,11 @@ exports.fetchUnconfirmedSize = fetchUnconfirmedSize;
58
31
  * POST /transactions/calculateFee
59
32
  * Calculate transaction fee
60
33
  */
61
- function fetchCalculateFee(base, tx, options) {
62
- if (options === void 0) { options = Object.create(null); }
34
+ function fetchCalculateFee(base, tx, options = Object.create(null)) {
63
35
  return request_1.default({
64
- base: base,
36
+ base,
65
37
  url: '/transactions/calculateFee',
66
- options: utils_1.deepAssign(__assign({}, options), {
38
+ options: utils_1.deepAssign(Object.assign({}, options), {
67
39
  method: 'POST',
68
40
  body: stringify_1.default(tx),
69
41
  headers: {
@@ -77,12 +49,11 @@ exports.fetchCalculateFee = fetchCalculateFee;
77
49
  * GET /transactions/unconfirmed
78
50
  * Unconfirmed transactions
79
51
  */
80
- function fetchUnconfirmed(base, options) {
81
- if (options === void 0) { options = Object.create(null); }
52
+ function fetchUnconfirmed(base, options = Object.create(null)) {
82
53
  return request_1.default({
83
- base: base,
54
+ base,
84
55
  url: '/transactions/unconfirmed',
85
- options: options
56
+ options
86
57
  });
87
58
  }
88
59
  exports.fetchUnconfirmed = fetchUnconfirmed;
@@ -93,15 +64,13 @@ exports.fetchUnconfirmed = fetchUnconfirmed;
93
64
  * @param after искать транзакции после ID указанного в after
94
65
  * @param retry количество попыток на выполнение запроса
95
66
  */
96
- function fetchTransactions(base, address, limit, after, retry, options) {
97
- if (options === void 0) { options = Object.create(null); }
67
+ function fetchTransactions(base, address, limit, after, retry, options = Object.create(null)) {
98
68
  return request_1.default({
99
- base: base,
100
- url: "/transactions/address/" + address + "/limit/" + limit + query_1.default({ after: after }),
101
- options: options
102
- }).then(function (_a) {
103
- var _b = __read(_a, 1), list = _b[0];
104
- list.forEach(function (transaction) { return transactions_1.addStateUpdateField(transaction); });
69
+ base,
70
+ url: `/transactions/address/${address}/limit/${limit}${query_1.default({ after })}`,
71
+ options
72
+ }).then(([list]) => {
73
+ list.forEach(transaction => transactions_1.addStateUpdateField(transaction));
105
74
  return list;
106
75
  });
107
76
  }
@@ -110,12 +79,11 @@ exports.fetchTransactions = fetchTransactions;
110
79
  * GET /transactions/unconfirmed/info/{id}
111
80
  * Unconfirmed transaction info
112
81
  */
113
- function fetchUnconfirmedInfo(base, id, options) {
114
- if (options === void 0) { options = Object.create(null); }
82
+ function fetchUnconfirmedInfo(base, id, options = Object.create(null)) {
115
83
  return request_1.default({
116
- base: base,
117
- url: "/transactions/unconfirmed/info/" + id,
118
- options: options
84
+ base,
85
+ url: `/transactions/unconfirmed/info/${id}`,
86
+ options
119
87
  });
120
88
  }
121
89
  exports.fetchUnconfirmedInfo = fetchUnconfirmedInfo;
@@ -128,48 +96,40 @@ exports.fetchUnconfirmedInfo = fetchUnconfirmedInfo;
128
96
  * GET /transactions/info/{id}
129
97
  * Transaction info
130
98
  */
131
- function fetchInfo(base, id, options) {
132
- if (options === void 0) { options = Object.create(null); }
99
+ function fetchInfo(base, id, options = Object.create(null)) {
133
100
  return request_1.default({
134
- base: base,
135
- url: "/transactions/info/" + id,
136
- options: options
137
- }).then(function (transaction) { return transactions_1.addStateUpdateField(transaction); });
101
+ base,
102
+ url: `/transactions/info/${id}`,
103
+ options
104
+ }).then(transaction => transactions_1.addStateUpdateField(transaction));
138
105
  }
139
106
  exports.fetchInfo = fetchInfo;
140
107
  function fetchStatus(base, list) {
141
- var DEFAULT_STATUS = {
108
+ const DEFAULT_STATUS = {
142
109
  id: '',
143
110
  confirmations: -1,
144
111
  height: -1,
145
112
  inUTX: false,
146
113
  status: constants_1.TRANSACTION_STATUSES.NOT_FOUND
147
114
  };
148
- var loadAllTxInfo = list.map(function (id) {
149
- return fetchUnconfirmedInfo(base, id)
150
- .then(function () { return (__assign(__assign({}, DEFAULT_STATUS), { id: id, status: constants_1.TRANSACTION_STATUSES.UNCONFIRMED, inUTX: true })); })
151
- .catch(function () { return fetchInfo(base, id)
152
- .then(function (tx) { return (__assign(__assign({}, DEFAULT_STATUS), { id: id, status: constants_1.TRANSACTION_STATUSES.IN_BLOCKCHAIN, height: tx.height, applicationStatus: tx.applicationStatus })); }); })
153
- .catch(function () { return (__assign(__assign({}, DEFAULT_STATUS), { id: id })); });
154
- });
115
+ const loadAllTxInfo = list.map(id => fetchUnconfirmedInfo(base, id)
116
+ .then(() => (Object.assign(Object.assign({}, DEFAULT_STATUS), { id, status: constants_1.TRANSACTION_STATUSES.UNCONFIRMED, inUTX: true })))
117
+ .catch(() => fetchInfo(base, id)
118
+ .then(tx => (Object.assign(Object.assign({}, DEFAULT_STATUS), { id, status: constants_1.TRANSACTION_STATUSES.IN_BLOCKCHAIN, height: tx.height, applicationStatus: tx.applicationStatus }))))
119
+ .catch(() => (Object.assign(Object.assign({}, DEFAULT_STATUS), { id }))));
155
120
  return Promise.all([
156
121
  blocks_1.fetchHeight(base),
157
122
  Promise.all(loadAllTxInfo)
158
- ]).then(function (_a) {
159
- var _b = __read(_a, 2), height = _b[0].height, statuses = _b[1];
160
- return ({
161
- height: height,
162
- statuses: statuses.map(function (item) { return (__assign(__assign({}, item), { confirmations: item.status === constants_1.TRANSACTION_STATUSES.IN_BLOCKCHAIN ? height - item.height : item.confirmations })); })
163
- });
164
- });
123
+ ]).then(([{ height }, statuses]) => ({
124
+ height,
125
+ statuses: statuses.map(item => (Object.assign(Object.assign({}, item), { confirmations: item.status === constants_1.TRANSACTION_STATUSES.IN_BLOCKCHAIN ? height - item.height : item.confirmations })))
126
+ }));
165
127
  }
166
128
  exports.fetchStatus = fetchStatus;
167
- function broadcast(base, tx, options) {
168
- if (options === void 0) { options = Object.create(null); }
129
+ function broadcast(base, tx, options = Object.create(null)) {
169
130
  return request_1.default({
170
- base: base,
171
- url: '/transactions/broadcast',
172
- options: utils_1.deepAssign(__assign({}, options), {
131
+ base, url: '/transactions/broadcast',
132
+ options: utils_1.deepAssign(Object.assign({}, options), {
173
133
  method: 'POST',
174
134
  body: stringify_1.default(tx),
175
135
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-node/transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA2E;AAE3E,oCAAsC;AACtC,gEAAyD;AACzD,4DAAsC;AACtC,2CAA6C;AAC7C,oEAA8C;AAE9C,sEAAwF;AAGxF;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAC7C,OAAO,iBAAO,CAAC;QACX,IAAI,MAAA;QACJ,GAAG,EAAE,gCAAgC;KACxC,CAAC,CAAA;AACN,CAAC;AALD,oDAKC;AAOD,0CAA0C;AAC1C;;;GAGG;AAEH;;;GAGG;AACH,SAAgB,iBAAiB,CAC7B,IAAY,EACZ,EAAmD,EACnD,OAA0C;IAA1C,wBAAA,EAAA,UAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;IAE1C,OAAO,iBAAO,CAAC;QACX,IAAI,MAAA;QACJ,GAAG,EAAE,4BAA4B;QACjC,OAAO,EAAE,kBAAU,cACX,OAAO,GACX;YACI,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAS,CAAC,EAAE,CAAC;YACnB,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;SACJ,CACJ;KACJ,CAAC,CAAC;AACP,CAAC;AAnBD,8CAmBC;AAOD;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,I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G,EAAE,CAAC,iCAAK,cAAc,KAAE,EAAE,IAAE,CAAC,CAC9C,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC;QACf,oBAAW,CAAC,IAAI,CAAC;QACjB,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;KAC7B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,MAAM,EAAC,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/B,MAAM;QACN,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,iCACxB,IAAI,KACP,aAAa,EAAE,IAAI,CAAC,MAAM,KAAK,gCAAoB,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,IAC/G,CAAC;KACN,CAAC,CAAC,CAAC;AACR,CAAC;AAjCD,kCAiCC;AAeD,SAAgB,SAAS,CAAkD,IAAY,EAAE,EAAK,EAAE,UAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;IACtI,OAAO,iBAAO,CAAmB;QAC7B,IAAI,EAAE,GAAG,EAAE,yBAAyB;QACpC,OAAO,EAAE,kBAAU,mBACX,OAAO,GACX;YACI,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAS,CAAC,EAAE,CAAC;YACnB,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;SACJ,CACJ;KACJ,CAAC,CAAC;AACP,CAAC;AAdD,8BAcC"}
@@ -4,16 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.fetchNodeTime = exports.fetchSignPrivateKey = exports.fetchScriptDecompile = exports.fetchScriptMeta = exports.fetchHashFast = exports.fetchHashSecure = exports.fetchTransactionSerialize = exports.fetchEstimate = exports.fetchCompileWithImports = exports.fetchCompileCode = exports.fetchSeed = void 0;
7
- var request_1 = __importDefault(require("../../tools/request"));
8
- var stringify_1 = __importDefault(require("../../tools/stringify"));
7
+ const request_1 = __importDefault(require("../../tools/request"));
8
+ const stringify_1 = __importDefault(require("../../tools/stringify"));
9
9
  /**
10
10
  * GET /utils/seed
11
11
  * Generate random seed
12
12
  */
13
13
  function fetchSeed(base, length) {
14
14
  return request_1.default({
15
- base: base,
16
- url: "/utils/seed" + (length ? "/" + length : '')
15
+ base,
16
+ url: `/utils/seed${length ? `/${length}` : ''}`
17
17
  });
18
18
  }
19
19
  exports.fetchSeed = fetchSeed;
@@ -23,11 +23,11 @@ exports.fetchSeed = fetchSeed;
23
23
  */
24
24
  function fetchCompileCode(base, body) {
25
25
  return request_1.default({
26
- base: base,
26
+ base,
27
27
  url: '/utils/script/compileCode',
28
28
  options: {
29
29
  method: 'POST',
30
- body: body,
30
+ body,
31
31
  headers: {
32
32
  'Content-Type': 'application/json'
33
33
  }
@@ -41,7 +41,7 @@ exports.fetchCompileCode = fetchCompileCode;
41
41
  */
42
42
  function fetchCompileWithImports(base, body) {
43
43
  return request_1.default({
44
- base: base,
44
+ base,
45
45
  url: '/utils/script/compileWithImports',
46
46
  options: {
47
47
  method: 'POST',
@@ -59,11 +59,11 @@ exports.fetchCompileWithImports = fetchCompileWithImports;
59
59
  */
60
60
  function fetchEstimate(base, body) {
61
61
  return request_1.default({
62
- base: base,
62
+ base,
63
63
  url: '/utils/script/estimate',
64
64
  options: {
65
65
  method: 'POST',
66
- body: body,
66
+ body,
67
67
  headers: {
68
68
  'Content-Type': 'application/json'
69
69
  }
@@ -77,7 +77,7 @@ exports.fetchEstimate = fetchEstimate;
77
77
  */
78
78
  function fetchTransactionSerialize(base, body) {
79
79
  return request_1.default({
80
- base: base,
80
+ base,
81
81
  url: '/utils/transactionSerialize',
82
82
  options: {
83
83
  method: 'POST',
@@ -95,11 +95,11 @@ exports.fetchTransactionSerialize = fetchTransactionSerialize;
95
95
  */
96
96
  function fetchHashSecure(base, body) {
97
97
  return request_1.default({
98
- base: base,
98
+ base,
99
99
  url: '/utils/hash/secure',
100
100
  options: {
101
101
  method: 'POST',
102
- body: body,
102
+ body,
103
103
  headers: {
104
104
  'Content-Type': 'application/json'
105
105
  }
@@ -113,11 +113,11 @@ exports.fetchHashSecure = fetchHashSecure;
113
113
  */
114
114
  function fetchHashFast(base, body) {
115
115
  return request_1.default({
116
- base: base,
116
+ base,
117
117
  url: '/utils/hash/fast',
118
118
  options: {
119
119
  method: 'POST',
120
- body: body,
120
+ body,
121
121
  headers: {
122
122
  'Content-Type': 'application/json'
123
123
  }
@@ -131,11 +131,11 @@ exports.fetchHashFast = fetchHashFast;
131
131
  */
132
132
  function fetchScriptMeta(base, body) {
133
133
  return request_1.default({
134
- base: base,
134
+ base,
135
135
  url: '/utils/script/meta',
136
136
  options: {
137
137
  method: 'POST',
138
- body: body,
138
+ body,
139
139
  headers: {
140
140
  'Content-Type': 'application/json'
141
141
  }
@@ -149,11 +149,11 @@ exports.fetchScriptMeta = fetchScriptMeta;
149
149
  */
150
150
  function fetchScriptDecompile(base, body) {
151
151
  return request_1.default({
152
- base: base,
152
+ base,
153
153
  url: '/utils/script/decompile',
154
154
  options: {
155
155
  method: 'POST',
156
- body: body,
156
+ body,
157
157
  headers: {
158
158
  'Content-Type': 'application/json'
159
159
  }
@@ -167,11 +167,11 @@ exports.fetchScriptDecompile = fetchScriptDecompile;
167
167
  */
168
168
  function fetchSignPrivateKey(base, privateKey, body) {
169
169
  return request_1.default({
170
- base: base,
171
- url: "/utils/sign/" + privateKey,
170
+ base,
171
+ url: `/utils/sign/${privateKey}`,
172
172
  options: {
173
173
  method: 'POST',
174
- body: body,
174
+ body,
175
175
  headers: {
176
176
  'Content-Type': 'application/json'
177
177
  }
@@ -185,7 +185,7 @@ exports.fetchSignPrivateKey = fetchSignPrivateKey;
185
185
  */
186
186
  function fetchNodeTime(base) {
187
187
  return request_1.default({
188
- base: base,
188
+ base,
189
189
  url: '/utils/time'
190
190
  });
191
191
  }
@@ -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 @@ export declare function create(base: string): {
242
242
  } & import("@waves/ts-types").WithId & {
243
243
  sender: string;
244
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> & {
246
+ version: 1;
247
+ } & import("@waves/ts-types").WithId & {
248
+ sender: string;
249
+ height: number;
245
250
  }) | ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
246
251
  version: 1;
247
252
  } & import("@waves/ts-types").WithId & {
@@ -449,6 +454,11 @@ export declare function create(base: string): {
449
454
  } & import("@waves/ts-types").WithId & {
450
455
  sender: string;
451
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> & {
458
+ version: 1;
459
+ } & import("@waves/ts-types").WithId & {
460
+ sender: string;
461
+ height: number;
452
462
  }))[], options?: import("./tools/transactions/wait").IWaitOptions | undefined) => Promise<(import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
453
463
  version: 1;
454
464
  } & import("@waves/ts-types").WithId & {
@@ -656,6 +666,11 @@ export declare function create(base: string): {
656
666
  } & import("@waves/ts-types").WithId & {
657
667
  sender: string;
658
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> & {
670
+ version: 1;
671
+ } & import("@waves/ts-types").WithId & {
672
+ sender: string;
673
+ height: number;
659
674
  }) | ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
660
675
  version: 1;
661
676
  } & import("@waves/ts-types").WithId & {
@@ -863,6 +878,11 @@ export declare function create(base: string): {
863
878
  } & import("@waves/ts-types").WithId & {
864
879
  sender: string;
865
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> & {
882
+ version: 1;
883
+ } & import("@waves/ts-types").WithId & {
884
+ sender: string;
885
+ height: number;
866
886
  }))[]>;
867
887
  };
868
888
  blocks: {
@@ -878,7 +898,7 @@ export declare function create(base: string): {
878
898
  fee: import("@waves/ts-types").Long;
879
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> & {
880
900
  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>>>;
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>>>;
882
902
  getAssetIdListByTx: typeof getAssetIdListByTx;
883
903
  getTransactionsWithAssets: (address: string, limit: number, after?: string | undefined) => Promise<{
884
904
  transactions: ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
@@ -1088,6 +1108,11 @@ export declare function create(base: string): {
1088
1108
  } & import("@waves/ts-types").WithId & {
1089
1109
  sender: string;
1090
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;
1091
1116
  }))[];
1092
1117
  assets: Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>;
1093
1118
  }>;
package/cjs/create.js CHANGED
@@ -23,50 +23,50 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.create = void 0;
26
- var addressesModule = __importStar(require("./api-node/addresses"));
27
- var blocksModule = __importStar(require("./api-node/blocks"));
28
- var transactionsModule = __importStar(require("./api-node/transactions"));
29
- var leasingModule = __importStar(require("./api-node/leasing"));
30
- var peersModule = __importStar(require("./api-node/peers"));
31
- var rewardsModule = __importStar(require("./api-node/rewards"));
32
- var utilsModule = __importStar(require("./api-node/utils"));
33
- var debugModule = __importStar(require("./api-node/debug"));
34
- var aliasModule = __importStar(require("./api-node/alias"));
35
- var consensusModule = __importStar(require("./api-node/consensus"));
36
- var activationModule = __importStar(require("./api-node/activation"));
37
- var nodeModule = __importStar(require("./api-node/node"));
38
- var assetsModule = __importStar(require("./api-node/assets"));
39
- var ethModule = __importStar(require("./api-node/eth"));
40
- var query_1 = __importDefault(require("./tools/query"));
41
- var resolve_1 = __importDefault(require("./tools/resolve"));
42
- var request_1 = __importDefault(require("./tools/request"));
43
- var broadcast_1 = __importDefault(require("./tools/transactions/broadcast"));
44
- var getAssetsByTransaction_1 = __importDefault(require("./tools/adresses/getAssetsByTransaction"));
45
- var getAssetIdListByTx_1 = __importDefault(require("./tools/adresses/getAssetIdListByTx"));
46
- var getTransactionsWithAssets_1 = __importDefault(require("./tools/adresses/getTransactionsWithAssets"));
47
- var availableSponsoredBalances_1 = __importDefault(require("./tools/adresses/availableSponsoredBalances"));
48
- var wait_1 = __importDefault(require("./tools/transactions/wait"));
49
- var parse_1 = __importDefault(require("./tools/parse"));
50
- var getNetworkByte_1 = __importDefault(require("./tools/blocks/getNetworkByte"));
51
- var getNetworkCode_1 = __importDefault(require("./tools/blocks/getNetworkCode"));
52
- var watch_1 = __importDefault(require("./tools/adresses/watch"));
53
- var toolsUtilsModule = __importStar(require("./tools/utils"));
26
+ const addressesModule = __importStar(require("./api-node/addresses"));
27
+ const blocksModule = __importStar(require("./api-node/blocks"));
28
+ const transactionsModule = __importStar(require("./api-node/transactions"));
29
+ const leasingModule = __importStar(require("./api-node/leasing"));
30
+ const peersModule = __importStar(require("./api-node/peers"));
31
+ const rewardsModule = __importStar(require("./api-node/rewards"));
32
+ const utilsModule = __importStar(require("./api-node/utils"));
33
+ const debugModule = __importStar(require("./api-node/debug"));
34
+ const aliasModule = __importStar(require("./api-node/alias"));
35
+ const consensusModule = __importStar(require("./api-node/consensus"));
36
+ const activationModule = __importStar(require("./api-node/activation"));
37
+ const nodeModule = __importStar(require("./api-node/node"));
38
+ const assetsModule = __importStar(require("./api-node/assets"));
39
+ const ethModule = __importStar(require("./api-node/eth"));
40
+ const query_1 = __importDefault(require("./tools/query"));
41
+ const resolve_1 = __importDefault(require("./tools/resolve"));
42
+ const request_1 = __importDefault(require("./tools/request"));
43
+ const broadcast_1 = __importDefault(require("./tools/transactions/broadcast"));
44
+ const getAssetsByTransaction_1 = __importDefault(require("./tools/adresses/getAssetsByTransaction"));
45
+ const getAssetIdListByTx_1 = __importDefault(require("./tools/adresses/getAssetIdListByTx"));
46
+ const getTransactionsWithAssets_1 = __importDefault(require("./tools/adresses/getTransactionsWithAssets"));
47
+ const availableSponsoredBalances_1 = __importDefault(require("./tools/adresses/availableSponsoredBalances"));
48
+ const wait_1 = __importDefault(require("./tools/transactions/wait"));
49
+ const parse_1 = __importDefault(require("./tools/parse"));
50
+ const getNetworkByte_1 = __importDefault(require("./tools/blocks/getNetworkByte"));
51
+ const getNetworkCode_1 = __importDefault(require("./tools/blocks/getNetworkCode"));
52
+ const watch_1 = __importDefault(require("./tools/adresses/watch"));
53
+ const toolsUtilsModule = __importStar(require("./tools/utils"));
54
54
  function create(base) {
55
- var addresses = wrapRecord(base, addressesModule);
56
- var blocks = wrapRecord(base, blocksModule);
57
- var transactions = wrapRecord(base, transactionsModule);
58
- var leasing = wrapRecord(base, leasingModule);
59
- var peers = wrapRecord(base, peersModule);
60
- var rewards = wrapRecord(base, rewardsModule);
61
- var utils = wrapRecord(base, utilsModule);
62
- var debug = wrapRecord(base, debugModule);
63
- var alias = wrapRecord(base, aliasModule);
64
- var consensus = wrapRecord(base, consensusModule);
65
- var activation = wrapRecord(base, activationModule);
66
- var node = wrapRecord(base, nodeModule);
67
- var assets = wrapRecord(base, assetsModule);
68
- var eth = wrapRecord(base, ethModule);
69
- var tools = {
55
+ const addresses = wrapRecord(base, addressesModule);
56
+ const blocks = wrapRecord(base, blocksModule);
57
+ const transactions = wrapRecord(base, transactionsModule);
58
+ const leasing = wrapRecord(base, leasingModule);
59
+ const peers = wrapRecord(base, peersModule);
60
+ const rewards = wrapRecord(base, rewardsModule);
61
+ const utils = wrapRecord(base, utilsModule);
62
+ const debug = wrapRecord(base, debugModule);
63
+ const alias = wrapRecord(base, aliasModule);
64
+ const consensus = wrapRecord(base, consensusModule);
65
+ const activation = wrapRecord(base, activationModule);
66
+ const node = wrapRecord(base, nodeModule);
67
+ const assets = wrapRecord(base, assetsModule);
68
+ const eth = wrapRecord(base, ethModule);
69
+ const tools = {
70
70
  transactions: {
71
71
  broadcast: wrapRequest(base, broadcast_1.default),
72
72
  wait: wrapRequest(base, wait_1.default)
@@ -89,26 +89,26 @@ function create(base) {
89
89
  parse: parse_1.default
90
90
  };
91
91
  return {
92
- addresses: addresses,
93
- blocks: blocks,
94
- transactions: transactions,
95
- leasing: leasing,
96
- tools: tools,
97
- peers: peers,
98
- rewards: rewards,
99
- utils: utils,
100
- debug: debug,
101
- alias: alias,
102
- consensus: consensus,
103
- activation: activation,
104
- node: node,
105
- assets: assets,
106
- eth: eth
92
+ addresses,
93
+ blocks,
94
+ transactions,
95
+ leasing,
96
+ tools,
97
+ peers,
98
+ rewards,
99
+ utils,
100
+ debug,
101
+ alias,
102
+ consensus,
103
+ activation,
104
+ node,
105
+ assets,
106
+ eth
107
107
  };
108
108
  }
109
109
  exports.create = create;
110
110
  function wrapRecord(base, hash) {
111
- return Object.keys(hash).reduce(function (acc, methodName) {
111
+ return Object.keys(hash).reduce((acc, methodName) => {
112
112
  acc[methodName] = wrapRequest(base, hash[methodName]);
113
113
  return acc;
114
114
  }, {});