UNPKG

@cosmos-kit/react-lite

Version:
31 lines (30 loc) 1.54 kB
import type { AssetList, Chain } from '@chain-registry/types'; import { ChainName, EndpointOptions, LogLevel, MainWalletBase, NameServiceName, SessionOptions, SignerOptions, WalletConnectOptions, WalletManager, WalletModalProps } from '@cosmos-kit/core'; import { Origin } from '@dao-dao/cosmiframe'; import { type ReactElement, type ReactNode } from 'react'; export declare const walletContext: import("react").Context<{ walletManager: WalletManager; modalProvided: boolean; }>; export declare function ChainProvider({ chains, assetLists, wallets, walletModal: ProvidedWalletModal, throwErrors, subscribeConnectEvents, defaultNameService, walletConnectOptions, signerOptions, endpointOptions, sessionOptions, logLevel, allowedIframeParentOrigins, children, }: { chains: (Chain | ChainName)[]; wallets: MainWalletBase[]; assetLists?: AssetList[]; walletModal?: (props: WalletModalProps) => ReactElement; throwErrors?: boolean | 'connect_only'; subscribeConnectEvents?: boolean; defaultNameService?: NameServiceName; walletConnectOptions?: WalletConnectOptions; signerOptions?: SignerOptions; endpointOptions?: EndpointOptions; sessionOptions?: SessionOptions; logLevel?: LogLevel; /** * Origins to allow wrapping this app in an iframe and connecting to this * Cosmos Kit instance. * * Defaults to localhost, Osmosis, DAO DAO, and Abstract. */ allowedIframeParentOrigins?: Origin[]; children: ReactNode; }): import("react/jsx-runtime").JSX.Element;