@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.
18 lines (17 loc) • 748 B
TypeScript
import type { Account } from '@openocean.finance/wallet-management';
import type { Route } from '@openocean.finance/widget-sdk';
interface ExecuteRouteOptions {
updateRouteHook?: (route: Route) => void;
acceptExchangeRateUpdateHook?: (params: any) => Promise<boolean>;
infiniteApproval?: boolean;
executeInBackground?: boolean;
account: Account;
wagmiConfig: any;
onDisconnect?: (account: Account) => Promise<void>;
onOpenWalletMenu?: () => void;
solanaWallet?: any;
nearWallet?: any;
}
export declare function sendBTCWithPhantom(sender: string, recipient: string, amount: number): Promise<string>;
export declare function executeRoute(route: Route, options: ExecuteRouteOptions): Promise<Route>;
export {};