github.com/koko1123/flow-go-1@v0.29.6/storage/mocks/storage.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/koko1123/flow-go-1/storage (interfaces: Blocks,Headers,Payloads,Collections,Commits,Events,ServiceEvents,TransactionResults)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	flow "github.com/koko1123/flow-go-1/model/flow"
    10  	storage "github.com/koko1123/flow-go-1/storage"
    11  	transaction "github.com/koko1123/flow-go-1/storage/badger/transaction"
    12  	reflect "reflect"
    13  )
    14  
    15  // MockBlocks is a mock of Blocks interface
    16  type MockBlocks struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockBlocksMockRecorder
    19  }
    20  
    21  // MockBlocksMockRecorder is the mock recorder for MockBlocks
    22  type MockBlocksMockRecorder struct {
    23  	mock *MockBlocks
    24  }
    25  
    26  // NewMockBlocks creates a new mock instance
    27  func NewMockBlocks(ctrl *gomock.Controller) *MockBlocks {
    28  	mock := &MockBlocks{ctrl: ctrl}
    29  	mock.recorder = &MockBlocksMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use
    34  func (m *MockBlocks) EXPECT() *MockBlocksMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // ByCollectionID mocks base method
    39  func (m *MockBlocks) ByCollectionID(arg0 flow.Identifier) (*flow.Block, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "ByCollectionID", arg0)
    42  	ret0, _ := ret[0].(*flow.Block)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // ByCollectionID indicates an expected call of ByCollectionID
    48  func (mr *MockBlocksMockRecorder) ByCollectionID(arg0 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByCollectionID", reflect.TypeOf((*MockBlocks)(nil).ByCollectionID), arg0)
    51  }
    52  
    53  // ByHeight mocks base method
    54  func (m *MockBlocks) ByHeight(arg0 uint64) (*flow.Block, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "ByHeight", arg0)
    57  	ret0, _ := ret[0].(*flow.Block)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // ByHeight indicates an expected call of ByHeight
    63  func (mr *MockBlocksMockRecorder) ByHeight(arg0 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByHeight", reflect.TypeOf((*MockBlocks)(nil).ByHeight), arg0)
    66  }
    67  
    68  // ByID mocks base method
    69  func (m *MockBlocks) ByID(arg0 flow.Identifier) (*flow.Block, error) {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "ByID", arg0)
    72  	ret0, _ := ret[0].(*flow.Block)
    73  	ret1, _ := ret[1].(error)
    74  	return ret0, ret1
    75  }
    76  
    77  // ByID indicates an expected call of ByID
    78  func (mr *MockBlocksMockRecorder) ByID(arg0 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByID", reflect.TypeOf((*MockBlocks)(nil).ByID), arg0)
    81  }
    82  
    83  // GetLastFullBlockHeight mocks base method
    84  func (m *MockBlocks) GetLastFullBlockHeight() (uint64, error) {
    85  	m.ctrl.T.Helper()
    86  	ret := m.ctrl.Call(m, "GetLastFullBlockHeight")
    87  	ret0, _ := ret[0].(uint64)
    88  	ret1, _ := ret[1].(error)
    89  	return ret0, ret1
    90  }
    91  
    92  // GetLastFullBlockHeight indicates an expected call of GetLastFullBlockHeight
    93  func (mr *MockBlocksMockRecorder) GetLastFullBlockHeight() *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastFullBlockHeight", reflect.TypeOf((*MockBlocks)(nil).GetLastFullBlockHeight))
    96  }
    97  
    98  // IndexBlockForCollections mocks base method
    99  func (m *MockBlocks) IndexBlockForCollections(arg0 flow.Identifier, arg1 []flow.Identifier) error {
   100  	m.ctrl.T.Helper()
   101  	ret := m.ctrl.Call(m, "IndexBlockForCollections", arg0, arg1)
   102  	ret0, _ := ret[0].(error)
   103  	return ret0
   104  }
   105  
   106  // IndexBlockForCollections indicates an expected call of IndexBlockForCollections
   107  func (mr *MockBlocksMockRecorder) IndexBlockForCollections(arg0, arg1 interface{}) *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexBlockForCollections", reflect.TypeOf((*MockBlocks)(nil).IndexBlockForCollections), arg0, arg1)
   110  }
   111  
   112  // InsertLastFullBlockHeightIfNotExists mocks base method
   113  func (m *MockBlocks) InsertLastFullBlockHeightIfNotExists(arg0 uint64) error {
   114  	m.ctrl.T.Helper()
   115  	ret := m.ctrl.Call(m, "InsertLastFullBlockHeightIfNotExists", arg0)
   116  	ret0, _ := ret[0].(error)
   117  	return ret0
   118  }
   119  
   120  // InsertLastFullBlockHeightIfNotExists indicates an expected call of InsertLastFullBlockHeightIfNotExists
   121  func (mr *MockBlocksMockRecorder) InsertLastFullBlockHeightIfNotExists(arg0 interface{}) *gomock.Call {
   122  	mr.mock.ctrl.T.Helper()
   123  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertLastFullBlockHeightIfNotExists", reflect.TypeOf((*MockBlocks)(nil).InsertLastFullBlockHeightIfNotExists), arg0)
   124  }
   125  
   126  // Store mocks base method
   127  func (m *MockBlocks) Store(arg0 *flow.Block) error {
   128  	m.ctrl.T.Helper()
   129  	ret := m.ctrl.Call(m, "Store", arg0)
   130  	ret0, _ := ret[0].(error)
   131  	return ret0
   132  }
   133  
   134  // Store indicates an expected call of Store
   135  func (mr *MockBlocksMockRecorder) Store(arg0 interface{}) *gomock.Call {
   136  	mr.mock.ctrl.T.Helper()
   137  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockBlocks)(nil).Store), arg0)
   138  }
   139  
   140  // StoreTx mocks base method
   141  func (m *MockBlocks) StoreTx(arg0 *flow.Block) func(*transaction.Tx) error {
   142  	m.ctrl.T.Helper()
   143  	ret := m.ctrl.Call(m, "StoreTx", arg0)
   144  	ret0, _ := ret[0].(func(*transaction.Tx) error)
   145  	return ret0
   146  }
   147  
   148  // StoreTx indicates an expected call of StoreTx
   149  func (mr *MockBlocksMockRecorder) StoreTx(arg0 interface{}) *gomock.Call {
   150  	mr.mock.ctrl.T.Helper()
   151  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreTx", reflect.TypeOf((*MockBlocks)(nil).StoreTx), arg0)
   152  }
   153  
   154  // UpdateLastFullBlockHeight mocks base method
   155  func (m *MockBlocks) UpdateLastFullBlockHeight(arg0 uint64) error {
   156  	m.ctrl.T.Helper()
   157  	ret := m.ctrl.Call(m, "UpdateLastFullBlockHeight", arg0)
   158  	ret0, _ := ret[0].(error)
   159  	return ret0
   160  }
   161  
   162  // UpdateLastFullBlockHeight indicates an expected call of UpdateLastFullBlockHeight
   163  func (mr *MockBlocksMockRecorder) UpdateLastFullBlockHeight(arg0 interface{}) *gomock.Call {
   164  	mr.mock.ctrl.T.Helper()
   165  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLastFullBlockHeight", reflect.TypeOf((*MockBlocks)(nil).UpdateLastFullBlockHeight), arg0)
   166  }
   167  
   168  // MockHeaders is a mock of Headers interface
   169  type MockHeaders struct {
   170  	ctrl     *gomock.Controller
   171  	recorder *MockHeadersMockRecorder
   172  }
   173  
   174  // MockHeadersMockRecorder is the mock recorder for MockHeaders
   175  type MockHeadersMockRecorder struct {
   176  	mock *MockHeaders
   177  }
   178  
   179  // NewMockHeaders creates a new mock instance
   180  func NewMockHeaders(ctrl *gomock.Controller) *MockHeaders {
   181  	mock := &MockHeaders{ctrl: ctrl}
   182  	mock.recorder = &MockHeadersMockRecorder{mock}
   183  	return mock
   184  }
   185  
   186  // EXPECT returns an object that allows the caller to indicate expected use
   187  func (m *MockHeaders) EXPECT() *MockHeadersMockRecorder {
   188  	return m.recorder
   189  }
   190  
   191  // BatchIndexByChunkID mocks base method
   192  func (m *MockHeaders) BatchIndexByChunkID(arg0, arg1 flow.Identifier, arg2 storage.BatchStorage) error {
   193  	m.ctrl.T.Helper()
   194  	ret := m.ctrl.Call(m, "BatchIndexByChunkID", arg0, arg1, arg2)
   195  	ret0, _ := ret[0].(error)
   196  	return ret0
   197  }
   198  
   199  // BatchIndexByChunkID indicates an expected call of BatchIndexByChunkID
   200  func (mr *MockHeadersMockRecorder) BatchIndexByChunkID(arg0, arg1, arg2 interface{}) *gomock.Call {
   201  	mr.mock.ctrl.T.Helper()
   202  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchIndexByChunkID", reflect.TypeOf((*MockHeaders)(nil).BatchIndexByChunkID), arg0, arg1, arg2)
   203  }
   204  
   205  // BatchRemoveChunkBlockIndexByChunkID mocks base method
   206  func (m *MockHeaders) BatchRemoveChunkBlockIndexByChunkID(arg0 flow.Identifier, arg1 storage.BatchStorage) error {
   207  	m.ctrl.T.Helper()
   208  	ret := m.ctrl.Call(m, "BatchRemoveChunkBlockIndexByChunkID", arg0, arg1)
   209  	ret0, _ := ret[0].(error)
   210  	return ret0
   211  }
   212  
   213  // BatchRemoveChunkBlockIndexByChunkID indicates an expected call of BatchRemoveChunkBlockIndexByChunkID
   214  func (mr *MockHeadersMockRecorder) BatchRemoveChunkBlockIndexByChunkID(arg0, arg1 interface{}) *gomock.Call {
   215  	mr.mock.ctrl.T.Helper()
   216  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveChunkBlockIndexByChunkID", reflect.TypeOf((*MockHeaders)(nil).BatchRemoveChunkBlockIndexByChunkID), arg0, arg1)
   217  }
   218  
   219  // ByBlockID mocks base method
   220  func (m *MockHeaders) ByBlockID(arg0 flow.Identifier) (*flow.Header, error) {
   221  	m.ctrl.T.Helper()
   222  	ret := m.ctrl.Call(m, "ByBlockID", arg0)
   223  	ret0, _ := ret[0].(*flow.Header)
   224  	ret1, _ := ret[1].(error)
   225  	return ret0, ret1
   226  }
   227  
   228  // ByBlockID indicates an expected call of ByBlockID
   229  func (mr *MockHeadersMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call {
   230  	mr.mock.ctrl.T.Helper()
   231  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockHeaders)(nil).ByBlockID), arg0)
   232  }
   233  
   234  // ByHeight mocks base method
   235  func (m *MockHeaders) ByHeight(arg0 uint64) (*flow.Header, error) {
   236  	m.ctrl.T.Helper()
   237  	ret := m.ctrl.Call(m, "ByHeight", arg0)
   238  	ret0, _ := ret[0].(*flow.Header)
   239  	ret1, _ := ret[1].(error)
   240  	return ret0, ret1
   241  }
   242  
   243  // ByHeight indicates an expected call of ByHeight
   244  func (mr *MockHeadersMockRecorder) ByHeight(arg0 interface{}) *gomock.Call {
   245  	mr.mock.ctrl.T.Helper()
   246  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByHeight", reflect.TypeOf((*MockHeaders)(nil).ByHeight), arg0)
   247  }
   248  
   249  // ByParentID mocks base method
   250  func (m *MockHeaders) ByParentID(arg0 flow.Identifier) ([]*flow.Header, error) {
   251  	m.ctrl.T.Helper()
   252  	ret := m.ctrl.Call(m, "ByParentID", arg0)
   253  	ret0, _ := ret[0].([]*flow.Header)
   254  	ret1, _ := ret[1].(error)
   255  	return ret0, ret1
   256  }
   257  
   258  // ByParentID indicates an expected call of ByParentID
   259  func (mr *MockHeadersMockRecorder) ByParentID(arg0 interface{}) *gomock.Call {
   260  	mr.mock.ctrl.T.Helper()
   261  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByParentID", reflect.TypeOf((*MockHeaders)(nil).ByParentID), arg0)
   262  }
   263  
   264  // IDByChunkID mocks base method
   265  func (m *MockHeaders) IDByChunkID(arg0 flow.Identifier) (flow.Identifier, error) {
   266  	m.ctrl.T.Helper()
   267  	ret := m.ctrl.Call(m, "IDByChunkID", arg0)
   268  	ret0, _ := ret[0].(flow.Identifier)
   269  	ret1, _ := ret[1].(error)
   270  	return ret0, ret1
   271  }
   272  
   273  // IDByChunkID indicates an expected call of IDByChunkID
   274  func (mr *MockHeadersMockRecorder) IDByChunkID(arg0 interface{}) *gomock.Call {
   275  	mr.mock.ctrl.T.Helper()
   276  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IDByChunkID", reflect.TypeOf((*MockHeaders)(nil).IDByChunkID), arg0)
   277  }
   278  
   279  // IndexByChunkID mocks base method
   280  func (m *MockHeaders) IndexByChunkID(arg0, arg1 flow.Identifier) error {
   281  	m.ctrl.T.Helper()
   282  	ret := m.ctrl.Call(m, "IndexByChunkID", arg0, arg1)
   283  	ret0, _ := ret[0].(error)
   284  	return ret0
   285  }
   286  
   287  // IndexByChunkID indicates an expected call of IndexByChunkID
   288  func (mr *MockHeadersMockRecorder) IndexByChunkID(arg0, arg1 interface{}) *gomock.Call {
   289  	mr.mock.ctrl.T.Helper()
   290  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexByChunkID", reflect.TypeOf((*MockHeaders)(nil).IndexByChunkID), arg0, arg1)
   291  }
   292  
   293  // Store mocks base method
   294  func (m *MockHeaders) Store(arg0 *flow.Header) error {
   295  	m.ctrl.T.Helper()
   296  	ret := m.ctrl.Call(m, "Store", arg0)
   297  	ret0, _ := ret[0].(error)
   298  	return ret0
   299  }
   300  
   301  // Store indicates an expected call of Store
   302  func (mr *MockHeadersMockRecorder) Store(arg0 interface{}) *gomock.Call {
   303  	mr.mock.ctrl.T.Helper()
   304  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockHeaders)(nil).Store), arg0)
   305  }
   306  
   307  // MockPayloads is a mock of Payloads interface
   308  type MockPayloads struct {
   309  	ctrl     *gomock.Controller
   310  	recorder *MockPayloadsMockRecorder
   311  }
   312  
   313  // MockPayloadsMockRecorder is the mock recorder for MockPayloads
   314  type MockPayloadsMockRecorder struct {
   315  	mock *MockPayloads
   316  }
   317  
   318  // NewMockPayloads creates a new mock instance
   319  func NewMockPayloads(ctrl *gomock.Controller) *MockPayloads {
   320  	mock := &MockPayloads{ctrl: ctrl}
   321  	mock.recorder = &MockPayloadsMockRecorder{mock}
   322  	return mock
   323  }
   324  
   325  // EXPECT returns an object that allows the caller to indicate expected use
   326  func (m *MockPayloads) EXPECT() *MockPayloadsMockRecorder {
   327  	return m.recorder
   328  }
   329  
   330  // ByBlockID mocks base method
   331  func (m *MockPayloads) ByBlockID(arg0 flow.Identifier) (*flow.Payload, error) {
   332  	m.ctrl.T.Helper()
   333  	ret := m.ctrl.Call(m, "ByBlockID", arg0)
   334  	ret0, _ := ret[0].(*flow.Payload)
   335  	ret1, _ := ret[1].(error)
   336  	return ret0, ret1
   337  }
   338  
   339  // ByBlockID indicates an expected call of ByBlockID
   340  func (mr *MockPayloadsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call {
   341  	mr.mock.ctrl.T.Helper()
   342  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockPayloads)(nil).ByBlockID), arg0)
   343  }
   344  
   345  // Store mocks base method
   346  func (m *MockPayloads) Store(arg0 flow.Identifier, arg1 *flow.Payload) error {
   347  	m.ctrl.T.Helper()
   348  	ret := m.ctrl.Call(m, "Store", arg0, arg1)
   349  	ret0, _ := ret[0].(error)
   350  	return ret0
   351  }
   352  
   353  // Store indicates an expected call of Store
   354  func (mr *MockPayloadsMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call {
   355  	mr.mock.ctrl.T.Helper()
   356  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockPayloads)(nil).Store), arg0, arg1)
   357  }
   358  
   359  // MockCollections is a mock of Collections interface
   360  type MockCollections struct {
   361  	ctrl     *gomock.Controller
   362  	recorder *MockCollectionsMockRecorder
   363  }
   364  
   365  // MockCollectionsMockRecorder is the mock recorder for MockCollections
   366  type MockCollectionsMockRecorder struct {
   367  	mock *MockCollections
   368  }
   369  
   370  // NewMockCollections creates a new mock instance
   371  func NewMockCollections(ctrl *gomock.Controller) *MockCollections {
   372  	mock := &MockCollections{ctrl: ctrl}
   373  	mock.recorder = &MockCollectionsMockRecorder{mock}
   374  	return mock
   375  }
   376  
   377  // EXPECT returns an object that allows the caller to indicate expected use
   378  func (m *MockCollections) EXPECT() *MockCollectionsMockRecorder {
   379  	return m.recorder
   380  }
   381  
   382  // ByID mocks base method
   383  func (m *MockCollections) ByID(arg0 flow.Identifier) (*flow.Collection, error) {
   384  	m.ctrl.T.Helper()
   385  	ret := m.ctrl.Call(m, "ByID", arg0)
   386  	ret0, _ := ret[0].(*flow.Collection)
   387  	ret1, _ := ret[1].(error)
   388  	return ret0, ret1
   389  }
   390  
   391  // ByID indicates an expected call of ByID
   392  func (mr *MockCollectionsMockRecorder) ByID(arg0 interface{}) *gomock.Call {
   393  	mr.mock.ctrl.T.Helper()
   394  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByID", reflect.TypeOf((*MockCollections)(nil).ByID), arg0)
   395  }
   396  
   397  // LightByID mocks base method
   398  func (m *MockCollections) LightByID(arg0 flow.Identifier) (*flow.LightCollection, error) {
   399  	m.ctrl.T.Helper()
   400  	ret := m.ctrl.Call(m, "LightByID", arg0)
   401  	ret0, _ := ret[0].(*flow.LightCollection)
   402  	ret1, _ := ret[1].(error)
   403  	return ret0, ret1
   404  }
   405  
   406  // LightByID indicates an expected call of LightByID
   407  func (mr *MockCollectionsMockRecorder) LightByID(arg0 interface{}) *gomock.Call {
   408  	mr.mock.ctrl.T.Helper()
   409  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LightByID", reflect.TypeOf((*MockCollections)(nil).LightByID), arg0)
   410  }
   411  
   412  // LightByTransactionID mocks base method
   413  func (m *MockCollections) LightByTransactionID(arg0 flow.Identifier) (*flow.LightCollection, error) {
   414  	m.ctrl.T.Helper()
   415  	ret := m.ctrl.Call(m, "LightByTransactionID", arg0)
   416  	ret0, _ := ret[0].(*flow.LightCollection)
   417  	ret1, _ := ret[1].(error)
   418  	return ret0, ret1
   419  }
   420  
   421  // LightByTransactionID indicates an expected call of LightByTransactionID
   422  func (mr *MockCollectionsMockRecorder) LightByTransactionID(arg0 interface{}) *gomock.Call {
   423  	mr.mock.ctrl.T.Helper()
   424  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LightByTransactionID", reflect.TypeOf((*MockCollections)(nil).LightByTransactionID), arg0)
   425  }
   426  
   427  // Remove mocks base method
   428  func (m *MockCollections) Remove(arg0 flow.Identifier) error {
   429  	m.ctrl.T.Helper()
   430  	ret := m.ctrl.Call(m, "Remove", arg0)
   431  	ret0, _ := ret[0].(error)
   432  	return ret0
   433  }
   434  
   435  // Remove indicates an expected call of Remove
   436  func (mr *MockCollectionsMockRecorder) Remove(arg0 interface{}) *gomock.Call {
   437  	mr.mock.ctrl.T.Helper()
   438  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockCollections)(nil).Remove), arg0)
   439  }
   440  
   441  // Store mocks base method
   442  func (m *MockCollections) Store(arg0 *flow.Collection) error {
   443  	m.ctrl.T.Helper()
   444  	ret := m.ctrl.Call(m, "Store", arg0)
   445  	ret0, _ := ret[0].(error)
   446  	return ret0
   447  }
   448  
   449  // Store indicates an expected call of Store
   450  func (mr *MockCollectionsMockRecorder) Store(arg0 interface{}) *gomock.Call {
   451  	mr.mock.ctrl.T.Helper()
   452  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockCollections)(nil).Store), arg0)
   453  }
   454  
   455  // StoreLight mocks base method
   456  func (m *MockCollections) StoreLight(arg0 *flow.LightCollection) error {
   457  	m.ctrl.T.Helper()
   458  	ret := m.ctrl.Call(m, "StoreLight", arg0)
   459  	ret0, _ := ret[0].(error)
   460  	return ret0
   461  }
   462  
   463  // StoreLight indicates an expected call of StoreLight
   464  func (mr *MockCollectionsMockRecorder) StoreLight(arg0 interface{}) *gomock.Call {
   465  	mr.mock.ctrl.T.Helper()
   466  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreLight", reflect.TypeOf((*MockCollections)(nil).StoreLight), arg0)
   467  }
   468  
   469  // StoreLightAndIndexByTransaction mocks base method
   470  func (m *MockCollections) StoreLightAndIndexByTransaction(arg0 *flow.LightCollection) error {
   471  	m.ctrl.T.Helper()
   472  	ret := m.ctrl.Call(m, "StoreLightAndIndexByTransaction", arg0)
   473  	ret0, _ := ret[0].(error)
   474  	return ret0
   475  }
   476  
   477  // StoreLightAndIndexByTransaction indicates an expected call of StoreLightAndIndexByTransaction
   478  func (mr *MockCollectionsMockRecorder) StoreLightAndIndexByTransaction(arg0 interface{}) *gomock.Call {
   479  	mr.mock.ctrl.T.Helper()
   480  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreLightAndIndexByTransaction", reflect.TypeOf((*MockCollections)(nil).StoreLightAndIndexByTransaction), arg0)
   481  }
   482  
   483  // MockCommits is a mock of Commits interface
   484  type MockCommits struct {
   485  	ctrl     *gomock.Controller
   486  	recorder *MockCommitsMockRecorder
   487  }
   488  
   489  // MockCommitsMockRecorder is the mock recorder for MockCommits
   490  type MockCommitsMockRecorder struct {
   491  	mock *MockCommits
   492  }
   493  
   494  // NewMockCommits creates a new mock instance
   495  func NewMockCommits(ctrl *gomock.Controller) *MockCommits {
   496  	mock := &MockCommits{ctrl: ctrl}
   497  	mock.recorder = &MockCommitsMockRecorder{mock}
   498  	return mock
   499  }
   500  
   501  // EXPECT returns an object that allows the caller to indicate expected use
   502  func (m *MockCommits) EXPECT() *MockCommitsMockRecorder {
   503  	return m.recorder
   504  }
   505  
   506  // BatchRemoveByBlockID mocks base method
   507  func (m *MockCommits) BatchRemoveByBlockID(arg0 flow.Identifier, arg1 storage.BatchStorage) error {
   508  	m.ctrl.T.Helper()
   509  	ret := m.ctrl.Call(m, "BatchRemoveByBlockID", arg0, arg1)
   510  	ret0, _ := ret[0].(error)
   511  	return ret0
   512  }
   513  
   514  // BatchRemoveByBlockID indicates an expected call of BatchRemoveByBlockID
   515  func (mr *MockCommitsMockRecorder) BatchRemoveByBlockID(arg0, arg1 interface{}) *gomock.Call {
   516  	mr.mock.ctrl.T.Helper()
   517  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveByBlockID", reflect.TypeOf((*MockCommits)(nil).BatchRemoveByBlockID), arg0, arg1)
   518  }
   519  
   520  // BatchStore mocks base method
   521  func (m *MockCommits) BatchStore(arg0 flow.Identifier, arg1 flow.StateCommitment, arg2 storage.BatchStorage) error {
   522  	m.ctrl.T.Helper()
   523  	ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2)
   524  	ret0, _ := ret[0].(error)
   525  	return ret0
   526  }
   527  
   528  // BatchStore indicates an expected call of BatchStore
   529  func (mr *MockCommitsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call {
   530  	mr.mock.ctrl.T.Helper()
   531  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockCommits)(nil).BatchStore), arg0, arg1, arg2)
   532  }
   533  
   534  // ByBlockID mocks base method
   535  func (m *MockCommits) ByBlockID(arg0 flow.Identifier) (flow.StateCommitment, error) {
   536  	m.ctrl.T.Helper()
   537  	ret := m.ctrl.Call(m, "ByBlockID", arg0)
   538  	ret0, _ := ret[0].(flow.StateCommitment)
   539  	ret1, _ := ret[1].(error)
   540  	return ret0, ret1
   541  }
   542  
   543  // ByBlockID indicates an expected call of ByBlockID
   544  func (mr *MockCommitsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call {
   545  	mr.mock.ctrl.T.Helper()
   546  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockCommits)(nil).ByBlockID), arg0)
   547  }
   548  
   549  // Store mocks base method
   550  func (m *MockCommits) Store(arg0 flow.Identifier, arg1 flow.StateCommitment) error {
   551  	m.ctrl.T.Helper()
   552  	ret := m.ctrl.Call(m, "Store", arg0, arg1)
   553  	ret0, _ := ret[0].(error)
   554  	return ret0
   555  }
   556  
   557  // Store indicates an expected call of Store
   558  func (mr *MockCommitsMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call {
   559  	mr.mock.ctrl.T.Helper()
   560  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockCommits)(nil).Store), arg0, arg1)
   561  }
   562  
   563  // MockEvents is a mock of Events interface
   564  type MockEvents struct {
   565  	ctrl     *gomock.Controller
   566  	recorder *MockEventsMockRecorder
   567  }
   568  
   569  // MockEventsMockRecorder is the mock recorder for MockEvents
   570  type MockEventsMockRecorder struct {
   571  	mock *MockEvents
   572  }
   573  
   574  // NewMockEvents creates a new mock instance
   575  func NewMockEvents(ctrl *gomock.Controller) *MockEvents {
   576  	mock := &MockEvents{ctrl: ctrl}
   577  	mock.recorder = &MockEventsMockRecorder{mock}
   578  	return mock
   579  }
   580  
   581  // EXPECT returns an object that allows the caller to indicate expected use
   582  func (m *MockEvents) EXPECT() *MockEventsMockRecorder {
   583  	return m.recorder
   584  }
   585  
   586  // BatchRemoveByBlockID mocks base method
   587  func (m *MockEvents) BatchRemoveByBlockID(arg0 flow.Identifier, arg1 storage.BatchStorage) error {
   588  	m.ctrl.T.Helper()
   589  	ret := m.ctrl.Call(m, "BatchRemoveByBlockID", arg0, arg1)
   590  	ret0, _ := ret[0].(error)
   591  	return ret0
   592  }
   593  
   594  // BatchRemoveByBlockID indicates an expected call of BatchRemoveByBlockID
   595  func (mr *MockEventsMockRecorder) BatchRemoveByBlockID(arg0, arg1 interface{}) *gomock.Call {
   596  	mr.mock.ctrl.T.Helper()
   597  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveByBlockID", reflect.TypeOf((*MockEvents)(nil).BatchRemoveByBlockID), arg0, arg1)
   598  }
   599  
   600  // BatchStore mocks base method
   601  func (m *MockEvents) BatchStore(arg0 flow.Identifier, arg1 []flow.EventsList, arg2 storage.BatchStorage) error {
   602  	m.ctrl.T.Helper()
   603  	ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2)
   604  	ret0, _ := ret[0].(error)
   605  	return ret0
   606  }
   607  
   608  // BatchStore indicates an expected call of BatchStore
   609  func (mr *MockEventsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call {
   610  	mr.mock.ctrl.T.Helper()
   611  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockEvents)(nil).BatchStore), arg0, arg1, arg2)
   612  }
   613  
   614  // ByBlockID mocks base method
   615  func (m *MockEvents) ByBlockID(arg0 flow.Identifier) ([]flow.Event, error) {
   616  	m.ctrl.T.Helper()
   617  	ret := m.ctrl.Call(m, "ByBlockID", arg0)
   618  	ret0, _ := ret[0].([]flow.Event)
   619  	ret1, _ := ret[1].(error)
   620  	return ret0, ret1
   621  }
   622  
   623  // ByBlockID indicates an expected call of ByBlockID
   624  func (mr *MockEventsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call {
   625  	mr.mock.ctrl.T.Helper()
   626  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockEvents)(nil).ByBlockID), arg0)
   627  }
   628  
   629  // ByBlockIDEventType mocks base method
   630  func (m *MockEvents) ByBlockIDEventType(arg0 flow.Identifier, arg1 flow.EventType) ([]flow.Event, error) {
   631  	m.ctrl.T.Helper()
   632  	ret := m.ctrl.Call(m, "ByBlockIDEventType", arg0, arg1)
   633  	ret0, _ := ret[0].([]flow.Event)
   634  	ret1, _ := ret[1].(error)
   635  	return ret0, ret1
   636  }
   637  
   638  // ByBlockIDEventType indicates an expected call of ByBlockIDEventType
   639  func (mr *MockEventsMockRecorder) ByBlockIDEventType(arg0, arg1 interface{}) *gomock.Call {
   640  	mr.mock.ctrl.T.Helper()
   641  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDEventType", reflect.TypeOf((*MockEvents)(nil).ByBlockIDEventType), arg0, arg1)
   642  }
   643  
   644  // ByBlockIDTransactionID mocks base method
   645  func (m *MockEvents) ByBlockIDTransactionID(arg0, arg1 flow.Identifier) ([]flow.Event, error) {
   646  	m.ctrl.T.Helper()
   647  	ret := m.ctrl.Call(m, "ByBlockIDTransactionID", arg0, arg1)
   648  	ret0, _ := ret[0].([]flow.Event)
   649  	ret1, _ := ret[1].(error)
   650  	return ret0, ret1
   651  }
   652  
   653  // ByBlockIDTransactionID indicates an expected call of ByBlockIDTransactionID
   654  func (mr *MockEventsMockRecorder) ByBlockIDTransactionID(arg0, arg1 interface{}) *gomock.Call {
   655  	mr.mock.ctrl.T.Helper()
   656  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionID", reflect.TypeOf((*MockEvents)(nil).ByBlockIDTransactionID), arg0, arg1)
   657  }
   658  
   659  // ByBlockIDTransactionIndex mocks base method
   660  func (m *MockEvents) ByBlockIDTransactionIndex(arg0 flow.Identifier, arg1 uint32) ([]flow.Event, error) {
   661  	m.ctrl.T.Helper()
   662  	ret := m.ctrl.Call(m, "ByBlockIDTransactionIndex", arg0, arg1)
   663  	ret0, _ := ret[0].([]flow.Event)
   664  	ret1, _ := ret[1].(error)
   665  	return ret0, ret1
   666  }
   667  
   668  // ByBlockIDTransactionIndex indicates an expected call of ByBlockIDTransactionIndex
   669  func (mr *MockEventsMockRecorder) ByBlockIDTransactionIndex(arg0, arg1 interface{}) *gomock.Call {
   670  	mr.mock.ctrl.T.Helper()
   671  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionIndex", reflect.TypeOf((*MockEvents)(nil).ByBlockIDTransactionIndex), arg0, arg1)
   672  }
   673  
   674  // MockServiceEvents is a mock of ServiceEvents interface
   675  type MockServiceEvents struct {
   676  	ctrl     *gomock.Controller
   677  	recorder *MockServiceEventsMockRecorder
   678  }
   679  
   680  // MockServiceEventsMockRecorder is the mock recorder for MockServiceEvents
   681  type MockServiceEventsMockRecorder struct {
   682  	mock *MockServiceEvents
   683  }
   684  
   685  // NewMockServiceEvents creates a new mock instance
   686  func NewMockServiceEvents(ctrl *gomock.Controller) *MockServiceEvents {
   687  	mock := &MockServiceEvents{ctrl: ctrl}
   688  	mock.recorder = &MockServiceEventsMockRecorder{mock}
   689  	return mock
   690  }
   691  
   692  // EXPECT returns an object that allows the caller to indicate expected use
   693  func (m *MockServiceEvents) EXPECT() *MockServiceEventsMockRecorder {
   694  	return m.recorder
   695  }
   696  
   697  // BatchRemoveByBlockID mocks base method
   698  func (m *MockServiceEvents) BatchRemoveByBlockID(arg0 flow.Identifier, arg1 storage.BatchStorage) error {
   699  	m.ctrl.T.Helper()
   700  	ret := m.ctrl.Call(m, "BatchRemoveByBlockID", arg0, arg1)
   701  	ret0, _ := ret[0].(error)
   702  	return ret0
   703  }
   704  
   705  // BatchRemoveByBlockID indicates an expected call of BatchRemoveByBlockID
   706  func (mr *MockServiceEventsMockRecorder) BatchRemoveByBlockID(arg0, arg1 interface{}) *gomock.Call {
   707  	mr.mock.ctrl.T.Helper()
   708  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveByBlockID", reflect.TypeOf((*MockServiceEvents)(nil).BatchRemoveByBlockID), arg0, arg1)
   709  }
   710  
   711  // BatchStore mocks base method
   712  func (m *MockServiceEvents) BatchStore(arg0 flow.Identifier, arg1 []flow.Event, arg2 storage.BatchStorage) error {
   713  	m.ctrl.T.Helper()
   714  	ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2)
   715  	ret0, _ := ret[0].(error)
   716  	return ret0
   717  }
   718  
   719  // BatchStore indicates an expected call of BatchStore
   720  func (mr *MockServiceEventsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call {
   721  	mr.mock.ctrl.T.Helper()
   722  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockServiceEvents)(nil).BatchStore), arg0, arg1, arg2)
   723  }
   724  
   725  // ByBlockID mocks base method
   726  func (m *MockServiceEvents) ByBlockID(arg0 flow.Identifier) ([]flow.Event, error) {
   727  	m.ctrl.T.Helper()
   728  	ret := m.ctrl.Call(m, "ByBlockID", arg0)
   729  	ret0, _ := ret[0].([]flow.Event)
   730  	ret1, _ := ret[1].(error)
   731  	return ret0, ret1
   732  }
   733  
   734  // ByBlockID indicates an expected call of ByBlockID
   735  func (mr *MockServiceEventsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call {
   736  	mr.mock.ctrl.T.Helper()
   737  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockServiceEvents)(nil).ByBlockID), arg0)
   738  }
   739  
   740  // MockTransactionResults is a mock of TransactionResults interface
   741  type MockTransactionResults struct {
   742  	ctrl     *gomock.Controller
   743  	recorder *MockTransactionResultsMockRecorder
   744  }
   745  
   746  // MockTransactionResultsMockRecorder is the mock recorder for MockTransactionResults
   747  type MockTransactionResultsMockRecorder struct {
   748  	mock *MockTransactionResults
   749  }
   750  
   751  // NewMockTransactionResults creates a new mock instance
   752  func NewMockTransactionResults(ctrl *gomock.Controller) *MockTransactionResults {
   753  	mock := &MockTransactionResults{ctrl: ctrl}
   754  	mock.recorder = &MockTransactionResultsMockRecorder{mock}
   755  	return mock
   756  }
   757  
   758  // EXPECT returns an object that allows the caller to indicate expected use
   759  func (m *MockTransactionResults) EXPECT() *MockTransactionResultsMockRecorder {
   760  	return m.recorder
   761  }
   762  
   763  // BatchStore mocks base method
   764  func (m *MockTransactionResults) BatchStore(arg0 flow.Identifier, arg1 []flow.TransactionResult, arg2 storage.BatchStorage) error {
   765  	m.ctrl.T.Helper()
   766  	ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2)
   767  	ret0, _ := ret[0].(error)
   768  	return ret0
   769  }
   770  
   771  // BatchStore indicates an expected call of BatchStore
   772  func (mr *MockTransactionResultsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call {
   773  	mr.mock.ctrl.T.Helper()
   774  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockTransactionResults)(nil).BatchStore), arg0, arg1, arg2)
   775  }
   776  
   777  // ByBlockID mocks base method
   778  func (m *MockTransactionResults) ByBlockID(arg0 flow.Identifier) ([]flow.TransactionResult, error) {
   779  	m.ctrl.T.Helper()
   780  	ret := m.ctrl.Call(m, "ByBlockID", arg0)
   781  	ret0, _ := ret[0].([]flow.TransactionResult)
   782  	ret1, _ := ret[1].(error)
   783  	return ret0, ret1
   784  }
   785  
   786  // ByBlockID indicates an expected call of ByBlockID
   787  func (mr *MockTransactionResultsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call {
   788  	mr.mock.ctrl.T.Helper()
   789  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockTransactionResults)(nil).ByBlockID), arg0)
   790  }
   791  
   792  // ByBlockIDTransactionID mocks base method
   793  func (m *MockTransactionResults) ByBlockIDTransactionID(arg0, arg1 flow.Identifier) (*flow.TransactionResult, error) {
   794  	m.ctrl.T.Helper()
   795  	ret := m.ctrl.Call(m, "ByBlockIDTransactionID", arg0, arg1)
   796  	ret0, _ := ret[0].(*flow.TransactionResult)
   797  	ret1, _ := ret[1].(error)
   798  	return ret0, ret1
   799  }
   800  
   801  // ByBlockIDTransactionID indicates an expected call of ByBlockIDTransactionID
   802  func (mr *MockTransactionResultsMockRecorder) ByBlockIDTransactionID(arg0, arg1 interface{}) *gomock.Call {
   803  	mr.mock.ctrl.T.Helper()
   804  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionID", reflect.TypeOf((*MockTransactionResults)(nil).ByBlockIDTransactionID), arg0, arg1)
   805  }
   806  
   807  // ByBlockIDTransactionIndex mocks base method
   808  func (m *MockTransactionResults) ByBlockIDTransactionIndex(arg0 flow.Identifier, arg1 uint32) (*flow.TransactionResult, error) {
   809  	m.ctrl.T.Helper()
   810  	ret := m.ctrl.Call(m, "ByBlockIDTransactionIndex", arg0, arg1)
   811  	ret0, _ := ret[0].(*flow.TransactionResult)
   812  	ret1, _ := ret[1].(error)
   813  	return ret0, ret1
   814  }
   815  
   816  // ByBlockIDTransactionIndex indicates an expected call of ByBlockIDTransactionIndex
   817  func (mr *MockTransactionResultsMockRecorder) ByBlockIDTransactionIndex(arg0, arg1 interface{}) *gomock.Call {
   818  	mr.mock.ctrl.T.Helper()
   819  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionIndex", reflect.TypeOf((*MockTransactionResults)(nil).ByBlockIDTransactionIndex), arg0, arg1)
   820  }