Sign inSign up

desmoslabs/djuno

By desmoslabs

•Updated almost 3 years ago

The official DJuno Docker image

Image
0

8.4K

desmoslabs/djuno repository overview

⁠Djuno

Build Status Go Report Card

This project represents the Juno⁠ implementation for the Desmos blockchain⁠.

It extends the custom Juno behavior with custom message handlers for all the Desmos messagejuno. This allows to store the needed data inside a PostgreSQL⁠ database on top of which GraphQL⁠ APIs can then be created using Hasura⁠

⁠Installation

To install the binary simply run make install.

Note: Requires Go 1.13+⁠

⁠Database

Before running the parser, you need to:

  1. Create a PostgreSQL⁠ database.
  2. Run the SQL queries you find inside the *.sql files in the schema folder⁠ inside such database to create all the necessary tables.

⁠Running the parser

To parse the chain state, you need to use the following command:

djuno parse <path/to/config.toml>

# Example
# djuno parse config.toml 

The configuration must be a TOML file containing the following fields:

rpc_node = "<rpc-ip/host>:<rpc-port>"
client_node = "<client-ip/host>:<client-port>"

[database]
host = "<db-host>"
port = <db-port>
name = "<db-name>"
user = "<db-user>"
password = "<db-password>"
ssl_mode = "<ssl-mode>"

Example of a configuration to parse the chain state from a local full-node:

rpc_node = "http://localhost:26657"
client_node = "http://localhost:1317"

[database]
host = "localhost"
port = 5432
name = "desmos"
user = "<username>"
password = "<password>"

Tag summary

Content type

Image

Digest

sha256:7da2b5c5b…

Size

142.5 MB

Last updated

almost 3 years ago

docker pull desmoslabs/djuno