# from mina-utils/scripts/voting-results
python3 -m mina_voting --help
# run unit tests
pytest
Check python3
version >= 3.9
python3 --version
Clone the repo
git clone [email protected]:Granola-Team/mina-utils.git
Navigate to voting-results
cd mina-utils/scripts/voting-results
- ledgers are downloaded from Granola-Team/mina-ledger
- GraphQL queries are made to Mina Explorer's GraphQL API
Granola's votes dashboard and Granola's results dashboard
- epoch: 43
- keyword: cftest-2
- start: Dec 16, 2022 15:00 UTC
- end: Dec 31, 2022 12:00 UTC
- writes report and votes to stdout
python3 -m mina_voting \
-v \
-ep 43 \
-kw "cftest-2" \
-start 2022-12-16T15:00:00Z \
-end 2022-12-31T12:00:00Z
Granola's votes dashboard and Granola's results dashboard
- epoch: 44
- keyword: mip1
- start: Jan 4, 2023 16:00 UTC
- end: Jan 14, 2023 8:30 UTC
- write report file
- write votes file
- pull ledgers from Granola-Team and zkvalidator and diff
python3 -m mina_voting \
-diff \
-report \
-votes \
-ep 44 \
-kw mip1 \
-start 2023-01-04T16:00:00Z \
-end 2023-01-14T08:30:00Z
Run the unit tests
pytest