UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

21 lines (20 loc) 905 B
import type { Address } from 'viem'; import type { AssetHoldingsMap } from '../domains/wallet'; /** * Merges payable sources the wallet-assets API doesn't index — an xStock the * user holds + its wrapper — into the holdings map. * * Note: xStock/Nado-only today; possibly deprecate once backend supports these natively. * * - Gated by `enable-rpc-xstock-assets` (off by default) → no RPC reads, nothing injected. * - Single seam in `useWalletAssetHoldings` so keys can't drift across consumers. * - Injects only what the API omits (never clobbers its price/USD); gating lives upstream. */ export declare function useInjectedAssetHoldings({ targetChainId, existingHoldings, xstockWrappedTokenAddress, }: { targetChainId: string; existingHoldings: AssetHoldingsMap | undefined; xstockWrappedTokenAddress?: Address; }): { holdings: AssetHoldingsMap; isLoading: boolean; };