Skip to content

algopy_testing.state.utils

serialize(→ SerializableValue)
deserialize(→ _TValue)
cast_from_bytes(→ _TValue)assuming _TValue to be one of the followings:
cast_to_bytes(→ bytes)
get_account(→ algopy.Account)
SerializableValue

serialize(value: _TValue) → SerializableValue

Section titled “serialize(value: _TValue) → SerializableValue”

deserialize(typ: type[_TValue], value: SerializableValue) → _TValue

Section titled “deserialize(typ: type[_TValue], value: SerializableValue) → _TValue”

cast_from_bytes(typ: type[_TValue], value: bytes) → _TValue

Section titled “cast_from_bytes(typ: type[_TValue], value: bytes) → _TValue”

assuming _TValue to be one of the followings: : - bool,

  • UInt64Backed
  • BytesBacked

get_account(account_or_index: algopy.Account | algopy.UInt64 | int) → algopy.Account

Section titled “get_account(account_or_index: algopy.Account | algopy.UInt64 | int) → algopy.Account”