Read-only getter to fetch market metadata by market_id
fn get_market(env: soroban_sdk::Env, market_id: u64) -> MarketMeta
Initialize the factory with the core market contract address
fn initialize(env: soroban_sdk::Env, market_contract: soroban_sdk::Address)
Read-only getter to list all market IDs
fn list_markets(env: soroban_sdk::Env) -> soroban_sdk::Vec
Creates a new prediction market. Anyone can call this. Triggers downstream contract creation/initialization on the market contract. Returns the newly generated market_id.
fn create_market(
env: soroban_sdk::Env,
creator: soroban_sdk::Address,
question: soroban_sdk::Symbol,
resolution_time: u64,
oracle_id: soroban_sdk::Address,
) -> u64