A comprehensive collection of smart contracts for building prediction market platforms compatible with EVM chains, including BASE.
This repository provides a suite of smart contracts supporting prediction markets on EVM-compatible blockchains. It includes tools for deployment, testing, and network management, enabling developers to efficiently build and maintain prediction market applications.
npm install @gnosis.pm/pm-contractsnpm testTEST_GREP='your-pattern' npm testnpm run lintEnsure your RPC provider (e.g., TestRPC or a local node) is running on port 8545.
npm run compilenpm run migrateNote: These commands are wrappers around Truffle commands. You can pass additional options via --.
npm run networksnpm run networks -- --cleannpm run injectnetinfonpm run extractnetinfoLog gas statistics for your contracts:
npm run measuregasstatsResults are stored in build/gas-stats.json.
Hosted at: https://gnosis-pm-contracts.readthedocs.io/en/latest/
- Navigate to the
docsdirectory:
cd docs- Install dependencies:
pip install -r requirements.txt- Build HTML documentation:
make htmlAdd your specific contract information here, such as:
- Contract Name
- Contract Address(es)
- Deployment Date
- Network Info
- Usage instructions or specific notes
If you have any questions or are interested in collaboration, please do not hesitate to contact me via DM.
Feel free to reach out or connect:
Contributions are welcome! Please open issues or pull requests to improve this project.