@openocean.finance/widget
Version:
Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
15 lines (14 loc) • 645 B
TypeScript
import type { ExchangeRateUpdateParams } from '@openocean.finance/widget-sdk';
interface RouteExecutionProps {
routeId: string;
executeInBackground?: boolean;
onAcceptExchangeRateUpdate?(resolver: (value: boolean) => void, data: ExchangeRateUpdateParams): void;
}
export declare const useRouteExecution: ({ routeId, executeInBackground, onAcceptExchangeRateUpdate, }: RouteExecutionProps) => {
executeRoute: () => void;
restartRoute: () => void;
deleteRoute: () => void;
route: import("@openocean.finance/widget-sdk").RouteExtended;
status: import("../stores/routes/types.js").RouteExecutionStatus;
};
export {};