@super-protocol/sdk-js 0.7.1-beta.4 → 0.7.1-beta.5

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.
@@ -42,7 +42,7 @@ declare class OrdersFactory {
42
42
  * @param transactionOptions - object what contains alternative action account or gas limit (optional)
43
43
  * @returns {Promise<void>} - Does not return id of created order!
44
44
  */
45
- static createWorkflow(perentOrderInfo: OrderInfo, subOrdersInfo: OrderInfo[], holdDeposit: number, externalId?: string, transactionOptions?: TransactionOptions): Promise<void>;
45
+ static createWorkflow(perentOrderInfo: OrderInfo, subOrdersInfo: OrderInfo[], holdDeposit?: string, externalId?: string, transactionOptions?: TransactionOptions): Promise<void>;
46
46
  /**
47
47
  * Function for refilling order deposit
48
48
  * @param orderId - order id
@@ -141,7 +141,7 @@ var OrdersFactory = /** @class */ (function () {
141
141
  * @returns {Promise<void>} - Does not return id of created order!
142
142
  */
143
143
  OrdersFactory.createOrder = function (orderInfo, holdDeposit, suspended, externalId, transactionOptions) {
144
- if (holdDeposit === void 0) { holdDeposit = '0'; }
144
+ if (holdDeposit === void 0) { holdDeposit = "0"; }
145
145
  if (suspended === void 0) { suspended = false; }
146
146
  if (externalId === void 0) { externalId = "default"; }
147
147
  return __awaiter(this, void 0, void 0, function () {
@@ -178,8 +178,8 @@ var OrdersFactory = /** @class */ (function () {
178
178
  notFound = {
179
179
  consumer: consumer,
180
180
  externalId: externalId,
181
- offerId: '-1',
182
- orderId: '-1',
181
+ offerId: "-1",
182
+ orderId: "-1",
183
183
  };
184
184
  response = foundIds.length > 0 ? foundIds[0].returnValues : notFound;
185
185
  return [2 /*return*/, response];
@@ -196,6 +196,7 @@ var OrdersFactory = /** @class */ (function () {
196
196
  * @returns {Promise<void>} - Does not return id of created order!
197
197
  */
198
198
  OrdersFactory.createWorkflow = function (perentOrderInfo, subOrdersInfo, holdDeposit, externalId, transactionOptions) {
199
+ if (holdDeposit === void 0) { holdDeposit = "0"; }
199
200
  if (externalId === void 0) { externalId = "default"; }
200
201
  return __awaiter(this, void 0, void 0, function () {
201
202
  var contract, perentOrderInfoArgs, formattedExternalId, subOrdersInfoArgs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.7.1-beta.4",
3
+ "version": "0.7.1-beta.5",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [