Skip to content

Collection of smart contracts for the Gnosis prediction market platform.

License

Notifications You must be signed in to change notification settings

collinc97/gnosis-contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/). A documentation can be found here.

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%