@super-protocol/sdk-js 0.12.2-beta.4 → 0.12.4-beta.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.
|
@@ -17,6 +17,7 @@ export declare class BaseConnector {
|
|
|
17
17
|
protected initialized: boolean;
|
|
18
18
|
protected logger: import("pino").default.Logger<{
|
|
19
19
|
level: string;
|
|
20
|
+
enabled: boolean;
|
|
20
21
|
} & import("pino").default.ChildLoggerOptions>;
|
|
21
22
|
protected contract?: Contract;
|
|
22
23
|
protected provider?: WebsocketProviderBase | HttpProviderBase;
|
package/build/logger.d.ts
CHANGED
package/build/logger.js
CHANGED
|
@@ -4,5 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var pino_1 = __importDefault(require("pino"));
|
|
7
|
-
var logger = (0, pino_1.default)({
|
|
7
|
+
var logger = (0, pino_1.default)({
|
|
8
|
+
level: process.env.LOG_LEVEL || "trace",
|
|
9
|
+
enabled: process.env.DISABLE_LOGGER !== "true",
|
|
10
|
+
});
|
|
8
11
|
exports.default = logger;
|
package/build/models/Order.d.ts
CHANGED
|
@@ -67,6 +67,10 @@ declare class Order {
|
|
|
67
67
|
* Function for fetching parent order from blockchain
|
|
68
68
|
*/
|
|
69
69
|
getAwaitingPayment(): Promise<boolean>;
|
|
70
|
+
/**
|
|
71
|
+
* Function for fetching hold deposit of order from blockchain
|
|
72
|
+
*/
|
|
73
|
+
getHoldDeposit(): Promise<boolean>;
|
|
70
74
|
/**
|
|
71
75
|
* Function for fetching start of processing date
|
|
72
76
|
*/
|
package/build/models/Order.js
CHANGED
|
@@ -264,6 +264,16 @@ var Order = /** @class */ (function () {
|
|
|
264
264
|
});
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
|
+
/**
|
|
268
|
+
* Function for fetching hold deposit of order from blockchain
|
|
269
|
+
*/
|
|
270
|
+
Order.prototype.getHoldDeposit = function () {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
272
|
+
return __generator(this, function (_a) {
|
|
273
|
+
return [2 /*return*/, Order.contract.methods.getOrderHoldDeposit(this.id).call()];
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
};
|
|
267
277
|
/**
|
|
268
278
|
* Function for fetching start of processing date
|
|
269
279
|
*/
|
|
@@ -625,6 +635,9 @@ var Order = /** @class */ (function () {
|
|
|
625
635
|
__decorate([
|
|
626
636
|
(0, utils_1.incrementMethodCall)()
|
|
627
637
|
], Order.prototype, "getAwaitingPayment", null);
|
|
638
|
+
__decorate([
|
|
639
|
+
(0, utils_1.incrementMethodCall)()
|
|
640
|
+
], Order.prototype, "getHoldDeposit", null);
|
|
628
641
|
__decorate([
|
|
629
642
|
(0, utils_1.incrementMethodCall)()
|
|
630
643
|
], Order.prototype, "getStartDate", null);
|