headerVersionData

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: GPL-3.0 Imports: 1 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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