EOSVotes.io Tally
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
types
.gitignore
LICENSE
README.md
ecosystem.config.js
index.ts
package.json
test-download.ts
test.ts
tsconfig.json
tslint.json
yarn.lock

README.md

EOSVotes.io Tally

MIT licensed

EOS Votes tally quickly retrieves all proposals and votes from eosforumrcpp and generate a simple to understand voting tally statistics in JSON format.

Leveraging dfuse.io under the hood to easily handle table deltas & snapshots.

Install

$ git clone https://github.com/EOS-Nation/eosvotes-tally-eosws.git
$ cd eosvotes-tally-eosws
$ npm install

Quickstart

$ npm start

AWS S3 Buckets

All the related EOSVotes datasets/snapshots are stored as Amazon S3 buckets.

All snapshots (historical data) are stored in 1000 block_num intervals (every ~8 minutes).

Use latest.json for the latest uploaded dataset.

📊 Schema

interface Tallies {
    proposal: Proposal;
    stats:    Stats;
}

interface Proposal {
    expires_at:    string;
    created_at:    string;
    proposal_json: string;
    title:         string;
    proposer:      string;
    proposal_name: string;
}

interface Stats {
    votes:              Votes;
    accounts:           Accounts;
    proxies:            Accounts;
    staked:             Accounts;
    vote_participation: boolean;
    more_yes:           boolean;
    sustained_days:     number;
    block_num:          number;
    currency_supply:    number;
}

interface Accounts {
    "0":    number;
    "1":    number;
    total:  number;
}

interface Votes {
    "0"?:     number;
    "1":      number;
    proxies:  number;
    accounts: number;
    total:    number;
}

S3 Bucket URL template

eosvotes

eosvotes::tallies (tallies for eosio.forum voters)

eosvotes::accounts (account details for eosio.forum voters)

eosvotes::proxies (proxies details for eosio.forum voters)

eosio

eosio::delband (self delegated bandwidth amount for all eosio.forum voters)

eosio::voters (complete voters table)

eosforumrcpp

eosforumrcpp::vote (all votes)

eosforumrcpp::proposal (all proposals)