Modules§
Structs§
- Account
Id - Reexport primitive types Utility Account Identifier.
- Account
Info - Account info for validators
- Account
With Public Key - Approval
Pledge - TODO TODO Stores validator and its power for two consecutive epochs. It is necessary because the blocks on the epoch boundary need to contain approvals from both epochs.
- Approval
Power - Block
Chunk Validator Stats - Block
Extra - Information after block was processed.
- Chunk
Extra V1 - Information after chunk was processed, used to produce or check next chunk.
- Consolidated
State Change - Consolidate state change of trie_key and the final value the trie key will be changed to
- Crypto
Hash - EpochId
- 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
- Function
Args - This type is used to mark function arguments.
- GasWeight
- Reexport primitive types
Weight of unused gas to distribute to scheduled function call actions.
Used in
promise_batch_action_function_call_weighthost function. - RawState
Change - This represents the committed changes in the Trie with a change cause.
- RawState
Changes With Trie Key - List of committed changes with a cause for a given TrieKey
- State
Change With Cause - State
Changes ForBlock - State changes for a single block. Expects that a shard is present at most once in the list of state changes.
- State
Changes ForBlock Range - State changes for a range of blocks. Expects that a block is present at most once in the list.
- State
Changes ForResharding - State
Changes ForShard - Key and value of a StateChanges column.
- State
Root Node - Store
Key - This type is used to mark keys (arrays of bytes) that are queried from store.
- Store
Value - This type is used to mark values returned from store (arrays of bytes).
- Trie
Nodes Count - Counts trie nodes reads during tx/receipt execution for proper storage costs charging.
- Validator
Pledge V1 - Stores validator and its pledge.
- Validator
Power AndPledge V1 - Stores validator and its power with pledge.
- Validator
Power V1 - Stores validator and its power.
- Validator
Stats
Enums§
- BlockId
- Block
Reference - Epoch
Reference - Finality
- Different types of finality.
- State
Change Cause - A structure used to index state changes due to transaction/receipt processing and other things.
- State
Change Kind - A structure used to indicate the kind of state changes due to transaction/receipt processing, etc.
- State
Change Value - State
Changes Request - Sync
Checkpoint - Transaction
OrReceipt Id - Trie
Cache Mode - Mode of the trie cache.
- Validator
Info Identifier - Either an epoch id or latest block hash. When
EpochIdvariant is used it must be an identifier of a past epoch. WhenBlockHeightis used it must be hash of the latest block in the current epoch. Using current epoch id withEpochIdor arbitrary block hash in past or present epochs will result in errors. - Validator
Kickout Reason - Reasons for removing a validator from the validator set.
Traits§
- Epoch
Info Provider - Provides information about current epoch validators. Used to break dependency between epoch manager and runtime.
- State
Changes Ext - State
Changes Kinds Ext
Type Aliases§
- Balance
- Reexport primitive types Balance is type for storing amounts of tokens.
- Block
Height - Reexport primitive types Height of the block.
- Block
Height Delta - Reexport primitive types
Block height delta that measures the difference between
BlockHeights. - Compute
- Reexport primitive types Compute is a type for storing compute time. Measured in femtoseconds (10^-15 seconds).
- Epoch
Height - Reexport primitive types Height of the epoch.
- Gas
- Reexport primitive types Gas is a type for storing amount of gas.
- Maybe
Block Id - Merkle
Hash - Reexport primitive types Hash used by a struct implementing the Merkle tree.
- Nonce
- Reexport primitive types Nonce for transactions.
- NumBlocks
- Reexport primitive types Number of blocks in current group.
- NumSeats
- Reexport primitive types Number of seats of validators (block producer or hidden ones) in current group (settlement).
- NumShards
- Reexport primitive types Number of shards in current group.
- Power
- Reexport primitive types
- Promise
Id - Reexport primitive types
- Protocol
Version - Reexport primitive types
- RawState
Changes - key that was updated -> list of updates with the corresponding indexing event.
- Receipt
Index - Reexport primitive types
- ShardId
- Reexport primitive types Shard index, from 0 to NUM_SHARDS - 1.
- State
Changes - State
Changes Kinds - State
Root - Hash used by to store state root.
- Storage
Usage - Reexport primitive types StorageUsage is used to count the amount of storage used by a contract.
- Storage
Usage Change - Reexport primitive types StorageUsageChange is used to count the storage usage within a single contract call.
- Validator
Id - Reexport primitive types Validator identifier in current group.
- Validator
Mask - Reexport primitive types Mask which validators participated in multi sign.