headerVersionData

package
v1.999.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalData

type AdditionalData struct {
	ScheduledRootHash        []byte
	ScheduledAccumulatedFees *big.Int
	ScheduledDeveloperFees   *big.Int
	ScheduledGasProvided     uint64
	ScheduledGasPenalized    uint64
	ScheduledGasRefunded     uint64
}

AdditionalData holds the additional version related header data for future header versions this structure can grow

func (*AdditionalData) GetScheduledAccumulatedFees

func (ad *AdditionalData) GetScheduledAccumulatedFees() *big.Int

GetScheduledAccumulatedFees returns the accumulated fees on scheduled SC calls

func (*AdditionalData) GetScheduledDeveloperFees

func (ad *AdditionalData) GetScheduledDeveloperFees() *big.Int

GetScheduledDeveloperFees returns the developer fees on scheduled SC calls

func (*AdditionalData) GetScheduledGasPenalized

func (ad *AdditionalData) GetScheduledGasPenalized() uint64

GetScheduledGasPenalized returns the gas penalized on scheduled SC calls for previous block

func (*AdditionalData) GetScheduledGasProvided

func (ad *AdditionalData) GetScheduledGasProvided() uint64

GetScheduledGasProvided returns the gas provided on scheduled SC calls for previous block

func (*AdditionalData) GetScheduledGasRefunded

func (ad *AdditionalData) GetScheduledGasRefunded() uint64

GetScheduledGasRefunded returns the gas refunded on scheduled SC calls for previous block

func (*AdditionalData) GetScheduledRootHash

func (ad *AdditionalData) GetScheduledRootHash() []byte

GetScheduledRootHash returns the scheduled RootHash

func (*AdditionalData) IsInterfaceNil

func (ad *AdditionalData) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

type HeaderAdditionalData

type HeaderAdditionalData interface {
	GetScheduledRootHash() []byte
	GetScheduledAccumulatedFees() *big.Int
	GetScheduledDeveloperFees() *big.Int
	GetScheduledGasProvided() uint64
	GetScheduledGasPenalized() uint64
	GetScheduledGasRefunded() uint64
	IsInterfaceNil() bool
}

HeaderAdditionalData holds getters for the additional version related header data for new versions for future versions this interface can grow

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL