packages.fetchai.protocols.state_
update.serialization
Serialization module for state_update protocol.
StateUpdateSerializer Objects
class StateUpdateSerializer(Serializer)
Serialization for the 'state_update' protocol.
encode
| @staticmethod
| encode(msg: Message) -> bytes
Encode a 'StateUpdate' message into bytes.
Arguments:
msg
: the message object.
Returns:
the bytes.
decode
| @staticmethod
| decode(obj: bytes) -> Message
Decode bytes into a 'StateUpdate' message.
Arguments:
obj
: the bytes object.
Returns:
the 'StateUpdate' message.