- Hardhat
- Svelte + wagmi-core
-
Prerequisite
- Install
pnpm
: Using npm:npm install -g pnpm
- Others: https://pnpm.io/installation
- Install
-
pnpm i
-
Set web3modal project id in
packages/app/.env
(obtain a project id for web3modal)
You will have three development windows, start them all and source all .env files with
source .env && source packages/app/.env
.
- Start local chain:
anvil -m $MNEMONIC
- Deploy the Foo contract:
forge script Deploy --broadcast --rpc-url $FOUNDRY && pnpm -F app wagmi
- Start app:
pnpm -F app dev