@rabby-wallet/rabby-api 0.9.10-alpha.0 → 0.9.10

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
@@ -1052,5 +1052,6 @@ export declare class OpenApiService {
1052
1052
  searchTokens: (params: {
1053
1053
  q: string;
1054
1054
  }) => Promise<TokenItem[]>;
1055
+ batchQueryTokens: (uuids: string | string[]) => Promise<TokenItem[]>;
1055
1056
  }
1056
1057
  export {};
package/dist/index.js CHANGED
@@ -1397,6 +1397,14 @@ export class OpenApiService {
1397
1397
  });
1398
1398
  return data;
1399
1399
  });
1400
+ this.batchQueryTokens = (uuids) => __awaiter(this, void 0, void 0, function* () {
1401
+ const { data } = yield this.request.get('/v1/token/list_by_uuids', {
1402
+ params: {
1403
+ uuids: Array.isArray(uuids) ? uuids.join(',') : uuids,
1404
+ },
1405
+ });
1406
+ return data;
1407
+ });
1400
1408
  if (store instanceof Promise) {
1401
1409
  store.then((resolvedStore) => {
1402
1410
  this.store = resolvedStore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.10-alpha.0",
3
+ "version": "0.9.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [