Skip to main content

IotaSystemStateV2

type IotaSystemStateV2

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.

type IotaSystemStateV2 struct {
// contains filtered or unexported fields
}

func IotaSystemStateV2TryFromBcs

func IotaSystemStateV2TryFromBcs(bytes []byte) (*IotaSystemStateV2, error)

Decode an `IotaSystemStateV2` from raw BCS bytes.

There is no object-based constructor: the inner state is stored as a dynamic field of the `0x5` wrapper, not as a top-level object with its own type tag.

func LiftFromExternalIotaSystemStateV2

func LiftFromExternalIotaSystemStateV2(handle uint64) *IotaSystemStateV2

func (*IotaSystemStateV2) DebugString

func (_self *IotaSystemStateV2) DebugString() string

func (*IotaSystemStateV2) Destroy

func (object *IotaSystemStateV2) Destroy()

func (*IotaSystemStateV2) Epoch

func (_self *IotaSystemStateV2) Epoch() uint64

func (*IotaSystemStateV2) EpochStartTimestampMs

func (_self *IotaSystemStateV2) EpochStartTimestampMs() uint64

Unix timestamp (ms) of the current epoch start.

func (*IotaSystemStateV2) ExtraFieldsId

func (_self *IotaSystemStateV2) ExtraFieldsId() *ObjectId

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

func (*IotaSystemStateV2) IotaTotalSupply

func (_self *IotaSystemStateV2) IotaTotalSupply() uint64

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

func (*IotaSystemStateV2) Parameters

func (_self *IotaSystemStateV2) Parameters() *SystemParametersV1

The system parameters.

func (*IotaSystemStateV2) ProtocolVersion

func (_self *IotaSystemStateV2) ProtocolVersion() uint64

func (*IotaSystemStateV2) ReferenceGasPrice

func (_self *IotaSystemStateV2) ReferenceGasPrice() uint64

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

func (*IotaSystemStateV2) SafeMode

func (_self *IotaSystemStateV2) SafeMode() bool

Whether the system is running in a downgraded safe mode.

func (*IotaSystemStateV2) SafeModeComputationCharges

func (_self *IotaSystemStateV2) SafeModeComputationCharges() uint64

Computation charges accumulated during safe mode, in nanos.

func (*IotaSystemStateV2) SafeModeComputationChargesBurned

func (_self *IotaSystemStateV2) SafeModeComputationChargesBurned() uint64

Computation charges burned during safe mode, in nanos.

func (*IotaSystemStateV2) SafeModeNonRefundableStorageFee

func (_self *IotaSystemStateV2) SafeModeNonRefundableStorageFee() uint64

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

func (*IotaSystemStateV2) SafeModeStorageCharges

func (_self *IotaSystemStateV2) SafeModeStorageCharges() uint64

Storage charges accumulated during safe mode, in nanos.

func (*IotaSystemStateV2) SafeModeStorageRebates

func (_self *IotaSystemStateV2) SafeModeStorageRebates() uint64

Storage rebates accumulated during safe mode, in nanos.

func (*IotaSystemStateV2) StorageFund

func (_self *IotaSystemStateV2) StorageFund() *StorageFundV1

The storage fund.

func (*IotaSystemStateV2) SystemStateVersion

func (_self *IotaSystemStateV2) SystemStateVersion() uint64

func (*IotaSystemStateV2) ValidatorReportRecords

func (_self *IotaSystemStateV2) ValidatorReportRecords() map[*Address][]*Address

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

func (*IotaSystemStateV2) Validators

func (_self *IotaSystemStateV2) Validators() *ValidatorSetV2

The validator set.