This app is designed to retrieve voting data for proposals on multiple blockchain networks and save it in an ASCII table format. It is especially useful for tracking and monitoring the voting status and outcomes of proposals on various chains.
- Retrieve voting data for proposals in the voting period.
- Check how a specific address has voted on each proposal.
- Determine the status of each proposal (e.g., Voting Period, Passed, Rejected).
- Save the collected data as an ASCII table for easy viewing and analysis.
The script currently supports the following blockchain networks:
- Qwoyn Network
- Osmosis
- Axelar
- Agoric
- Archway
- Celestia
- Coreum
- Cheqd
Before using this script, ensure you have the following prerequisites:
- Node.js installed on your system
- Command-line tools for each supported chain (osmosisd for Osmosis)
- Access to the blockchain networks you want to monitor
- Addresses for users whose votes you want to track
-
Clone this repository to your local machine.
-
Install the required Node.js packages by running:
npm install
-
Configure the script by editing the
chainConfigs
array in the script file. Add details for each chain you want to monitor, including the chain name, command-line tool, user address, and starting proposal number. -
Run the script using the following command:
node index.js
The script will start retrieving voting data for each chain and saving it as ASCII tables in separate files.
The script follows these main steps:
- Retrieve information about proposals in the voting period.
- For each proposal, check how a specific user has voted.
- Determine the status of each proposal.
- Save the collected data as an ASCII table.
The script will generate ASCII tables like the following for each chain:
+---------------------+---------------+-------------------+----------------+
| Chain | Proposal ID | Vote | Status |
+---------------------+---------------+-------------------+----------------+
| Qwoyn Network | 13 | YES | Voting Period |
| Axelar | 14 | Not Voted | Unknown Status |
| Osmosis | 692 | YES | Passed |
| ... | | | |
+---------------------+---------------+-------------------+----------------+
Feel free to contribute to this script by adding support for more blockchain networks or additional features. Pull requests are welcome!
This script is licensed under the MIT License.
Created by Daniel Pittman. You can contact me at daniel.pittman@qwoyn.studio.