@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
31 lines (30 loc) • 2.19 kB
TypeScript
import type { AppMetadata, Chain, WalletInit, WalletModule } from '@web3-onboard/common';
import type { Account, AccountCenter, WalletState, Notification, CustomNotification, UpdateNotification, CustomNotificationUpdate, Notify, ConnectModalOptions, Theme } from '../types.js';
import type { Address } from 'bnc-sdk';
import type { Config } from '@web3-onboard/wagmi';
export declare function addChains(chains: Chain[]): void;
export declare function updateChain(updatedChain: Chain): void;
export declare function addWallet(wallet: WalletState): void;
export declare function updateWallet(id: string, update: Partial<WalletState>): void;
export declare function removeWallet(id: string): void;
export declare function setPrimaryWallet(wallet: WalletState, address?: string): void;
export declare function updateAccount(id: string, address: Address, update: Partial<Account>): void;
export declare function updateAccountCenter(update: AccountCenter | Partial<AccountCenter>): void;
export declare function updateConnectModal(update: ConnectModalOptions | Partial<ConnectModalOptions>): void;
export declare function updateNotify(update: Partial<Notify>): void;
export declare function addNotification(notification: Notification): void;
export declare function addCustomNotification(notification: CustomNotificationUpdate): void;
export declare function customNotification(updatedNotification: CustomNotification): {
dismiss: () => void;
update: UpdateNotification;
};
export declare function removeNotification(id: Notification['id']): void;
export declare function resetStore(): void;
export declare function setWalletModules(wallets: WalletInit[]): void;
export declare function setLocale(locale: string): void;
export declare function updateAllWallets(wallets: WalletState[]): void;
export declare function initializeWalletModules(modules: WalletInit[]): WalletModule[];
export declare function uniqueWalletsByLabel(walletModuleList: WalletModule[]): WalletModule[];
export declare function updateTheme(theme: Theme): void;
export declare function updateAppMetadata(update: AppMetadata | Partial<AppMetadata>): void;
export declare function updateWagmiConfig(update: Config): void;