@rabby-wallet/rabby-api 0.6.1 → 0.6.2

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
@@ -56,7 +56,7 @@ export declare class OpenApiService {
56
56
  addr: string;
57
57
  name: string;
58
58
  }>;
59
- searchToken: (id: string, q: string) => Promise<TokenItem[]>;
59
+ searchToken: (id: string, q: string, chainId?: string, is_all?: boolean) => Promise<TokenItem[]>;
60
60
  searchSwapToken: (id: string, chainId: string, q: string, is_all?: boolean) => Promise<any>;
61
61
  getToken: (id: string, chainId: string, tokenId: string) => Promise<TokenItem>;
62
62
  getCachedTokenList: (id: string) => Promise<TokenItem[]>;
package/dist/index.js CHANGED
@@ -218,12 +218,14 @@ export class OpenApiService {
218
218
  });
219
219
  return data;
220
220
  });
221
- this.searchToken = (id, q) => __awaiter(this, void 0, void 0, function* () {
221
+ this.searchToken = (id, q, chainId, is_all = false) => __awaiter(this, void 0, void 0, function* () {
222
222
  const { data } = yield this.request.get('/v1/user/token_search', {
223
223
  params: {
224
224
  id,
225
225
  q,
226
226
  has_balance: false,
227
+ is_all,
228
+ chain_id: chainId,
227
229
  },
228
230
  });
229
231
  return data === null || data === void 0 ? void 0 : data.filter((token) => getChain(token.chain));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"