transactionsfee

package
v1.11.2-patch-devnet Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: GPL-3.0 Imports: 19 Imported by: ? modules, 0 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

View Source
var ErrNilMarshaller = errors.New("nil Marshaller")

ErrNilMarshaller signals that a nil marshaller has been provided

View Source
var ErrNilShardCoordinator = errors.New("nil shard coordinator")

ErrNilShardCoordinator signals that a nil shard coordinator has been provided

View Source
var ErrNilStorage = errors.New("nil storage")

ErrNilStorage signals that a nil storage has been provided

View Source
var ErrNilTransactionFeeCalculator = errors.New("nil transaction fee calculator")

ErrNilTransactionFeeCalculator signals that a nil transaction fee calculator has been provided

Functions

func NewTransactionsFeeProcessor

func NewTransactionsFeeProcessor(arg ArgTransactionsFeeProcessor) (*transactionsFeeProcessor, error)

NewTransactionsFeeProcessor will create a new instance of transactionsFeeProcessor

Types

type ArgTransactionsFeeProcessor

type ArgTransactionsFeeProcessor struct {
	Marshaller          marshal.Marshalizer
	TransactionsStorer  storage.Storer
	ShardCoordinator    sharding.Coordinator
	TxFeeCalculator     FeesProcessorHandler
	PubKeyConverter     core.PubkeyConverter
	ArgsParser          process.ArgumentsParser
	EnableEpochsHandler common.EnableEpochsHandler
}

ArgTransactionsFeeProcessor holds the arguments needed for creating a new instance of transactionsFeeProcessor

type FeesProcessorHandler

type FeesProcessorHandler interface {
	ComputeGasUsedAndFeeBasedOnRefundValue(tx data.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int)
	ComputeGasUnitsFromRefundValue(tx data.TransactionWithFeeHandler, refundValue *big.Int, epoch uint32) uint64
	ComputeTxFeeBasedOnGasUsed(tx data.TransactionWithFeeHandler, gasUsed uint64) *big.Int
	ComputeTxFee(tx data.TransactionWithFeeHandler) *big.Int
	ComputeGasLimit(tx data.TransactionWithFeeHandler) uint64
	IsInterfaceNil() bool
}

FeesProcessorHandler defines the interface for the transaction fees processor

Jump to

Keyboard shortcuts

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