github.com/koko1123/flow-go-1@v0.29.6/engine/access/mock/access_api_server.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	context "context"
     7  
     8  	access "github.com/onflow/flow/protobuf/go/flow/access"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  )
    12  
    13  // AccessAPIServer is an autogenerated mock type for the AccessAPIServer type
    14  type AccessAPIServer struct {
    15  	mock.Mock
    16  }
    17  
    18  // ExecuteScriptAtBlockHeight provides a mock function with given fields: _a0, _a1
    19  func (_m *AccessAPIServer) ExecuteScriptAtBlockHeight(_a0 context.Context, _a1 *access.ExecuteScriptAtBlockHeightRequest) (*access.ExecuteScriptResponse, error) {
    20  	ret := _m.Called(_a0, _a1)
    21  
    22  	var r0 *access.ExecuteScriptResponse
    23  	if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockHeightRequest) *access.ExecuteScriptResponse); ok {
    24  		r0 = rf(_a0, _a1)
    25  	} else {
    26  		if ret.Get(0) != nil {
    27  			r0 = ret.Get(0).(*access.ExecuteScriptResponse)
    28  		}
    29  	}
    30  
    31  	var r1 error
    32  	if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtBlockHeightRequest) error); ok {
    33  		r1 = rf(_a0, _a1)
    34  	} else {
    35  		r1 = ret.Error(1)
    36  	}
    37  
    38  	return r0, r1
    39  }
    40  
    41  // ExecuteScriptAtBlockID provides a mock function with given fields: _a0, _a1
    42  func (_m *AccessAPIServer) ExecuteScriptAtBlockID(_a0 context.Context, _a1 *access.ExecuteScriptAtBlockIDRequest) (*access.ExecuteScriptResponse, error) {
    43  	ret := _m.Called(_a0, _a1)
    44  
    45  	var r0 *access.ExecuteScriptResponse
    46  	if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockIDRequest) *access.ExecuteScriptResponse); ok {
    47  		r0 = rf(_a0, _a1)
    48  	} else {
    49  		if ret.Get(0) != nil {
    50  			r0 = ret.Get(0).(*access.ExecuteScriptResponse)
    51  		}
    52  	}
    53  
    54  	var r1 error
    55  	if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtBlockIDRequest) error); ok {
    56  		r1 = rf(_a0, _a1)
    57  	} else {
    58  		r1 = ret.Error(1)
    59  	}
    60  
    61  	return r0, r1
    62  }
    63  
    64  // ExecuteScriptAtLatestBlock provides a mock function with given fields: _a0, _a1
    65  func (_m *AccessAPIServer) ExecuteScriptAtLatestBlock(_a0 context.Context, _a1 *access.ExecuteScriptAtLatestBlockRequest) (*access.ExecuteScriptResponse, error) {
    66  	ret := _m.Called(_a0, _a1)
    67  
    68  	var r0 *access.ExecuteScriptResponse
    69  	if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtLatestBlockRequest) *access.ExecuteScriptResponse); ok {
    70  		r0 = rf(_a0, _a1)
    71  	} else {
    72  		if ret.Get(0) != nil {
    73  			r0 = ret.Get(0).(*access.ExecuteScriptResponse)
    74  		}
    75  	}
    76  
    77  	var r1 error
    78  	if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtLatestBlockRequest) error); ok {
    79  		r1 = rf(_a0, _a1)
    80  	} else {
    81  		r1 = ret.Error(1)
    82  	}
    83  
    84  	return r0, r1
    85  }
    86  
    87  // GetAccount provides a mock function with given fields: _a0, _a1
    88  func (_m *AccessAPIServer) GetAccount(_a0 context.Context, _a1 *access.GetAccountRequest) (*access.GetAccountResponse, error) {
    89  	ret := _m.Called(_a0, _a1)
    90  
    91  	var r0 *access.GetAccountResponse
    92  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountRequest) *access.GetAccountResponse); ok {
    93  		r0 = rf(_a0, _a1)
    94  	} else {
    95  		if ret.Get(0) != nil {
    96  			r0 = ret.Get(0).(*access.GetAccountResponse)
    97  		}
    98  	}
    99  
   100  	var r1 error
   101  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountRequest) error); ok {
   102  		r1 = rf(_a0, _a1)
   103  	} else {
   104  		r1 = ret.Error(1)
   105  	}
   106  
   107  	return r0, r1
   108  }
   109  
   110  // GetAccountAtBlockHeight provides a mock function with given fields: _a0, _a1
   111  func (_m *AccessAPIServer) GetAccountAtBlockHeight(_a0 context.Context, _a1 *access.GetAccountAtBlockHeightRequest) (*access.AccountResponse, error) {
   112  	ret := _m.Called(_a0, _a1)
   113  
   114  	var r0 *access.AccountResponse
   115  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtBlockHeightRequest) *access.AccountResponse); ok {
   116  		r0 = rf(_a0, _a1)
   117  	} else {
   118  		if ret.Get(0) != nil {
   119  			r0 = ret.Get(0).(*access.AccountResponse)
   120  		}
   121  	}
   122  
   123  	var r1 error
   124  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountAtBlockHeightRequest) error); ok {
   125  		r1 = rf(_a0, _a1)
   126  	} else {
   127  		r1 = ret.Error(1)
   128  	}
   129  
   130  	return r0, r1
   131  }
   132  
   133  // GetAccountAtLatestBlock provides a mock function with given fields: _a0, _a1
   134  func (_m *AccessAPIServer) GetAccountAtLatestBlock(_a0 context.Context, _a1 *access.GetAccountAtLatestBlockRequest) (*access.AccountResponse, error) {
   135  	ret := _m.Called(_a0, _a1)
   136  
   137  	var r0 *access.AccountResponse
   138  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtLatestBlockRequest) *access.AccountResponse); ok {
   139  		r0 = rf(_a0, _a1)
   140  	} else {
   141  		if ret.Get(0) != nil {
   142  			r0 = ret.Get(0).(*access.AccountResponse)
   143  		}
   144  	}
   145  
   146  	var r1 error
   147  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountAtLatestBlockRequest) error); ok {
   148  		r1 = rf(_a0, _a1)
   149  	} else {
   150  		r1 = ret.Error(1)
   151  	}
   152  
   153  	return r0, r1
   154  }
   155  
   156  // GetBlockByHeight provides a mock function with given fields: _a0, _a1
   157  func (_m *AccessAPIServer) GetBlockByHeight(_a0 context.Context, _a1 *access.GetBlockByHeightRequest) (*access.BlockResponse, error) {
   158  	ret := _m.Called(_a0, _a1)
   159  
   160  	var r0 *access.BlockResponse
   161  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByHeightRequest) *access.BlockResponse); ok {
   162  		r0 = rf(_a0, _a1)
   163  	} else {
   164  		if ret.Get(0) != nil {
   165  			r0 = ret.Get(0).(*access.BlockResponse)
   166  		}
   167  	}
   168  
   169  	var r1 error
   170  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockByHeightRequest) error); ok {
   171  		r1 = rf(_a0, _a1)
   172  	} else {
   173  		r1 = ret.Error(1)
   174  	}
   175  
   176  	return r0, r1
   177  }
   178  
   179  // GetBlockByID provides a mock function with given fields: _a0, _a1
   180  func (_m *AccessAPIServer) GetBlockByID(_a0 context.Context, _a1 *access.GetBlockByIDRequest) (*access.BlockResponse, error) {
   181  	ret := _m.Called(_a0, _a1)
   182  
   183  	var r0 *access.BlockResponse
   184  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByIDRequest) *access.BlockResponse); ok {
   185  		r0 = rf(_a0, _a1)
   186  	} else {
   187  		if ret.Get(0) != nil {
   188  			r0 = ret.Get(0).(*access.BlockResponse)
   189  		}
   190  	}
   191  
   192  	var r1 error
   193  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockByIDRequest) error); ok {
   194  		r1 = rf(_a0, _a1)
   195  	} else {
   196  		r1 = ret.Error(1)
   197  	}
   198  
   199  	return r0, r1
   200  }
   201  
   202  // GetBlockHeaderByHeight provides a mock function with given fields: _a0, _a1
   203  func (_m *AccessAPIServer) GetBlockHeaderByHeight(_a0 context.Context, _a1 *access.GetBlockHeaderByHeightRequest) (*access.BlockHeaderResponse, error) {
   204  	ret := _m.Called(_a0, _a1)
   205  
   206  	var r0 *access.BlockHeaderResponse
   207  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByHeightRequest) *access.BlockHeaderResponse); ok {
   208  		r0 = rf(_a0, _a1)
   209  	} else {
   210  		if ret.Get(0) != nil {
   211  			r0 = ret.Get(0).(*access.BlockHeaderResponse)
   212  		}
   213  	}
   214  
   215  	var r1 error
   216  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockHeaderByHeightRequest) error); ok {
   217  		r1 = rf(_a0, _a1)
   218  	} else {
   219  		r1 = ret.Error(1)
   220  	}
   221  
   222  	return r0, r1
   223  }
   224  
   225  // GetBlockHeaderByID provides a mock function with given fields: _a0, _a1
   226  func (_m *AccessAPIServer) GetBlockHeaderByID(_a0 context.Context, _a1 *access.GetBlockHeaderByIDRequest) (*access.BlockHeaderResponse, error) {
   227  	ret := _m.Called(_a0, _a1)
   228  
   229  	var r0 *access.BlockHeaderResponse
   230  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByIDRequest) *access.BlockHeaderResponse); ok {
   231  		r0 = rf(_a0, _a1)
   232  	} else {
   233  		if ret.Get(0) != nil {
   234  			r0 = ret.Get(0).(*access.BlockHeaderResponse)
   235  		}
   236  	}
   237  
   238  	var r1 error
   239  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockHeaderByIDRequest) error); ok {
   240  		r1 = rf(_a0, _a1)
   241  	} else {
   242  		r1 = ret.Error(1)
   243  	}
   244  
   245  	return r0, r1
   246  }
   247  
   248  // GetCollectionByID provides a mock function with given fields: _a0, _a1
   249  func (_m *AccessAPIServer) GetCollectionByID(_a0 context.Context, _a1 *access.GetCollectionByIDRequest) (*access.CollectionResponse, error) {
   250  	ret := _m.Called(_a0, _a1)
   251  
   252  	var r0 *access.CollectionResponse
   253  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetCollectionByIDRequest) *access.CollectionResponse); ok {
   254  		r0 = rf(_a0, _a1)
   255  	} else {
   256  		if ret.Get(0) != nil {
   257  			r0 = ret.Get(0).(*access.CollectionResponse)
   258  		}
   259  	}
   260  
   261  	var r1 error
   262  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetCollectionByIDRequest) error); ok {
   263  		r1 = rf(_a0, _a1)
   264  	} else {
   265  		r1 = ret.Error(1)
   266  	}
   267  
   268  	return r0, r1
   269  }
   270  
   271  // GetEventsForBlockIDs provides a mock function with given fields: _a0, _a1
   272  func (_m *AccessAPIServer) GetEventsForBlockIDs(_a0 context.Context, _a1 *access.GetEventsForBlockIDsRequest) (*access.EventsResponse, error) {
   273  	ret := _m.Called(_a0, _a1)
   274  
   275  	var r0 *access.EventsResponse
   276  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForBlockIDsRequest) *access.EventsResponse); ok {
   277  		r0 = rf(_a0, _a1)
   278  	} else {
   279  		if ret.Get(0) != nil {
   280  			r0 = ret.Get(0).(*access.EventsResponse)
   281  		}
   282  	}
   283  
   284  	var r1 error
   285  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetEventsForBlockIDsRequest) error); ok {
   286  		r1 = rf(_a0, _a1)
   287  	} else {
   288  		r1 = ret.Error(1)
   289  	}
   290  
   291  	return r0, r1
   292  }
   293  
   294  // GetEventsForHeightRange provides a mock function with given fields: _a0, _a1
   295  func (_m *AccessAPIServer) GetEventsForHeightRange(_a0 context.Context, _a1 *access.GetEventsForHeightRangeRequest) (*access.EventsResponse, error) {
   296  	ret := _m.Called(_a0, _a1)
   297  
   298  	var r0 *access.EventsResponse
   299  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForHeightRangeRequest) *access.EventsResponse); ok {
   300  		r0 = rf(_a0, _a1)
   301  	} else {
   302  		if ret.Get(0) != nil {
   303  			r0 = ret.Get(0).(*access.EventsResponse)
   304  		}
   305  	}
   306  
   307  	var r1 error
   308  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetEventsForHeightRangeRequest) error); ok {
   309  		r1 = rf(_a0, _a1)
   310  	} else {
   311  		r1 = ret.Error(1)
   312  	}
   313  
   314  	return r0, r1
   315  }
   316  
   317  // GetExecutionResultForBlockID provides a mock function with given fields: _a0, _a1
   318  func (_m *AccessAPIServer) GetExecutionResultForBlockID(_a0 context.Context, _a1 *access.GetExecutionResultForBlockIDRequest) (*access.ExecutionResultForBlockIDResponse, error) {
   319  	ret := _m.Called(_a0, _a1)
   320  
   321  	var r0 *access.ExecutionResultForBlockIDResponse
   322  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetExecutionResultForBlockIDRequest) *access.ExecutionResultForBlockIDResponse); ok {
   323  		r0 = rf(_a0, _a1)
   324  	} else {
   325  		if ret.Get(0) != nil {
   326  			r0 = ret.Get(0).(*access.ExecutionResultForBlockIDResponse)
   327  		}
   328  	}
   329  
   330  	var r1 error
   331  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetExecutionResultForBlockIDRequest) error); ok {
   332  		r1 = rf(_a0, _a1)
   333  	} else {
   334  		r1 = ret.Error(1)
   335  	}
   336  
   337  	return r0, r1
   338  }
   339  
   340  // GetLatestBlock provides a mock function with given fields: _a0, _a1
   341  func (_m *AccessAPIServer) GetLatestBlock(_a0 context.Context, _a1 *access.GetLatestBlockRequest) (*access.BlockResponse, error) {
   342  	ret := _m.Called(_a0, _a1)
   343  
   344  	var r0 *access.BlockResponse
   345  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockRequest) *access.BlockResponse); ok {
   346  		r0 = rf(_a0, _a1)
   347  	} else {
   348  		if ret.Get(0) != nil {
   349  			r0 = ret.Get(0).(*access.BlockResponse)
   350  		}
   351  	}
   352  
   353  	var r1 error
   354  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestBlockRequest) error); ok {
   355  		r1 = rf(_a0, _a1)
   356  	} else {
   357  		r1 = ret.Error(1)
   358  	}
   359  
   360  	return r0, r1
   361  }
   362  
   363  // GetLatestBlockHeader provides a mock function with given fields: _a0, _a1
   364  func (_m *AccessAPIServer) GetLatestBlockHeader(_a0 context.Context, _a1 *access.GetLatestBlockHeaderRequest) (*access.BlockHeaderResponse, error) {
   365  	ret := _m.Called(_a0, _a1)
   366  
   367  	var r0 *access.BlockHeaderResponse
   368  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockHeaderRequest) *access.BlockHeaderResponse); ok {
   369  		r0 = rf(_a0, _a1)
   370  	} else {
   371  		if ret.Get(0) != nil {
   372  			r0 = ret.Get(0).(*access.BlockHeaderResponse)
   373  		}
   374  	}
   375  
   376  	var r1 error
   377  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestBlockHeaderRequest) error); ok {
   378  		r1 = rf(_a0, _a1)
   379  	} else {
   380  		r1 = ret.Error(1)
   381  	}
   382  
   383  	return r0, r1
   384  }
   385  
   386  // GetLatestProtocolStateSnapshot provides a mock function with given fields: _a0, _a1
   387  func (_m *AccessAPIServer) GetLatestProtocolStateSnapshot(_a0 context.Context, _a1 *access.GetLatestProtocolStateSnapshotRequest) (*access.ProtocolStateSnapshotResponse, error) {
   388  	ret := _m.Called(_a0, _a1)
   389  
   390  	var r0 *access.ProtocolStateSnapshotResponse
   391  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestProtocolStateSnapshotRequest) *access.ProtocolStateSnapshotResponse); ok {
   392  		r0 = rf(_a0, _a1)
   393  	} else {
   394  		if ret.Get(0) != nil {
   395  			r0 = ret.Get(0).(*access.ProtocolStateSnapshotResponse)
   396  		}
   397  	}
   398  
   399  	var r1 error
   400  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestProtocolStateSnapshotRequest) error); ok {
   401  		r1 = rf(_a0, _a1)
   402  	} else {
   403  		r1 = ret.Error(1)
   404  	}
   405  
   406  	return r0, r1
   407  }
   408  
   409  // GetNetworkParameters provides a mock function with given fields: _a0, _a1
   410  func (_m *AccessAPIServer) GetNetworkParameters(_a0 context.Context, _a1 *access.GetNetworkParametersRequest) (*access.GetNetworkParametersResponse, error) {
   411  	ret := _m.Called(_a0, _a1)
   412  
   413  	var r0 *access.GetNetworkParametersResponse
   414  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetNetworkParametersRequest) *access.GetNetworkParametersResponse); ok {
   415  		r0 = rf(_a0, _a1)
   416  	} else {
   417  		if ret.Get(0) != nil {
   418  			r0 = ret.Get(0).(*access.GetNetworkParametersResponse)
   419  		}
   420  	}
   421  
   422  	var r1 error
   423  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetNetworkParametersRequest) error); ok {
   424  		r1 = rf(_a0, _a1)
   425  	} else {
   426  		r1 = ret.Error(1)
   427  	}
   428  
   429  	return r0, r1
   430  }
   431  
   432  // GetTransaction provides a mock function with given fields: _a0, _a1
   433  func (_m *AccessAPIServer) GetTransaction(_a0 context.Context, _a1 *access.GetTransactionRequest) (*access.TransactionResponse, error) {
   434  	ret := _m.Called(_a0, _a1)
   435  
   436  	var r0 *access.TransactionResponse
   437  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest) *access.TransactionResponse); ok {
   438  		r0 = rf(_a0, _a1)
   439  	} else {
   440  		if ret.Get(0) != nil {
   441  			r0 = ret.Get(0).(*access.TransactionResponse)
   442  		}
   443  	}
   444  
   445  	var r1 error
   446  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionRequest) error); ok {
   447  		r1 = rf(_a0, _a1)
   448  	} else {
   449  		r1 = ret.Error(1)
   450  	}
   451  
   452  	return r0, r1
   453  }
   454  
   455  // GetTransactionResult provides a mock function with given fields: _a0, _a1
   456  func (_m *AccessAPIServer) GetTransactionResult(_a0 context.Context, _a1 *access.GetTransactionRequest) (*access.TransactionResultResponse, error) {
   457  	ret := _m.Called(_a0, _a1)
   458  
   459  	var r0 *access.TransactionResultResponse
   460  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest) *access.TransactionResultResponse); ok {
   461  		r0 = rf(_a0, _a1)
   462  	} else {
   463  		if ret.Get(0) != nil {
   464  			r0 = ret.Get(0).(*access.TransactionResultResponse)
   465  		}
   466  	}
   467  
   468  	var r1 error
   469  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionRequest) error); ok {
   470  		r1 = rf(_a0, _a1)
   471  	} else {
   472  		r1 = ret.Error(1)
   473  	}
   474  
   475  	return r0, r1
   476  }
   477  
   478  // GetTransactionResultByIndex provides a mock function with given fields: _a0, _a1
   479  func (_m *AccessAPIServer) GetTransactionResultByIndex(_a0 context.Context, _a1 *access.GetTransactionByIndexRequest) (*access.TransactionResultResponse, error) {
   480  	ret := _m.Called(_a0, _a1)
   481  
   482  	var r0 *access.TransactionResultResponse
   483  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionByIndexRequest) *access.TransactionResultResponse); ok {
   484  		r0 = rf(_a0, _a1)
   485  	} else {
   486  		if ret.Get(0) != nil {
   487  			r0 = ret.Get(0).(*access.TransactionResultResponse)
   488  		}
   489  	}
   490  
   491  	var r1 error
   492  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionByIndexRequest) error); ok {
   493  		r1 = rf(_a0, _a1)
   494  	} else {
   495  		r1 = ret.Error(1)
   496  	}
   497  
   498  	return r0, r1
   499  }
   500  
   501  // GetTransactionResultsByBlockID provides a mock function with given fields: _a0, _a1
   502  func (_m *AccessAPIServer) GetTransactionResultsByBlockID(_a0 context.Context, _a1 *access.GetTransactionsByBlockIDRequest) (*access.TransactionResultsResponse, error) {
   503  	ret := _m.Called(_a0, _a1)
   504  
   505  	var r0 *access.TransactionResultsResponse
   506  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest) *access.TransactionResultsResponse); ok {
   507  		r0 = rf(_a0, _a1)
   508  	} else {
   509  		if ret.Get(0) != nil {
   510  			r0 = ret.Get(0).(*access.TransactionResultsResponse)
   511  		}
   512  	}
   513  
   514  	var r1 error
   515  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionsByBlockIDRequest) error); ok {
   516  		r1 = rf(_a0, _a1)
   517  	} else {
   518  		r1 = ret.Error(1)
   519  	}
   520  
   521  	return r0, r1
   522  }
   523  
   524  // GetTransactionsByBlockID provides a mock function with given fields: _a0, _a1
   525  func (_m *AccessAPIServer) GetTransactionsByBlockID(_a0 context.Context, _a1 *access.GetTransactionsByBlockIDRequest) (*access.TransactionsResponse, error) {
   526  	ret := _m.Called(_a0, _a1)
   527  
   528  	var r0 *access.TransactionsResponse
   529  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest) *access.TransactionsResponse); ok {
   530  		r0 = rf(_a0, _a1)
   531  	} else {
   532  		if ret.Get(0) != nil {
   533  			r0 = ret.Get(0).(*access.TransactionsResponse)
   534  		}
   535  	}
   536  
   537  	var r1 error
   538  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionsByBlockIDRequest) error); ok {
   539  		r1 = rf(_a0, _a1)
   540  	} else {
   541  		r1 = ret.Error(1)
   542  	}
   543  
   544  	return r0, r1
   545  }
   546  
   547  // Ping provides a mock function with given fields: _a0, _a1
   548  func (_m *AccessAPIServer) Ping(_a0 context.Context, _a1 *access.PingRequest) (*access.PingResponse, error) {
   549  	ret := _m.Called(_a0, _a1)
   550  
   551  	var r0 *access.PingResponse
   552  	if rf, ok := ret.Get(0).(func(context.Context, *access.PingRequest) *access.PingResponse); ok {
   553  		r0 = rf(_a0, _a1)
   554  	} else {
   555  		if ret.Get(0) != nil {
   556  			r0 = ret.Get(0).(*access.PingResponse)
   557  		}
   558  	}
   559  
   560  	var r1 error
   561  	if rf, ok := ret.Get(1).(func(context.Context, *access.PingRequest) error); ok {
   562  		r1 = rf(_a0, _a1)
   563  	} else {
   564  		r1 = ret.Error(1)
   565  	}
   566  
   567  	return r0, r1
   568  }
   569  
   570  // SendTransaction provides a mock function with given fields: _a0, _a1
   571  func (_m *AccessAPIServer) SendTransaction(_a0 context.Context, _a1 *access.SendTransactionRequest) (*access.SendTransactionResponse, error) {
   572  	ret := _m.Called(_a0, _a1)
   573  
   574  	var r0 *access.SendTransactionResponse
   575  	if rf, ok := ret.Get(0).(func(context.Context, *access.SendTransactionRequest) *access.SendTransactionResponse); ok {
   576  		r0 = rf(_a0, _a1)
   577  	} else {
   578  		if ret.Get(0) != nil {
   579  			r0 = ret.Get(0).(*access.SendTransactionResponse)
   580  		}
   581  	}
   582  
   583  	var r1 error
   584  	if rf, ok := ret.Get(1).(func(context.Context, *access.SendTransactionRequest) error); ok {
   585  		r1 = rf(_a0, _a1)
   586  	} else {
   587  		r1 = ret.Error(1)
   588  	}
   589  
   590  	return r0, r1
   591  }
   592  
   593  type mockConstructorTestingTNewAccessAPIServer interface {
   594  	mock.TestingT
   595  	Cleanup(func())
   596  }
   597  
   598  // NewAccessAPIServer creates a new instance of AccessAPIServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   599  func NewAccessAPIServer(t mockConstructorTestingTNewAccessAPIServer) *AccessAPIServer {
   600  	mock := &AccessAPIServer{}
   601  	mock.Mock.Test(t)
   602  
   603  	t.Cleanup(func() { mock.AssertExpectations(t) })
   604  
   605  	return mock
   606  }