Skip to main content

IotaSystemStateV1Protocol

IotaSystemStateV1Protocol Objects

class IotaSystemStateV1Protocol(typing.Protocol)

A typed view of the 0x3::iota_system_state_inner::IotaSystemStateV1 inner system state, the layout selected by [IotaSystemState::version] 1.

Exposes the same parameters as [IotaSystemStateV2], except that safe-mode computation is accounted as rewards rather than charges, and the validator set is a [ValidatorSetV1].

epoch_start_timestamp_ms

def epoch_start_timestamp_ms() -> int

Unix timestamp (ms) of the current epoch start.

extra_fields_id

def extra_fields_id() -> ObjectId

Object ID of the Bag holding fields added to this struct after its current on-chain layout was set.

iota_total_supply

def iota_total_supply() -> int

Total IOTA supply controlled by the system treasury, in nanos.

parameters

def parameters() -> SystemParametersV1

The system parameters.

reference_gas_price

def reference_gas_price() -> int

The reference gas price for the current epoch, in nanos.

safe_mode

def safe_mode() -> bool

Whether the system is running in a downgraded safe mode.

safe_mode_computation_rewards

def safe_mode_computation_rewards() -> int

Computation rewards accumulated during safe mode, in nanos.

safe_mode_non_refundable_storage_fee

def safe_mode_non_refundable_storage_fee() -> int

Non-refundable storage fees accumulated during safe mode, in nanos.

safe_mode_storage_charges

def safe_mode_storage_charges() -> int

Storage charges accumulated during safe mode, in nanos.

safe_mode_storage_rebates

def safe_mode_storage_rebates() -> int

Storage rebates accumulated during safe mode, in nanos.

storage_fund

def storage_fund() -> StorageFundV1

The storage fund.

validator_report_records

def validator_report_records() -> dict[Address, typing.List[Address]]

Validator report records: each reported validator's address mapped to the addresses of the validators reporting it.

validators

def validators() -> ValidatorSetV1

The validator set.