Skip to main content

ChangeEpochV2

type ChangeEpochV2​

System transaction used to change the epoch

BCS​

The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).

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

func ChangeEpochV2FromBcs​

func ChangeEpochV2FromBcs(bcs []byte) (*ChangeEpochV2, error)

Create this type from BCS encoded bytes.

func ChangeEpochV2FromJson​

func ChangeEpochV2FromJson(json string) (*ChangeEpochV2, error)

Create this type from a JSON encoded string.

func LiftFromExternalChangeEpochV2​

func LiftFromExternalChangeEpochV2(handle uint64) *ChangeEpochV2

func NewChangeEpochV2​

func NewChangeEpochV2(epoch uint64, protocolVersion uint64, storageCharge uint64, computationCharge uint64, computationChargeBurned uint64, storageRebate uint64, nonRefundableStorageFee uint64, epochStartTimestampMs uint64, systemPackages []*SystemPackage) *ChangeEpochV2

func (*ChangeEpochV2) ComputationCharge​

func (_self *ChangeEpochV2) ComputationCharge() uint64

The total amount of gas charged for computation during the epoch.

func (*ChangeEpochV2) ComputationChargeBurned​

func (_self *ChangeEpochV2) ComputationChargeBurned() uint64

The total amount of gas burned for computation during the epoch.

func (*ChangeEpochV2) DebugString​

func (_self *ChangeEpochV2) DebugString() string

func (*ChangeEpochV2) Destroy​

func (object *ChangeEpochV2) Destroy()

func (*ChangeEpochV2) Epoch​

func (_self *ChangeEpochV2) Epoch() uint64

The next (to become) epoch ID.

func (*ChangeEpochV2) EpochStartTimestampMs​

func (_self *ChangeEpochV2) EpochStartTimestampMs() uint64

Unix timestamp when epoch started

func (*ChangeEpochV2) Eq​

func (_self *ChangeEpochV2) Eq(other *ChangeEpochV2) bool

func (*ChangeEpochV2) Ne​

func (_self *ChangeEpochV2) Ne(other *ChangeEpochV2) bool

func (*ChangeEpochV2) NonRefundableStorageFee​

func (_self *ChangeEpochV2) NonRefundableStorageFee() uint64

The non-refundable storage fee.

func (*ChangeEpochV2) ProtocolVersion​

func (_self *ChangeEpochV2) ProtocolVersion() uint64

The protocol version in effect in the new epoch.

func (*ChangeEpochV2) StorageCharge​

func (_self *ChangeEpochV2) StorageCharge() uint64

The total amount of gas charged for storage during the epoch.

func (*ChangeEpochV2) StorageRebate​

func (_self *ChangeEpochV2) StorageRebate() uint64

The amount of storage rebate refunded to the txn senders.

func (*ChangeEpochV2) SystemPackages​

func (_self *ChangeEpochV2) SystemPackages() []*SystemPackage

System packages (specifically framework and move stdlib) that are written before the new epoch starts.

func (*ChangeEpochV2) ToBcs​

func (_self *ChangeEpochV2) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (*ChangeEpochV2) ToDisplayString​

func (_self *ChangeEpochV2) ToDisplayString() string

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

func (*ChangeEpochV2) ToJson​

func (_self *ChangeEpochV2) ToJson() (string, error)

Convert this type to a JSON encoded string.