diff --git a/Makefile b/Makefile index eb9c734af0..dd8c79ffb9 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ protoc: generate-mocks: go generate mockgen -destination=./tests/bor/mocks/IHeimdallClient.go -package=mocks ./consensus/bor IHeimdallClient + go generate mockgen -destination=./eth/filters/IDatabase.go -package=filters ./ethdb Database go generate mockgen -destination=./eth/filters/IBackend.go -package=filters ./eth/filters Backend geth: diff --git a/eth/filters/IDatabase.go b/eth/filters/IDatabase.go index fd0824b60d..6884c6fd56 100644 --- a/eth/filters/IDatabase.go +++ b/eth/filters/IDatabase.go @@ -49,6 +49,20 @@ func (mr *MockDatabaseMockRecorder) Ancient(arg0, arg1 interface{}) *gomock.Call return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ancient", reflect.TypeOf((*MockDatabase)(nil).Ancient), arg0, arg1) } +// AncientOffSet mocks base method. +func (m *MockDatabase) AncientOffSet() uint64 { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AncientOffSet") + ret0, _ := ret[0].(uint64) + return ret0 +} + +// AncientOffSet indicates an expected call of AncientOffSet. +func (mr *MockDatabaseMockRecorder) AncientOffSet() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AncientOffSet", reflect.TypeOf((*MockDatabase)(nil).AncientOffSet)) +} + // AncientRange mocks base method. func (m *MockDatabase) AncientRange(arg0 string, arg1, arg2, arg3 uint64) ([][]byte, error) { m.ctrl.T.Helper() @@ -181,6 +195,21 @@ func (mr *MockDatabaseMockRecorder) HasAncient(arg0, arg1 interface{}) *gomock.C return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasAncient", reflect.TypeOf((*MockDatabase)(nil).HasAncient), arg0, arg1) } +// ItemAmountInAncient mocks base method. +func (m *MockDatabase) ItemAmountInAncient() (uint64, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ItemAmountInAncient") + ret0, _ := ret[0].(uint64) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ItemAmountInAncient indicates an expected call of ItemAmountInAncient. +func (mr *MockDatabaseMockRecorder) ItemAmountInAncient() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ItemAmountInAncient", reflect.TypeOf((*MockDatabase)(nil).ItemAmountInAncient)) +} + // MigrateTable mocks base method. func (m *MockDatabase) MigrateTable(arg0 string, arg1 func([]byte) ([]byte, error)) error { m.ctrl.T.Helper()