txcachemocks

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MempoolHostMock added in v1.0.18

type MempoolHostMock struct {
	ComputeTxFeeCalled        func(tx data.TransactionWithFeeHandler) *big.Int
	GetTransferredValueCalled func(tx data.TransactionHandler) *big.Int
	// contains filtered or unexported fields
}

MempoolHostMock -

func NewMempoolHostMock added in v1.0.18

func NewMempoolHostMock() *MempoolHostMock

NewMempoolHostMock -

func (*MempoolHostMock) ComputeTxFee added in v1.0.18

func (mock *MempoolHostMock) ComputeTxFee(tx data.TransactionWithFeeHandler) *big.Int

ComputeTxFee -

func (*MempoolHostMock) GetTransferredValue added in v1.0.18

func (mock *MempoolHostMock) GetTransferredValue(tx data.TransactionHandler) *big.Int

GetTransferredValue -

func (*MempoolHostMock) IsInterfaceNil added in v1.0.18

func (mock *MempoolHostMock) IsInterfaceNil() bool

IsInterfaceNil -

type SelectionSessionMock added in v1.0.18

type SelectionSessionMock struct {
	AccountStateByAddress      map[string]*types.AccountState
	GetAccountStateCalled      func(address []byte) (*types.AccountState, error)
	IsIncorrectlyGuardedCalled func(tx data.TransactionHandler) bool
	// contains filtered or unexported fields
}

SelectionSessionMock -

func NewSelectionSessionMock added in v1.0.18

func NewSelectionSessionMock() *SelectionSessionMock

NewSelectionSessionMock -

func (*SelectionSessionMock) GetAccountState added in v1.0.18

func (mock *SelectionSessionMock) GetAccountState(address []byte) (*types.AccountState, error)

GetAccountState -

func (*SelectionSessionMock) IsIncorrectlyGuarded added in v1.0.18

func (mock *SelectionSessionMock) IsIncorrectlyGuarded(tx data.TransactionHandler) bool

IsIncorrectlyGuarded -

func (*SelectionSessionMock) IsInterfaceNil added in v1.0.18

func (mock *SelectionSessionMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*SelectionSessionMock) SetBalance added in v1.0.18

func (mock *SelectionSessionMock) SetBalance(address []byte, balance *big.Int)

SetBalance -

func (*SelectionSessionMock) SetNonce added in v1.0.18

func (mock *SelectionSessionMock) SetNonce(address []byte, nonce uint64)

SetNonce -

Jump to

Keyboard shortcuts

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