-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from 0xPolygon/docs/readme
docs: add V1 readme
- Loading branch information
Showing
1 changed file
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |