algopy_testing.models.account
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”AccountFields | |
|---|---|
AssetHolding | |
AccountContextData | Stores account-related information. |
Account | Represents a type that is a single bytes value. |
Functions
Section titled “Functions”get_empty_account(→ AccountContextData) |
|---|
T |
|---|
class AccountFields
Section titled “class AccountFields”Bases: TypedDict
balance : algopy.UInt64
Section titled “balance : algopy.UInt64”min_balance : algopy.UInt64
Section titled “min_balance : algopy.UInt64”auth_address : algopy.Account
Section titled “auth_address : algopy.Account”total_num_uint : algopy.UInt64
Section titled “total_num_uint : algopy.UInt64”total_num_byte_slice : algopy.UInt64
Section titled “total_num_byte_slice : algopy.UInt64”total_extra_app_pages : algopy.UInt64
Section titled “total_extra_app_pages : algopy.UInt64”total_apps_created : algopy.UInt64
Section titled “total_apps_created : algopy.UInt64”total_apps_opted_in : algopy.UInt64
Section titled “total_apps_opted_in : algopy.UInt64”total_assets_created : algopy.UInt64
Section titled “total_assets_created : algopy.UInt64”total_assets : algopy.UInt64
Section titled “total_assets : algopy.UInt64”total_boxes : algopy.UInt64
Section titled “total_boxes : algopy.UInt64”total_box_bytes : algopy.UInt64
Section titled “total_box_bytes : algopy.UInt64”incentive_eligible : bool
Section titled “incentive_eligible : bool”last_heartbeat : algopy.UInt64
Section titled “last_heartbeat : algopy.UInt64”last_proposed : algopy.UInt64
Section titled “last_proposed : algopy.UInt64”get_empty_account() → AccountContextData
Section titled “get_empty_account() → AccountContextData”class AssetHolding
Section titled “class AssetHolding”balance : algopy.UInt64
Section titled “balance : algopy.UInt64”frozen : bool
Section titled “frozen : bool”class AccountContextData
Section titled “class AccountContextData”Stores account-related information.
Attributes: : opted_assets (dict[int, AssetHolding]): Mapping of asset IDs to holdings. opted_apps (dict[int, algopy.Application]): Mapping of application IDs to instances. fields (AccountFields): Additional account fields.
opted_assets : dict[int, AssetHolding]
Section titled “opted_assets : dict[int, AssetHolding]”opted_apps : dict[int, algopy.Application]
Section titled “opted_apps : dict[int, algopy.Application]”class Account
Section titled “class Account”Bases: algopy_testing.protocols.BytesBacked
Represents a type that is a single bytes value.
property balance : algopy.UInt64
Section titled “property balance : algopy.UInt64”property min_balance : algopy.UInt64
Section titled “property min_balance : algopy.UInt64”is_opted_in(asset_or_app: algopy.Asset | algopy.Application) → bool
Section titled “is_opted_in(asset_or_app: algopy.Asset | algopy.Application) → bool”classmethod from_bytes(value: algopy.Bytes | bytes) → Self
Section titled “classmethod from_bytes(value: algopy.Bytes | bytes) → Self”Construct an instance from the underlying bytes (no validation)
property bytes : Bytes
Section titled “property bytes : Bytes”Get the underlying Bytes.