iotex-election

module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2019 License: Apache-2.0

README

iotex-election

Collect and process election information from the governance chain (which is Ethereum for now)

Run as a service

  1. dep ensure --vendor-only
  2. rm election.db
  3. go build -o ./bin/server -v ./server
  4. ./bin/server

Tools

Dumper

Build
[foo@bar iotex-election]$  go build -ldflags "-extldflags=-Wl,--allow-multiple-definition" -x -o ./bin/dumper -v ./tools/dumper
Dump votes to csv
[foo@bar iotex-election]$ ./bin/dumper > stats.csv
Run from source
[foo@bar iotex-election]$ go run -ldflags "-extldflags=-Wl,--allow-multiple-definition" tools/dumper/dumper.go > stats.csv

Processor

Build
[foo@bar iotex-election]$ go build -o ./bin/processor -v ./tools/processor
Process votes
[foo@bar iotex-election]$ ./bin/processor
Run from source
[foo@bar iotex-election]$ go run tools/processor/processor.go

Directories

Path Synopsis
client
idl/explorer
Code generated by idl2go from JSON generated by Barrister v0.1.6
Code generated by idl2go from JSON generated by Barrister v0.1.6
pb
test
mock/mock_committee
Package mock_committee is a generated GoMock package.
Package mock_committee is a generated GoMock package.
tools

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL