Companion smart contracts template repository for QuickDapp.
- Fully upgradeable contracts using EIP-2535 Diamond Standard
- Full upgrade lifecycle management using Gemforge
- Build and deploy commands already setup
- Pre-configured config file
- Post-deploy hook for Etherscan verification
This repo is a copy of the official Gemforge scaffold.
- Base Sepolia:
0x3412554e250Faaa6a94E121f9EC760E2C350aA3F(Basescan)
- Node.js 20+
- PNPM (NOTE:
yarnandnpmcan also be used) - Foundry
Install and bootstrap:
pnpm i
pnpm bootstrapCreate .env and set the following within:
Run a local dev node in a separate terminal:
pnpm devnetTo build the code:
pnpm buildTo run the tests:
pnpm buildTo deploy to local testnet:
pnpm dep localTo deploy to Base Sepolia:
export PRIVATE_KEY=<your deployment wallet private key as hex>
pnpm dep baseSepoliaTo verify the source code on Base Sepolia:
export BASESCAN_API_KEY=<your basescan api key>
pnpm verify baseSepoliaFor verbose output simply add -v, e.g:
pnpm dep -vMIT - see LICENSE.md