Coder Social home page Coder Social logo

soonkuk / congress-voting-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bosnet/congress-voting-server

0.0 0.0 0.0 389 KB

Congress Voting server for BOScoin

Home Page: https://boscoin.io

License: GNU General Public License v3.0

JavaScript 89.13% Dockerfile 0.38% Makefile 0.10% CSS 4.07% HTML 6.33%

congress-voting-server's Introduction

BOScoin Congress Voting Server

Usage

To run linting and testing:

$ npm run lint
$ npm test

For development:

$ npm run dev

The server will run in http://localhost:3000.

To run server:

$ npm start

Tasks

To submit new proposal into sebak:

$ SEBAK_PROPOSER_SECRET=<YOUR_SECRET> \
  SEBAK_PROPOSER_ADDRESS=<YOUR_ADDRESS> \
  SEBAK_SEQUENCE_ID=<YOUR_CURRENT_SEQUENCE_ID> \
  SEBAK_CONTRACT_PATH=<CONTRACT_YAML_FILE_RELATIVE_PATH> \
  SEBAK_VOTING_START=<BLOCK_HEIGHT> \
  SEBAK_VOTING_END=<BLOCK_HEIGHT> \
  npm run task new-proposal

To save new proposals from sebak:

$ SEBAK_PROPOSER_ADDRESS=<YOUR_ADDRESS> \
  npm run task save-proposals

To submit congress voting results:

$ SEBAK_PROPOSER_SECRET=<YOUR_SECRET> \
  SEBAK_PROPOSER_ADDRESS=<YOUR_ADDRESS> \
  SEBAK_SEQUENCE_ID=<YOUR_CURRENT_SEQUENCE_ID> \
  SEBAK_VOTING_RESULT_STORAGES=<VOTING_RESULT_STORAGES> \
  npm run task report-voting-result

SEBAK_VOTING_RESULT_STORAGES's format is comma separated list of <strage>|<URL>|<bucket name> like s3|http://test.example.com|my-test-bucket,s3|http://boscoin.io|second-bucket.

To confirm congress voting results:

$ SEBAK_PROPOSER_SECRET=<YOUR_SECRET> \
  SEBAK_PROPOSER_ADDRESS=<YOUR_ADDRESS> \
  SEBAK_VOTING_RESULT_STORAGES=<VOTING_RESULT_STORAGES> \
  npm run task confirm-voting-result

To extract congress member list for PF00:

$ SEBAK_START_DATE="" npm run task aggregate-pf00-candidates

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.