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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/cjs/api-node/activation/index.js +2 -2
  2. package/cjs/api-node/activation/index.js.map +1 -1
  3. package/cjs/api-node/addresses/index.js +54 -45
  4. package/cjs/api-node/addresses/index.js.map +1 -1
  5. package/cjs/api-node/alias/index.js +5 -5
  6. package/cjs/api-node/alias/index.js.map +1 -1
  7. package/cjs/api-node/assets/index.js +118 -63
  8. package/cjs/api-node/assets/index.js.map +1 -1
  9. package/cjs/api-node/blocks/index.js +60 -49
  10. package/cjs/api-node/blocks/index.js.map +1 -1
  11. package/cjs/api-node/consensus/index.js +6 -5
  12. package/cjs/api-node/consensus/index.js.map +1 -1
  13. package/cjs/api-node/debug/index.js +17 -14
  14. package/cjs/api-node/debug/index.js.map +1 -1
  15. package/cjs/api-node/eth/index.js +5 -5
  16. package/cjs/api-node/eth/index.js.map +1 -1
  17. package/cjs/api-node/leasing/index.js +19 -7
  18. package/cjs/api-node/leasing/index.js.map +1 -1
  19. package/cjs/api-node/node/index.js +7 -5
  20. package/cjs/api-node/node/index.js.map +1 -1
  21. package/cjs/api-node/peers/index.js +17 -13
  22. package/cjs/api-node/peers/index.js.map +1 -1
  23. package/cjs/api-node/rewards/index.js +6 -5
  24. package/cjs/api-node/rewards/index.js.map +1 -1
  25. package/cjs/api-node/transactions/index.js +82 -42
  26. package/cjs/api-node/transactions/index.js.map +1 -1
  27. package/cjs/api-node/utils/index.js +22 -22
  28. package/cjs/api-node/utils/index.js.map +1 -1
  29. package/cjs/create.d.ts +6 -31
  30. package/cjs/create.js +59 -59
  31. package/cjs/create.js.map +1 -1
  32. package/cjs/index.js +5 -5
  33. package/cjs/index.js.map +1 -1
  34. package/cjs/interface.js +6 -2
  35. package/cjs/interface.js.map +1 -1
  36. package/cjs/tools/adresses/availableSponsoredBalances.js +9 -9
  37. package/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -1
  38. package/cjs/tools/adresses/ethAddress2waves.js +29 -16
  39. package/cjs/tools/adresses/ethAddress2waves.js.map +1 -1
  40. package/cjs/tools/adresses/getAssetIdListByTx.js +36 -15
  41. package/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -1
  42. package/cjs/tools/adresses/getAssetsByTransaction.js +4 -4
  43. package/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -1
  44. package/cjs/tools/adresses/getTransactionsWithAssets.js +3 -3
  45. package/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -1
  46. package/cjs/tools/adresses/watch.js +85 -56
  47. package/cjs/tools/adresses/watch.js.map +1 -1
  48. package/cjs/tools/adresses/wavesAddress2eth.js +4 -4
  49. package/cjs/tools/adresses/wavesAddress2eth.js.map +1 -1
  50. package/cjs/tools/assets/wavesAsset2eth.js +4 -4
  51. package/cjs/tools/assets/wavesAsset2eth.js.map +1 -1
  52. package/cjs/tools/blocks/detectInterval.js +4 -4
  53. package/cjs/tools/blocks/detectInterval.js.map +1 -1
  54. package/cjs/tools/blocks/getNetworkByte.js +6 -6
  55. package/cjs/tools/blocks/getNetworkByte.js.map +1 -1
  56. package/cjs/tools/blocks/getNetworkCode.js +2 -2
  57. package/cjs/tools/blocks/getNetworkCode.js.map +1 -1
  58. package/cjs/tools/blocks/waitHeight.js +36 -13
  59. package/cjs/tools/blocks/waitHeight.js.map +1 -1
  60. package/cjs/tools/parse.js +2 -2
  61. package/cjs/tools/parse.js.map +1 -1
  62. package/cjs/tools/query.js +34 -8
  63. package/cjs/tools/query.js.map +1 -1
  64. package/cjs/tools/request.d.ts +1 -1
  65. package/cjs/tools/request.js +19 -7
  66. package/cjs/tools/request.js.map +1 -1
  67. package/cjs/tools/stringify.js +3 -3
  68. package/cjs/tools/stringify.js.map +1 -1
  69. package/cjs/tools/transactions/broadcast.js +29 -18
  70. package/cjs/tools/transactions/broadcast.js.map +1 -1
  71. package/cjs/tools/transactions/ethTxId2waves.js +2 -2
  72. package/cjs/tools/transactions/ethTxId2waves.js.map +1 -1
  73. package/cjs/tools/transactions/transactions.d.ts +2 -2
  74. package/cjs/tools/transactions/transactions.js +66 -52
  75. package/cjs/tools/transactions/transactions.js.map +1 -1
  76. package/cjs/tools/transactions/wait.js +16 -16
  77. package/cjs/tools/transactions/wait.js.map +1 -1
  78. package/cjs/tools/utils.js +63 -30
  79. package/cjs/tools/utils.js.map +1 -1
  80. package/dist/0.node-api.js +467 -0
  81. package/dist/node-api.js +42 -573
  82. package/dist/node-api.min.js +5 -5
  83. package/dist/node-api.min.js.LICENSE.txt +17 -0
  84. package/dist/node_fs-node_path.node-api.js +23 -0
  85. package/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +599 -0
  86. package/es/create.d.ts +6 -31
  87. package/es/tools/request.d.ts +1 -1
  88. package/es/tools/request.js +1 -1
  89. package/es/tools/request.js.map +1 -1
  90. package/es/tools/transactions/transactions.d.ts +2 -2
  91. package/es/tools/transactions/transactions.js +1 -1
  92. package/es/tools/transactions/transactions.js.map +1 -1
  93. package/package.json +4 -4
