Available on crate features
test-dependencies only.Expand description
Utilities for testing wallets based upon the crate::data_api traits.
Modules§
- orchard
orchard - pool
- sapling
- transparent
transparent-inputs
Structs§
- Cached
Block - Metadata about a block generated by
TestState. - Fake
Compact Output - A fake output of a
CompactTx. - Fixed
Notes - An
InputSourceholding a fixed list of shielded notes, for tests that drive input selection without a wallet database. - Initial
Chain State - The initial chain state for a test.
- Ironwood
Fvk orchard - A test-only viewing key that receives Ironwood (version 3) notes. It wraps the account’s Orchard
full viewing key, but its outputs are version 3 notes placed in
tx.ironwood_actionsand encrypted under the Ironwood note-encryption domain, so a wallet scanning them exercises the Ironwood receive path. - Mock
Wallet Db - A mock wallet data source that implements the bare minimum necessary to function.
- Note
Commitments - A convenience type for the note commitments contained within a
CompactBlock. - Test
Account - The test account configured for a
TestState. - Test
Builder - A
TestStatebuilder, that configures the environment for a test. - Test
State - Transaction
Summary - Information about a transaction that the wallet is interested in.
Enums§
- Address
Type - Configures how a
TestFvkreceives a particular output. - Fixed
Notes Error - Errors of
FixedNotes.
Traits§
- Cache
Insertion Result - Data
Store Factory - Trait representing the ability to construct a new data store for use in a test.
- Reset
- Trait method exposing the ability to reset the wallet within a test.
- Test
Cache - Trait used by tests that require a block cache.
- TestFvk
- Trait used by tests that require a full viewing key.