Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEthereumClienter

type BaseEthereumClienter struct {
	mock.Mock
}

BaseEthereumClienter is an autogenerated mock type for the BaseEthereumClienter type

func NewBaseEthereumClienter

func NewBaseEthereumClienter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BaseEthereumClienter

NewBaseEthereumClienter creates a new instance of BaseEthereumClienter. 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 (*BaseEthereumClienter) BalanceAt added in v0.7.0

func (_m *BaseEthereumClienter) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)

BalanceAt provides a mock function with given fields: ctx, account, blockNumber

func (*BaseEthereumClienter) BlockByHash

func (_m *BaseEthereumClienter) BlockByHash(ctx context.Context, hash common.Hash) (*coretypes.Block, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*BaseEthereumClienter) BlockByNumber

func (_m *BaseEthereumClienter) BlockByNumber(ctx context.Context, number *big.Int) (*coretypes.Block, error)

BlockByNumber provides a mock function with given fields: ctx, number

func (*BaseEthereumClienter) BlockNumber

func (_m *BaseEthereumClienter) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber provides a mock function with given fields: ctx

func (*BaseEthereumClienter) CallContract

func (_m *BaseEthereumClienter) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, call, blockNumber

func (*BaseEthereumClienter) ChainID

func (_m *BaseEthereumClienter) ChainID(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

func (*BaseEthereumClienter) CodeAt

func (_m *BaseEthereumClienter) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, account, blockNumber

func (*BaseEthereumClienter) EXPECT

func (*BaseEthereumClienter) EstimateGas

func (_m *BaseEthereumClienter) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, call

func (*BaseEthereumClienter) FilterLogs

FilterLogs provides a mock function with given fields: ctx, q

func (*BaseEthereumClienter) HeaderByHash

func (_m *BaseEthereumClienter) HeaderByHash(ctx context.Context, hash common.Hash) (*coretypes.Header, error)

HeaderByHash provides a mock function with given fields: ctx, hash

func (*BaseEthereumClienter) HeaderByNumber

func (_m *BaseEthereumClienter) HeaderByNumber(ctx context.Context, number *big.Int) (*coretypes.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*BaseEthereumClienter) NonceAt added in v0.7.0

func (_m *BaseEthereumClienter) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)

NonceAt provides a mock function with given fields: ctx, account, blockNumber

func (*BaseEthereumClienter) PendingCodeAt

func (_m *BaseEthereumClienter) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt provides a mock function with given fields: ctx, account

func (*BaseEthereumClienter) PendingNonceAt

func (_m *BaseEthereumClienter) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt provides a mock function with given fields: ctx, account

func (*BaseEthereumClienter) SendTransaction

func (_m *BaseEthereumClienter) SendTransaction(ctx context.Context, tx *coretypes.Transaction) error

SendTransaction provides a mock function with given fields: ctx, tx

func (*BaseEthereumClienter) StorageAt added in v0.7.0

func (_m *BaseEthereumClienter) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error)

StorageAt provides a mock function with given fields: ctx, account, key, blockNumber

func (*BaseEthereumClienter) SubscribeFilterLogs

func (_m *BaseEthereumClienter) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- coretypes.Log) (ethereum.Subscription, error)

SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch

func (*BaseEthereumClienter) SubscribeNewHead

func (_m *BaseEthereumClienter) SubscribeNewHead(ctx context.Context, ch chan<- *coretypes.Header) (ethereum.Subscription, error)

SubscribeNewHead provides a mock function with given fields: ctx, ch

func (*BaseEthereumClienter) SubscribeTransactionReceipts added in v0.8.0

func (_m *BaseEthereumClienter) SubscribeTransactionReceipts(ctx context.Context, q *ethereum.TransactionReceiptsQuery, ch chan<- []*coretypes.Receipt) (ethereum.Subscription, error)

SubscribeTransactionReceipts provides a mock function with given fields: ctx, q, ch

func (*BaseEthereumClienter) SuggestGasPrice

func (_m *BaseEthereumClienter) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*BaseEthereumClienter) SuggestGasTipCap

func (_m *BaseEthereumClienter) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap provides a mock function with given fields: ctx

func (*BaseEthereumClienter) TransactionByHash added in v0.7.0

func (_m *BaseEthereumClienter) TransactionByHash(ctx context.Context, txHash common.Hash) (*coretypes.Transaction, bool, error)

TransactionByHash provides a mock function with given fields: ctx, txHash

func (*BaseEthereumClienter) TransactionCount

func (_m *BaseEthereumClienter) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)

TransactionCount provides a mock function with given fields: ctx, blockHash

func (*BaseEthereumClienter) TransactionInBlock

func (_m *BaseEthereumClienter) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*coretypes.Transaction, error)

TransactionInBlock provides a mock function with given fields: ctx, blockHash, index

func (*BaseEthereumClienter) TransactionReceipt added in v0.7.0

func (_m *BaseEthereumClienter) TransactionReceipt(ctx context.Context, txHash common.Hash) (*coretypes.Receipt, error)

TransactionReceipt provides a mock function with given fields: ctx, txHash

type BaseEthereumClienter_BalanceAt_Call added in v0.7.0

type BaseEthereumClienter_BalanceAt_Call struct {
	*mock.Call
}

BaseEthereumClienter_BalanceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BalanceAt'

func (*BaseEthereumClienter_BalanceAt_Call) Return added in v0.7.0

func (*BaseEthereumClienter_BalanceAt_Call) Run added in v0.7.0

func (*BaseEthereumClienter_BalanceAt_Call) RunAndReturn added in v0.7.0

type BaseEthereumClienter_BlockByHash_Call

type BaseEthereumClienter_BlockByHash_Call struct {
	*mock.Call
}

BaseEthereumClienter_BlockByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHash'

func (*BaseEthereumClienter_BlockByHash_Call) Return

func (*BaseEthereumClienter_BlockByHash_Call) Run

func (*BaseEthereumClienter_BlockByHash_Call) RunAndReturn

type BaseEthereumClienter_BlockByNumber_Call

type BaseEthereumClienter_BlockByNumber_Call struct {
	*mock.Call
}

BaseEthereumClienter_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'

func (*BaseEthereumClienter_BlockByNumber_Call) Return

func (*BaseEthereumClienter_BlockByNumber_Call) Run

func (*BaseEthereumClienter_BlockByNumber_Call) RunAndReturn

type BaseEthereumClienter_BlockNumber_Call

type BaseEthereumClienter_BlockNumber_Call struct {
	*mock.Call
}

BaseEthereumClienter_BlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockNumber'

func (*BaseEthereumClienter_BlockNumber_Call) Return

func (*BaseEthereumClienter_BlockNumber_Call) Run

func (*BaseEthereumClienter_BlockNumber_Call) RunAndReturn

type BaseEthereumClienter_CallContract_Call

type BaseEthereumClienter_CallContract_Call struct {
	*mock.Call
}

BaseEthereumClienter_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'

func (*BaseEthereumClienter_CallContract_Call) Return

func (*BaseEthereumClienter_CallContract_Call) Run

func (*BaseEthereumClienter_CallContract_Call) RunAndReturn

type BaseEthereumClienter_ChainID_Call

type BaseEthereumClienter_ChainID_Call struct {
	*mock.Call
}

BaseEthereumClienter_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'

func (*BaseEthereumClienter_ChainID_Call) Return

func (*BaseEthereumClienter_ChainID_Call) Run

func (*BaseEthereumClienter_ChainID_Call) RunAndReturn

type BaseEthereumClienter_CodeAt_Call

type BaseEthereumClienter_CodeAt_Call struct {
	*mock.Call
}

BaseEthereumClienter_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'

func (*BaseEthereumClienter_CodeAt_Call) Return

func (*BaseEthereumClienter_CodeAt_Call) Run

func (*BaseEthereumClienter_CodeAt_Call) RunAndReturn

type BaseEthereumClienter_EstimateGas_Call

type BaseEthereumClienter_EstimateGas_Call struct {
	*mock.Call
}

BaseEthereumClienter_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'

func (*BaseEthereumClienter_EstimateGas_Call) Return

func (*BaseEthereumClienter_EstimateGas_Call) Run

func (*BaseEthereumClienter_EstimateGas_Call) RunAndReturn

type BaseEthereumClienter_Expecter

type BaseEthereumClienter_Expecter struct {
	// contains filtered or unexported fields
}

func (*BaseEthereumClienter_Expecter) BalanceAt added in v0.7.0

func (_e *BaseEthereumClienter_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *BaseEthereumClienter_BalanceAt_Call

BalanceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*BaseEthereumClienter_Expecter) BlockByHash

func (_e *BaseEthereumClienter_Expecter) BlockByHash(ctx interface{}, hash interface{}) *BaseEthereumClienter_BlockByHash_Call

BlockByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*BaseEthereumClienter_Expecter) BlockByNumber

func (_e *BaseEthereumClienter_Expecter) BlockByNumber(ctx interface{}, number interface{}) *BaseEthereumClienter_BlockByNumber_Call

BlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*BaseEthereumClienter_Expecter) BlockNumber

func (_e *BaseEthereumClienter_Expecter) BlockNumber(ctx interface{}) *BaseEthereumClienter_BlockNumber_Call

BlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*BaseEthereumClienter_Expecter) CallContract

func (_e *BaseEthereumClienter_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *BaseEthereumClienter_CallContract_Call

CallContract is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg
  • blockNumber *big.Int

func (*BaseEthereumClienter_Expecter) ChainID

ChainID is a helper method to define mock.On call

  • ctx context.Context

func (*BaseEthereumClienter_Expecter) CodeAt

func (_e *BaseEthereumClienter_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *BaseEthereumClienter_CodeAt_Call

CodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*BaseEthereumClienter_Expecter) EstimateGas

func (_e *BaseEthereumClienter_Expecter) EstimateGas(ctx interface{}, call interface{}) *BaseEthereumClienter_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg

func (*BaseEthereumClienter_Expecter) FilterLogs

func (_e *BaseEthereumClienter_Expecter) FilterLogs(ctx interface{}, q interface{}) *BaseEthereumClienter_FilterLogs_Call

FilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery

func (*BaseEthereumClienter_Expecter) HeaderByHash

func (_e *BaseEthereumClienter_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *BaseEthereumClienter_HeaderByHash_Call

HeaderByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*BaseEthereumClienter_Expecter) HeaderByNumber

func (_e *BaseEthereumClienter_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *BaseEthereumClienter_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*BaseEthereumClienter_Expecter) NonceAt added in v0.7.0

func (_e *BaseEthereumClienter_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *BaseEthereumClienter_NonceAt_Call

NonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*BaseEthereumClienter_Expecter) PendingCodeAt

func (_e *BaseEthereumClienter_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *BaseEthereumClienter_PendingCodeAt_Call

PendingCodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*BaseEthereumClienter_Expecter) PendingNonceAt

func (_e *BaseEthereumClienter_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *BaseEthereumClienter_PendingNonceAt_Call

PendingNonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*BaseEthereumClienter_Expecter) SendTransaction

func (_e *BaseEthereumClienter_Expecter) SendTransaction(ctx interface{}, tx interface{}) *BaseEthereumClienter_SendTransaction_Call

SendTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *coretypes.Transaction

func (*BaseEthereumClienter_Expecter) StorageAt added in v0.7.0

func (_e *BaseEthereumClienter_Expecter) StorageAt(ctx interface{}, account interface{}, key interface{}, blockNumber interface{}) *BaseEthereumClienter_StorageAt_Call

StorageAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • key common.Hash
  • blockNumber *big.Int

func (*BaseEthereumClienter_Expecter) SubscribeFilterLogs

func (_e *BaseEthereumClienter_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *BaseEthereumClienter_SubscribeFilterLogs_Call

SubscribeFilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery
  • ch chan<- coretypes.Log

func (*BaseEthereumClienter_Expecter) SubscribeNewHead

func (_e *BaseEthereumClienter_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *BaseEthereumClienter_SubscribeNewHead_Call

SubscribeNewHead is a helper method to define mock.On call

  • ctx context.Context
  • ch chan<- *coretypes.Header

func (*BaseEthereumClienter_Expecter) SubscribeTransactionReceipts added in v0.8.0

func (_e *BaseEthereumClienter_Expecter) SubscribeTransactionReceipts(ctx interface{}, q interface{}, ch interface{}) *BaseEthereumClienter_SubscribeTransactionReceipts_Call

SubscribeTransactionReceipts is a helper method to define mock.On call

  • ctx context.Context
  • q *ethereum.TransactionReceiptsQuery
  • ch chan<- []*coretypes.Receipt

func (*BaseEthereumClienter_Expecter) SuggestGasPrice

func (_e *BaseEthereumClienter_Expecter) SuggestGasPrice(ctx interface{}) *BaseEthereumClienter_SuggestGasPrice_Call

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*BaseEthereumClienter_Expecter) SuggestGasTipCap

func (_e *BaseEthereumClienter_Expecter) SuggestGasTipCap(ctx interface{}) *BaseEthereumClienter_SuggestGasTipCap_Call

SuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

func (*BaseEthereumClienter_Expecter) TransactionByHash added in v0.7.0

func (_e *BaseEthereumClienter_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *BaseEthereumClienter_TransactionByHash_Call

TransactionByHash is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*BaseEthereumClienter_Expecter) TransactionCount

func (_e *BaseEthereumClienter_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *BaseEthereumClienter_TransactionCount_Call

TransactionCount is a helper method to define mock.On call

  • ctx context.Context
  • blockHash common.Hash

func (*BaseEthereumClienter_Expecter) TransactionInBlock

func (_e *BaseEthereumClienter_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *BaseEthereumClienter_TransactionInBlock_Call

TransactionInBlock is a helper method to define mock.On call

  • ctx context.Context
  • blockHash common.Hash
  • index uint

func (*BaseEthereumClienter_Expecter) TransactionReceipt added in v0.7.0

func (_e *BaseEthereumClienter_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *BaseEthereumClienter_TransactionReceipt_Call

TransactionReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

type BaseEthereumClienter_FilterLogs_Call

type BaseEthereumClienter_FilterLogs_Call struct {
	*mock.Call
}

BaseEthereumClienter_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'

func (*BaseEthereumClienter_FilterLogs_Call) Return

func (*BaseEthereumClienter_FilterLogs_Call) Run

func (*BaseEthereumClienter_FilterLogs_Call) RunAndReturn

type BaseEthereumClienter_HeaderByHash_Call

type BaseEthereumClienter_HeaderByHash_Call struct {
	*mock.Call
}

BaseEthereumClienter_HeaderByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByHash'

func (*BaseEthereumClienter_HeaderByHash_Call) Return

func (*BaseEthereumClienter_HeaderByHash_Call) Run

func (*BaseEthereumClienter_HeaderByHash_Call) RunAndReturn

type BaseEthereumClienter_HeaderByNumber_Call

type BaseEthereumClienter_HeaderByNumber_Call struct {
	*mock.Call
}

BaseEthereumClienter_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*BaseEthereumClienter_HeaderByNumber_Call) Return

func (*BaseEthereumClienter_HeaderByNumber_Call) Run

func (*BaseEthereumClienter_HeaderByNumber_Call) RunAndReturn

type BaseEthereumClienter_NonceAt_Call added in v0.7.0

type BaseEthereumClienter_NonceAt_Call struct {
	*mock.Call
}

BaseEthereumClienter_NonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NonceAt'

func (*BaseEthereumClienter_NonceAt_Call) Return added in v0.7.0

func (*BaseEthereumClienter_NonceAt_Call) Run added in v0.7.0

func (*BaseEthereumClienter_NonceAt_Call) RunAndReturn added in v0.7.0

type BaseEthereumClienter_PendingCodeAt_Call

type BaseEthereumClienter_PendingCodeAt_Call struct {
	*mock.Call
}

BaseEthereumClienter_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'

func (*BaseEthereumClienter_PendingCodeAt_Call) Return

func (*BaseEthereumClienter_PendingCodeAt_Call) Run

func (*BaseEthereumClienter_PendingCodeAt_Call) RunAndReturn

type BaseEthereumClienter_PendingNonceAt_Call

type BaseEthereumClienter_PendingNonceAt_Call struct {
	*mock.Call
}

BaseEthereumClienter_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'

func (*BaseEthereumClienter_PendingNonceAt_Call) Return

func (*BaseEthereumClienter_PendingNonceAt_Call) Run

func (*BaseEthereumClienter_PendingNonceAt_Call) RunAndReturn

type BaseEthereumClienter_SendTransaction_Call

type BaseEthereumClienter_SendTransaction_Call struct {
	*mock.Call
}

BaseEthereumClienter_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'

func (*BaseEthereumClienter_SendTransaction_Call) Return

func (*BaseEthereumClienter_SendTransaction_Call) Run

func (*BaseEthereumClienter_SendTransaction_Call) RunAndReturn

type BaseEthereumClienter_StorageAt_Call added in v0.7.0

type BaseEthereumClienter_StorageAt_Call struct {
	*mock.Call
}

BaseEthereumClienter_StorageAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StorageAt'

func (*BaseEthereumClienter_StorageAt_Call) Return added in v0.7.0

func (*BaseEthereumClienter_StorageAt_Call) Run added in v0.7.0

func (*BaseEthereumClienter_StorageAt_Call) RunAndReturn added in v0.7.0

type BaseEthereumClienter_SubscribeFilterLogs_Call

type BaseEthereumClienter_SubscribeFilterLogs_Call struct {
	*mock.Call
}

BaseEthereumClienter_SubscribeFilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeFilterLogs'

func (*BaseEthereumClienter_SubscribeFilterLogs_Call) Return

func (*BaseEthereumClienter_SubscribeFilterLogs_Call) Run

func (*BaseEthereumClienter_SubscribeFilterLogs_Call) RunAndReturn

type BaseEthereumClienter_SubscribeNewHead_Call

type BaseEthereumClienter_SubscribeNewHead_Call struct {
	*mock.Call
}

BaseEthereumClienter_SubscribeNewHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeNewHead'

func (*BaseEthereumClienter_SubscribeNewHead_Call) Return

func (*BaseEthereumClienter_SubscribeNewHead_Call) Run

func (*BaseEthereumClienter_SubscribeNewHead_Call) RunAndReturn

type BaseEthereumClienter_SubscribeTransactionReceipts_Call added in v0.8.0

type BaseEthereumClienter_SubscribeTransactionReceipts_Call struct {
	*mock.Call
}

BaseEthereumClienter_SubscribeTransactionReceipts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeTransactionReceipts'

func (*BaseEthereumClienter_SubscribeTransactionReceipts_Call) Return added in v0.8.0

func (*BaseEthereumClienter_SubscribeTransactionReceipts_Call) Run added in v0.8.0

func (*BaseEthereumClienter_SubscribeTransactionReceipts_Call) RunAndReturn added in v0.8.0

type BaseEthereumClienter_SuggestGasPrice_Call

type BaseEthereumClienter_SuggestGasPrice_Call struct {
	*mock.Call
}

BaseEthereumClienter_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'

func (*BaseEthereumClienter_SuggestGasPrice_Call) Return

func (*BaseEthereumClienter_SuggestGasPrice_Call) Run

func (*BaseEthereumClienter_SuggestGasPrice_Call) RunAndReturn

type BaseEthereumClienter_SuggestGasTipCap_Call

type BaseEthereumClienter_SuggestGasTipCap_Call struct {
	*mock.Call
}

BaseEthereumClienter_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'

func (*BaseEthereumClienter_SuggestGasTipCap_Call) Return

func (*BaseEthereumClienter_SuggestGasTipCap_Call) Run

func (*BaseEthereumClienter_SuggestGasTipCap_Call) RunAndReturn

type BaseEthereumClienter_TransactionByHash_Call added in v0.7.0

type BaseEthereumClienter_TransactionByHash_Call struct {
	*mock.Call
}

BaseEthereumClienter_TransactionByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionByHash'

func (*BaseEthereumClienter_TransactionByHash_Call) Return added in v0.7.0

func (*BaseEthereumClienter_TransactionByHash_Call) Run added in v0.7.0

func (*BaseEthereumClienter_TransactionByHash_Call) RunAndReturn added in v0.7.0

type BaseEthereumClienter_TransactionCount_Call

type BaseEthereumClienter_TransactionCount_Call struct {
	*mock.Call
}

BaseEthereumClienter_TransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionCount'

func (*BaseEthereumClienter_TransactionCount_Call) Return

func (*BaseEthereumClienter_TransactionCount_Call) Run

func (*BaseEthereumClienter_TransactionCount_Call) RunAndReturn

type BaseEthereumClienter_TransactionInBlock_Call

type BaseEthereumClienter_TransactionInBlock_Call struct {
	*mock.Call
}

BaseEthereumClienter_TransactionInBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionInBlock'

func (*BaseEthereumClienter_TransactionInBlock_Call) Return

func (*BaseEthereumClienter_TransactionInBlock_Call) Run

func (*BaseEthereumClienter_TransactionInBlock_Call) RunAndReturn

type BaseEthereumClienter_TransactionReceipt_Call added in v0.7.0

type BaseEthereumClienter_TransactionReceipt_Call struct {
	*mock.Call
}

BaseEthereumClienter_TransactionReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionReceipt'

func (*BaseEthereumClienter_TransactionReceipt_Call) Return added in v0.7.0

func (*BaseEthereumClienter_TransactionReceipt_Call) Run added in v0.7.0

func (*BaseEthereumClienter_TransactionReceipt_Call) RunAndReturn added in v0.7.0

type BlockNotifier added in v0.8.0

type BlockNotifier struct {
	mock.Mock
}

BlockNotifier is an autogenerated mock type for the BlockNotifier type

func NewBlockNotifier added in v0.8.0

func NewBlockNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockNotifier

NewBlockNotifier creates a new instance of BlockNotifier. 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 (*BlockNotifier) BlockFinality added in v0.8.0

func (_m *BlockNotifier) BlockFinality() *types.BlockNumberFinality

BlockFinality provides a mock function with no fields

func (*BlockNotifier) EXPECT added in v0.8.0

func (_m *BlockNotifier) EXPECT() *BlockNotifier_Expecter

func (*BlockNotifier) GetCurrentBlockNumber added in v0.8.0

func (_m *BlockNotifier) GetCurrentBlockNumber() uint64

GetCurrentBlockNumber provides a mock function with no fields

type BlockNotifier_BlockFinality_Call added in v0.8.0

type BlockNotifier_BlockFinality_Call struct {
	*mock.Call
}

BlockNotifier_BlockFinality_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockFinality'

func (*BlockNotifier_BlockFinality_Call) Return added in v0.8.0

func (*BlockNotifier_BlockFinality_Call) Run added in v0.8.0

func (*BlockNotifier_BlockFinality_Call) RunAndReturn added in v0.8.0

type BlockNotifier_Expecter added in v0.8.0

type BlockNotifier_Expecter struct {
	// contains filtered or unexported fields
}

func (*BlockNotifier_Expecter) BlockFinality added in v0.8.0

BlockFinality is a helper method to define mock.On call

func (*BlockNotifier_Expecter) GetCurrentBlockNumber added in v0.8.0

GetCurrentBlockNumber is a helper method to define mock.On call

type BlockNotifier_GetCurrentBlockNumber_Call added in v0.8.0

type BlockNotifier_GetCurrentBlockNumber_Call struct {
	*mock.Call
}

BlockNotifier_GetCurrentBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentBlockNumber'

func (*BlockNotifier_GetCurrentBlockNumber_Call) Return added in v0.8.0

func (*BlockNotifier_GetCurrentBlockNumber_Call) Run added in v0.8.0

func (*BlockNotifier_GetCurrentBlockNumber_Call) RunAndReturn added in v0.8.0

type EthClienter

type EthClienter struct {
	mock.Mock
}

EthClienter is an autogenerated mock type for the EthClienter type

func NewEthClienter

func NewEthClienter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthClienter

NewEthClienter creates a new instance of EthClienter. 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 (*EthClienter) BalanceAt added in v0.7.0

func (_m *EthClienter) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)

BalanceAt provides a mock function with given fields: ctx, account, blockNumber

func (*EthClienter) BatchCallContext added in v0.8.0

func (_m *EthClienter) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, b

func (*EthClienter) BlockByHash

func (_m *EthClienter) BlockByHash(ctx context.Context, hash common.Hash) (*coretypes.Block, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*EthClienter) BlockByNumber

func (_m *EthClienter) BlockByNumber(ctx context.Context, number *big.Int) (*coretypes.Block, error)

BlockByNumber provides a mock function with given fields: ctx, number

func (*EthClienter) BlockNumber

func (_m *EthClienter) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber provides a mock function with given fields: ctx

func (*EthClienter) Call

func (_m *EthClienter) Call(result any, method string, args ...any) error

Call provides a mock function with given fields: result, method, args

func (*EthClienter) CallContract

func (_m *EthClienter) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, call, blockNumber

func (*EthClienter) ChainID

func (_m *EthClienter) ChainID(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

func (*EthClienter) CodeAt

func (_m *EthClienter) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, account, blockNumber

func (*EthClienter) EXPECT

func (_m *EthClienter) EXPECT() *EthClienter_Expecter

func (*EthClienter) EstimateGas

func (_m *EthClienter) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, call

func (*EthClienter) FilterLogs

func (_m *EthClienter) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]coretypes.Log, error)

FilterLogs provides a mock function with given fields: ctx, q

func (*EthClienter) HeaderByHash

func (_m *EthClienter) HeaderByHash(ctx context.Context, hash common.Hash) (*coretypes.Header, error)

HeaderByHash provides a mock function with given fields: ctx, hash

func (*EthClienter) HeaderByNumber

func (_m *EthClienter) HeaderByNumber(ctx context.Context, number *big.Int) (*coretypes.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*EthClienter) NonceAt added in v0.7.0

func (_m *EthClienter) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)

NonceAt provides a mock function with given fields: ctx, account, blockNumber

func (*EthClienter) PendingCodeAt

func (_m *EthClienter) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt provides a mock function with given fields: ctx, account

func (*EthClienter) PendingNonceAt

func (_m *EthClienter) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt provides a mock function with given fields: ctx, account

func (*EthClienter) SendTransaction

func (_m *EthClienter) SendTransaction(ctx context.Context, tx *coretypes.Transaction) error

SendTransaction provides a mock function with given fields: ctx, tx

func (*EthClienter) StorageAt added in v0.7.0

func (_m *EthClienter) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error)

