@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.
package/build/contracts/app.json
CHANGED
|
@@ -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:
|
|
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
|
});
|
package/build/utils/TxManager.js
CHANGED
|
@@ -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({
|