UNPKG

@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.

13 lines (12 loc) 583 B
import type { FormType } from '../stores/form/types.js'; export 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;