[go: nahoru, domu]

Skip to content

FireLotto - an blockchain lottery analytical statistics tool

License

Notifications You must be signed in to change notification settings

AlexanderBykin/FireLottoStats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FireLottoStats

FireLotto - an blockchain lottery analytical statistics tool that collect information about tickets, chosen numbers, draw results.

Build requirements

  • Java 8
  • Sbt 0.13.16
  • PostgreSQL 9.x

Configuration

  • 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 your config.json > web3Provider > apiKey

Code generation

  • run sbt gen-tables to generate Slick database model
  • to generate Java code from Solidity smart contract you need to have solc compiler and web3j generator
    solc <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

Run

  • make sure that you defined full path to application config like firelotto-stats.jar path/to/config/config.json template of config placed at src/main/configs/config_template.json

Known issues

  • 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

About

FireLotto - an blockchain lottery analytical statistics tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published