UNPKG

saepenatus

Version:

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

39 lines (35 loc) 807 B
import { configuration } from './configuration.js' import type { AppState } from './types.js' export const APP_INITIAL_STATE: AppState = { wallets: [], walletModules: [], chains: [], accountCenter: { enabled: true, position: 'topRight', expanded: false, minimal: configuration.device.type === 'mobile' }, notify: { enabled: true, transactionHandler: () => {}, position: 'topRight', replacement: { gasPriceProbability: { speedup: 80, cancel: 95 } } }, notifications: [], locale: '', connect: { showSidebar: true, disableClose: false } } export const STORAGE_KEYS = { TERMS_AGREEMENT: 'onboard.js:agreement', LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet' } export const MOBILE_WINDOW_WIDTH = 768