Expand description
Common types used across multiple components.
Structs§
- Block
Execution Results OrChunk - Represents execution results for all deploys in a single block or a chunk of this complete value.
- Chainspec
Info - Summary information from the chainspec.
- Executable
Block - Data necessary for a block to be executed.
- Finalized
Block - The piece of information that will become the content of a future block after it was finalized and before execution happened yet.
- GetStatus
Result - Result for “info_get_status” RPC response.
- Internal
EraReport EraReportused only internally. The one in types is a part ofEraEndV1.- Node
Config - Node fast-sync configuration.
- Status
Feed - Data feed for client “info_get_status” endpoint.
- Trie
OrChunk Id - Represents the ID of a
TrieOrChunk- containing the index and the root hash. The root hash is the hash of the trie node as a whole. The index is the index of a chunk if the node’s size is too large and requires chunking. For small nodes, it’s always 0. - Trie
OrChunk IdDisplay - Helper struct to on-demand deserialize a trie or chunk ID for display purposes.
- Variant
Mismatch - The variants in the given types are expected to all be the same.
Enums§
- Chunking
Error - Error returned when constructing an instance of
ValueOrChunk. - Exit
Code - Exit codes which should be used by the casper-node binary, and provided by the reactor to the binary.
- Sync
Handling - Node sync configuration.
- Value
OrChunk - Represents a value or a chunk of data with attached proof.
Traits§
- Chunkable
- Implemented for types that are chunked when sending over the wire and/or before storing the trie store.
- Crypto
RngCore - An object-safe RNG trait that requires a cryptographically strong random number generator.
- Data
Size - Indicates that a type knows how to approximate its memory usage.
Type Aliases§
- NodeRng
- The cryptographically secure RNG used throughout the node.
- Trie
OrChunk - Represents an enum that can contain either a whole trie or a chunk of it.
Derive Macros§
- Data
Size - Automatically derive the
DataSizetrait for a type.