Type Alias sp_api::StorageChanges
source · pub type StorageChanges<SBackend, Block> = StorageChanges<<SBackend as StateBackend<HashFor<Block>>>::Transaction, HashFor<Block>>;
Aliased Type§
struct StorageChanges<SBackend, Block> {
pub main_storage_changes: Vec<(Vec<u8>, Option<Vec<u8>>)>,
pub child_storage_changes: Vec<(Vec<u8>, Vec<(Vec<u8>, Option<Vec<u8>>)>)>,
pub offchain_storage_changes: Vec<((Vec<u8>, Vec<u8>), OffchainOverlayedChange)>,
pub transaction: <SBackend as Backend<<<Block as Block>::Header as Header>::Hashing>>::Transaction,
pub transaction_storage_root: <<<Block as Block>::Header as Header>::Hashing as Hasher>::Out,
pub transaction_index_changes: Vec<IndexOperation>,
}
Fields§
§main_storage_changes: Vec<(Vec<u8>, Option<Vec<u8>>)>
All changes to the main storage.
A value of None
means that it was deleted.
child_storage_changes: Vec<(Vec<u8>, Vec<(Vec<u8>, Option<Vec<u8>>)>)>
All changes to the child storages.
offchain_storage_changes: Vec<((Vec<u8>, Vec<u8>), OffchainOverlayedChange)>
Offchain state changes to write to the offchain database.
transaction: <SBackend as Backend<<<Block as Block>::Header as Header>::Hashing>>::Transaction
A transaction for the backend that contains all changes from
main_storage_changes
and from
child_storage_changes
.
offchain_storage_changes
.
transaction_storage_root: <<<Block as Block>::Header as Header>::Hashing as Hasher>::Out
The storage root after applying the transaction.
transaction_index_changes: Vec<IndexOperation>
Changes to the transaction index,