Expand description
Api for querying merklized state
The state API provides an interface for serving queries against arbitrarily old snapshots of the state. This allows a full Merkle tree to be reconstructed from storage. If any parent state is missing then the partial snapshot can not be queried.
Modules§
- data_
source 🔒 - Data for the
merklized_stateAPI.
Structs§
- Custom
Snafu - SNAFU context selector for the
Error::Customvariant - Options
- Query
Snafu - SNAFU context selector for the
Error::Queryvariant - Request
Snafu - SNAFU context selector for the
Error::Requestvariant
Enums§
- Error
- Errors surfaced to clients from a Merklized state API.
- Snapshot
- Snapshot can be queried by block height (index) or merkle tree commitment
Traits§
- Merklized
State - This trait should be implemented by the MerkleTree that the API module is initialized for. It defines methods utilized by the module.
- Merklized
State Data Source - This trait defines methods that a data source should implement It enables retrieval of the membership path for a leaf node, which can be used to reconstruct the Merkle tree state.
- Merklized
State Height Persistence - Update
State Data - This trait defines methods for updating the storage with the merkle tree state.