astra-cl-sdk-dev
Version:
⚒️ An SDK for building applications on top of Astra CL
9 lines (8 loc) • 409 B
TypeScript
import { Currency } from 'astra-sdk-core';
import { Route } from '../entities/route';
/**
* Converts a route to a hex encoded path
* @param route the CL path to convert to an encoded path
* @param exactOutput whether the route should be encoded in reverse, for making exact output swaps
*/
export declare function encodeRouteToPath(route: Route<Currency, Currency>, exactOutput: boolean): string;