mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-06 04:57:53 +03:00
feat: types update
This commit is contained in:
@@ -23,8 +23,8 @@ export class Frontage {
|
||||
}: { searchValue: string } & TickersBaseSearchParams) => {
|
||||
const queryParams = [
|
||||
`searchValue=${encodeURIComponent(searchValue)}`,
|
||||
currentNetwork !== undefined ? `¤tNetwork=${encodeURIComponent(currentNetwork)}` : '',
|
||||
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork)}` : '',
|
||||
currentNetwork !== undefined ? `¤tNetwork=${encodeURIComponent(currentNetwork).toUpperCase()}` : '',
|
||||
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork).toUpperCase()}` : '',
|
||||
sortBy !== undefined ? `&sortBy=${encodeURIComponent(sortBy)}` : '',
|
||||
sortType !== undefined ? `&sortType=${encodeURIComponent(sortType)}` : '',
|
||||
offset !== undefined ? `&offset=${offset}` : '',
|
||||
@@ -48,8 +48,8 @@ export class Frontage {
|
||||
}: { category: TickersCategories } & TickersBaseSearchParams) => {
|
||||
const queryParams = [
|
||||
`category=${encodeURIComponent(category)}`,
|
||||
currentNetwork !== undefined ? `¤tNetwork=${encodeURIComponent(currentNetwork)}` : '',
|
||||
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork)}` : '',
|
||||
currentNetwork !== undefined ? `¤tNetwork=${encodeURIComponent(currentNetwork).toUpperCase()}` : '',
|
||||
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork).toUpperCase()}` : '',
|
||||
sortBy !== undefined ? `&sortBy=${encodeURIComponent(sortBy)}` : '',
|
||||
sortType !== undefined ? `&sortType=${encodeURIComponent(sortType)}` : '',
|
||||
offset !== undefined ? `&offset=${offset}` : '',
|
||||
|
||||
Reference in New Issue
Block a user