[{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"conditionOwner","type":"address"},{"indexed":true,"internalType":"uint256","name":"conditionIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"oracle","type":"address"},{"indexed":true,"internalType":"uint256","name":"settlementTime","type":"uint256"},{"indexed":false,"internalType":"int256","name":"triggerPrice","type":"int256"},{"indexed":false,"internalType":"address","name":"lowBetTokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"highBetTokenAddress","type":"address"}],"name":"ConditionPrepared","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"conditionIndex","type":"uint256"},{"indexed":true,"internalType":"int256","name":"settledPrice","type":"int256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ConditionSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"conditionIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"oracle","type":"address"}],"name":"NewMarketGenerated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operatorAddress","type":"address"}],"name":"SetOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"conditionIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"winningAmount","type":"uint256"}],"name":"UserClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"conditionIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"etHStaked","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"prediction","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"UserPrediction","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"autoGeneratedMarkets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"betEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionIndex","type":"uint256"},{"internalType":"uint8","name":"_prediction","type":"uint8"}],"name":"betOnCondition","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_conditionIndex","type":"uint256"},{"internalType":"uint8","name":"_prediction","type":"uint8"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"betOnConditionFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionIndex","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_userAddress","type":"address"},{"internalType":"uint256","name":"_conditionIndex","type":"uint256"}],"name":"claimFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"conditions","outputs":[{"internalType":"string","name":"market","type":"string"},{"internalType":"address","name":"oracle","type":"address"},{"internalType":"int256","name":"triggerPrice","type":"int256"},{"internalType":"uint256","name":"settlementTime","type":"uint256"},{"internalType":"bool","name":"isSettled","type":"bool"},{"internalType":"int256","name":"settledPrice","type":"int256"},{"internalType":"address","name":"lowBetToken","type":"address"},{"internalType":"address","name":"highBetToken","type":"address"},{"internalType":"uint256","name":"totalStakedAbove","type":"uint256"},{"internalType":"uint256","name":"totalStakedBelow","type":"uint256"},{"internalType":"uint256","name":"totalEthClaimable","type":"uint256"},{"internalType":"address","name":"conditionOwner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oracle","type":"address"},{"internalType":"uint256","name":"interval","type":"uint256"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionIndex","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"lbtBalance","type":"uint256"},{"internalType":"uint256","name":"hbtBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestConditionIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"uint256","name":"_settlementTimePeriod","type":"uint256"},{"internalType":"int256","name":"_triggerPrice","type":"int256"},{"internalType":"bool","name":"_initialize","type":"bool"}],"name":"prepareCondition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionIndex","type":"uint256"}],"name":"probabilityRatio","outputs":[{"internalType":"uint256","name":"aboveProbabilityRatio","type":"uint256"},{"internalType":"uint256","name":"belowProbabilityRatio","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operatorAddress","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionIndex","type":"uint256"}],"name":"settleCondition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionIndex","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"}],"name":"userTotalETHStaked","outputs":[{"internalType":"uint256","name":"totalEthStaked","type":"uint256"}],"stateMutability":"view","type":"function"}]