@super-protocol/sdk-js 0.13.0-beta.2 → 0.13.0-beta.3

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.
@@ -129,11 +129,11 @@ declare class Order {
129
129
  /**
130
130
  * Function for creating sub orders for current order
131
131
  * @param subOrderInfo - order info for new subOrder
132
- * @param blocking - is sub order blocking
132
+ * @param blockParentOrder - is sub order blocking
133
133
  * @param transactionOptions - object what contains alternative action account or gas limit (optional)
134
- * @returns {Promise<void>} - Does not return id of created sub order!
134
+ * @returns Promise<void> - Does not return id of created sub order!
135
135
  */
136
- createSubOrder(subOrderInfo: OrderInfo, blocking: boolean, holdSum?: string, transactionOptions?: TransactionOptions): Promise<void>;
136
+ createSubOrder(subOrderInfo: OrderInfo, blockParentOrder: boolean, deposit?: string, transactionOptions?: TransactionOptions): Promise<void>;
137
137
  /**
138
138
  * Function for creating pack of sub orders (wokflow) for current order
139
139
  * @param subOrdersInfo - orders info for new subOrders
@@ -504,12 +504,12 @@ var Order = /** @class */ (function () {
504
504
  /**
505
505
  * Function for creating sub orders for current order
506
506
  * @param subOrderInfo - order info for new subOrder
507
- * @param blocking - is sub order blocking
507
+ * @param blockParentOrder - is sub order blocking
508
508
  * @param transactionOptions - object what contains alternative action account or gas limit (optional)
509
- * @returns {Promise<void>} - Does not return id of created sub order!
509
+ * @returns Promise<void> - Does not return id of created sub order!
510
510
  */
511
- Order.prototype.createSubOrder = function (subOrderInfo, blocking, holdSum, transactionOptions) {
512
- if (holdSum === void 0) { holdSum = "0"; }
511
+ Order.prototype.createSubOrder = function (subOrderInfo, blockParentOrder, deposit, transactionOptions) {
512
+ if (deposit === void 0) { deposit = "0"; }
513
513
  return __awaiter(this, void 0, void 0, function () {
514
514
  var preparedInfo, tupleSubOrder, params;
515
515
  return __generator(this, function (_a) {
@@ -520,8 +520,8 @@ var Order = /** @class */ (function () {
520
520
  preparedInfo = __assign(__assign({}, subOrderInfo), { externalId: (0, utils_2.formatBytes32String)(subOrderInfo.externalId) });
521
521
  tupleSubOrder = (0, utils_1.objectToTuple)(preparedInfo, Order_1.OrderInfoStructure);
522
522
  params = {
523
- blockParentOrder: blocking,
524
- holdSum: holdSum,
523
+ blockParentOrder: blockParentOrder,
524
+ deposit: deposit,
525
525
  };
526
526
  return [4 /*yield*/, TxManager_1.default.execute(Order.contract.methods.createSubOrder, [this.id, tupleSubOrder, params], transactionOptions)];
527
527
  case 1:
@@ -553,7 +553,7 @@ var Order = /** @class */ (function () {
553
553
  var tupleSubOrder = (0, utils_1.objectToTuple)(preparedInfo, Order_1.OrderInfoStructure);
554
554
  var params = {
555
555
  blockParentOrder: subOrderInfo.blocking,
556
- holdSum: subOrderInfo.holdSum,
556
+ deposit: subOrderInfo.deposit,
557
557
  };
558
558
  var request = Order.contract.methods.createSubOrder(_this.id, tupleSubOrder, params).send.request({
559
559
  from: transactionOptions.from,
@@ -11,11 +11,11 @@ export declare enum OrderStatus {
11
11
  }
12
12
  export declare const OrderArgsStructure: {
13
13
  inputOffers: StringConstructor[];
14
- selectedOffers: StringConstructor[];
14
+ outputOffers: StringConstructor[];
15
15
  };
16
16
  export type OrderArgs = {
17
17
  inputOffers: string[];
18
- selectedOffers: string[];
18
+ outputOffers: string[];
19
19
  };
20
20
  export declare const OrderInfoStructure: {
21
21
  offerId: StringConstructor;
@@ -25,7 +25,7 @@ export declare const OrderInfoStructure: {
25
25
  status: typeof OrderStatus;
26
26
  args: {
27
27
  inputOffers: StringConstructor[];
28
- selectedOffers: StringConstructor[];
28
+ outputOffers: StringConstructor[];
29
29
  };
30
30
  externalId: typeof parseBytes32String;
31
31
  slotId: StringConstructor;
@@ -41,7 +41,7 @@ export declare const OrderInfoStructureArray: {
41
41
  status: typeof OrderStatus;
42
42
  args: {
43
43
  inputOffers: StringConstructor[];
44
- selectedOffers: StringConstructor[];
44
+ outputOffers: StringConstructor[];
45
45
  };
46
46
  externalId: typeof parseBytes32String;
47
47
  slotId: StringConstructor;
@@ -64,7 +64,7 @@ export type OrderInfo = {
64
64
  };
65
65
  export type ExtendedOrderInfo = OrderInfo & {
66
66
  blocking: boolean;
67
- holdSum: string;
67
+ deposit: string;
68
68
  };
69
69
  export declare const OrderResultStructure: {
70
70
  encryptedResult: StringConstructor;
@@ -76,5 +76,5 @@ export type OrderResult = {
76
76
  };
77
77
  export type SubOrderParams = {
78
78
  blockParentOrder: boolean;
79
- holdSum: string;
79
+ deposit: string;
80
80
  };
@@ -16,7 +16,7 @@ var OrderStatus;
16
16
  // Order of keys and type conversion functions for this object in blockchain contract
17
17
  exports.OrderArgsStructure = {
18
18
  inputOffers: [String],
19
- selectedOffers: [String],
19
+ outputOffers: [String],
20
20
  };
21
21
  // Order of keys and type conversion functions for this object in blockchain contract
22
22
  exports.OrderInfoStructure = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.13.0-beta.2",
3
+ "version": "0.13.0-beta.3",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [