@super-protocol/sdk-js 0.11.9-beta.2 → 0.11.9-beta.4

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.
@@ -1457,11 +1457,6 @@
1457
1457
  "name": "",
1458
1458
  "type": "uint8"
1459
1459
  },
1460
- {
1461
- "internalType": "uint8",
1462
- "name": "",
1463
- "type": "uint8"
1464
- },
1465
1460
  {
1466
1461
  "internalType": "uint32",
1467
1462
  "name": "",
@@ -171,13 +171,19 @@ var Consensus = /** @class */ (function () {
171
171
  };
172
172
  Consensus.getEpochTime = function (time) {
173
173
  return __awaiter(this, void 0, void 0, function () {
174
- var contract;
174
+ var contract, result;
175
175
  return __generator(this, function (_a) {
176
176
  switch (_a.label) {
177
177
  case 0:
178
178
  contract = BlockchainConnector_1.default.getInstance().getContract();
179
179
  return [4 /*yield*/, contract.methods.getEpochTime(time).call()];
180
- case 1: return [2 /*return*/, _a.sent()];
180
+ case 1:
181
+ result = _a.sent();
182
+ return [2 /*return*/, {
183
+ epochStart: result[0],
184
+ epochEnd: result[1],
185
+ epochIndex: result[2],
186
+ }];
181
187
  }
182
188
  });
183
189
  });
@@ -171,6 +171,11 @@ var TxManager = /** @class */ (function () {
171
171
  return [4 /*yield*/, web3.eth.sendSignedTransaction(signed.rawTransaction)];
172
172
  case 11:
173
173
  transactionResultData = _a.sent();
174
+ TxManager.logger.debug({
175
+ txHash: signed.transactionHash,
176
+ txBlockNumber: transactionResultData.blockNumber,
177
+ txGasUsed: transactionResultData.gasUsed,
178
+ }, "Transaction result");
174
179
  return [3 /*break*/, 14];
175
180
  case 12:
176
181
  TxManager.logger.debug({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.11.9-beta.2",
3
+ "version": "0.11.9-beta.4",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [