@super-protocol/sdk-js 0.13.0-beta.10 → 0.13.0-beta.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/build/models/Order.js +8 -7
- package/package.json +1 -1
package/build/models/Order.js
CHANGED
|
@@ -225,21 +225,22 @@ var Order = /** @class */ (function () {
|
|
|
225
225
|
*/
|
|
226
226
|
Order.prototype.getSelectedUsage = function () {
|
|
227
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
-
var _a, _b, _c, _d;
|
|
229
|
-
return __generator(this, function (
|
|
230
|
-
switch (
|
|
228
|
+
var _a, _b, _c, _d, _e;
|
|
229
|
+
return __generator(this, function (_f) {
|
|
230
|
+
switch (_f.label) {
|
|
231
231
|
case 0:
|
|
232
232
|
_a = this;
|
|
233
233
|
_b = utils_1.tupleToObject;
|
|
234
234
|
return [4 /*yield*/, Order.contract.methods.getOrderSelectedUsage(this.id).call()];
|
|
235
235
|
case 1:
|
|
236
|
-
_a.selectedUsage = _b.apply(void 0, [
|
|
236
|
+
_a.selectedUsage = _b.apply(void 0, [_f.sent(), Order_1.OrderUsageStructure]);
|
|
237
237
|
this.selectedUsage.optionsCount = this.selectedUsage.optionsCount.map(function (item) { return +item; });
|
|
238
|
-
_c =
|
|
239
|
-
_d =
|
|
238
|
+
_c = this.selectedUsage;
|
|
239
|
+
_d = utils_1.unpackSlotInfo;
|
|
240
|
+
_e = [this.selectedUsage.slotInfo];
|
|
240
241
|
return [4 /*yield*/, TeeOffers_1.default.getDenominator()];
|
|
241
242
|
case 2:
|
|
242
|
-
_c.apply(void 0,
|
|
243
|
+
_c.slotInfo = _d.apply(void 0, _e.concat([_f.sent()]));
|
|
243
244
|
return [2 /*return*/, this.selectedUsage];
|
|
244
245
|
}
|
|
245
246
|
});
|