UNPKG

@velora-dex/sdk

Version:
24 lines 1.21 kB
import type { ConstructFetchInput, RequestParameters } from '../../types'; import type { BridgeRoute } from './types'; export type BridgeProtocolResponse = { protocol: string; displayName: string; icon: string; }; type GetBridgeRoutesParams = { /** @description Include tokens that can be swapped on destChain after bridge. Default is true. */ allowBridgeAndSwap?: boolean; /** @description Include only the specified bridges. Default is all bridges. */ bridges?: string[]; }; type GetBridgeRoutes = (params?: GetBridgeRoutesParams, requestParams?: RequestParameters) => Promise<BridgeRoute[]>; type GetBridgeProtocols = (requestParams?: RequestParameters) => Promise<BridgeProtocolResponse[]>; export type GetBridgeRoutesFunctions = { /** @description Fetch supported bridge routes as a flat array (v2 replacement for bridge-info). */ getBridgeRoutes: GetBridgeRoutes; /** @description Fetch supported bridge protocols (unchanged from v1). */ getBridgeProtocols: GetBridgeProtocols; }; export declare const constructGetBridgeRoutes: ({ apiURL, fetcher, }: ConstructFetchInput) => GetBridgeRoutesFunctions; export {}; //# sourceMappingURL=getBridgeRoutes.d.ts.map