soso-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) • 654 B
TypeScript
import type { Route, RouteExtended } from '@lifi/sdk';
export interface RouteExecution {
route: RouteExtended;
status: RouteExecutionStatus;
}
export interface RouteExecutionState {
routes: Partial<Record<string, RouteExecution>>;
setExecutableRoute: (route: Route, observableRouteIds?: string[]) => void;
updateRoute: (route: Route) => void;
restartRoute: (routeId: string) => void;
deleteRoute: (routeId: string) => void;
deleteRoutes: (type: 'completed' | 'active') => void;
}
export declare enum RouteExecutionStatus {
Idle = 1,
Pending = 2,
Done = 4,
Failed = 8,
Partial = 16,
Refunded = 32
}