Skip to content

circle-dot/precog-dev

Repository files navigation

Precog Dev

This repository contains all smart contracts for the Precog forecasting protocol (Precog Markets).


Prediction Markets and LMSR theory:

Repository Structure

Dev backend site: Precog Dev (here the deployed version of this repo)


Mainnet Latest Deployments (Base)

Core backend site: Precog Core


Testnet Latest Deployments (Base Sepolia)

Core backend site: Precog Core Staging


Utility commands

yarn test: Run all tests on latest contract implementations (useful to check all requirements and dependencies).

yarn test-details: Run tests on latest implementations with verbose details (useful on developing new features).

yarn test-gas: Run all tests with the gas profiler enabled to check/optimize gas costs.

yarn chain: Starts a local harhat chain with configured accounts (useful to test initial deploys).

yarn fork: Starts a local harhat fork chain with configured accounts (useful to test new version deploys).

yarn deploy: Runs deploy script. It's recommended to test it over a fork network before live chain run.

yarn start: Runs GUI server (useful to test new releases or features).

yarn lint: Runs Hardhat and NextJs linters to ensure best practices.

Note: all available commands could be found on the package.json file


Develop/Contribute

Requirements

Installing dependencies

yarn install:


Base project Documentation

This project used the Scaffold-ETH-2 project as template. Visit the Docs to find useful scripts and guides:

  • ️ Built using NextJS, RainbowKit, Hardhat, Wagmi and Viem.

About

Forecast the future through collective Insight

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •