Skip to content

algopy_testing.primitives.array

ImmutableFixedArrayAn immutable fixed length Array of the specified type and length.
FixedArrayA fixed length Array of the specified type and length.
ImmutableArrayFor algopy testing only, allows serializing to/from bytes for types that aren’t
ReferenceArray
ArrayA dynamically sized Array of the specified type.
StructBase class for Struct types.
zero_bytes(→ _T)

Bases: algopy_testing.protocols.Serializable, Generic[_TArrayItem, _TArrayLength]

An immutable fixed length Array of the specified type and length.

classmethod full(item: _TArrayItem) → Self

Section titled “classmethod full(item: _TArrayItem) → Self”

classmethod from_bytes(value: bytes) → Self

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

Bases: algopy_testing.protocols.Serializable, algopy_testing.mutable.MutableBytes, Generic[_TArrayItem, _TArrayLength]

A fixed length Array of the specified type and length.

classmethod full(item: _TArrayItem) → Self

Section titled “classmethod full(item: _TArrayItem) → Self”

classmethod from_bytes(value: bytes) → Self

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

Bases: algopy_testing.protocols.Serializable, Generic[_TArrayItem]

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”

Bases: collections.abc.Reversible[_TArrayItem]

extend(other: Iterable[_TArrayItem]) → None

Section titled “extend(other: Iterable[_TArrayItem]) → None”

Bases: algopy_testing.protocols.Serializable, algopy_testing.mutable.MutableBytes, Generic[_TArrayItem]

A dynamically sized Array of the specified type.

extend(other: Iterable[_TArrayItem]) → None

Section titled “extend(other: Iterable[_TArrayItem]) → None”

classmethod from_bytes(value: bytes) → Self

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

Bases: algopy_testing.protocols.Serializable, algopy_testing.mutable.MutableBytes

Base class for Struct types.

classmethod from_bytes(value: bytes) → Self

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