ChangeEpoch
type ChangeEpoch
System transaction used to change the epoch
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text change-epoch = u64 ; next epoch u64 ; protocol version u64 ; storage charge u64 ; computation charge u64 ; storage rebate u64 ; non-refundable storage fee u64 ; epoch start timestamp (vector system-package) ```
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 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.