B
B
BOSCore
Search
K

5. BOS Referendum - Vote Tally

Aggregates proposals/votes/voter staked weights from eosio.forum & auditor.bos.

Install

git clone https://github.com/boscore/referendum.git
cd referendum
git checkout feature/vote-tally
cd vote-tally
npm install

Quick Start

npm start

ENV Variables

# Configuration
CHAIN="bos"
NODEOS_ENDPOINT="https://bos.eosn.io"
CONTRACT_FORUM="eosio.forum"
CONTRACT_TOKEN="eosio.token"
TOKEN_SYMBOL="BOS"
# AWS Config
AWS_BUCKET="bos.referendum"
AWS_ACCESS_KEY_ID="<ACCESS KEY>"
AWS_SECRET_ACCESS_KEY="<SECRET KEY>"
AWS_REGION="us-east-1"

Using eosc forum

vote
bosc forum vote [voter] [proposal_name] [vote_value]
proposal
bosc forum propose [proposer] [proposal_name] [title] [proposal_expiration_date]

S3 Bucket URL template

referendum (tally) Aggregated Data
eosio.forum
auditor.bos
eosio

auditor.bos TABLES

eosio.forum TABLES

eosio TABLES