github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mocks/storage.go (about)

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