Module iota_types::iota_system_state
source · Modules§
Structs§
- Rust version of the Move iota::iota_system::IotaSystemState type This repreents the object with 0x5 ID. In Rust, this type should be rarely used since it’s just a thin wrapper used to access the inner object. Within this module, we use it to determine the current version of the system state inner object type, so that we could deserialize the inner object correctly. Outside of this module, we only use it in genesis snapshot and testing.
Enums§
- 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§
- This is the standard API that all inner system state object type should implement.
Functions§
- 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.
Type Aliases§
- This is the fixed type used by genesis.