mocks

package
v0.0.0-...-55ecaa8 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthClientMock

type EthClientMock struct {
	mock.Mock
}

EthClientMock is an autogenerated mock type for the EthClient type

func NewEthClientMock

func NewEthClientMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthClientMock

NewEthClientMock creates a new instance of EthClientMock. 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 (*EthClientMock) BalanceAt

func (_m *EthClientMock) BalanceAt(_a0 context.Context, _a1 common.Address, _a2 *big.Int) (*big.Int, error)

BalanceAt provides a mock function with given fields: _a0, _a1, _a2

func (*EthClientMock) BlockNumber

func (_m *EthClientMock) BlockNumber(_a0 context.Context) (uint64, error)

BlockNumber provides a mock function with given fields: _a0

func (*EthClientMock) CallContract

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

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

func (*EthClientMock) ChainID

func (_m *EthClientMock) ChainID(_a0 context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: _a0

func (*EthClientMock) CodeAt

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

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

func (*EthClientMock) EXPECT

func (_m *EthClientMock) EXPECT() *EthClientMock_Expecter

func (*EthClientMock) EstimateGas

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

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

func (*EthClientMock) FilterLogs

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

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

func (*EthClientMock) HeaderByNumber

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

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

func (*EthClientMock) PendingCodeAt

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

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

func (*EthClientMock) PendingNonceAt

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

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

func (*EthClientMock) SendTransaction

func (_m *EthClientMock) SendTransaction(ctx context.Context, tx *types.Transaction) error

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

func (*EthClientMock) SubscribeFilterLogs

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

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

func (*EthClientMock) SuggestGasPrice

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

SuggestGasPrice provides a mock function with given fields: ctx

func (*EthClientMock) SuggestGasTipCap

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

SuggestGasTipCap provides a mock function with given fields: ctx

func (*EthClientMock) TransactionReceipt

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

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

type EthClientMock_BalanceAt_Call

type EthClientMock_BalanceAt_Call struct {
	*mock.Call
}

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

func (*EthClientMock_BalanceAt_Call) Return

func (*EthClientMock_BalanceAt_Call) Run

func (*EthClientMock_BalanceAt_Call) RunAndReturn

type EthClientMock_BlockNumber_Call

type EthClientMock_BlockNumber_Call struct {
	*mock.Call
}

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

func (*EthClientMock_BlockNumber_Call) Return

func (*EthClientMock_BlockNumber_Call) Run

func (*EthClientMock_BlockNumber_Call) RunAndReturn

type EthClientMock_CallContract_Call

type EthClientMock_CallContract_Call struct {
	*mock.Call
}

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

func (*EthClientMock_CallContract_Call) Return

func (*EthClientMock_CallContract_Call) Run

func (*EthClientMock_CallContract_Call) RunAndReturn

type EthClientMock_ChainID_Call

type EthClientMock_ChainID_Call struct {
	*mock.Call
}

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

func (*EthClientMock_ChainID_Call) Return

func (*EthClientMock_ChainID_Call) Run

func (*EthClientMock_ChainID_Call) RunAndReturn

type EthClientMock_CodeAt_Call

type EthClientMock_CodeAt_Call struct {
	*mock.Call
}

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

func (*EthClientMock_CodeAt_Call) Return

func (*EthClientMock_CodeAt_Call) Run

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

func (*EthClientMock_CodeAt_Call) RunAndReturn

type EthClientMock_EstimateGas_Call

type EthClientMock_EstimateGas_Call struct {
	*mock.Call
}

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

func (*EthClientMock_EstimateGas_Call) Return

func (*EthClientMock_EstimateGas_Call) Run

func (*EthClientMock_EstimateGas_Call) RunAndReturn

type EthClientMock_Expecter

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

func (*EthClientMock_Expecter) BalanceAt

func (_e *EthClientMock_Expecter) BalanceAt(_a0 interface{}, _a1 interface{}, _a2 interface{}) *EthClientMock_BalanceAt_Call

BalanceAt is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 common.Address
  • _a2 *big.Int

func (*EthClientMock_Expecter) BlockNumber

func (_e *EthClientMock_Expecter) BlockNumber(_a0 interface{}) *EthClientMock_BlockNumber_Call

BlockNumber is a helper method to define mock.On call

  • _a0 context.Context

func (*EthClientMock_Expecter) CallContract

func (_e *EthClientMock_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthClientMock_CallContract_Call

CallContract is a helper method to define mock.On call

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

func (*EthClientMock_Expecter) ChainID

func (_e *EthClientMock_Expecter) ChainID(_a0 interface{}) *EthClientMock_ChainID_Call

ChainID is a helper method to define mock.On call

  • _a0 context.Context

func (*EthClientMock_Expecter) CodeAt

func (_e *EthClientMock_Expecter) CodeAt(ctx interface{}, contract interface{}, blockNumber interface{}) *EthClientMock_CodeAt_Call

CodeAt is a helper method to define mock.On call

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

func (*EthClientMock_Expecter) EstimateGas

func (_e *EthClientMock_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthClientMock_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg

func (*EthClientMock_Expecter) FilterLogs

func (_e *EthClientMock_Expecter) FilterLogs(ctx interface{}, q interface{}) *EthClientMock_FilterLogs_Call

FilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery

func (*EthClientMock_Expecter) HeaderByNumber

func (_e *EthClientMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthClientMock_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthClientMock_Expecter) PendingCodeAt

func (_e *EthClientMock_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthClientMock_PendingCodeAt_Call

PendingCodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthClientMock_Expecter) PendingNonceAt

func (_e *EthClientMock_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthClientMock_PendingNonceAt_Call

PendingNonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthClientMock_Expecter) SendTransaction

func (_e *EthClientMock_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthClientMock_SendTransaction_Call

SendTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*EthClientMock_Expecter) SubscribeFilterLogs

func (_e *EthClientMock_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *EthClientMock_SubscribeFilterLogs_Call

SubscribeFilterLogs is a helper method to define mock.On call

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

func (*EthClientMock_Expecter) SuggestGasPrice

func (_e *EthClientMock_Expecter) SuggestGasPrice(ctx interface{}) *EthClientMock_SuggestGasPrice_Call

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*EthClientMock_Expecter) SuggestGasTipCap

func (_e *EthClientMock_Expecter) SuggestGasTipCap(ctx interface{}) *EthClientMock_SuggestGasTipCap_Call

SuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

func (*EthClientMock_Expecter) TransactionReceipt

func (_e *EthClientMock_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthClientMock_TransactionReceipt_Call

TransactionReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

type EthClientMock_FilterLogs_Call

type EthClientMock_FilterLogs_Call struct {
	*mock.Call
}

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

func (*EthClientMock_FilterLogs_Call) Return

func (*EthClientMock_FilterLogs_Call) Run

func (*EthClientMock_FilterLogs_Call) RunAndReturn

type EthClientMock_HeaderByNumber_Call

type EthClientMock_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*EthClientMock_HeaderByNumber_Call) Return

func (*EthClientMock_HeaderByNumber_Call) Run

func (*EthClientMock_HeaderByNumber_Call) RunAndReturn

type EthClientMock_PendingCodeAt_Call

type EthClientMock_PendingCodeAt_Call struct {
	*mock.Call
}

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

func (*EthClientMock_PendingCodeAt_Call) Return

func (*EthClientMock_PendingCodeAt_Call) Run

func (*EthClientMock_PendingCodeAt_Call) RunAndReturn

type EthClientMock_PendingNonceAt_Call

type EthClientMock_PendingNonceAt_Call struct {
	*mock.Call
}

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

func (*EthClientMock_PendingNonceAt_Call) Return

func (*EthClientMock_PendingNonceAt_Call) Run

func (*EthClientMock_PendingNonceAt_Call) RunAndReturn

type EthClientMock_SendTransaction_Call

type EthClientMock_SendTransaction_Call struct {
	*mock.Call
}

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

func (*EthClientMock_SendTransaction_Call) Return

func (*EthClientMock_SendTransaction_Call) Run

func (*EthClientMock_SendTransaction_Call) RunAndReturn

type EthClientMock_SubscribeFilterLogs_Call

type EthClientMock_SubscribeFilterLogs_Call struct {
	*mock.Call
}

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

func (*EthClientMock_SubscribeFilterLogs_Call) Return

func (*EthClientMock_SubscribeFilterLogs_Call) Run

func (*EthClientMock_SubscribeFilterLogs_Call) RunAndReturn

type EthClientMock_SuggestGasPrice_Call

type EthClientMock_SuggestGasPrice_Call struct {
	*mock.Call
}

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

func (*EthClientMock_SuggestGasPrice_Call) Return

func (*EthClientMock_SuggestGasPrice_Call) Run

func (*EthClientMock_SuggestGasPrice_Call) RunAndReturn

type EthClientMock_SuggestGasTipCap_Call

type EthClientMock_SuggestGasTipCap_Call struct {
	*mock.Call
}

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

func (*EthClientMock_SuggestGasTipCap_Call) Return

func (*EthClientMock_SuggestGasTipCap_Call) Run

func (*EthClientMock_SuggestGasTipCap_Call) RunAndReturn

type EthClientMock_TransactionReceipt_Call

type EthClientMock_TransactionReceipt_Call struct {
	*mock.Call
}

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

func (*EthClientMock_TransactionReceipt_Call) Return

func (*EthClientMock_TransactionReceipt_Call) Run

func (*EthClientMock_TransactionReceipt_Call) RunAndReturn

Jump to

Keyboard shortcuts

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