UNPKG

dexpaprika-sdk

Version:
21 lines (20 loc) 983 B
/** * Map a pool sort field (legacy or canonical) to the canonical order_by value * accepted by /networks/{network}/pools/search. Unknown or missing -> default. */ export declare function mapPoolSortField(value?: string): string; /** * Map a token sort field (legacy or canonical) to the canonical order_by value * accepted by /networks/{network}/tokens/search. Unknown or missing -> default. */ export declare function mapTokenSortField(value?: string): string; /** * Rename legacy pool filter param names to the canonical pools/search names. * Names not in the map (e.g. liquidity_usd_min, txns_24h_min) pass through. */ export declare function mapPoolFilterParams(params: Record<string, any>): Record<string, any>; /** * Rename legacy token filter param names to the canonical tokens/search names. * Names not in the map (e.g. liquidity_usd_min, fdv_min) pass through. */ export declare function mapTokenFilterParams(params: Record<string, any>): Record<string, any>;