@super-protocol/sdk-js 0.8.1-beta.3 → 0.8.1-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.
@@ -12,6 +12,7 @@ declare class Offer {
12
12
  id: string;
13
13
  disabledAfter?: number;
14
14
  closingPrice?: string;
15
+ holdDeposit?: string;
15
16
  constructor(offerId: string);
16
17
  /**
17
18
  * Checks if contract has been initialized, if not - initialize contract
@@ -49,6 +50,10 @@ declare class Offer {
49
50
  * Fetch new Origins (createdDate, createdBy, modifiedDate and modifiedBy)
50
51
  */
51
52
  getOrigins(): Promise<Origins>;
53
+ /**
54
+ * Function for fetching offer hold deposit
55
+ */
56
+ getHoldDeposit(): Promise<string>;
52
57
  /**
53
58
  * Function for offer closing price calculation
54
59
  */
@@ -200,6 +200,24 @@ var Offer = /** @class */ (function () {
200
200
  });
201
201
  });
202
202
  };
203
+ /**
204
+ * Function for fetching offer hold deposit
205
+ */
206
+ Offer.prototype.getHoldDeposit = function () {
207
+ return __awaiter(this, void 0, void 0, function () {
208
+ var _a;
209
+ return __generator(this, function (_b) {
210
+ switch (_b.label) {
211
+ case 0:
212
+ _a = this;
213
+ return [4 /*yield*/, Offer.contract.methods.getOfferHoldDeposit(this.id).call()];
214
+ case 1:
215
+ _a.holdDeposit = _b.sent();
216
+ return [2 /*return*/, this.holdDeposit];
217
+ }
218
+ });
219
+ });
220
+ };
203
221
  /**
204
222
  * Function for offer closing price calculation
205
223
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.8.1-beta.3",
3
+ "version": "0.8.1-beta.4",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [