Module algoappdev.testing
Utilities for testing apps.
Functions
def algod_client() ‑> algosdk.v2client.algod.AlgodClient-
Build the client connected to the local
algoddaemon.Finds the daemon operating on the data at the directory stored in the environment variable
AAD_NODE_DIR. def fund_account(algod_client: algosdk.v2client.algod.AlgodClient, kmd_client: algosdk.kmd.KMDClient, microalgos: int) ‑> AccountMeta-
Use funds from the genesis account to fund a new account.
Args
algod_client- the client to which the transaction is submitted
kmd_client- the client which signs the transaction for the genesis account
microalgos- the quantity of microAlgos to add to the new account
Returns
the meta data of the newly funded account
def funded_account(algod_client: algosdk.v2client.algod.AlgodClient, kmd_client: algosdk.kmd.KMDClient) ‑> AccountMeta-
Create a new account and add 1 Algo of funds to it. See
fund_account(). def kmd_client() ‑> algosdk.v2client.algod.AlgodClient-
Build the client connected to the local
kmddaemon.Finds the daemon operating on the data at the directory stored in the environment variable
AAD_NODE_DIR.