Skip to content

EOS-Nation/eosvotes-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EOS Votes Database

❗️DEPRECATED ❗️

This library is no longer being maintained, please refer to the following EOSIO GraphQL and/or EOSIO MongoDB Queries.

The main goal with EOS Votes Database is to "listen" and store data into a well organized/structured MongoDB with an exposed GraphQL endpoint.

Goals

  • Build listeners on eosio & eosio.forum that dumps action data into MongoDB
  • Tracking for EOS token Staked Balance
  • Define GraphQL Data schema
  • Setup CLI for ease of use
  • Resistant to spamming
  • Leverage EOSIO MongoDB

How to Start

Launch application using Docker Compose.

$ docker-compose up

Install MongoDB Compass

https://www.mongodb.com/download-center#compass

GraphQL Endpoint

For this example, we are using @thomasbcox's message as a Post UUID.

We can easily calculate that the post has 422.1 EOS of voting power towards 💪.

image

Database

image

EOS Constitution

This Constitution and its subordinate documents shall not be amended except by a vote of the token holders with no less than 15% vote participation among tokens and no fewer than 10% more Yes than No votes, sustained for 30 continuous days within a 120 day period.