Skip to content

onlydustxyz/eth-validator-watcher

Repository files navigation

Ethereum Indexer

GitHub contributors pull requests welcome badge follow on Twitter License License

Pre Requisites

Install Rust: https://www.rust-lang.org/tools/install

Install the crates used for formating, linging and coverage:

$ sh scripts/setup.sh

Git hooks

We provide git hooks that match the Github action that will take place when you push your code.

You can find those under .git_hooks/ and install them by running:

$ sh scripts/install_git_hooks.sh

Lint TOML

We use Taplo: https://taplo.tamasfe.dev/

Lint all TOML files in the project:

$ taplo format 

Test coverage

We use Mozilla Grcov: https://github.com/mozilla/grcov

Run the test coverage script:

$ sh scripts/test_coverage.sh

It will output profraw files under ./target/debug/profraw/, create a html report under ./target/debug/coverage/ and open it.