FireLotto - an blockchain lottery analytical statistics tool that collect information about tickets, chosen numbers, draw results.
- Java 8
- Sbt 0.13.16
- PostgreSQL 9.x
- Copy somewhere
src/main/configs/config_template.json
- Setup Database connection
- Change
statsOutDir
path variable to let program collect all output statistics - Change
walletsOutDir
path variable to let program know where to find wallets information (passwords is faked) - Look at
src/main/build.sbt
and setup Database connection - Register at
myetherapi.com
and get your ApiKey, then place them at yourconfig.json
>web3Provider
>apiKey
- run
sbt gen-tables
to generate Slick database model - to generate Java code from Solidity smart contract you need to have
solc
compiler andweb3j
generatorsolc <contract>.sol --bin --abi --optimize -o <output-dir>/
web3j solidity generate /path/to/<smart-contract>.bin /path/to/<smart-contract>.abi -o /path/to/src/main/java -p com.your.organisation.name
- make sure that you defined full path to application config like
firelotto-stats.jar path/to/config/config.json
template of config placed atsrc/main/configs/config_template.json
- impossible to improve speed of collection information because we can't use local Ethereum node here is explanation and need to use external Ethereum node, there are implemented load balancer and we have big chance to be blocked