项目作者: EOS-Nation

项目描述 :
EOS Votes Database
高级语言: TypeScript
项目地址: git://github.com/EOS-Nation/eosvotes-database.git
创建时间: 2018-06-29T20:06:54Z
项目社区:https://github.com/EOS-Nation/eosvotes-database

开源协议:MIT License

下载


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.

  1. $ 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

Article XI - Amending

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.