Versions in this module Expand all Collapse all v1 v1.0.0 Dec 13, 2022 Changes in this version + type MockConnection struct + func NewMockConnection(ctrl *gomock.Controller) *MockConnection + func (m *MockConnection) BlockByHash(ctx context.Context, hash string, full bool) (*eth.Block, error) + func (m *MockConnection) BlockByNumber(ctx context.Context, number uint64, full bool) (*eth.Block, error) + func (m *MockConnection) BlockNumber(ctx context.Context) (uint64, error) + func (m *MockConnection) EXPECT() *MockConnectionMockRecorder + func (m *MockConnection) GetLogs(ctx context.Context, filter eth.LogFilter) ([]eth.Log, error) + func (m *MockConnection) NewHeads(ctx context.Context) (websocket.Subscription, error) + func (m *MockConnection) NewPendingTransaction(ctx context.Context, full ...bool) (websocket.Subscription, error) + func (m *MockConnection) Request(ctx context.Context, r *jsonrpc.Request) (*jsonrpc.RawResponse, error) + func (m *MockConnection) Subscribe(ctx context.Context, r *jsonrpc.Request) (websocket.Subscription, error) + func (m *MockConnection) TransactionByHash(ctx context.Context, hash string) (*eth.Transaction, error) + func (m *MockConnection) TransactionReceipt(ctx context.Context, hash string) (*eth.TransactionReceipt, error) + func (m *MockConnection) URL() string + type MockConnectionMockRecorder struct + func (mr *MockConnectionMockRecorder) BlockByHash(ctx, hash, full interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) BlockByNumber(ctx, number, full interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) BlockNumber(ctx interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) GetLogs(ctx, filter interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) NewHeads(ctx interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) NewPendingTransaction(ctx interface{}, full ...interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) Request(ctx, r interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) Subscribe(ctx, r interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) TransactionByHash(ctx, hash interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) TransactionReceipt(ctx, hash interface{}) *gomock.Call + func (mr *MockConnectionMockRecorder) URL() *gomock.Call + type MockSubscription struct + func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription + func (m *MockSubscription) Ch() chan *jsonrpc.Notification + func (m *MockSubscription) Done() <-chan struct{} + func (m *MockSubscription) EXPECT() *MockSubscriptionMockRecorder + func (m *MockSubscription) Err() error + func (m *MockSubscription) ID() string + func (m *MockSubscription) Response() *jsonrpc.RawResponse + func (m *MockSubscription) Unsubscribe(ctx context.Context) error + type MockSubscriptionMockRecorder struct + func (mr *MockSubscriptionMockRecorder) Ch() *gomock.Call + func (mr *MockSubscriptionMockRecorder) Done() *gomock.Call + func (mr *MockSubscriptionMockRecorder) Err() *gomock.Call + func (mr *MockSubscriptionMockRecorder) ID() *gomock.Call + func (mr *MockSubscriptionMockRecorder) Response() *gomock.Call + func (mr *MockSubscriptionMockRecorder) Unsubscribe(ctx interface{}) *gomock.Call