UNPKG

astra-universal-router-sdk

Version:

sdk for integrating with the Astra Router contracts

13 lines (12 loc) 359 B
import { RoutePlanner } from '../utils/routerCommands'; export declare type TradeConfig = { allowRevert: boolean; }; export declare enum RouterActionType { AstraTrade = "AstraTrade", UnwrapSAMB = "UnwrapSAMB" } export interface Command { tradeType: RouterActionType; encode(planner: RoutePlanner, config: TradeConfig): void; }