Skip to content

Cosmos/Tendermint-based chains governance proposal watcher.

License

Notifications You must be signed in to change notification settings

ChainTools-Tech/cosm_gov_watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmos Governance Watcher

Script pulls list of active proposals from chains enumerated in configuration file. Governance proposals information is pulled via API endpoint. Once information is collected script produces table with collected data. Even if particular chain has no active proposals it will be listed in table.

Requirements

  • Python 3.8 or newer

Installation

  1. Clone repository and create a Python virtual environment
$ git clone https://github.com/ChainTools-Tech/cosm_gov_watch
$ cd cosm_gov_watch
$ python -m venv ./venv
$ source venv/bin/activate
(venv) $
  1. Install the requirements
(venv) $ python -m pip install -r requirements.txt
  1. Install script
(venv) $ pip install -e .

Configuration

List of chains to check along with endpoints is located in config_loader/chains.toml file. Each chain is described as example below:

[[chains]]
name = "cosmoshub"
displayname = "Cosmos Hub"
chain-id = "cosmoshub-4"
rpc = "https://rpc.cosmos.chaintools.tech:443"
api = "https://api.cosmos.chaintools.tech:443"

In order to add another chain create new section and populate with appropriate information. If some chains are not needed just remove chain section from configuration file.

Usage

(venv) $ cosm_gov_watch              
+---------------------------------------------------------------------------------------------------------------------------------+
|                                                         Chain Proposals                                                         |
+---------------+-----+------------------------------+--------------------------------------------+-------------------------------+
| Chain         | ID  | Type                         | Title                                      | Status                        |
+---------------+-----+------------------------------+--------------------------------------------+-------------------------------+
| beezee        | --  | --                           | --                                         | --                            |
| bitsong       | --  | --                           | --                                         | --                            |
| carbon        | --  | --                           | --                                         | --                            |
| chihuahua     | --  | --                           | --                                         | --                            |
| comdex        | --  | --                           | --                                         | --                            |
| cosmoshub     | --  | --                           | --                                         | --                            |
| cosmoshub     | 81  | TextProposal                 | Atom Zero Constitution                     | PROPOSAL_STATUS_VOTING_PERIOD |
| cosmoshub     | 82  | TextProposal                 | ATOM 2.0: A new vision for Cosmos Hub      | PROPOSAL_STATUS_VOTING_PERIOD |
| cosmoshub     | 83  | TextProposal                 | Atom One Constitution (sentiment proposal) | PROPOSAL_STATUS_VOTING_PERIOD |
| decentr       | --  | --                           | --                                         | --                            |
| desmos        | --  | --                           | --                                         | --                            |
| evmos         | --  | --                           | --                                         | --                            |
| evmos         | 78  | RegisterCoinProposal         | Register ERC20 for Injective (INJ)         | PROPOSAL_STATUS_VOTING_PERIOD |

...

In case of any questions contact support@chaintools.tech

ToDo

  • api_requests : error handling
  • load_config : error handling

About

Cosmos/Tendermint-based chains governance proposal watcher.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages