@pioneer-platform/ton-network 8.17.9 → 8.17.11
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +15 -0
- package/lib/index.js +14 -10
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @pioneer-platform/ton-network@8.17.
|
|
3
|
+
> @pioneer-platform/ton-network@8.17.11 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer/modules/coins/ton/ton-network
|
|
4
4
|
> tsc -p .
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pioneer-platform/ton-network
|
|
2
2
|
|
|
3
|
+
## 8.17.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [d1d2546]
|
|
8
|
+
- @pioneer-platform/pioneer-nodes@8.37.11
|
|
9
|
+
|
|
10
|
+
## 8.17.10
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- chore: chore: fix: Redis gzip binary corruption in tx history + SDK transaction loading from vault cache
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @pioneer-platform/pioneer-nodes@8.37.10
|
|
17
|
+
|
|
3
18
|
## 8.17.9
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -376,16 +376,16 @@ function get_wallet_seqno(address) {
|
|
|
376
376
|
}
|
|
377
377
|
function broadcast_transaction(boc) {
|
|
378
378
|
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
var tag, output, response, e_5;
|
|
380
|
-
var _a;
|
|
381
|
-
return __generator(this, function (
|
|
382
|
-
switch (
|
|
379
|
+
var tag, output, response, e_5, respData, detail;
|
|
380
|
+
var _a, _b, _c;
|
|
381
|
+
return __generator(this, function (_d) {
|
|
382
|
+
switch (_d.label) {
|
|
383
383
|
case 0:
|
|
384
384
|
tag = TAG + " | broadcast_transaction | ";
|
|
385
385
|
output = { success: false };
|
|
386
|
-
|
|
386
|
+
_d.label = 1;
|
|
387
387
|
case 1:
|
|
388
|
-
|
|
388
|
+
_d.trys.push([1, 3, , 4]);
|
|
389
389
|
log.debug(tag, "Broadcasting transaction...");
|
|
390
390
|
return [4 /*yield*/, axios({
|
|
391
391
|
url: "".concat(apiUrl, "/sendBoc"),
|
|
@@ -394,7 +394,7 @@ function broadcast_transaction(boc) {
|
|
|
394
394
|
data: { boc: boc }
|
|
395
395
|
})];
|
|
396
396
|
case 2:
|
|
397
|
-
response =
|
|
397
|
+
response = _d.sent();
|
|
398
398
|
if (response.data) {
|
|
399
399
|
if (response.data.ok) {
|
|
400
400
|
output.success = true;
|
|
@@ -409,9 +409,13 @@ function broadcast_transaction(boc) {
|
|
|
409
409
|
}
|
|
410
410
|
return [2 /*return*/, output];
|
|
411
411
|
case 3:
|
|
412
|
-
e_5 =
|
|
413
|
-
|
|
414
|
-
|
|
412
|
+
e_5 = _d.sent();
|
|
413
|
+
respData = (_b = e_5.response) === null || _b === void 0 ? void 0 : _b.data;
|
|
414
|
+
detail = (respData === null || respData === void 0 ? void 0 : respData.error) || (respData === null || respData === void 0 ? void 0 : respData.description) || ((_c = respData === null || respData === void 0 ? void 0 : respData.result) === null || _c === void 0 ? void 0 : _c.description) || '';
|
|
415
|
+
log.error(tag, "Broadcast error:", e_5.message, detail ? "| TON: ".concat(JSON.stringify(respData)) : '');
|
|
416
|
+
output.error = detail || e_5.message;
|
|
417
|
+
if (respData)
|
|
418
|
+
output.results = respData;
|
|
415
419
|
return [2 /*return*/, output];
|
|
416
420
|
case 4: return [2 /*return*/];
|
|
417
421
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/ton-network",
|
|
3
|
-
"version": "8.17.
|
|
3
|
+
"version": "8.17.11",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"description": "Pioneer Platform TON Network module",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"axios": "^1.6.0",
|
|
15
15
|
"dotenv": "^16.0.0",
|
|
16
16
|
"@pioneer-platform/loggerdog": "8.11.0",
|
|
17
|
-
"@pioneer-platform/pioneer-nodes": "8.37.
|
|
17
|
+
"@pioneer-platform/pioneer-nodes": "8.37.11"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^18.16.0",
|