@cosmos-kit/react
Version:
cosmos-kit wallet connector
32 lines (31 loc) • 1.63 kB
TypeScript
import { AssetList, Chain } from '@chain-registry/types';
import { ChainName, EndpointOptions, LogLevel, MainWalletBase, ModalOptions, NameServiceName, SessionOptions, SignerOptions, WalletConnectOptions, WalletModalProps } from '@cosmos-kit/core';
import { Origin } from '@dao-dao/cosmiframe';
import { ReactElement, ReactNode } from 'react';
import { ThemeCustomizationProps } from './modal';
import { defaultModalViews } from './modal/components/views';
export declare const ChainProvider: ({ chains, assetLists, wallets, walletModal, modalViews, throwErrors, subscribeConnectEvents, defaultNameService, walletConnectOptions, signerOptions, endpointOptions, sessionOptions, logLevel, allowedIframeParentOrigins, children, modalTheme, modalOptions, }: {
chains: (Chain | ChainName)[];
assetLists?: AssetList[];
wallets: MainWalletBase[];
walletModal?: (props: WalletModalProps) => ReactElement;
modalViews?: typeof defaultModalViews;
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 Osmosis, DAO DAO, and Abstract.
*/
allowedIframeParentOrigins?: Origin[];
children: ReactNode;
modalTheme?: ThemeCustomizationProps;
modalOptions?: ModalOptions;
}) => import("react/jsx-runtime").JSX.Element;