This repository contains a Python script to track the states of votes cast in polls and spells at MakerDAO.
- The script is not compatible with Python 3.12 due to the deprecation of certain datetime functions used in the code.
- Collects information of delegates from vote.makerdao.com.
- Retrieves information of polls corresponding to the entered dates from vote.makerdao.com.
- Retrieves information of spells corresponding to the entered dates from vote.makerdao.com.
- Exports a CSV file with the MKR holdings of each delegate per date and AVC.
- Exports a CSV file with the total MKR ranking of each delegate per date.
- Exports two CSV files (one of them transposed for usability) with the status of the votes corresponding to each poll and spell.
- Python 3.x (versions prior to 3.12) and dependencies listed in
requirements.txt
.
Follow these steps to set up the project:
- Clone the repository:
git clone
- Navigate to the cloned directory:
cd AD-voting-metrics
- Install the required dependencies:
pip install -r requirements.txt
- Install the required dependencies from
requirements.txt
. - Run
main.py
and follow the on-screen prompts.
- General code clean up.
- Add more information about the polls and spells to the CSV file.