GithubHelp home page GithubHelp logo

airdrop's Introduction

Traditional Cosmos Airdrop

You can use this software to take a snapshot of stakers and their bonded tokens at a given block height. To verify that all accounts are represented, the total of the stakers bonded denom and the total staked supply are verified against each other as a final step.

Output is in JSON like:

[
 {
  "address": "eve1nrzfre4u4mgxtz0p6jj5v2z3aa63jfcwpyhn6g",
  "coins": [
   {
    "denom": "eve",
    "amount": "626"
   }
  ]
 },
 {
  "address": "eve1uzaaqwrneh6cwzcmurz5qnu0qfm6mevvmlhs6w",
  "coins": [
   {
    "denom": "eve",
    "amount": "39"
   }
  ]
 },
 ...
]

Usage

To run the airdrop tool, specify the path to the configuration file using the -c flag and optionally provide the desired block height using the -h flag (default is the "latest" height).

make build
LOG_LEVEL=debug ./airdropd -c configs/config.toml.example

This repo has SDK 47 dependencies and style, but you can change the version of the sdk referenced in go.mod and it should work on 50, 47, 46, and 45.

airdrop's People

Contributors

trungnt1811 avatar faddat avatar

Stargazers

Prad Nukala avatar Kaustubh K avatar Javed Khan avatar

Watchers

 avatar Tuan Pham Anh avatar

airdrop's Issues

Merging duplicate

From what I can see here if an address stakes on more than one validator it will appear more than once in the result. Ideally we should combine the results and that's it ⚡️

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.