@riocrypto/common 1.0.683 → 1.0.685

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.
@@ -24,6 +24,8 @@ class CountryAsset extends Asset_1.Asset {
24
24
  return "Italy";
25
25
  case country_1.Country.Japan:
26
26
  return "Japan";
27
+ case country_1.Country.Panama:
28
+ return "Panama";
27
29
  // case Country.RussianFederation:
28
30
  // return "Russia";
29
31
  // case Country.China:
@@ -85,7 +85,7 @@ export declare class RioAdminClient {
85
85
  volume: number;
86
86
  revenue: number;
87
87
  }>;
88
- getBistoX(): Promise<{
88
+ getBistoX(bidPrice: number, bidAmount: number): Promise<{
89
89
  x: number;
90
90
  }>;
91
91
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
@@ -324,9 +324,11 @@ class RioAdminClient {
324
324
  return response.data;
325
325
  });
326
326
  }
327
- getBistoX() {
327
+ getBistoX(bidPrice, bidAmount) {
328
328
  return __awaiter(this, void 0, void 0, function* () {
329
- const response = yield this.axios.get(`/api/admin/bitso/x`);
329
+ const response = yield this.axios.get(`/api/admin/bitso/x`, {
330
+ params: { bidPrice, bidAmount },
331
+ });
330
332
  return response.data;
331
333
  });
332
334
  }
@@ -46,6 +46,7 @@ export declare enum Country {
46
46
  Slovakia = "SK",
47
47
  Slovenia = "SI",
48
48
  SouthAfrica = "ZA",
49
+ Panama = "PA",
49
50
  Spain = "ES",
50
51
  Sweden = "SE",
51
52
  Switzerland = "CH",
@@ -50,6 +50,7 @@ var Country;
50
50
  Country["Slovakia"] = "SK";
51
51
  Country["Slovenia"] = "SI";
52
52
  Country["SouthAfrica"] = "ZA";
53
+ Country["Panama"] = "PA";
53
54
  Country["Spain"] = "ES";
54
55
  Country["Sweden"] = "SE";
55
56
  Country["Switzerland"] = "CH";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.683",
3
+ "version": "1.0.685",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",