Skip to content

Python script to check POI across multi indexers for defined subgraph

License

Notifications You must be signed in to change notification settings

p2p-org/graphprotocol-poi-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphprotocol-poi-checker

Python3 script to check POI across multi indexers for defined subgraph.

Usage example:

Never share POI for open allocations!!!!!!

$ python3 check_poi.py --help
usage: check_poi.py [-h] --subgraph_ipfs_hash SUBGRAPH_IPFS_HASH
                    [--graph_endpoint GRAPH_ENDPOINT]
                    [--local_index_node_endpoint LOCAL_INDEX_NODE_ENDPOINT]
                    [--block_hash_endpoint BLOCK_HASH_ENDPOINT]
                    [--number_allocation_to_check NUMBER_ALLOCATION_TO_CHECK]
                    [--indexers_list INDEXERS_LIST]

optional arguments:
  -h, --help            show this help message and exit
  --subgraph_ipfs_hash SUBGRAPH_IPFS_HASH
                        subgraph ipfs_hash to analyze
  --graph_endpoint GRAPH_ENDPOINT
                        graph network endpoint (default:
                        https://gateway.network.thegraph.com/network)
  --local_index_node_endpoint LOCAL_INDEX_NODE_ENDPOINT
                        local index node endpoint (default: http://graph-
                        index-node:8030/graphql)
  --block_hash_endpoint BLOCK_HASH_ENDPOINT
                        ethereum endpoint to request block hash (default:
                        https://eth-mainnet.alchemyapi.io/v2/demo)
  --number_allocation_to_check NUMBER_ALLOCATION_TO_CHECK
                        number of last closed allocation to check poi
                        (default: 10)
  --indexers_list INDEXERS_LIST
                        comma separated list of indexers to check poi with
                        (default: all)
  --no-zero-pois        do not include allocations with zero pois (default: False)

Requirements:

pip3 install -r requirements.txt

About

Python script to check POI across multi indexers for defined subgraph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published