@rabby-wallet/rabby-api 0.9.1 → 0.9.3-beta.1

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
@@ -70,10 +70,7 @@ export declare class OpenApiService {
70
70
  explainText: (origin: string, address: string, text: string) => Promise<{
71
71
  comment: string;
72
72
  }>;
73
- gasMarket: (options: {
74
- chainId: string;
75
- customGas?: number;
76
- }) => Promise<GasLevel[]>;
73
+ gasMarket: (chainId: string, customGas?: number) => Promise<GasLevel[]>;
77
74
  gasMarketV2: (options: {
78
75
  chainId: string;
79
76
  tx?: Tx;
@@ -165,6 +162,9 @@ export declare class OpenApiService {
165
162
  getGasStationChainBalance: (chain_id: string, addr: string) => Promise<{
166
163
  usd_value: number;
167
164
  }>;
165
+ getApprovalCount: (address: string) => Promise<{
166
+ total_asset_cnt: number;
167
+ }>;
168
168
  getGasStationTokenList: () => Promise<TokenItem[]>;
169
169
  explainTypedData: (user_addr: string, origin: string, data: any) => Promise<ExplainTypedDataResponse>;
170
170
  checkTypedData: (user_addr: string, origin: string, data: any) => Promise<SecurityCheckResponse>;
package/dist/index.js CHANGED
@@ -201,11 +201,11 @@ export class OpenApiService {
201
201
  });
202
202
  return data;
203
203
  });
204
- this.gasMarket = (options) => __awaiter(this, void 0, void 0, function* () {
204
+ this.gasMarket = (chainId, customGas) => __awaiter(this, void 0, void 0, function* () {
205
205
  const { data } = yield this.request.get('/v1/wallet/gas_market', {
206
206
  params: {
207
- chain_id: options.chainId,
208
- custom_price: options.customGas,
207
+ chain_id: chainId,
208
+ custom_price: customGas,
209
209
  },
210
210
  });
211
211
  return data;
@@ -416,6 +416,14 @@ export class OpenApiService {
416
416
  });
417
417
  return data;
418
418
  });
419
+ this.getApprovalCount = (address) => __awaiter(this, void 0, void 0, function* () {
420
+ const { data } = yield this.request.get('/v1/user/total_approval_asset_cnt', {
421
+ params: {
422
+ id: address,
423
+ },
424
+ });
425
+ return data;
426
+ });
419
427
  this.getGasStationTokenList = () => __awaiter(this, void 0, void 0, function* () {
420
428
  const { data } = yield this.request.get('/v1/wallet/gas_station_token_list');
421
429
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.1",
3
+ "version": "0.9.3-beta.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [