UNPKG

@swapnet-xyz/sdk

Version:
13 lines (12 loc) 733 B
import { type IRoutingPlan } from "../common/routingPlan.js"; import type { ChainId } from "../common/unames.js"; import { type IEncodeOptions, type IResolvedEncodeOptions, type IRouter } from "./types.js"; export declare abstract class RouterBase implements IRouter { readonly name: string; readonly chainId: ChainId; readonly routerAddress: string; readonly tokenProxyAddress: string | undefined; constructor(name: string, chainId: ChainId, routerAddress: string, tokenProxyAddress?: string | undefined); abstract encode(routingPlan: IRoutingPlan, options: IEncodeOptions): string; } export declare const resolveEncodeOptions: (routingPlan: IRoutingPlan, options: IEncodeOptions) => IResolvedEncodeOptions;