@super-protocol/sdk-js 0.10.2-beta.2 → 0.10.2-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.
|
@@ -19,6 +19,11 @@ declare class OrdersFactory {
|
|
|
19
19
|
* @param orderId - order for fetching hold deposit
|
|
20
20
|
*/
|
|
21
21
|
static getOrderHoldDeposit(orderId: string): Promise<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Function for fetching status of order change
|
|
24
|
+
* @param orderId - order for fetching hold deposit
|
|
25
|
+
*/
|
|
26
|
+
static getOrderChangeWithdrawn(orderId: string): Promise<boolean>;
|
|
22
27
|
/**
|
|
23
28
|
* Function for creating orders
|
|
24
29
|
* @param orderInfo - order info for new order
|
|
@@ -127,6 +127,23 @@ var OrdersFactory = /** @class */ (function () {
|
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* Function for fetching status of order change
|
|
132
|
+
* @param orderId - order for fetching hold deposit
|
|
133
|
+
*/
|
|
134
|
+
OrdersFactory.getOrderChangeWithdrawn = function (orderId) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
+
var contract;
|
|
137
|
+
return __generator(this, function (_a) {
|
|
138
|
+
switch (_a.label) {
|
|
139
|
+
case 0:
|
|
140
|
+
contract = BlockchainConnector_1.default.getContractInstance();
|
|
141
|
+
return [4 /*yield*/, contract.methods.getOrderChangeWithdrawn(orderId).call()];
|
|
142
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
};
|
|
130
147
|
/**
|
|
131
148
|
* Function for creating orders
|
|
132
149
|
* @param orderInfo - order info for new order
|