Ethereum frontend app template with the following features:
# Install packages
yarn install
# Run in development mode
yarn dev
# Compiles and minifies for production
yarn build
# Format files
yarn prettier
# Run linter
yarn lint
### Run your unit tests and end-to-end tests (not yet setup)
yarn test:unit
yarn test:e2e
Notes on customizing this app:
tailwind.config.js
. Other colors are inlined as classes, e.g. text-gray-400
.process.env.MY_VARIABLE
for environment variables, but instead uses import.meta.env.VITE_MY_VARIABLE
. Values in .env
that are prefixed with VITE_
are automatically included. Update the type definitions in src/shims.d.ts
for any new environment variableshistory
mode and assumes the app is hosted at the domain root. Both of these defaults can be changed in src/router/index.ts
os
, http
, and crypto
that are needed by onboard.js, so we require
this in vite.config.ts
src/store
, and there are three setup by defaultwallet.ts
manages the user's wallet connectiondata.ts
atomically polls for data each block using Multicall2
settings.ts
saves and manages user settings such as dark mode and wallet selection