A smart contract development and deployment boilerplate using Hardhat & Ethers.js
Note that this boilerplate does not yet incorporate recent gas optimisations discovered by the Web3 community, such as ERC-721a smart contracts
Find a detailed and guided tutorial to this repo in the associated Medium Article
Add the required keys to a .env
file (details here):
- ALCHEMY_KEY
- PRIVATE_KEY
- MNEMONIC
- ETHERSCAN_API_KEY
Setup
npm install
Run contract tests
npx hardhat test
Check test coverage
npx hardhat coverage
Deploy to the Rinkeby test network
npx hardhat deploy --network rinkeby --export-all deployments.json
Verify on Etherscan
npx hardhat verify <CONTRACT ADDRESS> --network rinkeby
This repository is the core framework used by Spectra.Art to develop, test and deploy smart contracts.
It has been used so far to successfully launch 4 NFT collections: