def METHOD_NAME(chainId: int, verifyingContract: bytes, member: bytes, registered: int,
                                   eula: str, profile: Optional[str]) -> dict:
    """
    :param chainId:
    :param verifyingContract:
    :param member:
    :param registered:
    :param eula:
    :param profile:
    :return:
    """
    assert is_chain_id(chainId)
    assert is_address(verifyingContract)
    assert is_address(member)
    assert is_block_number(registered)
    assert type(eula) == str
    assert profile is None or type(profile) == str
    data = {
        'types': {
            'EIP712Domain': [
                {
                    'name': 'name',
                    'type': 'string'
                },
                {
                    'name': 'version',
                    'type': 'string'
                },
            ],
            'EIP712MemberRegister': [
                {
                    'name': 'chainId',
                    'type': 'uint256'
                },
                {
                    'name': 'verifyingContract',
                    'type': 'address'
                },
                {
                    'name': 'member',
                    'type': 'address'
                },
                {
                    'name': 'registered',
                    'type': 'uint256'
                },
                {
                    'name': 'eula',
                    'type': 'string'
                },
                {
                    'name': 'profile',
                    'type': 'string'
                },
            ]
        },
        'primaryType': 'EIP712MemberRegister',
        'domain': {
            'name': 'XBR',
            'version': '1',
        },
        'message': {
            'chainId': chainId,
            'verifyingContract': verifyingContract,
            'member': member,
            'registered': registered,
            'eula': eula,
            'profile': profile or '',
        }
    }
    return data