Solidstate is an upgradeable-first Solidity smart contract development library.
It consists of the following packages:
| package | description | π | 
|---|---|---|
| @solidstate/abi | contract ABIs | π | 
| @solidstate/contracts | core contracts | π | 
| @solidstate/library | functions for interacting with and validating contracts | π | 
| @solidstate/spec | portable tests which may be run against third-party implementations of core contracts | π | 
Install dependencies:
pnpm installSetup Husky to format code on commit:
pnpm prepareCompile contracts via Hardhat:
pnpm hardhat compileTest contracts with Hardhat and generate gas report using hardhat-gas-reporter:
pnpm hardhat testGenerate a code coverage report using solidity-coverage:
pnpm hardhat coveragePublish packages via Lerna:
pnpm lerna-publish