Skip to content
The Ethereum-to-IoTeX Bridge that syncs smart contract states to IoTeX blockchain
Go Other
  1. Go 99.7%
  2. Other 0.3%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
carrier
client
committee
contract
db
pb
server
test/mock
types
util
votesync
.DS_Store
.codecov.yml
.gitignore
Dockerfile
LICENSE
README.md
committee.yaml
compile.sh
genmock.sh
go.mod
go.sum move sort to util (#119) Oct 2, 2019
main.go
server.yaml
sqlite3_analyzer

README.md

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
You can’t perform that action at this time.