BOSCore
  • BOSCore Documentation
  • BOSCore
    • Essentials
      • IBC (Inter-blockchain Communication)
        • User Guide
        • Token Registration and Management
        • ibc_plugin_bos
        • ibc_plugin_eos
        • Upgrade IBC with EOSIO v1.8
        • ibc.token
        • ibc.chain
      • 3s LIB (Batched Byzantine Tolerance Algorithm)
        • PART I BOS LIB Acceleration Solution: Batch PBFT
        • PART II BOS Batch-PBFT Upgrade Solution
        • Algorithm for improving EOSIO consensus speed based on Batch-PBFT
    • Ecosystem
      • BOSWPS (BOS Improvement Proposal)
        • 1. BOS Improvement Proposal Example
        • 2. Contract Deployment Procedure
        • 3. Referendum Execution Procedure
        • 4. BOS Development Incentive program
        • 5. BOS Referendum - Vote Tally
        • 6. auditor.bos - a contract that elect the auditors for boswps.io
        • 7. eosio.forum - simple forum, messaging and voting system for BOS
        • 8. escrow.bos - a contract that holds funds in escrow
      • BET (BOS Executive Team)
        • BET Contract design Guideline
        • bet.bos - BOS Bet Elections Contract
        • DPOS Borda Count Theory
      • BOS Oracle
        • BOS.Oracle: Witness and Changes
        • BOS Oracle Deployment
    • Resources
      • BOS Whitepapers
      • BOS Community
      • BOS Bug Bounty
Powered by GitBook
On this page

Was this helpful?

  1. BOSCore
  2. Ecosystem
  3. BOSWPS (BOS Improvement Proposal)

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

Previous4. BOS Development Incentive programNext6. auditor.bos - a contract that elect the auditors for boswps.io

Last updated 5 years ago

Was this helpful?

https://api.boswps.com/{scope}/{table}/{block_num}.json
referendum::forum.tallies
referendum::forum.accounts
referendum::forum.proxies
referendum::auditor.tallies
referendum::auditor.accounts
referendum::auditor.proxies
referendum::delband
referendum::voters
auditor.bos::votes
auditor.bos::votejson
auditor.bos::candidates
auditor.bos::auditors
auditor.bos::config
auditor.bos::bios
eosio.forum::vote
eosio.forum::proposal
eosio::voters
eosio::stats