Modules§
Macros§
Structs§
- Mock
Chain - The
MockChainsimulates a simplified blockchain environment for testing purposes. - Mock
Chain Builder - A builder for a
MockChain’s genesis block. - 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.