AlgorandTestAutomationContext
Defined in: src/testing/types.ts:21
Test automation context.
Properties
Section titled “Properties”algod:
AlgodClient
Defined in: src/testing/types.ts:25
Algod client instance that will log transactions in transactionLogger
algorand
Section titled “algorand”algorand:
AlgorandClient
Defined in: src/testing/types.ts:23
An AlgorandClient instance loaded with the current context, including testAccount and any generated accounts loaded as signers
generateAccount()
Section titled “generateAccount()”generateAccount: (
params) =>Promise<Address&object>
Defined in: src/testing/types.ts:35
Generate and fund an additional ephemerally created account
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<Address & object>
indexer
Section titled “indexer”indexer:
IndexerClient
Defined in: src/testing/types.ts:27
Indexer client instance
kmd:
KmdClient
Defined in: src/testing/types.ts:29
KMD client instance
testAccount
Section titled “testAccount”testAccount:
Address&object
Defined in: src/testing/types.ts:33
Default, funded test account that is ephemerally created
Type Declaration
Section titled “Type Declaration”addr:
Readonly<Address>
lsigSigner
Section titled “lsigSigner”lsigSigner:
DelegatedLsigSigner
mxBytesSigner
Section titled “mxBytesSigner”mxBytesSigner:
MxBytesSigner
programDataSigner
Section titled “programDataSigner”programDataSigner:
ProgramDataSigner
signer
Section titled “signer”signer:
TransactionSigner
transactionLogger
Section titled “transactionLogger”transactionLogger:
TransactionLogger
Defined in: src/testing/types.ts:31
Transaction logger that will log transaction IDs for all transactions issued by algod
waitForIndexer()
Section titled “waitForIndexer()”waitForIndexer: () =>
Promise<void>
Defined in: src/testing/types.ts:37
Wait for the indexer to catch up with all transactions logged by transactionLogger
Returns
Section titled “Returns”Promise<void>
waitForIndexerTransaction()
Section titled “waitForIndexerTransaction()”waitForIndexerTransaction: (
transactionId) =>Promise<TransactionResponse>
Defined in: src/testing/types.ts:39
Wait for the indexer to catch up with the given transaction ID
Parameters
Section titled “Parameters”transactionId
Section titled “transactionId”string
Returns
Section titled “Returns”Promise<TransactionResponse>