txcachemocks

package
v1.1.40 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

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 process.TransactionWithFeeHandler) (uint64, uint64)
	GasPriceForProcessing(tx process.TransactionWithFeeHandler) uint64
	GasPriceForMove(tx process.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 process.TransactionWithFeeHandler) uint64

GasPriceForMove -

func (*TxGasHandlerMock) GasPriceForProcessing

func (ghm *TxGasHandlerMock) GasPriceForProcessing(tx process.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

MinGasPriceProcessing -

func (*TxGasHandlerMock) SplitTxGasInCategories

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

SplitTxGasInCategories -

Jump to

Keyboard shortcuts

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