Skip to content

frol/near-validators-scoreboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEAR Validators Scoreboard

This is a simple implementation of a scoreboard for NEAR Validators started during the Stake Wars Episode II.

Data Collection

A script fetching the stats about the validators epoch by epoch (the number of produced blocks and the number of expected blocks).

Deploying it as an hour-interval cron job will produce all the necessary stats.

Setup

$ npm install

Run

Single run produces a JSON file with the stats for the epoch before the current.

$ npm run collect:previous-epoch

Data Aggregation

A simple script that produces the scoreboard CSV file from the collected epoch stats. The CSV format:

ACCOUNT_ID,NUM_PRODUCED_BLOCKS,NUM_EXPECTED_BLOCKS,ONLINE
a.betanet,99,100,99
node0,500,500,100

Setup

$ npm install

You will also need the collected data in the current folder.

Run

$ npm run aggregate:scoreboard

This will produce a validators_scoreboard.csv in the stats folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.9%
  • Dockerfile 3.1%