StorageAt provides a mock function with given fields: ctx, account, key, blockNumber

func (*EthClienter) SubscribeFilterLogs

func (_m *EthClienter) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- coretypes.Log) (ethereum.Subscription, error)

SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch

func (*EthClienter) SubscribeNewHead

func (_m *EthClienter) SubscribeNewHead(ctx context.Context, ch chan<- *coretypes.Header) (ethereum.Subscription, error)

SubscribeNewHead provides a mock function with given fields: ctx, ch

func (*EthClienter) SubscribeTransactionReceipts added in v0.8.0

func (_m *EthClienter) SubscribeTransactionReceipts(ctx context.Context, q *ethereum.TransactionReceiptsQuery, ch chan<- []*coretypes.Receipt) (ethereum.Subscription, error)

SubscribeTransactionReceipts provides a mock function with given fields: ctx, q, ch

func (*EthClienter) SuggestGasPrice

func (_m *EthClienter) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*EthClienter) SuggestGasTipCap

func (_m *EthClienter) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap provides a mock function with given fields: ctx

func (*EthClienter) TransactionByHash added in v0.7.0

func (_m *EthClienter) TransactionByHash(ctx context.Context, txHash common.Hash) (*coretypes.Transaction, bool, error)

TransactionByHash provides a mock function with given fields: ctx, txHash

func (*EthClienter) TransactionCount

func (_m *EthClienter) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)

TransactionCount provides a mock function with given fields: ctx, blockHash

func (*EthClienter) TransactionInBlock

func (_m *EthClienter) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*coretypes.Transaction, error)

TransactionInBlock provides a mock function with given fields: ctx, blockHash, index

func (*EthClienter) TransactionReceipt added in v0.7.0

func (_m *EthClienter) TransactionReceipt(ctx context.Context, txHash common.Hash) (*coretypes.Receipt, error)

TransactionReceipt provides a mock function with given fields: ctx, txHash

type EthClienter_BalanceAt_Call added in v0.7.0

type EthClienter_BalanceAt_Call struct {
	*mock.Call
}

EthClienter_BalanceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BalanceAt'

func (*EthClienter_BalanceAt_Call) Return added in v0.7.0

func (*EthClienter_BalanceAt_Call) Run added in v0.7.0

func (_c *EthClienter_BalanceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthClienter_BalanceAt_Call

func (*EthClienter_BalanceAt_Call) RunAndReturn added in v0.7.0

type EthClienter_BatchCallContext_Call added in v0.8.0

type EthClienter_BatchCallContext_Call struct {
	*mock.Call
}

EthClienter_BatchCallContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCallContext'

func (*EthClienter_BatchCallContext_Call) Return added in v0.8.0

func (*EthClienter_BatchCallContext_Call) Run added in v0.8.0

func (*EthClienter_BatchCallContext_Call) RunAndReturn added in v0.8.0

type EthClienter_BlockByHash_Call

type EthClienter_BlockByHash_Call struct {
	*mock.Call
}

EthClienter_BlockByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHash'

func (*EthClienter_BlockByHash_Call) Return

func (*EthClienter_BlockByHash_Call) Run

func (*EthClienter_BlockByHash_Call) RunAndReturn

type EthClienter_BlockByNumber_Call

type EthClienter_BlockByNumber_Call struct {
	*mock.Call
}

EthClienter_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'

func (*EthClienter_BlockByNumber_Call) Return

func (*EthClienter_BlockByNumber_Call) Run

func (*EthClienter_BlockByNumber_Call) RunAndReturn

type EthClienter_BlockNumber_Call

type EthClienter_BlockNumber_Call struct {
	*mock.Call
}

EthClienter_BlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockNumber'

func (*EthClienter_BlockNumber_Call) Return

func (*EthClienter_BlockNumber_Call) Run

func (*EthClienter_BlockNumber_Call) RunAndReturn

type EthClienter_CallContract_Call

type EthClienter_CallContract_Call struct {
	*mock.Call
}

EthClienter_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'

func (*EthClienter_CallContract_Call) Return

func (*EthClienter_CallContract_Call) Run

func (*EthClienter_CallContract_Call) RunAndReturn

type EthClienter_Call_Call

type EthClienter_Call_Call struct {
	*mock.Call
}

EthClienter_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call'

func (*EthClienter_Call_Call) Return

func (*EthClienter_Call_Call) Run

func (_c *EthClienter_Call_Call) Run(run func(result any, method string, args ...any)) *EthClienter_Call_Call

func (*EthClienter_Call_Call) RunAndReturn

func (_c *EthClienter_Call_Call) RunAndReturn(run func(any, string, ...any) error) *EthClienter_Call_Call

type EthClienter_ChainID_Call

type EthClienter_ChainID_Call struct {
	*mock.Call
}

EthClienter_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'

func (*EthClienter_ChainID_Call) Return

func (*EthClienter_ChainID_Call) Run

func (*EthClienter_ChainID_Call) RunAndReturn

type EthClienter_CodeAt_Call

type EthClienter_CodeAt_Call struct {
	*mock.Call
}

EthClienter_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'

func (*EthClienter_CodeAt_Call) Return

func (*EthClienter_CodeAt_Call) Run

func (_c *EthClienter_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthClienter_CodeAt_Call

func (*EthClienter_CodeAt_Call) RunAndReturn

type EthClienter_EstimateGas_Call

type EthClienter_EstimateGas_Call struct {
	*mock.Call
}

EthClienter_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'

func (*EthClienter_EstimateGas_Call) Return

func (*EthClienter_EstimateGas_Call) Run

func (*EthClienter_EstimateGas_Call) RunAndReturn

type EthClienter_Expecter

type EthClienter_Expecter struct {
	// contains filtered or unexported fields
}

func (*EthClienter_Expecter) BalanceAt added in v0.7.0

func (_e *EthClienter_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthClienter_BalanceAt_Call

BalanceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*EthClienter_Expecter) BatchCallContext added in v0.8.0

func (_e *EthClienter_Expecter) BatchCallContext(ctx interface{}, b interface{}) *EthClienter_BatchCallContext_Call

BatchCallContext is a helper method to define mock.On call

  • ctx context.Context
  • b []rpc.BatchElem

func (*EthClienter_Expecter) BlockByHash

func (_e *EthClienter_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthClienter_BlockByHash_Call

BlockByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*EthClienter_Expecter) BlockByNumber

func (_e *EthClienter_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthClienter_BlockByNumber_Call

BlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthClienter_Expecter) BlockNumber

func (_e *EthClienter_Expecter) BlockNumber(ctx interface{}) *EthClienter_BlockNumber_Call

BlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*EthClienter_Expecter) Call

func (_e *EthClienter_Expecter) Call(result interface{}, method interface{}, args ...interface{}) *EthClienter_Call_Call

Call is a helper method to define mock.On call

  • result any
  • method string
  • args ...any

func (*EthClienter_Expecter) CallContract

func (_e *EthClienter_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthClienter_CallContract_Call

CallContract is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg
  • blockNumber *big.Int

func (*EthClienter_Expecter) ChainID

func (_e *EthClienter_Expecter) ChainID(ctx interface{}) *EthClienter_ChainID_Call

ChainID is a helper method to define mock.On call

  • ctx context.Context

func (*EthClienter_Expecter) CodeAt

func (_e *EthClienter_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthClienter_CodeAt_Call

CodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*EthClienter_Expecter) EstimateGas

func (_e *EthClienter_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthClienter_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg

func (*EthClienter_Expecter) FilterLogs

func (_e *EthClienter_Expecter) FilterLogs(ctx interface{}, q interface{}) *EthClienter_FilterLogs_Call

FilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery

func (*EthClienter_Expecter) HeaderByHash

func (_e *EthClienter_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthClienter_HeaderByHash_Call

HeaderByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*EthClienter_Expecter) HeaderByNumber

func (_e *EthClienter_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthClienter_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthClienter_Expecter) NonceAt added in v0.7.0

func (_e *EthClienter_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthClienter_NonceAt_Call

NonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*EthClienter_Expecter) PendingCodeAt

func (_e *EthClienter_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthClienter_PendingCodeAt_Call

PendingCodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthClienter_Expecter) PendingNonceAt

func (_e *EthClienter_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthClienter_PendingNonceAt_Call

PendingNonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthClienter_Expecter) SendTransaction

func (_e *EthClienter_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthClienter_SendTransaction_Call

SendTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *coretypes.Transaction

func (*EthClienter_Expecter) StorageAt added in v0.7.0

func (_e *EthClienter_Expecter) StorageAt(ctx interface{}, account interface{}, key interface{}, blockNumber interface{}) *EthClienter_StorageAt_Call

StorageAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • key common.Hash
  • blockNumber *big.Int

func (*EthClienter_Expecter) SubscribeFilterLogs

func (_e *EthClienter_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *EthClienter_SubscribeFilterLogs_Call

SubscribeFilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery
  • ch chan<- coretypes.Log

func (*EthClienter_Expecter) SubscribeNewHead

func (_e *EthClienter_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthClienter_SubscribeNewHead_Call

SubscribeNewHead is a helper method to define mock.On call

  • ctx context.Context
  • ch chan<- *coretypes.Header

func (*EthClienter_Expecter) SubscribeTransactionReceipts added in v0.8.0

func (_e *EthClienter_Expecter) SubscribeTransactionReceipts(ctx interface{}, q interface{}, ch interface{}) *EthClienter_SubscribeTransactionReceipts_Call

SubscribeTransactionReceipts is a helper method to define mock.On call

  • ctx context.Context
  • q *ethereum.TransactionReceiptsQuery
  • ch chan<- []*coretypes.Receipt

func (*EthClienter_Expecter) SuggestGasPrice

func (_e *EthClienter_Expecter) SuggestGasPrice(ctx interface{}) *EthClienter_SuggestGasPrice_Call

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*EthClienter_Expecter) SuggestGasTipCap

func (_e *EthClienter_Expecter) SuggestGasTipCap(ctx interface{}) *EthClienter_SuggestGasTipCap_Call

SuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

func (*EthClienter_Expecter) TransactionByHash added in v0.7.0

func (_e *EthClienter_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *EthClienter_TransactionByHash_Call

TransactionByHash is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthClienter_Expecter) TransactionCount

func (_e *EthClienter_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthClienter_TransactionCount_Call

TransactionCount is a helper method to define mock.On call

  • ctx context.Context
  • blockHash common.Hash

func (*EthClienter_Expecter) TransactionInBlock

func (_e *EthClienter_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthClienter_TransactionInBlock_Call

TransactionInBlock is a helper method to define mock.On call

  • ctx context.Context
  • blockHash common.Hash
  • index uint

func (*EthClienter_Expecter) TransactionReceipt added in v0.7.0

func (_e *EthClienter_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthClienter_TransactionReceipt_Call

TransactionReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

type EthClienter_FilterLogs_Call

type EthClienter_FilterLogs_Call struct {
	*mock.Call
}

EthClienter_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'

func (*EthClienter_FilterLogs_Call) Return

func (*EthClienter_FilterLogs_Call) Run

func (*EthClienter_FilterLogs_Call) RunAndReturn

type EthClienter_HeaderByHash_Call

type EthClienter_HeaderByHash_Call struct {
	*mock.Call
}

EthClienter_HeaderByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByHash'

func (*EthClienter_HeaderByHash_Call) Return

func (*EthClienter_HeaderByHash_Call) Run

func (*EthClienter_HeaderByHash_Call) RunAndReturn

type EthClienter_HeaderByNumber_Call

type EthClienter_HeaderByNumber_Call struct {
	*mock.Call
}

EthClienter_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*EthClienter_HeaderByNumber_Call) Return

func (*EthClienter_HeaderByNumber_Call) Run

func (*EthClienter_HeaderByNumber_Call) RunAndReturn

type EthClienter_NonceAt_Call added in v0.7.0

type EthClienter_NonceAt_Call struct {
	*mock.Call
}

EthClienter_NonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NonceAt'

func (*EthClienter_NonceAt_Call) Return added in v0.7.0

func (*EthClienter_NonceAt_Call) Run added in v0.7.0

func (_c *EthClienter_NonceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthClienter_NonceAt_Call

func (*EthClienter_NonceAt_Call) RunAndReturn added in v0.7.0

type EthClienter_PendingCodeAt_Call

type EthClienter_PendingCodeAt_Call struct {
	*mock.Call
}

EthClienter_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'

func (*EthClienter_PendingCodeAt_Call) Return

func (*EthClienter_PendingCodeAt_Call) Run

func (*EthClienter_PendingCodeAt_Call) RunAndReturn

type EthClienter_PendingNonceAt_Call

type EthClienter_PendingNonceAt_Call struct {
	*mock.Call
}

EthClienter_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'

func (*EthClienter_PendingNonceAt_Call) Return

func (*EthClienter_PendingNonceAt_Call) Run

func (*EthClienter_PendingNonceAt_Call) RunAndReturn

type EthClienter_SendTransaction_Call

type EthClienter_SendTransaction_Call struct {
	*mock.Call
}

EthClienter_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'

func (*EthClienter_SendTransaction_Call) Return

func (*EthClienter_SendTransaction_Call) Run

func (*EthClienter_SendTransaction_Call) RunAndReturn

type EthClienter_StorageAt_Call added in v0.7.0

type EthClienter_StorageAt_Call struct {
	*mock.Call
}

EthClienter_StorageAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StorageAt'

func (*EthClienter_StorageAt_Call) Return added in v0.7.0

func (*EthClienter_StorageAt_Call) Run added in v0.7.0

func (_c *EthClienter_StorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int)) *EthClienter_StorageAt_Call

func (*EthClienter_StorageAt_Call) RunAndReturn added in v0.7.0

type EthClienter_SubscribeFilterLogs_Call

type EthClienter_SubscribeFilterLogs_Call struct {
	*mock.Call
}

EthClienter_SubscribeFilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeFilterLogs'

func (*EthClienter_SubscribeFilterLogs_Call) Return

func (*EthClienter_SubscribeFilterLogs_Call) Run

func (*EthClienter_SubscribeFilterLogs_Call) RunAndReturn

type EthClienter_SubscribeNewHead_Call

type EthClienter_SubscribeNewHead_Call struct {
	*mock.Call
}

EthClienter_SubscribeNewHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeNewHead'

func (*EthClienter_SubscribeNewHead_Call) Return

func (*EthClienter_SubscribeNewHead_Call) Run

func (*EthClienter_SubscribeNewHead_Call) RunAndReturn

type EthClienter_SubscribeTransactionReceipts_Call added in v0.8.0

type EthClienter_SubscribeTransactionReceipts_Call struct {
	*mock.Call
}

EthClienter_SubscribeTransactionReceipts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeTransactionReceipts'

func (*EthClienter_SubscribeTransactionReceipts_Call) Return added in v0.8.0

func (*EthClienter_SubscribeTransactionReceipts_Call) Run added in v0.8.0

func (*EthClienter_SubscribeTransactionReceipts_Call) RunAndReturn added in v0.8.0

type EthClienter_SuggestGasPrice_Call

type EthClienter_SuggestGasPrice_Call struct {
	*mock.Call
}

EthClienter_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'

func (*EthClienter_SuggestGasPrice_Call) Return

func (*EthClienter_SuggestGasPrice_Call) Run

func (*EthClienter_SuggestGasPrice_Call) RunAndReturn

type EthClienter_SuggestGasTipCap_Call

type EthClienter_SuggestGasTipCap_Call struct {
	*mock.Call
}

EthClienter_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'

func (*EthClienter_SuggestGasTipCap_Call) Return

func (*EthClienter_SuggestGasTipCap_Call) Run

func (*EthClienter_SuggestGasTipCap_Call) RunAndReturn

type EthClienter_TransactionByHash_Call added in v0.7.0

type EthClienter_TransactionByHash_Call struct {
	*mock.Call
}

EthClienter_TransactionByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionByHash'

func (*EthClienter_TransactionByHash_Call) Return added in v0.7.0

func (*EthClienter_TransactionByHash_Call) Run added in v0.7.0

func (*EthClienter_TransactionByHash_Call) RunAndReturn added in v0.7.0

type EthClienter_TransactionCount_Call

type EthClienter_TransactionCount_Call struct {
	*mock.Call
}

EthClienter_TransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionCount'

func (*EthClienter_TransactionCount_Call) Return

func (*EthClienter_TransactionCount_Call) Run

func (*EthClienter_TransactionCount_Call) RunAndReturn

type EthClienter_TransactionInBlock_Call

type EthClienter_TransactionInBlock_Call struct {
	*mock.Call
}

EthClienter_TransactionInBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionInBlock'

func (*EthClienter_TransactionInBlock_Call) Return

func (*EthClienter_TransactionInBlock_Call) Run

func (*EthClienter_TransactionInBlock_Call) RunAndReturn

type EthClienter_TransactionReceipt_Call added in v0.7.0

type EthClienter_TransactionReceipt_Call struct {
	*mock.Call
}

EthClienter_TransactionReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionReceipt'

func (*EthClienter_TransactionReceipt_Call) Return added in v0.7.0

func (*EthClienter_TransactionReceipt_Call) Run added in v0.7.0

func (*EthClienter_TransactionReceipt_Call) RunAndReturn added in v0.7.0

type MultiDownloader added in v0.8.0

type MultiDownloader struct {
	mock.Mock
}

MultiDownloader is an autogenerated mock type for the MultiDownloader type

func NewMultiDownloader added in v0.8.0

func NewMultiDownloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MultiDownloader

NewMultiDownloader creates a new instance of MultiDownloader. 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 (*MultiDownloader) BlockHeader added in v0.8.0

func (_m *MultiDownloader) BlockHeader(ctx context.Context, finality types.BlockNumberFinality) (*types.BlockHeader, error)

BlockHeader provides a mock function with given fields: ctx, finality

func (*MultiDownloader) BlockNumber added in v0.8.0

func (_m *MultiDownloader) BlockNumber(ctx context.Context, finality types.BlockNumberFinality) (uint64, error)

BlockNumber provides a mock function with given fields: ctx, finality

func (*MultiDownloader) ChainID added in v0.8.0

func (_m *MultiDownloader) ChainID(ctx context.Context) (uint64, error)

ChainID provides a mock function with given fields: ctx

func (*MultiDownloader) EXPECT added in v0.8.0

func (*MultiDownloader) EthClient added in v0.8.0

func (_m *MultiDownloader) EthClient() types.BaseEthereumClienter

EthClient provides a mock function with no fields

func (*MultiDownloader) FilterLogs added in v0.8.0

func (_m *MultiDownloader) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]coretypes.Log, error)

FilterLogs provides a mock function with given fields: ctx, q

func (*MultiDownloader) HeaderByNumber added in v0.8.0

func (_m *MultiDownloader) HeaderByNumber(ctx context.Context, number *big.Int) (*types.BlockHeader, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*MultiDownloader) RegisterSyncer added in v0.8.0

func (_m *MultiDownloader) RegisterSyncer(data types.SyncerConfig) error

RegisterSyncer provides a mock function with given fields: data

func (*MultiDownloader) Start added in v0.8.0

func (_m *MultiDownloader) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

type MultiDownloader_BlockHeader_Call added in v0.8.0

type MultiDownloader_BlockHeader_Call struct {
	*mock.Call
}

MultiDownloader_BlockHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockHeader'

func (*MultiDownloader_BlockHeader_Call) Return added in v0.8.0

func (*MultiDownloader_BlockHeader_Call) Run added in v0.8.0

func (*MultiDownloader_BlockHeader_Call) RunAndReturn added in v0.8.0

type MultiDownloader_BlockNumber_Call added in v0.8.0

type MultiDownloader_BlockNumber_Call struct {
	*mock.Call
}

MultiDownloader_BlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockNumber'

func (*MultiDownloader_BlockNumber_Call) Return added in v0.8.0

func (*MultiDownloader_BlockNumber_Call) Run added in v0.8.0

func (*MultiDownloader_BlockNumber_Call) RunAndReturn added in v0.8.0

type MultiDownloader_ChainID_Call added in v0.8.0

type MultiDownloader_ChainID_Call struct {
	*mock.Call
}

MultiDownloader_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'

func (*MultiDownloader_ChainID_Call) Return added in v0.8.0

func (*MultiDownloader_ChainID_Call) Run added in v0.8.0

func (*MultiDownloader_ChainID_Call) RunAndReturn added in v0.8.0

type MultiDownloader_EthClient_Call added in v0.8.0

type MultiDownloader_EthClient_Call struct {
	*mock.Call
}

MultiDownloader_EthClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EthClient'

func (*MultiDownloader_EthClient_Call) Return added in v0.8.0

func (*MultiDownloader_EthClient_Call) Run added in v0.8.0

func (*MultiDownloader_EthClient_Call) RunAndReturn added in v0.8.0

type MultiDownloader_Expecter added in v0.8.0

type MultiDownloader_Expecter struct {
	// contains filtered or unexported fields
}

func (*MultiDownloader_Expecter) BlockHeader added in v0.8.0

func (_e *MultiDownloader_Expecter) BlockHeader(ctx interface{}, finality interface{}) *MultiDownloader_BlockHeader_Call

BlockHeader is a helper method to define mock.On call

  • ctx context.Context
  • finality types.BlockNumberFinality

func (*MultiDownloader_Expecter) BlockNumber added in v0.8.0

func (_e *MultiDownloader_Expecter) BlockNumber(ctx interface{}, finality interface{}) *MultiDownloader_BlockNumber_Call

BlockNumber is a helper method to define mock.On call

  • ctx context.Context
  • finality types.BlockNumberFinality

func (*MultiDownloader_Expecter) ChainID added in v0.8.0

func (_e *MultiDownloader_Expecter) ChainID(ctx interface{}) *MultiDownloader_ChainID_Call

ChainID is a helper method to define mock.On call

  • ctx context.Context

func (*MultiDownloader_Expecter) EthClient added in v0.8.0

EthClient is a helper method to define mock.On call

func (*MultiDownloader_Expecter) FilterLogs added in v0.8.0

func (_e *MultiDownloader_Expecter) FilterLogs(ctx interface{}, q interface{}) *MultiDownloader_FilterLogs_Call

FilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery

func (*MultiDownloader_Expecter) HeaderByNumber added in v0.8.0

func (_e *MultiDownloader_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *MultiDownloader_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*MultiDownloader_Expecter) RegisterSyncer added in v0.8.0

func (_e *MultiDownloader_Expecter) RegisterSyncer(data interface{}) *MultiDownloader_RegisterSyncer_Call

RegisterSyncer is a helper method to define mock.On call

  • data types.SyncerConfig

func (*MultiDownloader_Expecter) Start added in v0.8.0

func (_e *MultiDownloader_Expecter) Start(ctx interface{}) *MultiDownloader_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type MultiDownloader_FilterLogs_Call added in v0.8.0

type MultiDownloader_FilterLogs_Call struct {
	*mock.Call
}

MultiDownloader_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'

func (*MultiDownloader_FilterLogs_Call) Return added in v0.8.0

func (*MultiDownloader_FilterLogs_Call) Run added in v0.8.0

func (*MultiDownloader_FilterLogs_Call) RunAndReturn added in v0.8.0

type MultiDownloader_HeaderByNumber_Call added in v0.8.0

type MultiDownloader_HeaderByNumber_Call struct {
	*mock.Call
}

MultiDownloader_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*MultiDownloader_HeaderByNumber_Call) Return added in v0.8.0

func (*MultiDownloader_HeaderByNumber_Call) Run added in v0.8.0

func (*MultiDownloader_HeaderByNumber_Call) RunAndReturn added in v0.8.0

type MultiDownloader_RegisterSyncer_Call added in v0.8.0

type MultiDownloader_RegisterSyncer_Call struct {
	*mock.Call
}

MultiDownloader_RegisterSyncer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterSyncer'

func (*MultiDownloader_RegisterSyncer_Call) Return added in v0.8.0

func (*MultiDownloader_RegisterSyncer_Call) Run added in v0.8.0

func (*MultiDownloader_RegisterSyncer_Call) RunAndReturn added in v0.8.0

type MultiDownloader_Start_Call added in v0.8.0

type MultiDownloader_Start_Call struct {
	*mock.Call
}

MultiDownloader_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*MultiDownloader_Start_Call) Return added in v0.8.0

func (*MultiDownloader_Start_Call) Run added in v0.8.0

func (*MultiDownloader_Start_Call) RunAndReturn added in v0.8.0

type RPCClienter

type RPCClienter struct {
	mock.Mock
}

RPCClienter is an autogenerated mock type for the RPCClienter type

func NewRPCClienter

func NewRPCClienter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RPCClienter

NewRPCClienter creates a new instance of RPCClienter. 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 (*RPCClienter) BatchCallContext added in v0.8.0

func (_m *RPCClienter) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, b

func (*RPCClienter) Call

func (_m *RPCClienter) Call(result any, method string, args ...any) error

Call provides a mock function with given fields: result, method, args

func (*RPCClienter) EXPECT

func (_m *RPCClienter) EXPECT() *RPCClienter_Expecter

type RPCClienter_BatchCallContext_Call added in v0.8.0

type RPCClienter_BatchCallContext_Call struct {
	*mock.Call
}

RPCClienter_BatchCallContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCallContext'

func (*RPCClienter_BatchCallContext_Call) Return added in v0.8.0

func (*RPCClienter_BatchCallContext_Call) Run added in v0.8.0

func (*RPCClienter_BatchCallContext_Call) RunAndReturn added in v0.8.0

type RPCClienter_Call_Call

type RPCClienter_Call_Call struct {
	*mock.Call
}

RPCClienter_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call'

func (*RPCClienter_Call_Call) Return

func (*RPCClienter_Call_Call) Run

func (_c *RPCClienter_Call_Call) Run(run func(result any, method string, args ...any)) *RPCClienter_Call_Call

func (*RPCClienter_Call_Call) RunAndReturn

func (_c *RPCClienter_Call_Call) RunAndReturn(run func(any, string, ...any) error) *RPCClienter_Call_Call

type RPCClienter_Expecter

type RPCClienter_Expecter struct {
	// contains filtered or unexported fields
}

func (*RPCClienter_Expecter) BatchCallContext added in v0.8.0

func (_e *RPCClienter_Expecter) BatchCallContext(ctx interface{}, b interface{}) *RPCClienter_BatchCallContext_Call

BatchCallContext is a helper method to define mock.On call

  • ctx context.Context
  • b []rpc.BatchElem

func (*RPCClienter_Expecter) Call

func (_e *RPCClienter_Expecter) Call(result interface{}, method interface{}, args ...interface{}) *RPCClienter_Call_Call

Call is a helper method to define mock.On call

  • result any
  • method string
  • args ...any

Jump to

Keyboard shortcuts

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