@pioneer-platform/eth-network 8.1.48 → 8.1.49

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 (2) hide show
  1. package/lib/index.js +17 -17
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1334,14 +1334,14 @@ var get_fees = function (params) {
1334
1334
  };
1335
1335
  var broadcast_transaction = function (tx) {
1336
1336
  return __awaiter(this, void 0, void 0, function () {
1337
- var tag, output, resp, resp2, e_15;
1337
+ var tag, output, resp, e_15;
1338
1338
  return __generator(this, function (_a) {
1339
1339
  switch (_a.label) {
1340
1340
  case 0:
1341
1341
  tag = TAG + " | broadcast_transaction | ";
1342
1342
  _a.label = 1;
1343
1343
  case 1:
1344
- _a.trys.push([1, 4, , 5]);
1344
+ _a.trys.push([1, 3, , 4]);
1345
1345
  output = {};
1346
1346
  output.success = false;
1347
1347
  log.debug(tag, "tx: ", tx);
@@ -1355,19 +1355,19 @@ var broadcast_transaction = function (tx) {
1355
1355
  resp = _a.sent();
1356
1356
  resp = resp.data;
1357
1357
  console.log(resp);
1358
- return [4 /*yield*/, web3.eth.sendSignedTransaction(tx)
1359
- .on('transactionHash', function (hash) {
1360
- console.log("hash: ", hash);
1361
- })
1362
- .on('receipt', function (receipt) {
1363
- console.log("receipt: ", receipt);
1364
- })
1365
- .on('confirmation', function (confirmationNumber, receipt) {
1366
- console.log(confirmationNumber, receipt);
1367
- })
1368
- .on('error', console.error)];
1369
- case 3:
1370
- resp2 = _a.sent();
1358
+ //push blockbook
1359
+ //TODO lifecycle hook?
1360
+ // let resp2 = await web3.eth.sendSignedTransaction(tx)
1361
+ // .on('transactionHash', function(hash:any){
1362
+ // console.log("hash: ",hash)
1363
+ // })
1364
+ // .on('receipt', function(receipt:any){
1365
+ // console.log("receipt: ",receipt)
1366
+ // })
1367
+ // .on('confirmation', function(confirmationNumber:any, receipt:any){
1368
+ // console.log(confirmationNumber,receipt)
1369
+ // })
1370
+ // .on('error', console.error);
1371
1371
  //console.log("resp: ",resp)
1372
1372
  if (!resp.error)
1373
1373
  output.success = true;
@@ -1376,11 +1376,11 @@ var broadcast_transaction = function (tx) {
1376
1376
  if (resp.result)
1377
1377
  output.txid = resp.result;
1378
1378
  return [2 /*return*/, output];
1379
- case 4:
1379
+ case 3:
1380
1380
  e_15 = _a.sent();
1381
1381
  log.error(tag, e_15);
1382
1382
  throw e_15;
1383
- case 5: return [2 /*return*/];
1383
+ case 4: return [2 /*return*/];
1384
1384
  }
1385
1385
  });
1386
1386
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/eth-network",
3
- "version": "8.1.48",
3
+ "version": "8.1.49",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {