@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/lib/api/api.js +1 -1
- package/lib/api/api.js.map +1 -1
- package/lib/api/api.mjs +1 -1
- package/lib/api/api.mjs.map +1 -1
- package/lib/api/index.js +1 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/index.mjs +1 -1
- package/lib/api/index.mjs.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/raydium/index.js +1 -1
- package/lib/raydium/index.js.map +1 -1
- package/lib/raydium/index.mjs +1 -1
- package/lib/raydium/index.mjs.map +1 -1
- package/lib/raydium/raydium.js +1 -1
- package/lib/raydium/raydium.js.map +1 -1
- package/lib/raydium/raydium.mjs +1 -1
- package/lib/raydium/raydium.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/api.ts +3 -3
package/package.json
CHANGED
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
|
-
|
|
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
|
-
|
|
249
|
+
`?mint1=${baseMint}&mint2=${quoteMint}&poolType=${type}&poolSortField=${sort}&sortType=${order}&pageSize=100&page=${page}`,
|
|
250
250
|
);
|
|
251
251
|
return res.data;
|
|
252
252
|
}
|