@rabby-wallet/rabby-api 0.9.51-beta.0 → 0.9.52

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
@@ -1464,10 +1464,5 @@ export declare class OpenApiService {
1464
1464
  }) => Promise<{
1465
1465
  msg: string;
1466
1466
  }>;
1467
- getPolyMarketPermission: (params: {
1468
- id?: string;
1469
- }) => Promise<{
1470
- has_permission: boolean;
1471
- }>;
1472
1467
  }
1473
1468
  export {};
package/dist/index.js CHANGED
@@ -439,12 +439,15 @@ export class OpenApiService {
439
439
  return data;
440
440
  });
441
441
  this.getSwapTokenList = (id, chainId) => __awaiter(this, void 0, void 0, function* () {
442
+ const params = {
443
+ id,
444
+ is_all: false,
445
+ };
446
+ if (chainId) {
447
+ params.chain_id = chainId;
448
+ }
442
449
  const { data } = yield this.request.get('/v1/wallet/swap_token_list', {
443
- params: {
444
- id,
445
- chain_id: chainId,
446
- is_all: false,
447
- },
450
+ params,
448
451
  });
449
452
  return data;
450
453
  });
@@ -1821,12 +1824,6 @@ export class OpenApiService {
1821
1824
  });
1822
1825
  return data;
1823
1826
  });
1824
- this.getPolyMarketPermission = (params) => __awaiter(this, void 0, void 0, function* () {
1825
- const { data } = yield this.request.get('v1/user/has_polymarket_permission', {
1826
- params,
1827
- });
1828
- return data;
1829
- });
1830
1827
  if (store instanceof Promise) {
1831
1828
  store.then((resolvedStore) => {
1832
1829
  this.store = resolvedStore;
package/dist/types.d.ts CHANGED
@@ -208,9 +208,9 @@ export interface TokenItem {
208
208
  decimals: number;
209
209
  display_symbol: string | null;
210
210
  id: string;
211
- is_core: boolean;
211
+ is_core: boolean | null;
212
212
  credit_score?: number;
213
- is_verified: boolean;
213
+ is_verified: boolean | null;
214
214
  is_wallet: boolean;
215
215
  is_scam?: boolean;
216
216
  is_infinity?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.51-beta.0",
3
+ "version": "0.9.52",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [