An open API service indexing awesome lists of open source software.

https://github.com/solidstate-network/solidstate-solidity

💠 Upgradeable-first Solidity smart contract development library 💠
https://github.com/solidstate-network/solidstate-solidity

buidler crypto cryptocurrency eth ether ethereum hardhat library smart-contracts solidity wow

Last synced: 12 days ago
JSON representation

💠 Upgradeable-first Solidity smart contract development library 💠

Awesome Lists containing this project

README

        


Solidstate Solidity




asdf
The Solidstate smart contract development library.



style
style
style
style




## Packages

Solidstate is an upgradeable-first Solidity smart contract development library.

It consists of the following packages:

| package | description | 📕 |
| ----------------------- | ------------------------------------------------------------------------------------- | --------------------------- |
| `@solidstate/abi` | contract ABIs | [📖](./abi/README.md) |
| `@solidstate/contracts` | core contracts | [📖](./contracts/README.md) |
| `@solidstate/library` | functions for interacting with and validating contracts | [📖](./lib/README.md) |
| `@solidstate/spec` | portable tests which may be run against third-party implementations of core contracts | [📖](./spec/README.md) |

## Development

Install dependencies via Yarn:

```bash
yarn install
```

Setup Husky to format code on commit:

```bash
yarn prepare
```

Compile contracts via Hardhat:

```bash
yarn run hardhat compile
```

Automatically upgrade dependencies with yarn-up:

```bash
yarn upgrade-dependencies
```

### Testing

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

```bash
yarn run hardhat test
```

Generate a code coverage report using `solidity-coverage`:

```bash
yarn run hardhat coverage
```

### Publication

Publish packages via Lerna:

```bash
yarn lerna-publish
```