Crate miden_testing

Source

Modules§

executor
utils

Structs§

MockChain
The MockChain simulates a simplified blockchain environment for testing purposes. It allows creating and managing accounts, minting assets, executing transactions, and applying state updates.
MockFungibleFaucet
Represents a fungible faucet that exists on the MockChain.
MockHost
This is very similar to the TransactionHost in miden-tx. The differences include:
TransactionContext
Represents all needed data for executing a transaction, or arbitrary code.
TransactionContextBuilder
TransactionContextBuilder is a utility to construct TransactionContext for testing purposes. It allows users to build accounts, create notes, provide advice inputs, and execute code. The VM process can be inspected afterward.

Enums§

AccountState
Helper type for increased readability at call-sites. Indicates whether to build a new (nonce = ZERO) or existing account (nonce = ONE).
Auth
Specifies which authentication mechanism is desired for accounts
MockChainNote
Represents a note that is stored in the mock chain.
TxContextInput
Helper type to abstract over the inputs to MockChain::build_tx_context. See that method’s docs for details.

Traits§

ProvenTransactionExt
Extension trait to convert an ExecutedTransaction into a ProvenTransaction with a dummy proof for testing purposes.