SystemState

interface SystemState

Properties

Link copied to clipboard
abstract val epoch: <Error class: unknown class>?

The epoch id

Link copied to clipboard
abstract val epochStartTimestampMs: <Error class: unknown class>?

Unix timestamp of when this this epoch started

Link copied to clipboard
abstract val extraFields: MoveTable

Any extra fields that's not defined statically.

Link copied to clipboard

Set of system config parameters

Link copied to clipboard

Returns the field-presence view for this SystemState instance.

Link copied to clipboard
abstract val protocolVersion: <Error class: unknown class>?

The protocol version

Link copied to clipboard
abstract val referenceGasPrice: <Error class: unknown class>?

The reference gas price for this epoch

Link copied to clipboard
abstract val safeMode: Boolean?

Whether the system is running in a downgraded safe mode due to a non-recoverable bug. This is set whenever we failed to execute advance_epoch, and ended up executing advance_epoch_safe_mode. It can be reset once we are able to successfully execute advance_epoch. The rest of the fields starting with safe_mode_ are accumulated during safe mode when advance_epoch_safe_mode is executed. They will eventually be processed once we are out of safe mode.

Link copied to clipboard
abstract val safeModeComputationRewards: <Error class: unknown class>?

Computation rewards accumulated during safe_mode

Link copied to clipboard
abstract val safeModeNonRefundableStorageFee: <Error class: unknown class>?

Nonrefundable storage fees accumulated during safe_mode

Link copied to clipboard
abstract val safeModeStorageRebates: <Error class: unknown class>?

Storage rebates paid out during safe_mode

Link copied to clipboard
abstract val safeModeStorageRewards: <Error class: unknown class>?

Storage rewards accumulated during safe_mode

Link copied to clipboard

Schedule of stake subsidies given out each epoch.

Link copied to clipboard
abstract val storageFund: StorageFund

Storage Fund info

Link copied to clipboard

A list of the records of validator reporting each other.

Link copied to clipboard
abstract val validators: ValidatorSet

Information about the validators

Link copied to clipboard
abstract val version: <Error class: unknown class>?

The version of the system state data structure type.

Functions

Link copied to clipboard
Link copied to clipboard
fun SystemState.copy(body: <Error class: unknown class>.() -> Unit = {}): SystemState

Copies the original message, including unknown fields.