pub fn create_market<'info>(
    ctx: Context<'_, '_, '_, 'info, CreateMarket<'info>>,
    _treasury_owner_bump: u8,
    name: String,
    description: String,
    mutable: bool,
    price: u64,
    pieces_in_one_wallet: Option<u64>,
    start_date: u64,
    end_date: Option<u64>,
    gating_config: Option<GatingConfig>
) -> Result<()>