Documentation ¶
Index ¶
- type EthClientMock
- func (_m *EthClientMock) BalanceAt(_a0 context.Context, _a1 common.Address, _a2 *big.Int) (*big.Int, error)
- func (_m *EthClientMock) BlockNumber(_a0 context.Context) (uint64, error)
- func (_m *EthClientMock) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EthClientMock) ChainID(_a0 context.Context) (*big.Int, error)
- func (_m *EthClientMock) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *EthClientMock) EXPECT() *EthClientMock_Expecter
- func (_m *EthClientMock) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *EthClientMock) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *EthClientMock) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EthClientMock) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *EthClientMock) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EthClientMock) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *EthClientMock) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *EthClientMock) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *EthClientMock) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *EthClientMock) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type EthClientMock_BalanceAt_Call
- func (_c *EthClientMock_BalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_BalanceAt_Call
- func (_c *EthClientMock_BalanceAt_Call) Run(run func(_a0 context.Context, _a1 common.Address, _a2 *big.Int)) *EthClientMock_BalanceAt_Call
- func (_c *EthClientMock_BalanceAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) (*big.Int, error)) *EthClientMock_BalanceAt_Call
- type EthClientMock_BlockNumber_Call
- func (_c *EthClientMock_BlockNumber_Call) Return(_a0 uint64, _a1 error) *EthClientMock_BlockNumber_Call
- func (_c *EthClientMock_BlockNumber_Call) Run(run func(_a0 context.Context)) *EthClientMock_BlockNumber_Call
- func (_c *EthClientMock_BlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *EthClientMock_BlockNumber_Call
- type EthClientMock_CallContract_Call
- func (_c *EthClientMock_CallContract_Call) Return(_a0 []byte, _a1 error) *EthClientMock_CallContract_Call
- func (_c *EthClientMock_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthClientMock_CallContract_Call
- func (_c *EthClientMock_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthClientMock_CallContract_Call
- type EthClientMock_ChainID_Call
- func (_c *EthClientMock_ChainID_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_ChainID_Call
- func (_c *EthClientMock_ChainID_Call) Run(run func(_a0 context.Context)) *EthClientMock_ChainID_Call
- func (_c *EthClientMock_ChainID_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClientMock_ChainID_Call
- type EthClientMock_CodeAt_Call
- func (_c *EthClientMock_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthClientMock_CodeAt_Call
- func (_c *EthClientMock_CodeAt_Call) Run(run func(ctx context.Context, contract common.Address, blockNumber *big.Int)) *EthClientMock_CodeAt_Call
- func (_c *EthClientMock_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthClientMock_CodeAt_Call
- type EthClientMock_EstimateGas_Call
- func (_c *EthClientMock_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthClientMock_EstimateGas_Call
- func (_c *EthClientMock_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthClientMock_EstimateGas_Call
- func (_c *EthClientMock_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthClientMock_EstimateGas_Call
- type EthClientMock_Expecter
- func (_e *EthClientMock_Expecter) BalanceAt(_a0 interface{}, _a1 interface{}, _a2 interface{}) *EthClientMock_BalanceAt_Call
- func (_e *EthClientMock_Expecter) BlockNumber(_a0 interface{}) *EthClientMock_BlockNumber_Call
- func (_e *EthClientMock_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthClientMock_CallContract_Call
- func (_e *EthClientMock_Expecter) ChainID(_a0 interface{}) *EthClientMock_ChainID_Call
- func (_e *EthClientMock_Expecter) CodeAt(ctx interface{}, contract interface{}, blockNumber interface{}) *EthClientMock_CodeAt_Call
- func (_e *EthClientMock_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthClientMock_EstimateGas_Call
- func (_e *EthClientMock_Expecter) FilterLogs(ctx interface{}, q interface{}) *EthClientMock_FilterLogs_Call
- func (_e *EthClientMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthClientMock_HeaderByNumber_Call
- func (_e *EthClientMock_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthClientMock_PendingCodeAt_Call
- func (_e *EthClientMock_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthClientMock_PendingNonceAt_Call
- func (_e *EthClientMock_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthClientMock_SendTransaction_Call
- func (_e *EthClientMock_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *EthClientMock_SubscribeFilterLogs_Call
- func (_e *EthClientMock_Expecter) SuggestGasPrice(ctx interface{}) *EthClientMock_SuggestGasPrice_Call
- func (_e *EthClientMock_Expecter) SuggestGasTipCap(ctx interface{}) *EthClientMock_SuggestGasTipCap_Call
- func (_e *EthClientMock_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthClientMock_TransactionReceipt_Call
- type EthClientMock_FilterLogs_Call
- func (_c *EthClientMock_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *EthClientMock_FilterLogs_Call
- func (_c *EthClientMock_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *EthClientMock_FilterLogs_Call
- func (_c *EthClientMock_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *EthClientMock_FilterLogs_Call
- type EthClientMock_HeaderByNumber_Call
- func (_c *EthClientMock_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthClientMock_HeaderByNumber_Call
- func (_c *EthClientMock_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthClientMock_HeaderByNumber_Call
- func (_c *EthClientMock_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthClientMock_HeaderByNumber_Call
- type EthClientMock_PendingCodeAt_Call
- func (_c *EthClientMock_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthClientMock_PendingCodeAt_Call
- func (_c *EthClientMock_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClientMock_PendingCodeAt_Call
- func (_c *EthClientMock_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthClientMock_PendingCodeAt_Call
- type EthClientMock_PendingNonceAt_Call
- func (_c *EthClientMock_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthClientMock_PendingNonceAt_Call
- func (_c *EthClientMock_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClientMock_PendingNonceAt_Call
- func (_c *EthClientMock_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthClientMock_PendingNonceAt_Call
- type EthClientMock_SendTransaction_Call
- func (_c *EthClientMock_SendTransaction_Call) Return(_a0 error) *EthClientMock_SendTransaction_Call
- func (_c *EthClientMock_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthClientMock_SendTransaction_Call
- func (_c *EthClientMock_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthClientMock_SendTransaction_Call
- type EthClientMock_SubscribeFilterLogs_Call
- func (_c *EthClientMock_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthClientMock_SubscribeFilterLogs_Call
- func (_c *EthClientMock_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *EthClientMock_SubscribeFilterLogs_Call
- func (_c *EthClientMock_SubscribeFilterLogs_Call) RunAndReturn(...) *EthClientMock_SubscribeFilterLogs_Call
- type EthClientMock_SuggestGasPrice_Call
- func (_c *EthClientMock_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_SuggestGasPrice_Call
- func (_c *EthClientMock_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthClientMock_SuggestGasPrice_Call
- func (_c *EthClientMock_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClientMock_SuggestGasPrice_Call
- type EthClientMock_SuggestGasTipCap_Call
- func (_c *EthClientMock_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_SuggestGasTipCap_Call
- func (_c *EthClientMock_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthClientMock_SuggestGasTipCap_Call
- func (_c *EthClientMock_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClientMock_SuggestGasTipCap_Call
- type EthClientMock_TransactionReceipt_Call
- func (_c *EthClientMock_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthClientMock_TransactionReceipt_Call
- func (_c *EthClientMock_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthClientMock_TransactionReceipt_Call
- func (_c *EthClientMock_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthClientMock_TransactionReceipt_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthClientMock ¶
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) 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 ¶
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 ¶
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 ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*EthClientMock) SuggestGasTipCap ¶
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 ¶
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 (_c *EthClientMock_BalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_BalanceAt_Call
func (*EthClientMock_BalanceAt_Call) Run ¶
func (_c *EthClientMock_BalanceAt_Call) Run(run func(_a0 context.Context, _a1 common.Address, _a2 *big.Int)) *EthClientMock_BalanceAt_Call
func (*EthClientMock_BalanceAt_Call) RunAndReturn ¶
type EthClientMock_BlockNumber_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 (_c *EthClientMock_BlockNumber_Call) Return(_a0 uint64, _a1 error) *EthClientMock_BlockNumber_Call
func (*EthClientMock_BlockNumber_Call) Run ¶
func (_c *EthClientMock_BlockNumber_Call) Run(run func(_a0 context.Context)) *EthClientMock_BlockNumber_Call
func (*EthClientMock_BlockNumber_Call) RunAndReturn ¶
func (_c *EthClientMock_BlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *EthClientMock_BlockNumber_Call
type EthClientMock_CallContract_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 (_c *EthClientMock_CallContract_Call) Return(_a0 []byte, _a1 error) *EthClientMock_CallContract_Call
func (*EthClientMock_CallContract_Call) Run ¶
func (_c *EthClientMock_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthClientMock_CallContract_Call
func (*EthClientMock_CallContract_Call) RunAndReturn ¶
func (_c *EthClientMock_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthClientMock_CallContract_Call
type EthClientMock_ChainID_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 (_c *EthClientMock_ChainID_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_ChainID_Call
func (*EthClientMock_ChainID_Call) Run ¶
func (_c *EthClientMock_ChainID_Call) Run(run func(_a0 context.Context)) *EthClientMock_ChainID_Call
func (*EthClientMock_ChainID_Call) RunAndReturn ¶
func (_c *EthClientMock_ChainID_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClientMock_ChainID_Call
type EthClientMock_CodeAt_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 (_c *EthClientMock_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthClientMock_CodeAt_Call
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 ¶
func (_c *EthClientMock_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthClientMock_CodeAt_Call
type EthClientMock_EstimateGas_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 (_c *EthClientMock_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthClientMock_EstimateGas_Call
func (*EthClientMock_EstimateGas_Call) Run ¶
func (_c *EthClientMock_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthClientMock_EstimateGas_Call
func (*EthClientMock_EstimateGas_Call) RunAndReturn ¶
func (_c *EthClientMock_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthClientMock_EstimateGas_Call
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 ¶
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 (_c *EthClientMock_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *EthClientMock_FilterLogs_Call
func (*EthClientMock_FilterLogs_Call) Run ¶
func (_c *EthClientMock_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *EthClientMock_FilterLogs_Call
func (*EthClientMock_FilterLogs_Call) RunAndReturn ¶
func (_c *EthClientMock_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *EthClientMock_FilterLogs_Call
type EthClientMock_HeaderByNumber_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 (_c *EthClientMock_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthClientMock_HeaderByNumber_Call
func (*EthClientMock_HeaderByNumber_Call) Run ¶
func (_c *EthClientMock_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthClientMock_HeaderByNumber_Call
func (*EthClientMock_HeaderByNumber_Call) RunAndReturn ¶
func (_c *EthClientMock_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthClientMock_HeaderByNumber_Call
type EthClientMock_PendingCodeAt_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 (_c *EthClientMock_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthClientMock_PendingCodeAt_Call
func (*EthClientMock_PendingCodeAt_Call) Run ¶
func (_c *EthClientMock_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClientMock_PendingCodeAt_Call
func (*EthClientMock_PendingCodeAt_Call) RunAndReturn ¶
func (_c *EthClientMock_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthClientMock_PendingCodeAt_Call
type EthClientMock_PendingNonceAt_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 (_c *EthClientMock_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthClientMock_PendingNonceAt_Call
func (*EthClientMock_PendingNonceAt_Call) Run ¶
func (_c *EthClientMock_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClientMock_PendingNonceAt_Call
func (*EthClientMock_PendingNonceAt_Call) RunAndReturn ¶
func (_c *EthClientMock_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthClientMock_PendingNonceAt_Call
type EthClientMock_SendTransaction_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 (_c *EthClientMock_SendTransaction_Call) Return(_a0 error) *EthClientMock_SendTransaction_Call
func (*EthClientMock_SendTransaction_Call) Run ¶
func (_c *EthClientMock_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthClientMock_SendTransaction_Call
func (*EthClientMock_SendTransaction_Call) RunAndReturn ¶
func (_c *EthClientMock_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthClientMock_SendTransaction_Call
type EthClientMock_SubscribeFilterLogs_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 (_c *EthClientMock_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthClientMock_SubscribeFilterLogs_Call
func (*EthClientMock_SubscribeFilterLogs_Call) Run ¶
func (_c *EthClientMock_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *EthClientMock_SubscribeFilterLogs_Call
func (*EthClientMock_SubscribeFilterLogs_Call) RunAndReturn ¶
func (_c *EthClientMock_SubscribeFilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery, chan<- types.Log) (ethereum.Subscription, error)) *EthClientMock_SubscribeFilterLogs_Call
type EthClientMock_SuggestGasPrice_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 (_c *EthClientMock_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_SuggestGasPrice_Call
func (*EthClientMock_SuggestGasPrice_Call) Run ¶
func (_c *EthClientMock_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthClientMock_SuggestGasPrice_Call
func (*EthClientMock_SuggestGasPrice_Call) RunAndReturn ¶
func (_c *EthClientMock_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClientMock_SuggestGasPrice_Call
type EthClientMock_SuggestGasTipCap_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 (_c *EthClientMock_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthClientMock_SuggestGasTipCap_Call
func (*EthClientMock_SuggestGasTipCap_Call) Run ¶
func (_c *EthClientMock_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthClientMock_SuggestGasTipCap_Call
func (*EthClientMock_SuggestGasTipCap_Call) RunAndReturn ¶
func (_c *EthClientMock_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClientMock_SuggestGasTipCap_Call
type EthClientMock_TransactionReceipt_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 (_c *EthClientMock_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthClientMock_TransactionReceipt_Call
func (*EthClientMock_TransactionReceipt_Call) Run ¶
func (_c *EthClientMock_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthClientMock_TransactionReceipt_Call
func (*EthClientMock_TransactionReceipt_Call) RunAndReturn ¶
func (_c *EthClientMock_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthClientMock_TransactionReceipt_Call