Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.38 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.38 KB

Solidity NFT Boilerplate

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

Tutorial

Find a detailed and guided tutorial to this repo in the associated Medium Article

Install and usage

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

About

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:

  1. Eternal Fragments
  2. Living Fragments
  3. Vortex
  4. Chromospheres