Skip to content

algopy_testing.serialize

identity(→ _T)
get_native_to_arc4_serializer(→ _Serializer[Any, Any])
serialize_to_bytes(→ bytes)
type_of(→ type)Returns the type of value, this will also ensure the type is fully parametrized
native_to_arc4(→ algopy_testing.arc4._ABIEncoded)
compare_type(→ bool)
deserialize_from_bytes(→ _T)

get_native_to_arc4_serializer(typ: type) → _Serializer[Any, Any]

Section titled “get_native_to_arc4_serializer(typ: type) → _Serializer[Any, Any]”

serialize_to_bytes(value: object) → bytes

Section titled “serialize_to_bytes(value: object) → bytes”

Returns the type of value, this will also ensure the type is fully parametrized if it is a generic type.

native_to_arc4(value: object) → _ABIEncoded

Section titled “native_to_arc4(value: object) → _ABIEncoded”

compare_type(value_type: type, typ: type) → bool

Section titled “compare_type(value_type: type, typ: type) → bool”

deserialize_from_bytes(typ: type[_T], bites: bytes) → _T

Section titled “deserialize_from_bytes(typ: type[_T], bites: bytes) → _T”