@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
17 lines (16 loc) • 759 B
TypeScript
import { Connector } from "wagmi";
import { SolanaWalletName } from "../provider/SolanaContextProvider";
import { WalletConfigProps } from "./walletConfigs";
/** Special wallet ID for "other wallets" option. */
export declare const WALLET_ID_OTHER_WALLET = "otherWallet";
/** Special wallet ID for "mobile wallets" option. */
export declare const WALLET_ID_MOBILE_WALLETS = "mobileWallets";
export type WalletProps = {
id: string;
connector?: Connector;
isInstalled?: boolean;
/** Name of the matching Solana wallet adapter (if any) */
solanaConnectorName?: SolanaWalletName;
} & WalletConfigProps;
export declare const useWallet: (id: string) => WalletProps | null;
export declare const useWallets: (isMobile?: boolean) => WalletProps[];