Aigang Smart Contracts for:
- Prediction Market
- Pools
- Insurance product
Full image:
This part with detailed configuration instructions can be found at https://github.com/AigangNetwork/aigang-platform-web
This contract manages addresses for the platform. The web page is reading this contract and loads all available Prediction markets, pools and insurance products. All Functions retails can be found at Address Manager spec
This is Prediction Market Contract needed to run prediction market Web and organize predictions. Full detailed spec can be found at Market spec, PrizeCalclulator spec, ResultStorage spec
This is main contract for token pools collecting. Full detailed spec can be found at Pools spec, PrizeCalclulator spec
This is main contract for insurance product. Full detailed spec can be found at Product spec, PremiumCalculator spec
truffle test --network default
truffle test = truffle test --network development
truffle compile
truffle migrate
mnemonic="accountPhrase" apiKey="infuraApiKey" truffle migrate --network ropsten
sh ./make_flat.sh
Everyone is welcome to contribute this repository, just make sure your code does not have validation issues and builds without errors. Create your feature branch and send us a pull request to the master branch.