dfuse-eosio

module
v0.1.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2020 License: Apache-2.0

README

dfuse for EOSIO

reference License

All dfuse.io services for EOSIO, running from your laptop or from a container, released as a single statically linked binary.

See the general dfuse repository for other blockchain protocols implementations.

Getting started

Prerequisites

If it's the first time you boot a nodeos node, please review https://developers.eos.io/welcome/latest/tutorials/bios-boot-sequence and make sure you get a grasp of what this blockchain node is capable.

You might want to have the eosio.cdt tools installed, as well as cleos (from EOSIO/eos) or eosc.

Install

Get a release from the Releases tab in GitHub. Install the binary in your PATH.

See INSTALL.md to install the dependencies (like an instrumented nodeos).

Build from source
git clone https://github.com/dfuse-io/dfuse-eosio
cd dfuse-eosio
go install -v ./cmd/dfuseeos
Usage

Initialize a new dfuse.yaml config file (answer 'y' for a quick start) with:

dfuseeos init

The created file will contain the private and public keys generated for the booted chain.

Boot your instance with:

dfuseeos start

If you answered 'y', this will boot a producer node, a reader node, both communicating together, boot all dfuse services and expose a dashboard and all the APIs.

A terminal prompt will list the graphical interfaces with their relevant links:

Dashboard: http://localhost:8080
GraphiQL: http://localhost:13019
Eosq: http://localhost:8081

The Dashboard is a diagnostic tool to monitor the status of each component of dfuse for EOSIO. It also provides a graph to visualize how far their head block has drifted from the current block.

To run the dashboard in dev mode:

cd dashboard/client
yarn install
yarn start

Head to the GraphiQL interface, and do a streaming search of what's happening on chain! All dfuse GraphQL queries are available here.

Eosq, our high precision block explorer is also integrated in box. Use it to test out search queries and view organized information such as accounts, transaction data, and inline actions. The built javascript folder is committed with the code for convenience. See eosq README for build instructions

Overview

Here's a quick map of this repository:

The glue:

The EOSIO-specific services:

  • abicodec: ABI encoding and decoding service
  • fluxdb: the dfuse State database for EOSIO, with all tables at any block height
  • kvdb-loader: service that loads data into the kvdb storage
  • dashboard: server and UI for the dfuse for EOSIO dashboard.
  • eosq: the famous https://eosq.app block explorer
  • eosws: the REST, Websocket service, push guarantee, chain pass-through service.

dfuse Products's EOSIO-specific hooks and plugins:

Contributing

Please read CONTRIBUTING.md for details on our Code of Conduct, CONVENTIONS.md for coding conventions, and processes for submitting pull requests.

License

Apache 2.0

References

Directories

Path Synopsis
cmd
pb
Use `go generate` to pack all *.graphql files under this directory (and sub-directories) into a binary format.
Use `go generate` to pack all *.graphql files under this directory (and sub-directories) into a binary format.
kv
mdl
sql
app/eosws
Deprecated: The features in the eosws package will be moved to other packages like Dgraphql
Deprecated: The features in the eosws package will be moved to other packages like Dgraphql
cmd/eosws
Deprecated: The features in the eosws package will be moved to other packages like Dgraphql
Deprecated: The features in the eosws package will be moved to other packages like Dgraphql
mdl
cli
pb
Copied from MIT licensed https://github.com/rendon/testcli
Copied from MIT licensed https://github.com/rendon/testcli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL