@waves/node-api-js 1.2.5-beta.6 → 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.
- package/cjs/api-node/activation/index.js +2 -2
- package/cjs/api-node/activation/index.js.map +1 -1
- package/cjs/api-node/addresses/index.js +45 -54
- package/cjs/api-node/addresses/index.js.map +1 -1
- package/cjs/api-node/alias/index.js +5 -5
- package/cjs/api-node/alias/index.js.map +1 -1
- package/cjs/api-node/assets/index.js +60 -113
- package/cjs/api-node/assets/index.js.map +1 -1
- package/cjs/api-node/blocks/index.js +49 -60
- package/cjs/api-node/blocks/index.js.map +1 -1
- package/cjs/api-node/consensus/index.js +5 -6
- package/cjs/api-node/consensus/index.js.map +1 -1
- package/cjs/api-node/debug/index.js +14 -17
- package/cjs/api-node/debug/index.js.map +1 -1
- package/cjs/api-node/eth/index.js +5 -5
- package/cjs/api-node/eth/index.js.map +1 -1
- package/cjs/api-node/leasing/index.js +7 -19
- package/cjs/api-node/leasing/index.js.map +1 -1
- package/cjs/api-node/node/index.js +5 -7
- package/cjs/api-node/node/index.js.map +1 -1
- package/cjs/api-node/peers/index.js +13 -17
- package/cjs/api-node/peers/index.js.map +1 -1
- package/cjs/api-node/rewards/index.js +5 -6
- package/cjs/api-node/rewards/index.js.map +1 -1
- package/cjs/api-node/transactions/index.js +42 -82
- package/cjs/api-node/transactions/index.js.map +1 -1
- package/cjs/api-node/utils/index.js +22 -22
- package/cjs/api-node/utils/index.js.map +1 -1
- package/cjs/create.d.ts +51 -1
- package/cjs/create.js +59 -59
- package/cjs/create.js.map +1 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +5 -5
- package/cjs/index.js.map +1 -1
- package/cjs/interface.js +2 -6
- package/cjs/interface.js.map +1 -1
- package/cjs/tools/adresses/availableSponsoredBalances.js +9 -9
- package/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -1
- package/cjs/tools/adresses/ethAddress2waves.js +16 -29
- package/cjs/tools/adresses/ethAddress2waves.js.map +1 -1
- package/cjs/tools/adresses/getAssetIdListByTx.js +15 -36
- package/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -1
- package/cjs/tools/adresses/getAssetsByTransaction.js +4 -4
- package/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -1
- package/cjs/tools/adresses/getTransactionsWithAssets.js +3 -3
- package/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -1
- package/cjs/tools/adresses/watch.js +56 -85
- package/cjs/tools/adresses/watch.js.map +1 -1
- package/cjs/tools/adresses/wavesAddress2eth.js +4 -4
- package/cjs/tools/adresses/wavesAddress2eth.js.map +1 -1
- package/cjs/tools/assets/wavesAsset2eth.js +4 -4
- package/cjs/tools/assets/wavesAsset2eth.js.map +1 -1
- package/cjs/tools/blocks/detectInterval.js +4 -4
- package/cjs/tools/blocks/detectInterval.js.map +1 -1
- package/cjs/tools/blocks/getNetworkByte.js +6 -6
- package/cjs/tools/blocks/getNetworkByte.js.map +1 -1
- package/cjs/tools/blocks/getNetworkCode.js +2 -2
- package/cjs/tools/blocks/getNetworkCode.js.map +1 -1
- package/cjs/tools/blocks/waitHeight.js +13 -36
- package/cjs/tools/blocks/waitHeight.js.map +1 -1
- package/cjs/tools/parse.js +2 -2
- package/cjs/tools/parse.js.map +1 -1
- package/cjs/tools/query.js +8 -34
- package/cjs/tools/query.js.map +1 -1
- package/cjs/tools/request.d.ts +1 -1
- package/cjs/tools/request.js +7 -19
- package/cjs/tools/request.js.map +1 -1
- package/cjs/tools/stringify.js +3 -3
- package/cjs/tools/stringify.js.map +1 -1
- package/cjs/tools/transactions/broadcast.js +18 -29
- package/cjs/tools/transactions/broadcast.js.map +1 -1
- package/cjs/tools/transactions/ethTxId2waves.js +5 -2
- package/cjs/tools/transactions/ethTxId2waves.js.map +1 -1
- package/cjs/tools/transactions/transactions.d.ts +5 -5
- package/cjs/tools/transactions/transactions.js +57 -63
- package/cjs/tools/transactions/transactions.js.map +1 -1
- package/cjs/tools/transactions/wait.js +16 -16
- package/cjs/tools/transactions/wait.js.map +1 -1
- package/cjs/tools/utils.js +30 -63
- package/cjs/tools/utils.js.map +1 -1
- package/dist/node-api.js +589 -45
- package/dist/node-api.min.js +5 -5
- package/es/create.d.ts +51 -1
- package/es/index.d.ts +1 -0
- package/es/index.js.map +1 -1
- package/es/tools/request.d.ts +1 -1
- package/es/tools/request.js +1 -1
- package/es/tools/request.js.map +1 -1
- package/es/tools/transactions/ethTxId2waves.js +5 -2
- package/es/tools/transactions/ethTxId2waves.js.map +1 -1
- package/es/tools/transactions/transactions.d.ts +5 -5
- package/es/tools/transactions/transactions.js +12 -4
- package/es/tools/transactions/transactions.js.map +1 -1
- package/package.json +4 -4
- package/cjs/tools/adresses/ethTxId2waves.d.ts +0 -1
- package/cjs/tools/adresses/ethTxId2waves.js +0 -8
- package/cjs/tools/adresses/ethTxId2waves.js.map +0 -1
- package/es/tools/adresses/eth2waves.d.ts +0 -1
- package/es/tools/adresses/eth2waves.js +0 -19
- package/es/tools/adresses/eth2waves.js.map +0 -1
- package/es/tools/adresses/ethTxId2waves.d.ts +0 -1
- package/es/tools/adresses/ethTxId2waves.js +0 -5
- package/es/tools/adresses/ethTxId2waves.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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
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
|
|
36
|
+
base,
|
|
65
37
|
url: '/transactions/calculateFee',
|
|
66
|
-
options: utils_1.deepAssign(
|
|
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
|
|
54
|
+
base,
|
|
84
55
|
url: '/transactions/unconfirmed',
|
|
85
|
-
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
|
|
100
|
-
url:
|
|
101
|
-
options
|
|
102
|
-
}).then(
|
|
103
|
-
|
|
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
|
|
117
|
-
url:
|
|
118
|
-
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
|
|
135
|
-
url:
|
|
136
|
-
options
|
|
137
|
-
}).then(
|
|
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
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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:
|
|
171
|
-
|
|
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":"
|
|
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,CAC7B,IAAY,EACZ,EAAmD,EACnD,UAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;IAE1C,OAAO,iBAAO,CAAC;QACX,IAAI;QACJ,GAAG,EAAE,4BAA4B;QACjC,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;AAnBD,8CAmBC;AAOD;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,IAAY,EAAE,UAAuB,MAA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C,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
|
-
|
|
8
|
-
|
|
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
|
|
16
|
-
url:
|
|
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
|
|
26
|
+
base,
|
|
27
27
|
url: '/utils/script/compileCode',
|
|
28
28
|
options: {
|
|
29
29
|
method: 'POST',
|
|
30
|
-
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
|
|
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
|
|
62
|
+
base,
|
|
63
63
|
url: '/utils/script/estimate',
|
|
64
64
|
options: {
|
|
65
65
|
method: 'POST',
|
|
66
|
-
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
|
|
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
|
|
98
|
+
base,
|
|
99
99
|
url: '/utils/hash/secure',
|
|
100
100
|
options: {
|
|
101
101
|
method: 'POST',
|
|
102
|
-
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
|
|
116
|
+
base,
|
|
117
117
|
url: '/utils/hash/fast',
|
|
118
118
|
options: {
|
|
119
119
|
method: 'POST',
|
|
120
|
-
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
|
|
134
|
+
base,
|
|
135
135
|
url: '/utils/script/meta',
|
|
136
136
|
options: {
|
|
137
137
|
method: 'POST',
|
|
138
|
-
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
|
|
152
|
+
base,
|
|
153
153
|
url: '/utils/script/decompile',
|
|
154
154
|
options: {
|
|
155
155
|
method: 'POST',
|
|
156
|
-
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
|
|
171
|
-
url:
|
|
170
|
+
base,
|
|
171
|
+
url: `/utils/sign/${privateKey}`,
|
|
172
172
|
options: {
|
|
173
173
|
method: 'POST',
|
|
174
|
-
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
|
|
188
|
+
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,
|
|
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,OAA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C;SACJ;KACJ,CAAC,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"}
|
package/cjs/create.d.ts
CHANGED
|
@@ -237,6 +237,16 @@ 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> & {
|
|
246
|
+
version: 1;
|
|
247
|
+
} & import("@waves/ts-types").WithId & {
|
|
248
|
+
sender: string;
|
|
249
|
+
height: number;
|
|
240
250
|
}) | ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
|
|
241
251
|
version: 1;
|
|
242
252
|
} & import("@waves/ts-types").WithId & {
|
|
@@ -439,6 +449,16 @@ export declare function create(base: string): {
|
|
|
439
449
|
} & import("@waves/ts-types").WithId & {
|
|
440
450
|
sender: string;
|
|
441
451
|
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> & {
|
|
458
|
+
version: 1;
|
|
459
|
+
} & import("@waves/ts-types").WithId & {
|
|
460
|
+
sender: string;
|
|
461
|
+
height: number;
|
|
442
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> & {
|
|
443
463
|
version: 1;
|
|
444
464
|
} & import("@waves/ts-types").WithId & {
|
|
@@ -641,6 +661,16 @@ export declare function create(base: string): {
|
|
|
641
661
|
} & import("@waves/ts-types").WithId & {
|
|
642
662
|
sender: string;
|
|
643
663
|
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> & {
|
|
670
|
+
version: 1;
|
|
671
|
+
} & import("@waves/ts-types").WithId & {
|
|
672
|
+
sender: string;
|
|
673
|
+
height: number;
|
|
644
674
|
}) | ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
|
|
645
675
|
version: 1;
|
|
646
676
|
} & import("@waves/ts-types").WithId & {
|
|
@@ -843,6 +873,16 @@ export declare function create(base: string): {
|
|
|
843
873
|
} & import("@waves/ts-types").WithId & {
|
|
844
874
|
sender: string;
|
|
845
875
|
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> & {
|
|
882
|
+
version: 1;
|
|
883
|
+
} & import("@waves/ts-types").WithId & {
|
|
884
|
+
sender: string;
|
|
885
|
+
height: number;
|
|
846
886
|
}))[]>;
|
|
847
887
|
};
|
|
848
888
|
blocks: {
|
|
@@ -858,7 +898,7 @@ export declare function create(base: string): {
|
|
|
858
898
|
fee: import("@waves/ts-types").Long;
|
|
859
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> & {
|
|
860
900
|
feeAssetId: string | null;
|
|
861
|
-
}, 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> | 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>>>;
|
|
862
902
|
getAssetIdListByTx: typeof getAssetIdListByTx;
|
|
863
903
|
getTransactionsWithAssets: (address: string, limit: number, after?: string | undefined) => Promise<{
|
|
864
904
|
transactions: ((import("@waves/ts-types").ExchangeTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 7> & {
|
|
@@ -1063,6 +1103,16 @@ export declare function create(base: string): {
|
|
|
1063
1103
|
} & import("@waves/ts-types").WithId & {
|
|
1064
1104
|
sender: string;
|
|
1065
1105
|
height: number;
|
|
1106
|
+
}) | (import("@waves/ts-types").EthereumTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 19> & {
|
|
1107
|
+
version: 1;
|
|
1108
|
+
} & import("@waves/ts-types").WithId & {
|
|
1109
|
+
sender: string;
|
|
1110
|
+
height: number;
|
|
1111
|
+
}) | (import("@waves/ts-types").InvokeExpressionTransactionFields<import("@waves/ts-types").Long> & import("@waves/ts-types").BaseTransaction<import("@waves/ts-types").Long, 18> & {
|
|
1112
|
+
version: 1;
|
|
1113
|
+
} & import("@waves/ts-types").WithId & {
|
|
1114
|
+
sender: string;
|
|
1115
|
+
height: number;
|
|
1066
1116
|
}))[];
|
|
1067
1117
|
assets: Record<string, assetsModule.TAssetDetails<import("@waves/ts-types").Long>>;
|
|
1068
1118
|
}>;
|