@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.
27 lines (26 loc) • 988 B
TypeScript
import type { WalletClient } from 'viem';
/**
* Get cross-chain aggregated quotes (supports multiple adapter comparison)
* @param params - Cross-chain quote parameters
* @returns Best quote result, compatible with useRoutes.ts requirements
*/
export declare function getCrossChainQuote({ fromMsg, toMsg, inAmount, slippage_tolerance, account, recipient, tokenInUsd, tokenOutUsd, feeBps, walletClient, publicKey, nearTokens, }: {
fromMsg: any;
toMsg: any;
inAmount: string;
slippage_tolerance: string | number;
account: string;
recipient?: string;
tokenInUsd?: number;
tokenOutUsd?: number;
feeBps?: number;
walletClient?: any;
publicKey?: string;
nearTokens?: any[];
}): Promise<any | null>;
export declare const bridgeExecuteSwap: ({ quoteData, walletClient, nearWallet, }: {
quoteData: any;
walletClient: WalletClient;
nearWallet?: any;
}) => Promise<any>;
export declare const ADAPTER_LOGIN_URLS: Record<string, string>;