Git Product home page Git Product logo

destake's Introduction

DeStake: Decentralized Stake Distribution Insights

Analyzing stake among validators in PoS blockchains.

Overview

This repository focuses on analyzing decentralization in Proof of Stake (PoS) blockchains by collecting and analyzing validator and staking data.

Instructions to Run

  1. Clone the repository:

    git clone https://github.com/sm86/decentralized_stake_insights.git

  2. Run the main file:

    cd decentralized_stake_insights && python3 data.py

Blockchains

We only collect validator stake data on blockchains leveraging classical BFT consensus mechanisms and variants.

In other words, blockchains that require a super majority quorum (two-thirds of total stake) on every block. Below are the list of blockchains

Blockchain Consensus Mechanism Reference
Aptos DiemBFT (HotStuff) white paper
Axelar Tendermint docs
BNB (Binance) Tendermint white paper
Celestia Tendermint docs
Celo IstanbulBFT docs
Cosmos Tendermint blog
Injective Tendermint blog
Osmosis Tendermint docs
Polygon Tendermint docs
Sui Narwhal/BullShark docs

For each blockchain, we save stake distribution data in CSV format, with two columns: address and tokens.

The CSV file has following format DDMMYY_blockchain.csv and is stored in data folder.

API Server

Added API for these metrics. Start the server: python3 api/app.py Access the data: http://127.0.0.1:5000/metrics/<date>

The date has to be in right range, else you would get the following error:

{
  "error": "No data available for the selected date. Please select a date between 24-10-2023 and today"
}

destake's People

Contributors

sm86 avatar charanreddy24 avatar

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.