This tool generates voting power info from a cardano-db-sync
instance.
Example usage:
snapshot-tool --db postgres --db-user postgres --db-host localhost --out-file output.json
To get a full list of available arguments run:
snapshot-tool --help
Building with nix should be straightforward, simply enter a dev environment with nix develop
, then run cargo build -p voting_tools_rs
to build.
To run tests, run cargo test -p voting_tools_rs
.
To sucessufully run the snapshot-tool
it is needed to have a running cardano-db-sync
instance.
Here you can found a guide how to build and run cardano-db-sync
.