@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
22 lines (21 loc) • 626 B
TypeScript
import type { Route } from '@lifi/sdk';
export interface RouteExecution {
route: Route;
status: RouteExecutionStatus;
}
export interface RouteExecutionState {
routes: Partial<Record<string, RouteExecution>>;
setExecutableRoute: (route: Route, insurableRouteId?: string) => void;
updateRoute: (route: Route) => void;
restartRoute: (routeId: string) => void;
deleteRoute: (routeId: string) => void;
deleteRoutes: (type: 'completed' | 'active') => void;
}
export declare enum RouteExecutionStatus {
Idle = 0,
Pending = 1,
Done = 2,
Failed = 4,
Partial = 8,
Refunded = 16
}