@riocrypto/common 1.0.939 → 1.0.941

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.
@@ -106,4 +106,5 @@ export declare class RioClient {
106
106
  missing: string[];
107
107
  }>;
108
108
  getInvoice(orderId: string): Promise<Invoice>;
109
+ getCryptoBalance(asset: Crypto): Promise<number>;
109
110
  }
@@ -383,5 +383,11 @@ class RioClient {
383
383
  return response.data;
384
384
  });
385
385
  }
386
+ getCryptoBalance(asset) {
387
+ return __awaiter(this, void 0, void 0, function* () {
388
+ const response = yield this.axios.get(`/api/wallet/balances/user/${asset}`);
389
+ return response.data.balance;
390
+ });
391
+ }
386
392
  }
387
393
  exports.RioClient = RioClient;
@@ -38,4 +38,5 @@ export interface ImportOrderInput {
38
38
  platformFeeFiatTax?: number;
39
39
  partner?: Partner;
40
40
  noRecords?: Boolean;
41
+ createdAt?: Date;
41
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.939",
3
+ "version": "1.0.941",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",