@@ -1,23 +1,50 @@
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
+ };
2
29
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
30
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
31
  };
5
32
  Object.defineProperty(exports, "__esModule", { value: true });
6
33
  exports.broadcast = exports.fetchStatus = exports.fetchInfo = exports.fetchUnconfirmedInfo = exports.fetchTransactions = exports.fetchUnconfirmed = exports.fetchCalculateFee = exports.fetchUnconfirmedSize = void 0;
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");
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");
14
41
  /**
15
42
  * GET /transactions/unconfirmed/size
16
43
  * Number of unconfirmed transactions
17
44
  */
18
45
  function fetchUnconfirmedSize(base) {
19
46
  return request_1.default({
20
- base,
47
+ base: base,
21
48
  url: '/transactions/unconfirmed/size'
22
49
  });
23
50
  }
@@ -31,11 +58,12 @@ exports.fetchUnconfirmedSize = fetchUnconfirmedSize;
31
58
  * POST /transactions/calculateFee
32
59
  * Calculate transaction fee
33
60
  */
34
- function fetchCalculateFee(base, tx, options = Object.create(null)) {
61
+ function fetchCalculateFee(base, tx, options) {
62
+ if (options === void 0) { options = Object.create(null); }
35
63
  return request_1.default({
36
- base,
64
+ base: base,
37
65
  url: '/transactions/calculateFee',
38
- options: utils_1.deepAssign(Object.assign({}, options), {
66
+ options: utils_1.deepAssign(__assign({}, options), {
39
67
  method: 'POST',
40
68
  body: stringify_1.default(tx),
41
69
  headers: {
@@ -49,11 +77,12 @@ exports.fetchCalculateFee = fetchCalculateFee;
49
77
  * GET /transactions/unconfirmed
50
78
  * Unconfirmed transactions
51
79
  */
52
- function fetchUnconfirmed(base, options = Object.create(null)) {
80
+ function fetchUnconfirmed(base, options) {
81
+ if (options === void 0) { options = Object.create(null); }
53
82
  return request_1.default({
54
- base,
83
+ base: base,
55
84
  url: '/transactions/unconfirmed',
56
- options
85
+ options: options
57
86
  });
58
87
  }
59
88
  exports.fetchUnconfirmed = fetchUnconfirmed;
@@ -64,13 +93,15 @@ exports.fetchUnconfirmed = fetchUnconfirmed;
64
93
  * @param after искать транзакции после ID указанного в after
65
94
  * @param retry количество попыток на выполнение запроса
66
95
  */
67
- function fetchTransactions(base, address, limit, after, retry, options = Object.create(null)) {
96
+ function fetchTransactions(base, address, limit, after, retry, options) {
97
+ if (options === void 0) { options = Object.create(null); }
68
98
  return request_1.default({
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));
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); });
74
105
  return list;
75
106
  });
76
107
  }
@@ -79,11 +110,12 @@ exports.fetchTransactions = fetchTransactions;
79
110
  * GET /transactions/unconfirmed/info/{id}
80
111
  * Unconfirmed transaction info
81
112
  */
82
- function fetchUnconfirmedInfo(base, id, options = Object.create(null)) {
113
+ function fetchUnconfirmedInfo(base, id, options) {
114
+ if (options === void 0) { options = Object.create(null); }
83
115
  return request_1.default({
84
- base,
85
- url: `/transactions/unconfirmed/info/${id}`,
86
- options
116
+ base: base,
117
+ url: "/transactions/unconfirmed/info/" + id,
118
+ options: options
87
119
  });
88
120
  }
89
121
  exports.fetchUnconfirmedInfo = fetchUnconfirmedInfo;
@@ -96,40 +128,48 @@ exports.fetchUnconfirmedInfo = fetchUnconfirmedInfo;
96
128
  * GET /transactions/info/{id}
97
129
  * Transaction info
98
130
  */
99
- function fetchInfo(base, id, options = Object.create(null)) {
131
+ function fetchInfo(base, id, options) {
132
+ if (options === void 0) { options = Object.create(null); }
100
133
  return request_1.default({
101
- base,
102
- url: `/transactions/info/${id}`,
103
- options
104
- }).then(transaction => transactions_1.addStateUpdateField(transaction));
134
+ base: base,
135
+ url: "/transactions/info/" + id,
136
+ options: options
137
+ }).then(function (transaction) { return transactions_1.addStateUpdateField(transaction); });
105
138
  }
106
139
  exports.fetchInfo = fetchInfo;
107
140
  function fetchStatus(base, list) {
108
- const DEFAULT_STATUS = {
141
+ var DEFAULT_STATUS = {
109
142
  id: '',
110
143
  confirmations: -1,
111
144
  height: -1,
112
145
  inUTX: false,
113
146
  status: constants_1.TRANSACTION_STATUSES.NOT_FOUND
114
147
  };
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 }))));
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
+ });
120
155
  return Promise.all([
121
156
  blocks_1.fetchHeight(base),
122
157
  Promise.all(loadAllTxInfo)
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
- }));
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
+ });
127
165
  }
