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