Skip to main content

ChangeEpochV2

type ChangeEpochV2

System transaction used to change the epoch

BCS

The BCS serialized form for this type is defined by the following ABNF:

```text change-epoch-v2 = u64 ; next epoch u64 ; protocol version u64 ; storage charge u64 ; computation charge u64 ; computation charge burned u64 ; storage rebate u64 ; non-refundable storage fee u64 ; epoch start timestamp (vector system-package) ```

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 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.