Skip to content

Commit

Permalink
Merge pull request #1 from 0xPolygon/docs/readme
Browse files Browse the repository at this point in the history
docs: add V1 readme
  • Loading branch information
ZeroEkkusu authored Dec 4, 2023
2 parents c1595c0 + a332f67 commit b76f7dd
Showing 1 changed file with 48 additions and 3 deletions.
51 changes: 48 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,55 @@
# Storage Layout Checker

Storage Layout Checker is made to simplify contract upgrades. It compares the storage layout between two suite versions and provides insights into the changes.

> [!NOTE]
> Interim repository.
> V1 identifies all differences but doesn't escalate and de-escalate findings.
```
## Upcoming Features

### V2

- **Enhanced Detection:** Properly escalates and de-escalates findings.
- **Dirty Bits Visibility:** Shows where dirty bits are.

### V3

- **Support for Special Variables**: Adds support for `__gap` and `__legacy` variables.

### CI

- **CI Integration**: Runs on push and pull requests.

## Requirements

The script utilizes Node.js to run. We recommend the node version defined in the `.nvmrc` file.

## Installation

```bash
forge install 0xPolygon/storage-layout-checker
```

```
## Usage Example

The following command will create `storage_check_report` in your project's root directory:

```bash
bash lib/storage-layout-checker/run.sh <COMMIT_OR_TAG>
```

Contracts with identified differences will be listed as `OLD` and `NEW` table files. To examine a finding, open the two files side by side.

Additionally, `removed.txt` file will be created, with the names of deleted contracts.

## Legend

| Emoji | Meaning |
| ----- | ----------- |
| ❗️ | Problematic |
| 🗑️ | Deleted |
|| New |

---

© 2023 PT Services DMCC

0 comments on commit b76f7dd

Please sign in to comment.