common

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 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 MockIBlockTracker

type MockIBlockTracker struct {
	mock.Mock
}

MockIBlockTracker is an autogenerated mock type for the IBlockTracker type

func NewMockIBlockTracker

func NewMockIBlockTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIBlockTracker

NewMockIBlockTracker creates a new instance of MockIBlockTracker. 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 (*MockIBlockTracker) EXPECT

func (*MockIBlockTracker) GetLatestBlock

func (_m *MockIBlockTracker) GetLatestBlock() (uint64, []byte)

GetLatestBlock provides a mock function with no fields

func (*MockIBlockTracker) UpdateLatestBlock

func (_m *MockIBlockTracker) UpdateLatestBlock(ctx context.Context, block uint64, hash []byte) error

UpdateLatestBlock provides a mock function with given fields: ctx, block, hash

type MockIBlockTracker_Expecter

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

func (*MockIBlockTracker_Expecter) GetLatestBlock

GetLatestBlock is a helper method to define mock.On call

func (*MockIBlockTracker_Expecter) UpdateLatestBlock

func (_e *MockIBlockTracker_Expecter) UpdateLatestBlock(ctx interface{}, block interface{}, hash interface{}) *MockIBlockTracker_UpdateLatestBlock_Call

UpdateLatestBlock is a helper method to define mock.On call

  • ctx context.Context
  • block uint64
  • hash []byte

type MockIBlockTracker_GetLatestBlock_Call

type MockIBlockTracker_GetLatestBlock_Call struct {
	*mock.Call
}

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

func (*MockIBlockTracker_GetLatestBlock_Call) Return

func (*MockIBlockTracker_GetLatestBlock_Call) Run

func (*MockIBlockTracker_GetLatestBlock_Call) RunAndReturn

type MockIBlockTracker_UpdateLatestBlock_Call

type MockIBlockTracker_UpdateLatestBlock_Call struct {
	*mock.Call
}

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

func (*MockIBlockTracker_UpdateLatestBlock_Call) Return

func (*MockIBlockTracker_UpdateLatestBlock_Call) Run

