This repository contains all smart contracts for the Precog forecasting protocol (Precog Markets).
- Cultivate Labs: Types of Prediction Markets
- Precog: Interactive LS-LMSR Simulator
- Research Corner: Gates Building Prediction Market
- Augur: LMSR and LS-LMSR
- Precog: Liquidity Sensitive LMSR
- Precog: LS-LMSR Max loss proof
Precog Dev site: Precog Dev (here the deployed version of this repo)
- PrecogMaster: 0x00000000000c109080dfa976923384b97165a57a
- PrecogMarket: 0x44769bE6853918e939281b2f669f9a58608Cb55B (Recipe for all markets)
- PrecogRealityOracle: 0xd7bE03206daFa4552ab58CD3CFC191426404C77D
Precog app site: Precog Core
- PrecogMasterV8: 0x61ec71F1Fd37ecc20d695E83F3D68e82bEfe8443
- PrecogMarketV8: 0xfB4CD4779980896893B1855ad5A89E3ACCA7fc87 (Recipe for all markets)
- PrecogRealityOracleV2: 0xbd8B7cb4924aAdf579b6Dbd77CA6cF6e56029f37
Precog app 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 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.jsonfile
- Node (>= v18.17)
- Yarn (v1 or v2+)
- Git
yarn install:
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.
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.