mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-04-19 03:01:06 -04:00
**What type of PR is this?** Documentation **What does this PR do? Why is it needed?** * Move the ethspecify config from `/specrefs/.ethspecify` to `/.ethspecify`. * This allows developers to use inline specrefs (eg spec functions in godoc comments). * To do this, simply add a spec tag and run `ethspecify` to populate it. * Clean up specref exceptions; organize by upgrade & put items in the correct section. * Update a few godoc comments to use the new inline specref feature. * Update check-specrefs GitHub action so that it enforces up-to-date godocs. * Standardize specref naming; requiring a `#fork` tag for everything. * Add new specrefs (which haven't been implemented yet) which were missing. **Acknowledgements** - [x] I have read [CONTRIBUTING.md](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md). - [x] I have included a uniquely named [changelog fragment file](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md#maintaining-changelogmd). - [x] I have added a description with sufficient context for reviewers to understand this PR. - [x] I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable). --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
1.1 KiB
1.1 KiB
Specification References
This directory contains specification reference tracking files managed by ethspecify.
Installation
Install ethspecify with the following command:
pipx install ethspecify
Maintenance
When adding support for a new specification version, follow these steps:
- Update the version in
.ethspecify.ymlconfiguration. - Run
ethspecifyto update/populate specrefs. - Run
ethspecify checkto check specrefs. - If there are errors, use the error message as a guide to fix the issue. If
there are new specrefs with empty sources, implement/locate each item and
update each specref source list. If you choose not to implement an item,
add an exception to the appropriate section the the
.ethspecify.ymlconfiguration. - Repeat steps 3 and 4 until
ethspecify checkpasses. - Run
git diffto view updated specrefs. If an object/function/etc has changed, make the necessary updates to the implementation. - Lastly, in the project's root directory, run
act -j check-specrefsto ensure everything is correct.