Modules

Structs

NEAR Account Identifier.

Account info for validators

Stores validator and its stake for two consecutive epochs. It is necessary because the blocks on the epoch boundary need to contain approvals from both epochs.

Information after block was processed.

Information after chunk was processed, used to produce or check next chunk.

Consolidate state change of trie_key and the final value the trie key will be changed to

Epoch identifier – wrapped hash, to make it easier to distinguish. EpochId of epoch T is the hash of last block in T-2 EpochId of first two epochs is 0

This type is used to mark function arguments.

Weight of unused gas to distribute to scheduled function call actions. Used in promise_batch_action_function_call_weight host function.

This represents the committed changes in the Trie with a change cause.

List of committed changes with a cause for a given TrieKey

This type is used to mark keys (arrays of bytes) that are queried from store.

This type is used to mark values returned from store (arrays of bytes).

Counts trie nodes reads during tx/receipt execution for proper storage costs charging.

Stores validator and its stake.

Enums

Different types of finality.

Result from a gas distribution among function calls with ratios.

A structure used to index state changes due to transaction/receipt processing and other things.

A structure used to indicate the kind of state changes due to transaction/receipt processing, etc.

Mode of the trie cache.

Reasons for removing a validator from the validator set.

Traits

Cache for compiled modules

Provides information about current epoch validators. Used to break dependency between epoch manager and runtime.

Type Definitions

Balance is type for storing amounts of tokens.

Height of the block.

Block height delta that measures the difference between BlockHeights.

Height of the epoch.

Gas is a type for storing amount of gas.

Hash used by a struct implementing the Merkle tree.

Nonce for transactions.

Number of blocks in current group.

Number of seats of validators (block producer or hidden ones) in current group (settlement).

Number of shards in current group.

key that was updated -> list of updates with the corresponding indexing event.

Shard index, from 0 to NUM_SHARDS - 1.

Hash used by to store state root.

StorageUsage is used to count the amount of storage used by a contract.

StorageUsageChange is used to count the storage usage within a single contract call.

Validator identifier in current group.

Mask which validators participated in multi sign.