Modules§
Structs§
- Mock
Chain - The
MockChain
simulates a simplified blockchain environment for testing purposes. It allows creating and managing accounts, minting assets, executing transactions, and applying state updates. - Mock
Fungible Faucet - Represents a fungible faucet that exists on the MockChain.
- Mock
Host - This is very similar to the TransactionHost in miden-tx. The differences include:
- Transaction
Context - Represents all needed data for executing a transaction, or arbitrary code.
- Transaction
Context Builder - 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§
- Account
State - 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
- Mock
Chain Note - Represents a note that is stored in the mock chain.
- TxContext
Input - Helper type to abstract over the inputs to
MockChain::build_tx_context
. See that method’s docs for details.
Traits§
- Proven
Transaction Ext - Extension trait to convert an
ExecutedTransaction
into aProvenTransaction
with a dummy proof for testing purposes.