@rabby-wallet/rabby-api 0.9.55-beta.6 → 0.9.55-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
@@ -929,7 +929,13 @@ export declare class OpenApiService {
929
929
  }) => Promise<{
930
930
  has_permission: boolean;
931
931
  }>;
932
- getPerpTopTokenList: () => Promise<PerpTopToken[]>;
932
+ /**
933
+ * @param params.dex_id - The ID of the DEX to get the top tokens for. If not provided, hyperliquid default DEXs will be included. if all is provided, all DEXs will be included. and xyz is xyz dex tokens
934
+ * @returns A list of top tokens for the given DEX.
935
+ */
936
+ getPerpTopTokenList: (params: {
937
+ dex_id?: string;
938
+ }) => Promise<PerpTopToken[]>;
933
939
  getPerpsBridgeIsSupportToken: (params: {
934
940
  token_id: string;
935
941
  chain_id: string;
package/dist/index.js CHANGED
@@ -1303,8 +1303,14 @@ export class OpenApiService {
1303
1303
  });
1304
1304
  return data;
1305
1305
  });
1306
- this.getPerpTopTokenList = () => __awaiter(this, void 0, void 0, function* () {
1307
- const { data } = yield this.request.get('/v1/token/hyperliquid_top');
1306
+ /**
1307
+ * @param params.dex_id - The ID of the DEX to get the top tokens for. If not provided, hyperliquid default DEXs will be included. if all is provided, all DEXs will be included. and xyz is xyz dex tokens
1308
+ * @returns A list of top tokens for the given DEX.
1309
+ */
1310
+ this.getPerpTopTokenList = (params) => __awaiter(this, void 0, void 0, function* () {
1311
+ const { data } = yield this.request.get('/v1/token/hyperliquid_top', {
1312
+ params,
1313
+ });
1308
1314
  return data;
1309
1315
  });
1310
1316
  this.getPerpsBridgeIsSupportToken = (params) => __awaiter(this, void 0, void 0, function* () {
package/dist/types.d.ts CHANGED
@@ -1535,6 +1535,7 @@ export interface PerpTopToken {
1535
1535
  name: string;
1536
1536
  full_logo_url: string | null;
1537
1537
  daily_volume: number;
1538
+ dex_id: string;
1538
1539
  }
1539
1540
  export interface GasAccountCheckResult {
1540
1541
  gas_account_cost: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.55-beta.6",
3
+ "version": "0.9.55-beta.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [