import type { FunkitSolanaAdapter } from '@funkit/fun-relay'; /** * A Solana wallet your app already has connected. funkit reads balances, * quotes and executes with it — it never creates or connects a wallet itself. */ export interface SolanaWalletConnection { /** * Wallet name, e.g. `Phantom`. Picks the icon when none is supplied, and is * how funkit recognizes the same wallet connected on both ecosystems. */ name: string; /** * Icon to show for this wallet, as a URL or data URI. Falls back to a * bundled icon for wallets funkit recognizes by name, then to a generic one. */ icon?: string; /** * Disconnect the wallet on your side. Called from funkit's logout. * It never disconnects a wallet it didn't connect. Pass a no-op if there's nothing to release. */ disconnect: () => void | Promise; /** * Built with `createSolanaAdapter` from `@funkit/solana-kit` or * `@funkit/solana-web3`. Solana is disabled, with a warning, if it's missing * or its address isn't a valid Solana address. */ adapter: FunkitSolanaAdapter; }