from typing import Set


def chain_id_set_from_matchmaking_claim(claim: dict, level: int) -> Set[str]:
    """Get a set of chain ids from a matchmaking claim of a particular level
    Args:
        claim: dictionary of claim from matchmaking
        level: level to get the set of chains for
    Returns:
        set of chain ids
    """
    return set(claim["validations"][f"l{level}"].keys())