Interface: IotaSystemStateV2Like
A typed view of the 0x3::iota_system_state_inner::IotaSystemStateV2
inner system state.
Exposes the scalar epoch parameters plus the nested validator set
([ValidatorSetV2]), storage fund ([StorageFundV1]), system parameters
([SystemParametersV1]), and the treasury's total supply.
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
safeModeComputationCharges()
safeModeComputationCharges(): bigint;
Computation charges accumulated during safe mode, in nanos.
Returns
bigint
safeModeComputationChargesBurned()
safeModeComputationChargesBurned(): bigint;
Computation charges burned 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(): ValidatorSetV2Like;
The validator set.