Callisto (formerly BDJuno) is the Juno implementation for Big Dipper.
It extends the custom Juno behavior by adding different handlers and custom operations to make it easier for Big Dipper showing the data inside the UI.
All the chains' data that are queried from the RPC and gRPC endpoints are stored inside a PostgreSQL database on top of which GraphQL APIs can then be created using Hasura.
To know how to setup and run Callisto, please refer to the docs website.
If you want to test the code, you can do so by running
$ make test-unit
Note: Requires Docker.
This will:
- Create a Docker container running a PostgreSQL database.
- Run all the tests using that database as support.
docker-compose -f docker-compose.local.yml up -d
NOTE: You need to perform first time after launch
-
Create tables for bdjuno in stratos_db
You need to run the SQL queries that you can find inside the database/schema folder.
-
Load mesos genesis
curl https://raw.githubusercontent.com/stratosnet/stratos-chain-testnet/main/mesos-1/genesis.json > local/genesis.json
- Launch hasura container
docker compose up -d hasura
docker-compose -f docker-compose.local.yml exec hasura sh
and execute the following lines
apt-get update && apt-get install -y curl bash
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash
hasura metadata apply --skip-update-check --project ./hasura