Skip to content

circle-dot/precog-dev

Repository files navigation

Precog Dev

This repository contains the 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 connected to mainnet contracts)


Mainnet Deployments (Base)

Core backend site: Precog Core


Testnet deployed (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 test with the gas profiler enabled to check/optimize gas costs (used in GitHub Action in every main branch push).

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 version and/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 as Template. Visit the Docs to find useful scripts and guides:

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

About

Forecast the future with precog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published