Create a market
function createCategoricalMarket(CreateMarketParams calldata params) external returns (address)struct CreateMarketParams {
string marketName; // Used only in categorical, multi categorical, and scalar markets. In multi scalar markets, the market name is formed using questionStart + outcomeType + questionEnd.
string[] outcomes; // The market outcomes, doesn't include the INVALID_RESULT outcome
string questionStart; // Used to build the Reality question on multi scalar markets
string questionEnd; // Used to build the Reality question on multi scalar markets
string outcomeType; // Used to build the Reality question on multi scalar markets
uint256 parentOutcome; // conditional outcome to use (optional)
address parentMarket; // conditional market to use (optional)
string category; // Reality question category
string lang; // Reality question language
uint256 lowerBound; // Lower bound, only used for scalar markets
uint256 upperBound; // Upper bound, only user for scalar markets
uint256 minBond; // Min bond to use on Reality
uint32 openingTime; // Reality question opening time
string[] tokenNames; // Name of the ERC20 tokens associated to each outcome
}Last updated