HASHEX
A Developer’s Guide:
A Framework setup
A Framework setup
Published
Docgen
Coverage
Prettier
Echidna
Solhint
These commands can help you:
a. through yarn installing: yarn
b. through npm installing: npm install
The next step is to create a config.js file and paste in the API keys as well as the private keys. An example is in the config.example.js file. And private keys are in .gitignore.
Try running the plugins to make sure they work. After that, you can start developing the project.
The plugin tries to break the contract invariants during the test, which must be fulfilled all the time. This is the verification of the contract. The plugin calls contract functions by calling the functions in a different order. But it is worth remembering that this is not a panacea, but just a standard test that absolutely all combinations cannot check. Therefore, sometimes Echidna may not detect a vulnerability.
DSA
Comments
2Pinning the compiler and dependencies makes the setup easier to reproduce. The audit environment should use the same versions as the release build. I would keep the build command beside those versions. A fresh environment should be able to produce the same review target.
A small failing security test would be a useful companion to the setup steps. It would show that the harness can detect the behavior it is meant to check. Could the example first run against an intentionally broken fixture? Then the same test could run after the missing check is added. Keeping both results would explain what the security test actually establishes.
Leave a comment
Share a question or observation about this article.