@rabby-wallet/rabby-api 0.9.12-beta.5 → 0.9.12-beta.7

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
@@ -1067,6 +1067,7 @@ export declare class OpenApiService {
1067
1067
  country_code: string;
1068
1068
  user_addr: string;
1069
1069
  usd_amount: string;
1070
+ currency_code: string;
1070
1071
  receive_token_uuid: string;
1071
1072
  }) => Promise<BuyQuoteItem[]>;
1072
1073
  getBuyWidgetUrl: (params: {
@@ -1075,6 +1076,7 @@ export declare class OpenApiService {
1075
1076
  usd_amount: string;
1076
1077
  receive_token_uuid: string;
1077
1078
  service_provider: string;
1079
+ currency_code: string;
1078
1080
  redirect_url?: string;
1079
1081
  }) => Promise<{
1080
1082
  url: string;
@@ -1086,8 +1088,14 @@ export declare class OpenApiService {
1086
1088
  limit?: number;
1087
1089
  }) => Promise<BuyHistoryList>;
1088
1090
  getBuyPaymentMethods: (params: {
1091
+ currency_code: string;
1089
1092
  country_code: string;
1090
1093
  service_provider: string;
1091
1094
  }) => Promise<BuyPaymentMethod[]>;
1095
+ getBuyCurrencyList: () => Promise<{
1096
+ id: string;
1097
+ name: string;
1098
+ image_url: string;
1099
+ }[]>;
1092
1100
  }
1093
1101
  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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.12-beta.5",
3
+ "version": "0.9.12-beta.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [