Skip to main content

ChangeEpochV2

ChangeEpochV2 Objects

class ChangeEpochV2(ChangeEpochV2Protocol)

System transaction used to change the epoch

BCS

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

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)

computation_charge

def computation_charge() -> int

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

computation_charge_burned

def computation_charge_burned() -> int

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

epoch

def epoch() -> int

The next (to become) epoch ID.

epoch_start_timestamp_ms

def epoch_start_timestamp_ms() -> int

Unix timestamp when epoch started

non_refundable_storage_fee

def non_refundable_storage_fee() -> int

The non-refundable storage fee.

protocol_version

def protocol_version() -> int

The protocol version in effect in the new epoch.

storage_charge

def storage_charge() -> int

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

storage_rebate

def storage_rebate() -> int

The amount of storage rebate refunded to the txn senders.

system_packages

def system_packages() -> typing.List[SystemPackage]

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