@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.
14 lines (13 loc) • 587 B
TypeScript
import type { FormType } from '../stores/form/types.js';
type UpdateToAddressArgs = {
formType: FormType;
selectedToAddress?: string;
selectedChainId?: number;
selectedOppositeTokenAddress?: string;
selectedOppositeChainId?: number;
};
/**
* Automatically populates toAddress field if bridging across ecosystems and compatible wallet is connected
*/
export declare const useToAddressAutoPopulate: () => ({ formType, selectedToAddress, selectedChainId, selectedOppositeTokenAddress, selectedOppositeChainId, }: UpdateToAddressArgs) => string | undefined;
export {};