side voter for polynetwork.
git clone https://github.com/polynetwork/side-voter
cd side-voter
make clean && make
Build binary with docker
git clone https://github.com/polynetwork/side-voter.git
cd side-voter
make build
Before running, you need feed the configuration file config.json
.
{
"PolyConfig": {
"RestURL": "http://seed1.poly.network:20336",
"WalletFile": "poly.node.dat"
},
"BoltDbPath": "db",
"WhitelistMethods": [
"add",
"remove",
"swap",
"unlock",
"addExtension",
"removeExtension",
"registerAsset",
"onCrossTransfer"
],
"SideConfig": {
"SideChainId": 19,
"ECCMContractAddress": "0x7ceA671DABFBa880aF6723bDdd6B9f4caA15C87B",
"RestURL": [
"https://kovan.optimism.io"
]
}
}
Now, you can start voter as follow:
./side_voter -conf config.json
It will generate logs under ./Log
and check relayer status by view log file.