func (*MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn

type MockIContract

type MockIContract struct {
	mock.Mock
}

MockIContract is an autogenerated mock type for the IContract type

func NewMockIContract

func NewMockIContract(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIContract

NewMockIContract creates a new instance of MockIContract. 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 (*MockIContract) Address

func (_m *MockIContract) Address() common.Address

Address provides a mock function with no fields

func (*MockIContract) EXPECT

func (_m *MockIContract) EXPECT() *MockIContract_Expecter

func (*MockIContract) GetLatestBlock

func (_m *MockIContract) GetLatestBlock() (uint64, []byte)

GetLatestBlock provides a mock function with no fields

func (*MockIContract) HandleLog

HandleLog provides a mock function with given fields: ctx, event

func (*MockIContract) Logger

func (_m *MockIContract) Logger() *zap.Logger

Logger provides a mock function with no fields

func (*MockIContract) StoreLog

StoreLog provides a mock function with given fields: ctx, event

func (*MockIContract) Topics

func (_m *MockIContract) Topics() []common.Hash

Topics provides a mock function with no fields

func (*MockIContract) UpdateLatestBlock

func (_m *MockIContract) UpdateLatestBlock(ctx context.Context, block uint64, hash []byte) error

UpdateLatestBlock provides a mock function with given fields: ctx, block, hash

type MockIContract_Address_Call

type MockIContract_Address_Call struct {
	*mock.Call
}

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

func (*MockIContract_Address_Call) Return

func (*MockIContract_Address_Call) Run

func (*MockIContract_Address_Call) RunAndReturn

type MockIContract_Expecter

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

func (*MockIContract_Expecter) Address

Address is a helper method to define mock.On call

func (*MockIContract_Expecter) GetLatestBlock

GetLatestBlock is a helper method to define mock.On call

func (*MockIContract_Expecter) HandleLog

func (_e *MockIContract_Expecter) HandleLog(ctx interface{}, event interface{}) *MockIContract_HandleLog_Call

HandleLog is a helper method to define mock.On call

  • ctx context.Context
  • event types.Log

func (*MockIContract_Expecter) Logger

Logger is a helper method to define mock.On call

func (*MockIContract_Expecter) StoreLog

func (_e *MockIContract_Expecter) StoreLog(ctx interface{}, event interface{}) *MockIContract_StoreLog_Call

StoreLog is a helper method to define mock.On call

  • ctx context.Context
  • event types.Log

func (*MockIContract_Expecter) Topics

Topics is a helper method to define mock.On call

func (*MockIContract_Expecter) UpdateLatestBlock

func (_e *MockIContract_Expecter) UpdateLatestBlock(ctx interface{}, block interface{}, hash interface{}) *MockIContract_UpdateLatestBlock_Call

UpdateLatestBlock is a helper method to define mock.On call

  • ctx context.Context
  • block uint64
  • hash []byte

type MockIContract_GetLatestBlock_Call

type MockIContract_GetLatestBlock_Call struct {
	*mock.Call
}

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

func (*MockIContract_GetLatestBlock_Call) Return

func (*MockIContract_GetLatestBlock_Call) Run

func (*MockIContract_GetLatestBlock_Call) RunAndReturn

type MockIContract_HandleLog_Call

type MockIContract_HandleLog_Call struct {
	*mock.Call
}

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

func (*MockIContract_HandleLog_Call) Return

func (*MockIContract_HandleLog_Call) Run

func (*MockIContract_HandleLog_Call) RunAndReturn

type MockIContract_Logger_Call

type MockIContract_Logger_Call struct {
	*mock.Call
}

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

func (*MockIContract_Logger_Call) Return

func (*MockIContract_Logger_Call) Run

func (*MockIContract_Logger_Call) RunAndReturn

func (_c *MockIContract_Logger_Call) RunAndReturn(run func() *zap.Logger) *MockIContract_Logger_Call

type MockIContract_StoreLog_Call

type MockIContract_StoreLog_Call struct {
	*mock.Call
}

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

func (*MockIContract_StoreLog_Call) Return

func (*MockIContract_StoreLog_Call) Run

func (*MockIContract_StoreLog_Call) RunAndReturn

type MockIContract_Topics_Call

type MockIContract_Topics_Call struct {
	*mock.Call
}

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

func (*MockIContract_Topics_Call) Return

func (*MockIContract_Topics_Call) Run

func (*MockIContract_Topics_Call) RunAndReturn

func (_c *MockIContract_Topics_Call) RunAndReturn(run func() []common.Hash) *MockIContract_Topics_Call

type MockIContract_UpdateLatestBlock_Call

type MockIContract_UpdateLatestBlock_Call struct {
	*mock.Call
}

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

func (*MockIContract_UpdateLatestBlock_Call) Return

func (*MockIContract_UpdateLatestBlock_Call) Run

func (*MockIContract_UpdateLatestBlock_Call) RunAndReturn

type MockILogStorer

type MockILogStorer struct {
	mock.Mock
}

MockILogStorer is an autogenerated mock type for the ILogStorer type

func NewMockILogStorer

func NewMockILogStorer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockILogStorer

NewMockILogStorer creates a new instance of MockILogStorer. 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 (*MockILogStorer) EXPECT

func (*MockILogStorer) StoreLog

StoreLog provides a mock function with given fields: ctx, event

type MockILogStorer_Expecter

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

func (*MockILogStorer_Expecter) StoreLog

func (_e *MockILogStorer_Expecter) StoreLog(ctx interface{}, event interface{}) *MockILogStorer_StoreLog_Call

StoreLog is a helper method to define mock.On call

  • ctx context.Context
  • event types.Log

type MockILogStorer_StoreLog_Call

type MockILogStorer_StoreLog_Call struct {
	*mock.Call
}

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

func (*MockILogStorer_StoreLog_Call) Return

func (*MockILogStorer_StoreLog_Call) Run

func (*MockILogStorer_StoreLog_Call) RunAndReturn

type MockIReorgHandler

type MockIReorgHandler struct {
	mock.Mock
}

MockIReorgHandler is an autogenerated mock type for the IReorgHandler type

func NewMockIReorgHandler

func NewMockIReorgHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIReorgHandler

NewMockIReorgHandler creates a new instance of MockIReorgHandler. 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 (*MockIReorgHandler) EXPECT

func (*MockIReorgHandler) HandleLog

HandleLog provides a mock function with given fields: ctx, event

type MockIReorgHandler_Expecter

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

func (*MockIReorgHandler_Expecter) HandleLog

func (_e *MockIReorgHandler_Expecter) HandleLog(ctx interface{}, event interface{}) *MockIReorgHandler_HandleLog_Call

HandleLog is a helper method to define mock.On call

  • ctx context.Context
  • event types.Log

type MockIReorgHandler_HandleLog_Call

type MockIReorgHandler_HandleLog_Call struct {
	*mock.Call
}

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

func (*MockIReorgHandler_HandleLog_Call) Return

func (*MockIReorgHandler_HandleLog_Call) Run

func (*MockIReorgHandler_HandleLog_Call) RunAndReturn

Jump to

Keyboard shortcuts

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