This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "./PredictionGame.sol"; | |
contract PredictionFactory { | |
address[] public allGames; | |
mapping(address => address[]) public userGames; | |
event GameCreated(address game, address creator); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Still to be implemented |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | |
contract PredictionGame { | |
enum Side { BULL, BEAR } | |
address public immutable creator; // e.g., 0xYourWallet | |
string public tokenPair; // e.g., "ETH/USD" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "./PredictionGame.sol"; | |
contract PredictionFactory { | |
address public immutable owner; | |
address[] public allGames; | |
mapping(address => address[]) public gamesByCreator; |
OlderNewer