Modules§
- epoch_
start_ iota_ system_ state - iota_
system_ state_ inner_ v1 - iota_
system_ state_ inner_ v2 - iota_
system_ state_ summary
Structs§
Enums§
- Iota
System State - IotaSystemState provides an abstraction over multiple versions of the inner IotaSystemStateInner object. This should be the primary interface to the system state object in Rust. We use enum dispatch to dispatch all methods defined in IotaSystemStateTrait to the actual implementation in the inner types.
Constants§
Traits§
- Iota
System State Trait - This is the standard API that all inner system state object type should implement.
- Iota
System State Wrapper Ext
Functions§
- get_
iota_ system_ state - get_
iota_ system_ state_ objects - The two objects
get_iota_system_statereads to decode the system state: the raw system state wrapper object and its inner system-state object. These two fully determine the state, so none of the per-validator objects the epoch-change tx also writes are needed. Returned as rawObjects so a caller can persist the exact bytes theirObjectDigests commit to. - get_
iota_ system_ state_ wrapper - get_
validator_ from_ table - Given a system state type version, and the ID of the table, along with a key, retrieve the dynamic field as a Validator type. We need the version to determine which inner type to use for the Validator type. This is assuming that the validator is stored in the table as Validator type.
- get_
validators_ from_ table_ vec - validator_
summary_ from_ wrapper - The summary of the validator a table’s
Validatorwrapper holds, for a caller that has already read the wrapper; asget_validator_from_tableotherwise.
Type Aliases§
- Iota
System State Inner Genesis - This is the fixed type used by genesis.
- Iota
Validator Genesis