Skip to main content

ChangeEpoch

type ChangeEpoch​

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 ChangeEpoch struct {
// contains filtered or unexported fields
}

func ChangeEpochFromBcs​

func ChangeEpochFromBcs(bcs []byte) (*ChangeEpoch, error)

Create this type from BCS encoded bytes.

func ChangeEpochFromJson​

func ChangeEpochFromJson(json string) (*ChangeEpoch, error)

Create this type from a JSON encoded string.

func LiftFromExternalChangeEpoch​

func LiftFromExternalChangeEpoch(handle uint64) *ChangeEpoch

func NewChangeEpoch​

func NewChangeEpoch(epoch uint64, protocolVersion uint64, storageCharge uint64, computationCharge uint64, storageRebate uint64, nonRefundableStorageFee uint64, epochStartTimestampMs uint64, systemPackages []*SystemPackage) *ChangeEpoch

func (*ChangeEpoch) ComputationCharge​

func (_self *ChangeEpoch) ComputationCharge() uint64

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

func (*ChangeEpoch) DebugString​

func (_self *ChangeEpoch) DebugString() string

func (*ChangeEpoch) Destroy​

func (object *ChangeEpoch) Destroy()

func (*ChangeEpoch) Epoch​

func (_self *ChangeEpoch) Epoch() uint64

The next (to become) epoch ID.

func (*ChangeEpoch) EpochStartTimestampMs​

func (_self *ChangeEpoch) EpochStartTimestampMs() uint64

Unix timestamp when epoch started

func (*ChangeEpoch) Eq​

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

func (*ChangeEpoch) Ne​

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

func (*ChangeEpoch) NonRefundableStorageFee​

func (_self *ChangeEpoch) NonRefundableStorageFee() uint64

The non-refundable storage fee.

func (*ChangeEpoch) ProtocolVersion​

func (_self *ChangeEpoch) ProtocolVersion() uint64

The protocol version in effect in the new epoch.

func (*ChangeEpoch) StorageCharge​

func (_self *ChangeEpoch) StorageCharge() uint64

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

func (*ChangeEpoch) StorageRebate​

func (_self *ChangeEpoch) StorageRebate() uint64

The amount of storage rebate refunded to the txn senders.

func (*ChangeEpoch) SystemPackages​

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

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

func (*ChangeEpoch) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*ChangeEpoch) ToDisplayString​

func (_self *ChangeEpoch) 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 (*ChangeEpoch) ToJson​

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

Convert this type to a JSON encoded string.