forge test
forge coverage
forge coverage --report lcov
forge test --gas-report
- Ensure the storage layout is empty to avoid storage collision during future upgrades
forge inspect ./src/RoyaltyAutoClaim.sol:RoyaltyAutoClaim storage
- If
Error: failed to read artifact source file for...
appears, you need to clean and recompile
forge clean
forge script script/deployRoyaltyAutoClaim.s.sol --rpc-url RPC_URL --broadcast --verify
- Mainnet: 0xf50b818138e3848C314783FA593fb39653FB0178
- Sepolia: 0x66ECf28b049f8b917C58B6e81a999CDF309283eA
- Remember to set up .env in frontend
- If the contract has been updated, remember to run
forge build
beforepnpm generate-types
- We use Pimlico bundler in local devnet but use Alchemy bundler on Sepolia and Mainnet. Check out frontend/src/config.ts BUNDLER_URL.
- For icon, use lucide-vue-next
- For Component, use shadcn-vue
- For Notification Component, see docs
cd frontend
pnpm install
pnpm generate-types
docker compose up -d
pnpm deploy-contracts:local
pnpm dev
pnpm test test/e2e-local.test.ts
pnpm test <path>
pnpm vitest -t <test_name>