@rabby-wallet/rabby-api 0.9.12-beta.4 → 0.9.12-beta.6

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.
package/dist/index.d.ts CHANGED
@@ -1089,5 +1089,10 @@ export declare class OpenApiService {
1089
1089
  country_code: string;
1090
1090
  service_provider: string;
1091
1091
  }) => Promise<BuyPaymentMethod[]>;
1092
+ getBuyCurrencyList: () => Promise<{
1093
+ id: string;
1094
+ name: string;
1095
+ image_url: string;
1096
+ }[]>;
1092
1097
  }
1093
1098
  export {};
package/dist/index.js CHANGED
@@ -1441,6 +1441,10 @@ export class OpenApiService {
1441
1441
  });
1442
1442
  return data;
1443
1443
  });
1444
+ this.getBuyCurrencyList = () => __awaiter(this, void 0, void 0, function* () {
1445
+ const { data } = yield this.request.get('/v1/buy/supported_currency_list');
1446
+ return data;
1447
+ });
1444
1448
  if (store instanceof Promise) {
1445
1449
  store.then((resolvedStore) => {
1446
1450
  this.store = resolvedStore;
package/dist/types.d.ts CHANGED
@@ -1423,8 +1423,9 @@ export interface BuyHistoryItem {
1423
1423
  status: string;
1424
1424
  create_at: number;
1425
1425
  service_provider: BuyServiceProvider;
1426
- service_provider_url: null;
1426
+ service_provider_url: null | string;
1427
1427
  pay_usd_amount: number;
1428
+ pay_currency_code: string;
1428
1429
  payment_type: string;
1429
1430
  receive_chain_id: string;
1430
1431
  receive_tx_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.12-beta.4",
3
+ "version": "0.9.12-beta.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [