Module types

Module types 

Source

Modules§

chunk_extra
validator_power
validator_power_and_pledge
validator_stake

Structs§

AccountId
Reexport primitive types Utility Account Identifier.
AccountInfo
Account info for validators
AccountWithPublicKey
ApprovalPledge
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.
ApprovalPower
BlockChunkValidatorStats
BlockExtra
Information after block was processed.
ChunkExtraV1
Information after chunk was processed, used to produce or check next chunk.
ConsolidatedStateChange
Consolidate state change of trie_key and the final value the trie key will be changed to
CryptoHash
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
FunctionArgs
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_weight host function.
RawStateChange
This represents the committed changes in the Trie with a change cause.
RawStateChangesWithTrieKey
List of committed changes with a cause for a given TrieKey
StateChangeWithCause
StateChangesForBlock
State changes for a single block. Expects that a shard is present at most once in the list of state changes.
StateChangesForBlockRange
State changes for a range of blocks. Expects that a block is present at most once in the list.
StateChangesForResharding
StateChangesForShard
Key and value of a StateChanges column.
StateRootNode
StoreKey
This type is used to mark keys (arrays of bytes) that are queried from store.
StoreValue
This type is used to mark values returned from store (arrays of bytes).
TrieNodesCount
Counts trie nodes reads during tx/receipt execution for proper storage costs charging.
ValidatorPledgeV1
Stores validator and its pledge.
ValidatorPowerAndPledgeV1
Stores validator and its power with pledge.
ValidatorPowerV1
Stores validator and its power.
ValidatorStats

Enums§

BlockId
BlockReference
EpochReference
Finality
Different types of finality.
StateChangeCause
A structure used to index state changes due to transaction/receipt processing and other things.
StateChangeKind
A structure used to indicate the kind of state changes due to transaction/receipt processing, etc.
StateChangeValue
StateChangesRequest
SyncCheckpoint
TransactionOrReceiptId
TrieCacheMode
Mode of the trie cache.
ValidatorInfoIdentifier
Either an epoch id or latest block hash. When EpochId variant is used it must be an identifier of a past epoch. When BlockHeight is used it must be hash of the latest block in the current epoch. Using current epoch id with EpochId or arbitrary block hash in past or present epochs will result in errors.
ValidatorKickoutReason
Reasons for removing a validator from the validator set.

Traits§

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

Type Aliases§

Balance
Reexport primitive types Balance is type for storing amounts of tokens.
BlockHeight
Reexport primitive types Height of the block.
BlockHeightDelta
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).
EpochHeight
Reexport primitive types Height of the epoch.
Gas
Reexport primitive types Gas is a type for storing amount of gas.
MaybeBlockId
MerkleHash
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
PromiseId
Reexport primitive types
ProtocolVersion
Reexport primitive types
RawStateChanges
key that was updated -> list of updates with the corresponding indexing event.
ReceiptIndex
Reexport primitive types
ShardId
Reexport primitive types Shard index, from 0 to NUM_SHARDS - 1.
StateChanges
StateChangesKinds
StateRoot
Hash used by to store state root.
StorageUsage
Reexport primitive types StorageUsage is used to count the amount of storage used by a contract.
StorageUsageChange
Reexport primitive types StorageUsageChange is used to count the storage usage within a single contract call.
ValidatorId
Reexport primitive types Validator identifier in current group.
ValidatorMask
Reexport primitive types Mask which validators participated in multi sign.