algopy_testing.protocols
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”Serializable | For algopy testing only, allows serializing to/from bytes for types that aren’t |
|---|---|
BytesBacked | Represents a type that is a single bytes value. |
UInt64Backed | Represents a type that is a single uint64 value. |
class Serializable
Section titled “class Serializable”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:
abstractmethod serialize() → bytes
Section titled “abstractmethod serialize() → bytes”class BytesBacked
Section titled “class BytesBacked”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)
property bytes : algopy.Bytes
Section titled “property bytes : algopy.Bytes”- Abstractmethod:
Get the underlying Bytes.
class UInt64Backed
Section titled “class UInt64Backed”Represents a type that is a single uint64 value.
classmethod from_int(value: int) → Self
Section titled “classmethod from_int(value: int) → Self”- Abstractmethod:
Construct an instance from the underlying bytes (no validation)
property int_ : int
Section titled “property int_ : int”- Abstractmethod:
Get the underlying Bytes.