UNPKG

@funkit/connect

Version:

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

20 lines (19 loc) 1.05 kB
import { MeshExchangeType } from '~/consts/mesh'; import type { FunSelectOption } from '../components/FunSelect/FunSelect'; import { type MeshConnectionInfo } from '../providers/FunkitMeshProvider'; export declare const useSupportedExchanges: () => MeshExchangeType[]; export declare const useMeshExchanges: ({ fullInfo, iconSize, }: { fullInfo?: boolean; iconSize?: number; }) => { options: FunSelectOption<MeshExchangeType>[]; }; /** * Fetches mesh-related network information based on the active chain user is logged in on, given an exchange * @param exchange The mesh exchange user is currently connected with */ export declare const useMeshActiveNetworkInfo: (chainId: string | undefined, brokerType: MeshExchangeType | undefined) => { meshSupportedTokens: string[]; meshNetworkId: string | undefined; } | null; export declare function useMeshAccountHoldings(targetChain: string, connection: MeshConnectionInfo | null): import("@tanstack/react-query").UseQueryResult<import("../domains/wallet").AssetHoldingsMap, Error>;