UNPKG

@web3-onboard/core

Version:

Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, mul

35 lines (34 loc) 1.74 kB
import connectWallet from './connect.js'; import disconnectWallet from './disconnect.js'; import setChain from './chain.js'; import type { InitOptions } from './types.js'; import updateBalances from './update-balances.js'; import { updateAccountCenter, updateNotify, customNotification, setLocale, setPrimaryWallet, setWalletModules, updateTheme, updateAppMetadata } from './store/actions.js'; declare const API: { connectWallet: typeof connectWallet; disconnectWallet: typeof disconnectWallet; setChain: typeof setChain; state: { get: () => import("./types.js").AppState; select: { (): import("rxjs").Observable<import("./types.js").AppState>; <T extends keyof import("./types.js").AppState>(stateKey: T): import("rxjs").Observable<import("./types.js").AppState[T]>; }; actions: { setWalletModules: typeof setWalletModules; setLocale: typeof setLocale; updateNotify: typeof updateNotify; customNotification: typeof customNotification; updateBalances: typeof updateBalances; updateAccountCenter: typeof updateAccountCenter; setPrimaryWallet: typeof setPrimaryWallet; updateTheme: typeof updateTheme; updateAppMetadata: typeof updateAppMetadata; }; }; }; export type OnboardAPI = typeof API; export type { InitOptions, ConnectOptions, DisconnectOptions, WalletState, ConnectedChain, AccountCenter, AppState, CustomNotification, Notification, Notify, UpdateNotification, Theme, WagmiConfig } from './types.js'; export type { EIP1193Provider } from '@web3-onboard/common'; declare function init(options: InitOptions): OnboardAPI; export default init;