Skip to content

solzarr/EVM-prediction-market-smart-contract

Repository files navigation


EVM Prediction Market Contracts

A comprehensive collection of smart contracts for building prediction market platforms compatible with EVM chains, including BASE.


Overview

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.


Installation

Install requirements with npm:

npm install @gnosis.pm/pm-contracts

Testing and Linting

Run all tests (requires Node version >=7 for async/await; TestRPC runs automatically):

npm test

Run tests matching a pattern:

TEST_GREP='your-pattern' npm test

Lint the JavaScript code:

npm run lint

Compile and Deploy

Ensure your RPC provider (e.g., TestRPC or a local node) is running on port 8545.

Compile all contracts to generate ABI and bytecode:

npm run compile

Migrate contracts to your network:

npm run migrate

Note: These commands are wrappers around Truffle commands. You can pass additional options via --.


Network Management

Show deployed contract addresses on all networks:

npm run networks

Clean network artifacts:

npm run networks -- --clean

Inject network info from networks.json into build artifacts:

npm run injectnetinfo

Extract network info to networks.json (overwrites existing):

npm run extractnetinfo

Gas Usage Measurements

Log gas statistics for your contracts:

npm run measuregasstats

Results are stored in build/gas-stats.json.


Documentation

Online documentation

Hosted at: https://gnosis-pm-contracts.readthedocs.io/en/latest/

Build local docs with Sphinx

  1. Navigate to the docs directory:
cd docs
  1. Install dependencies:
pip install -r requirements.txt
  1. Build HTML documentation:
make html

Your Contract Details

Add your specific contract information here, such as:

  • Contract Name
  • Contract Address(es)
  • Deployment Date
  • Network Info
  • Usage instructions or specific notes

Connect with Me

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:


Contributing

Contributions are welcome! Please open issues or pull requests to improve this project.


About

EVM prediction market smart contract: support for evm compatible chains such as BASE, XLayer for prediction market

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors