@riocrypto/common 1.0.968 → 1.0.970

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.
@@ -71,6 +71,7 @@ export declare class RioAdminClient {
71
71
  updateRioSettings(update: RioSettingsUpdate): Promise<void>;
72
72
  confirmBankPayment(orderId: string, amountFiat?: number): Promise<any>;
73
73
  confirmBankPayout(orderId: string): Promise<any>;
74
+ confirmLiquiditySourced(orderId: string): Promise<any>;
74
75
  getUser(userId: string): Promise<User>;
75
76
  getAdmin(): Promise<Admin>;
76
77
  acceptAdminTasks(adminId?: string): Promise<Admin>;
@@ -176,6 +176,14 @@ class RioAdminClient {
176
176
  return data;
177
177
  });
178
178
  }
179
+ confirmLiquiditySourced(orderId) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ const { data } = yield this.axios.post(`/api/wallet/balances/rio/confirm`, {
182
+ orderId,
183
+ });
184
+ return data;
185
+ });
186
+ }
179
187
  getUser(userId) {
180
188
  return __awaiter(this, void 0, void 0, function* () {
181
189
  const { data } = yield this.axios.get(`/api/users/${userId}`);
@@ -3,7 +3,7 @@ export declare enum OrderStatus {
3
3
  Cancelled = "cancelled",
4
4
  Processing = "processing",
5
5
  SourcingLiquidity = "sourcingLiquidity",
6
- LiquidityConfirmed = "liquidityConfirmed",
6
+ LiquiditySourced = "liquiditySourced",
7
7
  AwaitingBankPayoutDetails = "awaitingBankPayoutDetails",
8
8
  DepositRegistered = "depositRegistered",
9
9
  DepositConfirmed = "depositConfirmed",
@@ -12,7 +12,7 @@ var OrderStatus;
12
12
  // processor
13
13
  OrderStatus["Processing"] = "processing";
14
14
  OrderStatus["SourcingLiquidity"] = "sourcingLiquidity";
15
- OrderStatus["LiquidityConfirmed"] = "liquidityConfirmed";
15
+ OrderStatus["LiquiditySourced"] = "liquiditySourced";
16
16
  OrderStatus["AwaitingBankPayoutDetails"] = "awaitingBankPayoutDetails";
17
17
  // When the crypto deposit from a sell order is registereed by the block explorer
18
18
  OrderStatus["DepositRegistered"] = "depositRegistered";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.968",
3
+ "version": "1.0.970",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",