Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tool to validate the correctness of the Solidity code snippets #68

Merged
merged 5 commits into from Mar 27, 2024

Conversation

ferranbt
Copy link
Collaborator

@ferranbt ferranbt commented Mar 23, 2024

This PR adds a new tool that can validate if a Solidity code snippet (that uses suave-std) is valid or not. It is intended to be used to verify that the examples in the README.md file are up to date with the implementation.

The tool reads the input file (in this case only the README.md) in Markdown, gets all the Solidity code blocks which do not have the [skip-check] tag (none so far though). It puts the contracts in an ad-hoc repo under tools/stdchecker and compiles it with forge. It uses remappings to map the suave-std libraries to the top of the repository.

It also includes a CI check to validate that REAMDE.md is correct.

@ferranbt ferranbt changed the title Stdchecker Add tool to validate the correctness of the Solidity code snippets Mar 23, 2024
@ferranbt ferranbt merged commit 783736c into main Mar 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant