Frankonly / iotex-election

The Ethereum-to-IoTeX Bridge that syncs smart contract states to IoTeX blockchain

Home Page:https://iotex.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

The Ethereum-to-IoTeX Bridge that syncs smart contract states to IoTeX blockchain

https://iotex.io

License:GNU General Public License v3.0


Languages

Language:Go 99.4%Language:Shell 0.4%Language:Dockerfile 0.2%