Skip to content

precog-markets/precog-dev

Repository files navigation

Precog Dev

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


Prediction Markets and LMSR & LS-LMSR theory:

Repository Structure

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


Mainnet Latest Deployments (Base)

Precog app site: Precog Core


Testnet Latest Deployments (Base Sepolia)

Precog app 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 hardhat chain with configured accounts (useful to test initial deploys).

yarn fork: Starts a local hardhat 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.

License

Precog Dev is licensed under the Business Source License 1.1 (BUSL-1.1), see BUSL_LICENSE, and the MIT License (MIT), see MIT_LICENSE.

Each file in the Precog Dev repository states the applicable license type in the header.


About

Precog Dev - Predict the future. Shape the present.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors