denisgranha / gnosis-contracts

Collection of smart contracts for the Gnosis prediction market platform.

Home Page:https://www.gnosis.pm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gnosis Smart Contracts

Slack Status

Collection of smart contracts for the Gnosis prediction market platform (https://www.gnosis.pm). To interact with those contracts have a look at (https://github.com/gnosis/gnosis.js/).

Install

Install requirements with pip:

git clone https://github.com/gnosis/gnosis-contracts.git
cd gnosis-contracts
pip install -r requirements.txt

Install virtual machine environment via vagrant:

cd gnosis-contracts
vagrant up

Test

Run all tests:

cd gnosis-contracts/contracts/tests/
pytest

Run one test:

cd gnosis-contracts/contracts/tests/
pytest utils/test_math.py

Deploy & ABI generation

Deploy all contracts required for the basic framework:

cd gnosis-contracts/contracts/
python ethdeploy.py --f deploy/basicFramework.json --optimize

Generate ABIs for all contracts

cd gnosis-contracts/contracts/
python ethabi.py

Security and Liability

All contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

License

All smart contracts are released under GPL v.3.

Contributors

About

Collection of smart contracts for the Gnosis prediction market platform.

https://www.gnosis.pm

License:GNU General Public License v3.0


Languages

Language:Python 100.0%