txcachemocks

package
v1.6.14 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 1 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

This section is empty.

Functions

This section is empty.

Types

type TxGasHandler

type TxGasHandler interface {
	SplitTxGasInCategories(tx data.TransactionWithFeeHandler) (uint64, uint64)
	GasPriceForProcessing(tx data.TransactionWithFeeHandler) uint64
	GasPriceForMove(tx data.TransactionWithFeeHandler) uint64
	MinGasPrice() uint64
	MinGasLimit() uint64
	MinGasPriceForProcessing() uint64
	IsInterfaceNil() bool
}

TxGasHandler -

type TxGasHandlerMock

type TxGasHandlerMock struct {
	MinimumGasMove       uint64
	MinimumGasPrice      uint64
	GasProcessingDivisor uint64
}

TxGasHandlerMock -

func (*TxGasHandlerMock) GasPriceForMove

func (ghm *TxGasHandlerMock) GasPriceForMove(tx data.TransactionWithFeeHandler) uint64

GasPriceForMove -

func (*TxGasHandlerMock) GasPriceForProcessing

func (ghm *TxGasHandlerMock) GasPriceForProcessing(tx data.TransactionWithFeeHandler) uint64

GasPriceForProcessing -

func (*TxGasHandlerMock) IsInterfaceNil

func (ghm *TxGasHandlerMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*TxGasHandlerMock) MinGasLimit

func (ghm *TxGasHandlerMock) MinGasLimit() uint64

MinGasLimit -

func (*TxGasHandlerMock) MinGasPrice

func (ghm *TxGasHandlerMock) MinGasPrice() uint64

MinGasPrice -

func (*TxGasHandlerMock) MinGasPriceForProcessing

func (ghm *TxGasHandlerMock) MinGasPriceForProcessing() uint64

MinGasPriceForProcessing -

func (*TxGasHandlerMock) SplitTxGasInCategories

func (ghm *TxGasHandlerMock) SplitTxGasInCategories(tx data.TransactionWithFeeHandler) (uint64, uint64)

SplitTxGasInCategories -

Jump to

Keyboard shortcuts

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