Skip to content

algopy_testing.protocols

SerializableFor algopy testing only, allows serializing to/from bytes for types that aren’t
BytesBackedRepresents a type that is a single bytes value.
UInt64BackedRepresents a type that is a single uint64 value.

For algopy testing only, allows serializing to/from bytes for types that aren’t BytesBacked.

classmethod from_bytes(value: bytes) → Self

Section titled “classmethod from_bytes(value: bytes) → Self”
  • Abstractmethod:

Represents a type that is a single bytes value.

classmethod from_bytes(value: algopy.Bytes | bytes) → Self

Section titled “classmethod from_bytes(value: algopy.Bytes | bytes) → Self”
  • Abstractmethod:

Construct an instance from the underlying bytes (no validation)

  • Abstractmethod:

Get the underlying Bytes.

Represents a type that is a single uint64 value.

  • Abstractmethod:

Construct an instance from the underlying bytes (no validation)

  • Abstractmethod:

Get the underlying Bytes.