Name: pm-contracts
Owner: GNOSIS
Description: Collection of smart contracts for the Gnosis prediction market platform.
Created: 2017-05-19 12:38:57.0
Updated: 2018-05-21 15:26:12.0
Pushed: 2018-05-23 16:00:55.0
Homepage: https://www.gnosis.pm
Size: 4887
Language: Solidity
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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/pm-js/).
install
async/await
, and will automatically run TestRPC in the background):test
TEST_GREP
environment variable_GREP='short selling' npm test
run lint
These commands apply to the RPC provider running on port 8545. You may want to have TestRPC running in the background. They are really wrappers around the corresponding Truffle commands.
run compile
run migrate
run networks
Command line options for truffle
can be passed down through NPM by preceding the options list with --
. For example:
run networks -- --clean
Network artifacts from running migrations will contain addresses of deployed contracts on the Kovan and Rinkeby testnets.
networks.json
and inject it into contract build artifacts. This is done prepublish as well.run injectnetinfo
networks.json
.Be aware that this will clobber networks.json
, so be careful with this command:
run extractnetinfo
build/gas-stats.json
run measuregasstats
There is a copy version hosted online at https://gnosis-pm-contracts.readthedocs.io/en/latest/
Will install Sphinx and Solidity Domain for Sphinx:
ocs
install -r requirements.txt
html
All contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
All smart contracts are released under GPL v.3.