# Path: python3-src/graphenebase/objecttypes.py



from binascii import hexlify, unhexlify
from calendar import timegm
from datetime import datetime
from collections import OrderedDict
from .objecttypes import object_type
import time
import struct
import json
    def __str__(self):
        return str(self.data)


class VoteId():
    def __init__(self, vote):
        parts = vote.split(":")
        assert len(parts) == 2
        self.type = int(parts[0])
        self.instance = int(parts[1])

    def __bytes__(self):
        binary = (self.type & 0xff) | (self.instance << 8)
        return struct.pack("<I", binary)

    def __str__(self):
        return "%d:%d" % (self.type, self.instance)


class ObjectId():
    """ Encodes object/protocol ids
    """
    def __init__(self, object_str, type_verify=None):
        if len(object_str.split(".")) == 3:
            space, type, id = object_str.split(".")
            self.space = int(space)
            self.type = int(type)
            self.instance = Id(int(id))
            self.Id = object_str
            if type_verify:

# Path: python3-src/graphenebase/objecttypes.py



# Path: python3-src/graphenebase/types.py
from binascii import hexlify, unhexlify
from calendar import timegm
from datetime import datetime
from collections import OrderedDict
from .objecttypes import object_type
import time
import struct
import json

    def __str__(self):
        return str(self.data)


class VoteId():
    def __init__(self, vote):
        parts = vote.split(":")
        assert len(parts) == 2
        self.type = int(parts[0])
        self.instance = int(parts[1])

    def __bytes__(self):
        binary = (self.type & 0xff) | (self.instance << 8)
        return struct.pack("<I", binary)

    def __str__(self):
        return "%d:%d" % (self.type, self.instance)


class ObjectId():
    """ Encodes object/protocol ids
    """
    def __init__(self, object_str, type_verify=None):
        if len(object_str.split(".")) == 3:
            space, type, id = object_str.split(".")
            self.space = int(space)
            self.type = int(type)
            self.instance = Id(int(id))
            self.Id = object_str
            if type_verify:

                assert object_type[type_verify] == int(type),\