Documentation ¶
Index ¶
- type EthClient
- func (_m *EthClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *EthClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *EthClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *EthClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *EthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthClient ¶
EthClient is an autogenerated mock type for the EthClient type
func (*EthClient) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*EthClient) FilterLogs ¶
FilterLogs provides a mock function with given fields: ctx, q
func (*EthClient) SubscribeFilterLogs ¶
func (_m *EthClient) 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 (*EthClient) SubscribeNewHead ¶
func (_m *EthClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
Click to show internal directories.
Click to hide internal directories.