This repo contains Ignite Market contracts. The product description can be found here:
IgniteMarket contracts represent the core components of the Ignite Market. The three contracts support the market's basic functionalities:
- Conditional Tokens
- FPMM Factory
- Oracle (FDC Connection)
Conditional tokens and FPMM are Gnosis-based smart contracts created for prediction markets. The solution adds minor changes and updates to tests for these contracts. These contracts were also already audited. Regardless, additional audit will be done.
Original source code is available here:
- https://github.com/gnosis/conditional-tokens-market-makers/
- https://github.com/gnosis/conditional-tokens-contracts
Instructions for development.
Copy secrets.sample.json
to secrets.json
and fill out missing data.
Run npm test
.
Run npm run build
.
Run npm run flatten
.
Note: Verify contract on coston2 scan using website verify feature & flatened contract from this repo
Smart contract deployment instructions.
Run npx hardhat run --network coston2 ./scripts/deploy-conditional-tokens.js
.
Run npx hardhat run --network coston2 ./scripts/deploy-fpmm-factory.js
.
Before deploying ignite oracle, you need to set the following parameters (in deploy-oracle.js
):
- conditionalTokens address
- verification address (at this point we're using DummyVerification.sol instead of JsonApiVerification.sol - not yet deployed by Flare)
Run npx hardhat run --network coston2 ./scripts/deploy-oracle.js
.