cyberindex
Index for Cyber's networks
Supported:
- blocks and precommits
- transactions and messages
- validators and their uptime
- accounts and their balances
- cyberlinks and particles
- resources and supply
- grid routes
- wasm contracts
- advanced views for analytics
cyberindex run selected indexers from BDJuno, see schemas and registrar.go
Run:
cyberindex start
Example configuration in sample_config.yaml
cp sample_config.yaml ~/.cyberindex/config.yaml
To run in Docker fill .env, then:
make docker
Thanks for supporting Cosmos's ecosystem development:
Analytics views
If you want to add analytics views to you index:
Download genesis account states:
Initiate the additional views and tables:
&& \
Copy genesis and cyber_gift from csv to table:
Add cronjob to refresh tables for stats:
croncmd="docker exec -t cyberindex_postgres psql -c \"REFRESH MATERIALIZED VIEW CONCURRENTLY txs_ranked\" -d $POSTGRES_DB_NAME -U $POSTGRES_USER_NAME"
cronjob="*/5 * * * * "
( | ) |
Cybergift table with proofs
If you want to add cybergift table with proofs:
Download cybergift with proofs file:
Initiate the cyber_gift_proofs table:
Go to ./database/schema/ folder.
Open gift_db.py file and fill global variables according to your set up
Install requirenments.txt
Run script:
Wait util progress is 100%, after you may query gift info frop postgres directrly or over GrpahQL.