Skip to content

solidstate-network/solidstate-solidity

Repository files navigation

Solidstate Solidity


solidstate logo
The Solidstate smart contract development library.



Packages

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 📖

Development

Install dependencies via Yarn:

yarn install

Setup Husky to format code on commit:

yarn prepare

Compile contracts via Hardhat:

yarn run hardhat compile

Testing

Test contracts with Hardhat and generate gas report using hardhat-gas-reporter:

yarn run hardhat test

Generate a code coverage report using solidity-coverage:

yarn run hardhat coverage

Publication

Publish packages via Lerna:

yarn lerna-publish

Contributors 18