A library and series of executables to aid programmers and users to interact with the voting capabilities of Catalyst.
The "voter-registration" executable creates transaction metadata in the correct format for submission with a transaction, to register a user to vote.
The "voting-tools" creates a snapshot of the voting power of registrations and outputs it as JSON file.
A static binary for the "voter-registration" executable is provided. Due to limitations in our cross-compilation infrastructure (specifically, static binaries of postgresql libraries cannot be produced), a static binary cannot be provided for the "voting-tools" executable.
The latest static binary can be found here.
Or built with:
nix build .#voterRegistrationTarball
nix build .#voter-registration -o voter-registration
nix build .#voting-tools -o voting-tools
./voting-tools/bin/voting-tools --mainnet --db-user cardano-node --out-file snapshot.json
See Manual.
# Launch a ghcid session for the given target
make dev target=lib:voting-tools
make dev target=exe:voting-tools
make dev target=exe:voter-registration
# Launch a ghci session for the given target
make repl target=lib:voting-tools