Interface: IotaSystemStateV1Like
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].
Methods
epoch()
epoch(): bigint;
Returns
bigint
epochStartTimestampMs()
epochStartTimestampMs(): bigint;
Unix timestamp (ms) of the current epoch start.
Returns
bigint
extraFieldsId()
extraFieldsId(): ObjectIdLike;
Object ID of the Bag holding fields added to this struct after its
current on-chain layout was set.
Returns
iotaTotalSupply()
iotaTotalSupply(): bigint;
Total IOTA supply controlled by the system treasury, in nanos.
Returns
bigint
parameters()
parameters(): SystemParametersV1Like;
The system parameters.
Returns
protocolVersion()
protocolVersion(): bigint;
Returns
bigint
referenceGasPrice()
referenceGasPrice(): bigint;
The reference gas price for the current epoch, in nanos.
Returns
bigint
safeMode()
safeMode(): boolean;
Whether the system is running in a downgraded safe mode.
Returns
boolean
safeModeComputationRewards()
safeModeComputationRewards(): bigint;
Computation rewards accumulated during safe mode, in nanos.
Returns
bigint
safeModeNonRefundableStorageFee()
safeModeNonRefundableStorageFee(): bigint;
Non-refundable storage fees accumulated during safe mode, in nanos.
Returns
bigint
safeModeStorageCharges()
safeModeStorageCharges(): bigint;
Storage charges accumulated during safe mode, in nanos.
Returns
bigint
safeModeStorageRebates()
safeModeStorageRebates(): bigint;
Storage rebates accumulated during safe mode, in nanos.
Returns
bigint
storageFund()
storageFund(): StorageFundV1Like;
The storage fund.
Returns
systemStateVersion()
systemStateVersion(): bigint;
Returns
bigint
validatorReportRecords()
validatorReportRecords(): Map<AddressLike, AddressLike[]>;
Validator report records: each reported validator's address mapped to the addresses of the validators reporting it.
Returns
Map<AddressLike, AddressLike[]>
validators()
validators(): ValidatorSetV1Like;
The validator set.