mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChain

type BlockChain struct {
	mock.Mock
}

BlockChain is an autogenerated mock type for the BlockChain type

func NewBlockChain

func NewBlockChain(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockChain

NewBlockChain creates a new instance of BlockChain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BlockChain) Config

func (_m *BlockChain) Config() *params.ChainConfig

Config provides a mock function with no fields

func (*BlockChain) CurrentBlock

func (_m *BlockChain) CurrentBlock() *types.Header

CurrentBlock provides a mock function with no fields

func (*BlockChain) StateAt

func (_m *BlockChain) StateAt(root common.Hash) (vm.StateDB, error)

StateAt provides a mock function with given fields: root

func (*BlockChain) SubscribeChainHeadEvent

func (_m *BlockChain) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription

SubscribeChainHeadEvent provides a mock function with given fields: ch

type SubPool

type SubPool struct {
	mock.Mock
}

SubPool is an autogenerated mock type for the SubPool type

func NewSubPool

func NewSubPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubPool

NewSubPool creates a new instance of SubPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SubPool) Add

func (_m *SubPool) Add(txs []*types.Transaction, sync bool) []error

Add provides a mock function with given fields: txs, sync

func (*SubPool) Clear

func (_m *SubPool) Clear()

Clear provides a mock function with no fields

func (*SubPool) Close

func (_m *SubPool) Close() error

Close provides a mock function with no fields

func (*SubPool) Content

func (_m *SubPool) Content() (map[common.Address][]*types.Transaction, map[common.Address][]*types.Transaction)

Content provides a mock function with no fields

func (*SubPool) ContentFrom

func (_m *SubPool) ContentFrom(addr common.Address) ([]*types.Transaction, []*types.Transaction)

ContentFrom provides a mock function with given fields: addr

func (*SubPool) Filter

func (_m *SubPool) Filter(tx *types.Transaction) bool

Filter provides a mock function with given fields: tx

func (*SubPool) Get

func (_m *SubPool) Get(hash common.Hash) *types.Transaction

Get provides a mock function with given fields: hash

func (*SubPool) GetBlobs

func (_m *SubPool) GetBlobs(vhashes []common.Hash) ([]*kzg4844.Blob, []*kzg4844.Proof)

GetBlobs provides a mock function with given fields: vhashes

func (*SubPool) GetMetadata

func (_m *SubPool) GetMetadata(hash common.Hash) *txpool.TxMetadata

GetMetadata provides a mock function with given fields: hash

func (*SubPool) GetRLP

func (_m *SubPool) GetRLP(hash common.Hash) []byte

GetRLP provides a mock function with given fields: hash

func (*SubPool) Has

func (_m *SubPool) Has(hash common.Hash) bool

Has provides a mock function with given fields: hash

func (*SubPool) Init

func (_m *SubPool) Init(gasTip uint64, head *types.Header, reserver txpool.Reserver) error

Init provides a mock function with given fields: gasTip, head, reserver

func (*SubPool) Nonce

func (_m *SubPool) Nonce(addr common.Address) uint64

Nonce provides a mock function with given fields: addr

func (*SubPool) Pending

func (_m *SubPool) Pending(filter txpool.PendingFilter) map[common.Address][]*txpool.LazyTransaction

Pending provides a mock function with given fields: filter

func (*SubPool) RemoveTx

func (_m *SubPool) RemoveTx(hash common.Hash, outofbound bool, unreserve bool) int

RemoveTx provides a mock function with given fields: hash, outofbound, unreserve

func (*SubPool) Reset

func (_m *SubPool) Reset(oldHead *types.Header, newHead *types.Header)

Reset provides a mock function with given fields: oldHead, newHead

func (*SubPool) SetGasTip

func (_m *SubPool) SetGasTip(tip *big.Int)

SetGasTip provides a mock function with given fields: tip

func (*SubPool) Stats

func (_m *SubPool) Stats() (int, int)

Stats provides a mock function with no fields

func (*SubPool) Status

func (_m *SubPool) Status(hash common.Hash) txpool.TxStatus

Status provides a mock function with given fields: hash

func (*SubPool) SubscribeTransactions

func (_m *SubPool) SubscribeTransactions(ch chan<- core.NewTxsEvent, reorgs bool) event.Subscription

SubscribeTransactions provides a mock function with given fields: ch, reorgs

func (*SubPool) ValidateTxBasics

func (_m *SubPool) ValidateTxBasics(tx *types.Transaction) error

ValidateTxBasics provides a mock function with given fields: tx

Jump to

Keyboard shortcuts

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