Coder Social home page Coder Social logo

raiden_analytics's Introduction

Raiden Statistics

This project aims to show raiden statics inline with lightning statics. Sample Raiden statics can be

  • Number of nodes with and without channels
  • Number of unique channels each node has
  • Network Capacity i.e. Cumulative capacity of each channel

Charts and their data

These statics are to be represented as date histogram graphs. For this purpose we use the react-timeseries-charts. The primary source of data which we use in this case is eth.events and tutorial for the same could be found here. The eth.events server is basically a elasticsearch server which accumulates event data from numerous contracts on the ethereum blockchain. Contract events as soon as they are emitted by the contracts are stored as documents on the eth.events elasticsearch servers. Get started started with elasticsearch here.

Events and Contracts

For now we query the Token Network Contract on the mainnet address 0xa5C9ECf54790334B73E5DfA1ff5668eB425dC474. Have a look at the code here. Generally we look at these four events but could consider more or even take the help of constant functions to query the contract if needed.

  1. ChannelOpened
  2. ChannelClosed
  3. ChannelNewDeposit
  4. ChannelClosed

Definitions of all the events can be found here

Queries for Chart data

Preliminary understanding to formulate eth.events queries can be found here. We mostly concentrate on making an aggregate queries for all the statics in raiden using eth.events. Currently only one query with one chart exists showing a date histogram of the times each of the above event was fired. Queries should be first tested on curl or more likely a tool like postman and then could be included in the project for more processing and display at the frontend.

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.