128
166
  exports.fetchStatus = fetchStatus;
129
- function broadcast(base, tx, options = Object.create(null)) {
167
+ function broadcast(base, tx, options) {
168
+ if (options === void 0) { options = Object.create(null); }
130
169
  return request_1.default({
131
- base, url: '/transactions/broadcast',
132
- options: utils_1.deepAssign(Object.assign({}, options), {
170
+ base: base,
171
+ url: '/transactions/broadcast',
172
+ options: utils_1.deepAssign(__assign({}, options), {
133
173
  method: 'POST',
134
174
  body: stringify_1.default(tx),
135
175
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-node/transactions/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA2E;AAE3E,sCAAsC;AACtC,kEAAyD;AACzD,8DAAsC;AACtC,6CAA6C;AAC7C,sEAA8C;AAE9C,wEAAwF;AAGxF;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAC7C,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,gCAAgC;KACxC,CAAC,CAAA;AACN,CAAC;AALD,oDAKC;AAOD,0CAA0C;AAC1C;;;GAGG;AAEH;;;GAGG;AACH,SAAgB,iBAAiB,CAC7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,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
- const request_1 = __importDefault(require("../../tools/request"));
8
- const stringify_1 = __importDefault(require("../../tools/stringify"));
7
+ var request_1 = __importDefault(require("../../tools/request"));
8
+ var 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,
16
- url: `/utils/seed${length ? `/${length}` : ''}`
15
+ base: 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,
26
+ base: base,
27
27
  url: '/utils/script/compileCode',
28
28
  options: {
29
29
  method: 'POST',
30
- body,
30
+ body: 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,
44
+ base: 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,
62
+ base: base,
63
63
  url: '/utils/script/estimate',
64
64
  options: {
65
65
  method: 'POST',
66
- body,
66
+ body: 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,
80
+ base: 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,
98
+ base: base,
99
99
  url: '/utils/hash/secure',
100
100
  options: {
101
101
  method: 'POST',
102
- body,
102
+ body: 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,
116
+ base: base,
117
117
  url: '/utils/hash/fast',
118
118
  options: {
119
119
  method: 'POST',
120
- body,
120
+ body: 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,
134
+ base: base,
135
135
  url: '/utils/script/meta',
136
136
  options: {
137
137
  method: 'POST',
138
- body,
138
+ body: 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,
152
+ base: base,
153
153
  url: '/utils/script/decompile',
154
154
  options: {
155
155
  method: 'POST',
156
- body,
156
+ body: 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,
171
- url: `/utils/sign/${privateKey}`,
170
+ base: base,
171
+ url: "/utils/sign/" + privateKey,
172
172
  options: {
173
173
  method: 'POST',
174
- body,
174
+ body: 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,
188
+ base: base,
189
189
  url: '/utils/time'
190
190
  });
191
191
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-node/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,kEAA0C;AAC1C,sEAA8C;AAI9C;;;GAGG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,MAAe;IACnD,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,cAAc,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;KAClD,CAAC,CAAA;AACN,CAAC;AALD,8BAKC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,IAAY,EAAE,IAAY;IACvD,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,2BAA2B;QAChC,OAAO,EAAE;YACL,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;SACJ;KACJ,CAAC,CAAA;AACN,CAAC;AAZD,4CAYC;AAED;;;GAGG;AACH,SAAgB,uBAAuB,CAAC,IAAY,EAAE,IAA6B;IAC/E,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,kCAAkC;QACvC,OAAO,EAAE;YACL,MAAM,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,CAAA;AACN,CAAC;AAZD,sCAYC;AAED;;;GAGG;AACH,SAAgB,eAAe,CAAC,IAAY,EAAE,IAAY;IACtD,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,oBAAoB;QACzB,OAAO,EAAE;YACL,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;SACJ;KACJ,CAAC,CAAA;AACN,CAAC;AAZD,0CAYC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAAY,EAAE,IAAY;IAC3D,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,yBAAyB;QAC9B,OAAO,EAAE;YACL,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;SACJ;KACJ,CAAC,CAAA;AACN,CAAC;AAZD,oDAYC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,IAAY,EAAE,UAAkB,EAAE,IAAY;IAC9E,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,eAAe,UAAU,EAAE;QAChC,OAAO,EAAE;YACL,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;SACJ;KACJ,CAAC,CAAA;AACN,CAAC;AAZD,kDAYC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,IAAY;IACtC,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,aAAa;KACrB,CAAC,CAAA;AACN,CAAC;AALD,sCAKC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-node/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,gEAA0C;AAC1C,oEAA8C;AAI9C;;;GAGG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,MAAe;IACnD,OAAO,iBAAO,CAAC;QACX,IAAI,MAAA;QACJ,GAA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AmB,CAAC,IAAY,EAAE,UAAkB,EAAE,IAAY;IAC9E,OAAO,iBAAO,CAAC;QACX,IAAI,MAAA;QACJ,GAAG,EAAE,iBAAe,UAAY;QAChC,OAAO,EAAE;YACL,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;YACJ,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;SACJ;KACJ,CAAC,CAAA;AACN,CAAC;AAZD,kDAYC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,IAAY;IACtC,OAAO,iBAAO,CAAC;QACX,IAAI,MAAA;QACJ,GAAG,EAAE,aAAa;KACrB,CAAC,CAAA;AACN,CAAC;AALD,sCAKC"}
package/cjs/create.d.ts CHANGED
@@ -237,12 +237,7 @@ export declare function create(base: string): {
237
237
  } & import("@waves/ts-types").WithId & {
238
238
  sender: string;
239
239
  height: number;
240
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
241
- version: 1;
242
- } & import("@waves/ts-types").WithId & {
243
- sender: string;
244
- height: number;
245
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
240
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
246
241
  version: 1;
247
242
  } & import("@waves/ts-types").WithId & {
248
243
  sender: string;
@@ -449,12 +444,7 @@ export declare function create(base: string): {
449
444
  } & import("@waves/ts-types").WithId & {
450
445
  sender: string;
451
446
  height: number;
452
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
453
- version: 1;
454
- } & import("@waves/ts-types").WithId & {
455
- sender: string;
456
- height: number;
457
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
447
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
458
448
  version: 1;
459
449
  } & import("@waves/ts-types").WithId & {
460
450
  sender: string;
@@ -661,12 +651,7 @@ export declare function create(base: string): {
661
651
  } & import("@waves/ts-types").WithId & {
662
652
  sender: string;
663
653
  height: number;
664
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
665
- version: 1;
666
- } & import("@waves/ts-types").WithId & {
667
- sender: string;
668
- height: number;
669
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
654
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
670
655
  version: 1;
671
656
  } & import("@waves/ts-types").WithId & {
672
657
  sender: string;
@@ -873,12 +858,7 @@ export declare function create(base: string): {
873
858
  } & import("@waves/ts-types").WithId & {
874
859
  sender: string;
875
860
  height: number;
876
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
877
- version: 1;
878
- } & import("@waves/ts-types").WithId & {
879
- sender: string;
880
- height: number;
881
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
861
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
882
862
  version: 1;
883
863
  } & import("@waves/ts-types").WithId & {
884
864
  sender: string;
@@ -898,7 +878,7 @@ export declare function create(base: string): {
898
878
  fee: import("@waves/ts-types").Long;
899
879
  }, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").PaymentTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 2>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").IssueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 3> & {
900
880
  feeAssetId: string | null;
901
- }, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").UpdateAssetInfoTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 17>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18>, 1> | Transaction<import("@waves/ts-types").Long>[]) => Promise<Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>>;
881
+ }, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").TransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 4>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").ReissueTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 5>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").BurnTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 6>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").LeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 8>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").CancelLeaseTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 9>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").AliasTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 10>, 3> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").MassTransferTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 11>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").DataTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 12>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 13>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SponsorshipTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 14>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").SetAssetScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 15>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").InvokeScriptTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 16>, 2> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").UpdateAssetInfoTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 17>, 1> | import("@waves/ts-types").WithVersion<import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18>, 1> | Transaction<import("@waves/ts-types").Long>[]) => Promise<Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>>;
902
882
  getAssetIdListByTx: typeof getAssetIdListByTx;
903
883
  getTransactionsWithAssets: (address: string, limit: number, after?: string | undefined) => Promise<{
904
884
  transactions: ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
@@ -1103,12 +1083,7 @@ export declare function create(base: string): {
1103
1083
  } & import("@waves/ts-types").WithId & {
1104
1084
  sender: string;
1105
1085
  height: number;
1106
- }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
1107
- version: 1;
1108
- } & import("@waves/ts-types").WithId & {
1109
- sender: string;
1110
- height: number;
1111
- }) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
1086
+ }) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
1112
1087
  version: 1;
1113
1088
  } & import("@waves/ts-types").WithId & {
1114
1089
  sender: string;