GithubHelp home page GithubHelp logo

cryptonomic / conseil Goto Github PK

View Code? Open in Web Editor NEW
91.0 11.0 24.0 12.91 MB

Query API and indexer for Tezos and other decentralized platforms.

License: Apache License 2.0

Scala 96.79% Shell 1.29% HTML 0.17% Dockerfile 0.11% PLpgSQL 1.64%
tezos akka slick blockchains

conseil's Introduction

Conseil

Build Status Coverage Status

Conseil is an indexer and API for blockchains, currently focused on the Tezos, which allows you to seamlessly run complex queries against blockchain data. It is written in the functional style in the Scala programming language. This project forms an essential part of the Cryptonomic stack.

Conseil consists of two processes:

  • Lorre, which can index the blockchain by downloading data from a blockchain node and storing it in a database.
  • Conseil, which provides an API into the blockchain data indexed by Lorre.

Arronax provides a convenient user interface for querying Conseil data.

Information on using, running, configuring and developing Conseil can be found on the Conseil Wiki.

conseil's People

Contributors

ajuszczak avatar amillert avatar anonymoussprocket avatar ba205 avatar bhaskarkishore avatar digityler avatar dorians avatar ivanopagano avatar leenpaws avatar molowny avatar pierre-michard avatar piotrkosecki avatar prathamrawat avatar redroy44 avatar siddharthv1 avatar sunpj avatar taaseen-ali avatar tulpenhaendler avatar vishakh avatar yuras-scalac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

conseil's Issues

Lorre should be resilient to forks

Lorre currently fails when a blockchain fork is encountered. While inserting the latest blocks into its database, Lorre checks for referential integrity through a foreign key which ensures a new record's predecessor hash already occurs in the blocks table. During a fork, the referential integrity does not hold and should therefore not be enforced. Furthermore, the predecessor blocks of the current head should be inserted until a known block is found.

Conseil should expose a route listing all available blockchain protocols

The Conseil REST API should expose a route called '/info' which returns metadata about the running Conseil instance. As a start, it should return all blockchains and platform supported by the given Conseil instance. This route can be used by client applications, e.g. Arronax, to deduce all available platforms.

This is a rough example of a return value of the route:

{
	"platforms": [

	{
	"platform": "tezos",
	"network": "zeronet"
	}

	]
}

Make code compatible with zeronet

All code in this repo was written against the Tezos alphanet. The zeronet rollout introduces breaking change in the Tezos RPC interface. Therefore, the code must be updated to work with the latest API spec.

Lorre should parameterize the blockchain and network it runs for

At the moment, both Lorre and Conseil are capable of connecting to a single database to write and read data. As a consequence, they effectively only support one network at a time. This should be rectified such that Tezos zeronet and betanet can both be supported by Lorre and Conseil and multiple instances of the programs can run on the same codebase.

As part of this ticket, we should also validate the network parameter when the client makes an API call.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.