Crate near_store[][src]

Re-exports

pub use db::DBCol;
pub use db::DBCol::*;
pub use db::CHUNK_TAIL_KEY;
pub use db::FINAL_HEAD_KEY;
pub use db::FORK_TAIL_KEY;
pub use db::HEADER_HEAD_KEY;
pub use db::HEAD_KEY;
pub use db::LARGEST_TARGET_HEIGHT_KEY;
pub use db::LATEST_KNOWN_KEY;
pub use db::NUM_COLS;
pub use db::SHOULD_COL_GC;
pub use db::SHOULD_COL_GC;
pub use db::SKIP_COL_GC;
pub use db::SKIP_COL_GC;
pub use db::TAIL_KEY;

Modules

db
migrations
test_utils

Structs

KeyForStateChanges
PartialStorage

For fraud proofs

ShardTries
Store
StoreCompiledContractCache
StoreUpdate

Keeps track of current changes to the database and can commit all of them to the database.

Trie
TrieChanges

TrieChanges stores delta for refcount. Multiple versions of the state work the following way: __changes1___state1 state0 / __changes2___state2

TrieIterator
TrieUpdate

Provides a way to access Storage and record changes with future commit.

TrieUpdateIterator
WrappedTrieChanges

Enums

StorageError

Internal

TrieUpdateValuePtr

Functions

create_store
decode_value_with_rc

Returns (Some(value), rc) if rc > 0 (None, rc) if rc <= 0

get

Reads an object from Trie.

get_access_key
get_access_key_raw
get_account
get_code
get_genesis_hash
get_genesis_state_roots
get_postponed_receipt
get_received_data
read_with_cache
remove_access_key
remove_account

Removes account, code and all access keys associated to it.

remove_postponed_receipt
set

Writes an object into Trie.

set_access_key
set_account
set_code
set_genesis_hash
set_genesis_state_roots
set_postponed_receipt
set_received_data