@super-protocol/sdk-js 0.7.1-beta.3 → 0.7.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.
@@ -5713,6 +5713,11 @@
5713
5713
  "name": "parentOrderInfo",
5714
5714
  "type": "tuple"
5715
5715
  },
5716
+ {
5717
+ "internalType": "uint256",
5718
+ "name": "holdDeposit",
5719
+ "type": "uint256"
5720
+ },
5716
5721
  {
5717
5722
  "internalType": "bytes32",
5718
5723
  "name": "externalId",
@@ -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[], externalId?: string, transactionOptions?: TransactionOptions): Promise<void>;
45
+ static createWorkflow(perentOrderInfo: OrderInfo, subOrdersInfo: OrderInfo[], holdDeposit: number, externalId?: string, transactionOptions?: TransactionOptions): Promise<void>;
46
46
  /**
47
47
  * Function for refilling order deposit
48
48
  * @param orderId - order id
@@ -195,7 +195,7 @@ var OrdersFactory = /** @class */ (function () {
195
195
  * @param transactionOptions - object what contains alternative action account or gas limit (optional)
196
196
  * @returns {Promise<void>} - Does not return id of created order!
197
197
  */
198
- OrdersFactory.createWorkflow = function (perentOrderInfo, subOrdersInfo, externalId, transactionOptions) {
198
+ OrdersFactory.createWorkflow = function (perentOrderInfo, subOrdersInfo, holdDeposit, externalId, transactionOptions) {
199
199
  if (externalId === void 0) { externalId = "default"; }
200
200
  return __awaiter(this, void 0, void 0, function () {
201
201
  var contract, perentOrderInfoArgs, formattedExternalId, subOrdersInfoArgs;
@@ -207,7 +207,7 @@ var OrdersFactory = /** @class */ (function () {
207
207
  perentOrderInfoArgs = (0, utils_1.objectToTuple)(perentOrderInfo, Order_1.OrderInfoStructure);
208
208
  formattedExternalId = (0, utils_2.formatBytes32String)(externalId);
209
209
  subOrdersInfoArgs = (0, utils_1.objectToTuple)(subOrdersInfo, Order_1.OrderInfoStructureArray);
210
- return [4 /*yield*/, TxManager_1.default.execute(contract.methods.createWorkflow, [perentOrderInfoArgs, formattedExternalId, subOrdersInfoArgs], transactionOptions)];
210
+ return [4 /*yield*/, TxManager_1.default.execute(contract.methods.createWorkflow, [perentOrderInfoArgs, holdDeposit, formattedExternalId, subOrdersInfoArgs], transactionOptions)];
211
211
  case 1:
212
212
  _a.sent();
213
213
  return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.7.1-beta.3",
3
+ "version": "0.7.1-beta.4",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [