Skip to content
forked from forbole/callisto

BDJuno is the official Juno implementation for BigDipper, the open-source block explorer for Cosmos

License

Notifications You must be signed in to change notification settings

stratosnet/bdjuno

 
 

Repository files navigation

Callisto

GitHub Workflow Status Go Report Card Codecov branch

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.

Usage

To know how to setup and run Callisto, please refer to the docs website.

Testing

If you want to test the code, you can do so by running

$ make test-unit

Note: Requires Docker.

This will:

  1. Create a Docker container running a PostgreSQL database.
  2. Run all the tests using that database as support.

Local runner

docker-compose -f docker-compose.local.yml up -d

NOTE: You need to perform first time after launch

  1. Create tables for bdjuno in stratos_db

    You need to run the SQL queries that you can find inside the database/schema folder.

  2. Load mesos genesis

curl https://raw.githubusercontent.com/stratosnet/stratos-chain-testnet/main/mesos-1/genesis.json > local/genesis.json
  1. 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

About

BDJuno is the official Juno implementation for BigDipper, the open-source block explorer for Cosmos

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Other 1.6%