@raydium-io/raydium-sdk-v2 0.1.35-alpha → 0.1.36-alpha

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydium-io/raydium-sdk-v2",
3
- "version": "0.1.35-alpha",
3
+ "version": "0.1.36-alpha",
4
4
  "description": "An SDK for building applications on top of Raydium.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./lib/index.js",
package/src/api/api.ts CHANGED
@@ -169,7 +169,7 @@ export class Api {
169
169
  }
170
170
 
171
171
  async getJupTokenList(type?: JupTokenType): Promise<ApiV3Token[]> {
172
- return this.api.get("/", {
172
+ return this.api.get("", {
173
173
  baseURL: (this.urlConfigs.JUP_TOKEN_LIST || API_URLS.JUP_TOKEN_LIST).replace("{type}", type || JupTokenType.ALL),
174
174
  });
175
175
  }
@@ -185,7 +185,7 @@ export class Api {
185
185
  const { type = "all", sort = "liquidity", order = "desc", page = 0, pageSize = 100 } = props;
186
186
  const res = await this.api.get<PoolsApiReturn>(
187
187
  (this.urlConfigs.POOL_LIST || API_URLS.POOL_LIST) +
188
- `?poolType=${type}&poolSortField=${sort}&sortType=${order}&page=${page}&pageSize=${pageSize}`,
188
+ `?poolType=${type}&poolSortField=${sort}&sortType=${order}&page=${page}&pageSize=${pageSize}`,
189
189
  );
190
190
  return res.data;
191
191
  }
@@ -246,7 +246,7 @@ export class Api {
246
246
 
247
247
  const res = await this.api.get(
248
248
  (this.urlConfigs.POOL_SEARCH_MINT || API_URLS.POOL_SEARCH_MINT) +
249
- `?mint1=${baseMint}&mint2=${quoteMint}&poolType=${type}&poolSortField=${sort}&sortType=${order}&pageSize=100&page=${page}`,
249
+ `?mint1=${baseMint}&mint2=${quoteMint}&poolType=${type}&poolSortField=${sort}&sortType=${order}&pageSize=100&page=${page}`,
250
250
  );
251
251
  return res.data;
252
252
  }