1.3.2 • Published 2 years ago
@quickdapp/contracts v1.3.2
@quickdapp/contracts
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.
Requirements
- Node.js 20+
- PNPM (NOTE:
yarnandnpmcan also be used) - Foundry
Installation
Install and setup:
$ pnpm i
$ pnpm setupCreate .env and set the following within:
LOCAL_RPC_URL=http://localhost:8545
SEPOLIA_RPC_URL=<your infura/alchemy endpoint for spolia>
ETHERSCAN_API_KEY=<your etherscan api key>
MNEMONIC=<your deployment wallet mnemonic>Usage
Run a local dev node in a separate terminal:
pnpm devnetTo build the code:
$ pnpm buildTo run the tests:
$ pnpm buildTo deploy to the local target:
$ pnpm dep localTo deploy to the testnet target (sepolia):
$ pnpm dep testnetFor verbose output simply add -v:
$ pnpm build -v
$ pnpm dep -vLicense
MIT - see LICENSE.md