Module algoappdev.utils
Common utilities imported in other modules.
Functions
def address_to_idx(address: str) ‑> int-
Calculate the integer value of a key, modulo
2**64. def from_value(value: algosdk.v2client.models.teal_value.TealValue) ‑> Union[int, bytes]-
Convert a TEAL value to it's Python value.
def idx_to_address(idx: int) ‑> str-
Build an address whose integer value is
idx. def to_key_value(key: bytes, value: Union[int, bytes]) ‑> algosdk.v2client.models.teal_key_value.TealKeyValue-
Build a TEAL key-value pair from Python objects.
def to_value(value: Union[int, bytes]) ‑> algosdk.v2client.models.teal_value.TealValue-
Convert a Python value to it's TEAL value.
Classes
class AccountMeta (key: str, address: str)-
The meta-data required to lookup an account.
Ancestors
- builtins.tuple
Instance variables
var address : str-
Alias for field number 1
var key : str-
Alias for field number 0
class AlgoAppDevError (*args, **kwargs)-
Base for all errors raised from the package.
Ancestors
- builtins.Exception
- builtins.BaseException
class AppMeta (app_id: int, address: str)-
The meta-data required to lookup an app.
Ancestors
- builtins.tuple
Static methods
def from_result(result: Dict[~KT, ~VT]) ‑> AppMeta
Instance variables
var address : str-
Alias for field number 1
var app_id : int-
Alias for field number 0