This repository contains the all smart contracts for the Precog forecasting protocol (Precog Markets).
- Research Corner: Gates Building Prediction Market
- Augur: LMSR and LS-LMSR
- Precog: Interactive LMSR pricing
Dev backend site: Precog Dev (here the deployed version of this repo connected to mainnet contracts)
- PrecogMaster: 0x1eB90323aE74E5FBc3241c1D074cFd0b117d7e8E
- PrecogToken: 0x7779ec685Aa0bf5483B3e0c15dAf246d2d978888
- PrecogMarket: 0xAac4F52016bc3A97D0d841A90f51fA1d7C2BB52b
Core backend site: Precog Core
- PrecogMasterV7: 0x5fEa67Ef543615Bf8A6141AD63095e74c94Af1C4
- PrecogToken: 0x7779ec685Aa0bf5483B3e0c15dAf246d2d978888
- PrecogMarketV7: 0xCA1Ef8240D50c797Fee174a082dF5B47aFB328AE (recipe for all markets)
Core backend site: Precog Core Staging
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
- Node (>= v18.17)
- Yarn (v1 or v2+)
- Git
yarn install
:
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.