github.com/koko1123/flow-go-1@v0.29.6/engine/access/mock/access_api_client.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  	grpc "google.golang.org/grpc"
    11  
    12  	mock "github.com/stretchr/testify/mock"
    13  )
    14  
    15  // AccessAPIClient is an autogenerated mock type for the AccessAPIClient type
    16  type AccessAPIClient struct {
    17  	mock.Mock
    18  }
    19  
    20  // ExecuteScriptAtBlockHeight provides a mock function with given fields: ctx, in, opts
    21  func (_m *AccessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *access.ExecuteScriptAtBlockHeightRequest, opts ...grpc.CallOption) (*access.ExecuteScriptResponse, error) {
    22  	_va := make([]interface{}, len(opts))
    23  	for _i := range opts {
    24  		_va[_i] = opts[_i]
    25  	}
    26  	var _ca []interface{}
    27  	_ca = append(_ca, ctx, in)
    28  	_ca = append(_ca, _va...)
    29  	ret := _m.Called(_ca...)
    30  
    31  	var r0 *access.ExecuteScriptResponse
    32  	if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockHeightRequest, ...grpc.CallOption) *access.ExecuteScriptResponse); ok {
    33  		r0 = rf(ctx, in, opts...)
    34  	} else {
    35  		if ret.Get(0) != nil {
    36  			r0 = ret.Get(0).(*access.ExecuteScriptResponse)
    37  		}
    38  	}
    39  
    40  	var r1 error
    41  	if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtBlockHeightRequest, ...grpc.CallOption) error); ok {
    42  		r1 = rf(ctx, in, opts...)
    43  	} else {
    44  		r1 = ret.Error(1)
    45  	}
    46  
    47  	return r0, r1
    48  }
    49  
    50  // ExecuteScriptAtBlockID provides a mock function with given fields: ctx, in, opts
    51  func (_m *AccessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *access.ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*access.ExecuteScriptResponse, error) {
    52  	_va := make([]interface{}, len(opts))
    53  	for _i := range opts {
    54  		_va[_i] = opts[_i]
    55  	}
    56  	var _ca []interface{}
    57  	_ca = append(_ca, ctx, in)
    58  	_ca = append(_ca, _va...)
    59  	ret := _m.Called(_ca...)
    60  
    61  	var r0 *access.ExecuteScriptResponse
    62  	if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockIDRequest, ...grpc.CallOption) *access.ExecuteScriptResponse); ok {
    63  		r0 = rf(ctx, in, opts...)
    64  	} else {
    65  		if ret.Get(0) != nil {
    66  			r0 = ret.Get(0).(*access.ExecuteScriptResponse)
    67  		}
    68  	}
    69  
    70  	var r1 error
    71  	if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtBlockIDRequest, ...grpc.CallOption) error); ok {
    72  		r1 = rf(ctx, in, opts...)
    73  	} else {
    74  		r1 = ret.Error(1)
    75  	}
    76  
    77  	return r0, r1
    78  }
    79  
    80  // ExecuteScriptAtLatestBlock provides a mock function with given fields: ctx, in, opts
    81  func (_m *AccessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *access.ExecuteScriptAtLatestBlockRequest, opts ...grpc.CallOption) (*access.ExecuteScriptResponse, error) {
    82  	_va := make([]interface{}, len(opts))
    83  	for _i := range opts {
    84  		_va[_i] = opts[_i]
    85  	}
    86  	var _ca []interface{}
    87  	_ca = append(_ca, ctx, in)
    88  	_ca = append(_ca, _va...)
    89  	ret := _m.Called(_ca...)
    90  
    91  	var r0 *access.ExecuteScriptResponse
    92  	if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtLatestBlockRequest, ...grpc.CallOption) *access.ExecuteScriptResponse); ok {
    93  		r0 = rf(ctx, in, opts...)
    94  	} else {
    95  		if ret.Get(0) != nil {
    96  			r0 = ret.Get(0).(*access.ExecuteScriptResponse)
    97  		}
    98  	}
    99  
   100  	var r1 error
   101  	if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtLatestBlockRequest, ...grpc.CallOption) error); ok {
   102  		r1 = rf(ctx, in, opts...)
   103  	} else {
   104  		r1 = ret.Error(1)
   105  	}
   106  
   107  	return r0, r1
   108  }
   109  
   110  // GetAccount provides a mock function with given fields: ctx, in, opts
   111  func (_m *AccessAPIClient) GetAccount(ctx context.Context, in *access.GetAccountRequest, opts ...grpc.CallOption) (*access.GetAccountResponse, error) {
   112  	_va := make([]interface{}, len(opts))
   113  	for _i := range opts {
   114  		_va[_i] = opts[_i]
   115  	}
   116  	var _ca []interface{}
   117  	_ca = append(_ca, ctx, in)
   118  	_ca = append(_ca, _va...)
   119  	ret := _m.Called(_ca...)
   120  
   121  	var r0 *access.GetAccountResponse
   122  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountRequest, ...grpc.CallOption) *access.GetAccountResponse); ok {
   123  		r0 = rf(ctx, in, opts...)
   124  	} else {
   125  		if ret.Get(0) != nil {
   126  			r0 = ret.Get(0).(*access.GetAccountResponse)
   127  		}
   128  	}
   129  
   130  	var r1 error
   131  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountRequest, ...grpc.CallOption) error); ok {
   132  		r1 = rf(ctx, in, opts...)
   133  	} else {
   134  		r1 = ret.Error(1)
   135  	}
   136  
   137  	return r0, r1
   138  }
   139  
   140  // GetAccountAtBlockHeight provides a mock function with given fields: ctx, in, opts
   141  func (_m *AccessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *access.GetAccountAtBlockHeightRequest, opts ...grpc.CallOption) (*access.AccountResponse, error) {
   142  	_va := make([]interface{}, len(opts))
   143  	for _i := range opts {
   144  		_va[_i] = opts[_i]
   145  	}
   146  	var _ca []interface{}
   147  	_ca = append(_ca, ctx, in)
   148  	_ca = append(_ca, _va...)
   149  	ret := _m.Called(_ca...)
   150  
   151  	var r0 *access.AccountResponse
   152  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtBlockHeightRequest, ...grpc.CallOption) *access.AccountResponse); ok {
   153  		r0 = rf(ctx, in, opts...)
   154  	} else {
   155  		if ret.Get(0) != nil {
   156  			r0 = ret.Get(0).(*access.AccountResponse)
   157  		}
   158  	}
   159  
   160  	var r1 error
   161  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountAtBlockHeightRequest, ...grpc.CallOption) error); ok {
   162  		r1 = rf(ctx, in, opts...)
   163  	} else {
   164  		r1 = ret.Error(1)
   165  	}
   166  
   167  	return r0, r1
   168  }
   169  
   170  // GetAccountAtLatestBlock provides a mock function with given fields: ctx, in, opts
   171  func (_m *AccessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *access.GetAccountAtLatestBlockRequest, opts ...grpc.CallOption) (*access.AccountResponse, error) {
   172  	_va := make([]interface{}, len(opts))
   173  	for _i := range opts {
   174  		_va[_i] = opts[_i]
   175  	}
   176  	var _ca []interface{}
   177  	_ca = append(_ca, ctx, in)
   178  	_ca = append(_ca, _va...)
   179  	ret := _m.Called(_ca...)
   180  
   181  	var r0 *access.AccountResponse
   182  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtLatestBlockRequest, ...grpc.CallOption) *access.AccountResponse); ok {
   183  		r0 = rf(ctx, in, opts...)
   184  	} else {
   185  		if ret.Get(0) != nil {
   186  			r0 = ret.Get(0).(*access.AccountResponse)
   187  		}
   188  	}
   189  
   190  	var r1 error
   191  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountAtLatestBlockRequest, ...grpc.CallOption) error); ok {
   192  		r1 = rf(ctx, in, opts...)
   193  	} else {
   194  		r1 = ret.Error(1)
   195  	}
   196  
   197  	return r0, r1
   198  }
   199  
   200  // GetBlockByHeight provides a mock function with given fields: ctx, in, opts
   201  func (_m *AccessAPIClient) GetBlockByHeight(ctx context.Context, in *access.GetBlockByHeightRequest, opts ...grpc.CallOption) (*access.BlockResponse, error) {
   202  	_va := make([]interface{}, len(opts))
   203  	for _i := range opts {
   204  		_va[_i] = opts[_i]
   205  	}
   206  	var _ca []interface{}
   207  	_ca = append(_ca, ctx, in)
   208  	_ca = append(_ca, _va...)
   209  	ret := _m.Called(_ca...)
   210  
   211  	var r0 *access.BlockResponse
   212  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByHeightRequest, ...grpc.CallOption) *access.BlockResponse); ok {
   213  		r0 = rf(ctx, in, opts...)
   214  	} else {
   215  		if ret.Get(0) != nil {
   216  			r0 = ret.Get(0).(*access.BlockResponse)
   217  		}
   218  	}
   219  
   220  	var r1 error
   221  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockByHeightRequest, ...grpc.CallOption) error); ok {
   222  		r1 = rf(ctx, in, opts...)
   223  	} else {
   224  		r1 = ret.Error(1)
   225  	}
   226  
   227  	return r0, r1
   228  }
   229  
   230  // GetBlockByID provides a mock function with given fields: ctx, in, opts
   231  func (_m *AccessAPIClient) GetBlockByID(ctx context.Context, in *access.GetBlockByIDRequest, opts ...grpc.CallOption) (*access.BlockResponse, error) {
   232  	_va := make([]interface{}, len(opts))
   233  	for _i := range opts {
   234  		_va[_i] = opts[_i]
   235  	}
   236  	var _ca []interface{}
   237  	_ca = append(_ca, ctx, in)
   238  	_ca = append(_ca, _va...)
   239  	ret := _m.Called(_ca...)
   240  
   241  	var r0 *access.BlockResponse
   242  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByIDRequest, ...grpc.CallOption) *access.BlockResponse); ok {
   243  		r0 = rf(ctx, in, opts...)
   244  	} else {
   245  		if ret.Get(0) != nil {
   246  			r0 = ret.Get(0).(*access.BlockResponse)
   247  		}
   248  	}
   249  
   250  	var r1 error
   251  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockByIDRequest, ...grpc.CallOption) error); ok {
   252  		r1 = rf(ctx, in, opts...)
   253  	} else {
   254  		r1 = ret.Error(1)
   255  	}
   256  
   257  	return r0, r1
   258  }
   259  
   260  // GetBlockHeaderByHeight provides a mock function with given fields: ctx, in, opts
   261  func (_m *AccessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *access.GetBlockHeaderByHeightRequest, opts ...grpc.CallOption) (*access.BlockHeaderResponse, error) {
   262  	_va := make([]interface{}, len(opts))
   263  	for _i := range opts {
   264  		_va[_i] = opts[_i]
   265  	}
   266  	var _ca []interface{}
   267  	_ca = append(_ca, ctx, in)
   268  	_ca = append(_ca, _va...)
   269  	ret := _m.Called(_ca...)
   270  
   271  	var r0 *access.BlockHeaderResponse
   272  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByHeightRequest, ...grpc.CallOption) *access.BlockHeaderResponse); ok {
   273  		r0 = rf(ctx, in, opts...)
   274  	} else {
   275  		if ret.Get(0) != nil {
   276  			r0 = ret.Get(0).(*access.BlockHeaderResponse)
   277  		}
   278  	}
   279  
   280  	var r1 error
   281  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockHeaderByHeightRequest, ...grpc.CallOption) error); ok {
   282  		r1 = rf(ctx, in, opts...)
   283  	} else {
   284  		r1 = ret.Error(1)
   285  	}
   286  
   287  	return r0, r1
   288  }
   289  
   290  // GetBlockHeaderByID provides a mock function with given fields: ctx, in, opts
   291  func (_m *AccessAPIClient) GetBlockHeaderByID(ctx context.Context, in *access.GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*access.BlockHeaderResponse, error) {
   292  	_va := make([]interface{}, len(opts))
   293  	for _i := range opts {
   294  		_va[_i] = opts[_i]
   295  	}
   296  	var _ca []interface{}
   297  	_ca = append(_ca, ctx, in)
   298  	_ca = append(_ca, _va...)
   299  	ret := _m.Called(_ca...)
   300  
   301  	var r0 *access.BlockHeaderResponse
   302  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByIDRequest, ...grpc.CallOption) *access.BlockHeaderResponse); ok {
   303  		r0 = rf(ctx, in, opts...)
   304  	} else {
   305  		if ret.Get(0) != nil {
   306  			r0 = ret.Get(0).(*access.BlockHeaderResponse)
   307  		}
   308  	}
   309  
   310  	var r1 error
   311  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockHeaderByIDRequest, ...grpc.CallOption) error); ok {
   312  		r1 = rf(ctx, in, opts...)
   313  	} else {
   314  		r1 = ret.Error(1)
   315  	}
   316  
   317  	return r0, r1
   318  }
   319  
   320  // GetCollectionByID provides a mock function with given fields: ctx, in, opts
   321  func (_m *AccessAPIClient) GetCollectionByID(ctx context.Context, in *access.GetCollectionByIDRequest, opts ...grpc.CallOption) (*access.CollectionResponse, error) {
   322  	_va := make([]interface{}, len(opts))
   323  	for _i := range opts {
   324  		_va[_i] = opts[_i]
   325  	}
   326  	var _ca []interface{}
   327  	_ca = append(_ca, ctx, in)
   328  	_ca = append(_ca, _va...)
   329  	ret := _m.Called(_ca...)
   330  
   331  	var r0 *access.CollectionResponse
   332  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetCollectionByIDRequest, ...grpc.CallOption) *access.CollectionResponse); ok {
   333  		r0 = rf(ctx, in, opts...)
   334  	} else {
   335  		if ret.Get(0) != nil {
   336  			r0 = ret.Get(0).(*access.CollectionResponse)
   337  		}
   338  	}
   339  
   340  	var r1 error
   341  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetCollectionByIDRequest, ...grpc.CallOption) error); ok {
   342  		r1 = rf(ctx, in, opts...)
   343  	} else {
   344  		r1 = ret.Error(1)
   345  	}
   346  
   347  	return r0, r1
   348  }
   349  
   350  // GetEventsForBlockIDs provides a mock function with given fields: ctx, in, opts
   351  func (_m *AccessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *access.GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*access.EventsResponse, error) {
   352  	_va := make([]interface{}, len(opts))
   353  	for _i := range opts {
   354  		_va[_i] = opts[_i]
   355  	}
   356  	var _ca []interface{}
   357  	_ca = append(_ca, ctx, in)
   358  	_ca = append(_ca, _va...)
   359  	ret := _m.Called(_ca...)
   360  
   361  	var r0 *access.EventsResponse
   362  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForBlockIDsRequest, ...grpc.CallOption) *access.EventsResponse); ok {
   363  		r0 = rf(ctx, in, opts...)
   364  	} else {
   365  		if ret.Get(0) != nil {
   366  			r0 = ret.Get(0).(*access.EventsResponse)
   367  		}
   368  	}
   369  
   370  	var r1 error
   371  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetEventsForBlockIDsRequest, ...grpc.CallOption) error); ok {
   372  		r1 = rf(ctx, in, opts...)
   373  	} else {
   374  		r1 = ret.Error(1)
   375  	}
   376  
   377  	return r0, r1
   378  }
   379  
   380  // GetEventsForHeightRange provides a mock function with given fields: ctx, in, opts
   381  func (_m *AccessAPIClient) GetEventsForHeightRange(ctx context.Context, in *access.GetEventsForHeightRangeRequest, opts ...grpc.CallOption) (*access.EventsResponse, error) {
   382  	_va := make([]interface{}, len(opts))
   383  	for _i := range opts {
   384  		_va[_i] = opts[_i]
   385  	}
   386  	var _ca []interface{}
   387  	_ca = append(_ca, ctx, in)
   388  	_ca = append(_ca, _va...)
   389  	ret := _m.Called(_ca...)
   390  
   391  	var r0 *access.EventsResponse
   392  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForHeightRangeRequest, ...grpc.CallOption) *access.EventsResponse); ok {
   393  		r0 = rf(ctx, in, opts...)
   394  	} else {
   395  		if ret.Get(0) != nil {
   396  			r0 = ret.Get(0).(*access.EventsResponse)
   397  		}
   398  	}
   399  
   400  	var r1 error
   401  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetEventsForHeightRangeRequest, ...grpc.CallOption) error); ok {
   402  		r1 = rf(ctx, in, opts...)
   403  	} else {
   404  		r1 = ret.Error(1)
   405  	}
   406  
   407  	return r0, r1
   408  }
   409  
   410  // GetExecutionResultForBlockID provides a mock function with given fields: ctx, in, opts
   411  func (_m *AccessAPIClient) GetExecutionResultForBlockID(ctx context.Context, in *access.GetExecutionResultForBlockIDRequest, opts ...grpc.CallOption) (*access.ExecutionResultForBlockIDResponse, error) {
   412  	_va := make([]interface{}, len(opts))
   413  	for _i := range opts {
   414  		_va[_i] = opts[_i]
   415  	}
   416  	var _ca []interface{}
   417  	_ca = append(_ca, ctx, in)
   418  	_ca = append(_ca, _va...)
   419  	ret := _m.Called(_ca...)
   420  
   421  	var r0 *access.ExecutionResultForBlockIDResponse
   422  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetExecutionResultForBlockIDRequest, ...grpc.CallOption) *access.ExecutionResultForBlockIDResponse); ok {
   423  		r0 = rf(ctx, in, opts...)
   424  	} else {
   425  		if ret.Get(0) != nil {
   426  			r0 = ret.Get(0).(*access.ExecutionResultForBlockIDResponse)
   427  		}
   428  	}
   429  
   430  	var r1 error
   431  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetExecutionResultForBlockIDRequest, ...grpc.CallOption) error); ok {
   432  		r1 = rf(ctx, in, opts...)
   433  	} else {
   434  		r1 = ret.Error(1)
   435  	}
   436  
   437  	return r0, r1
   438  }
   439  
   440  // GetLatestBlock provides a mock function with given fields: ctx, in, opts
   441  func (_m *AccessAPIClient) GetLatestBlock(ctx context.Context, in *access.GetLatestBlockRequest, opts ...grpc.CallOption) (*access.BlockResponse, error) {
   442  	_va := make([]interface{}, len(opts))
   443  	for _i := range opts {
   444  		_va[_i] = opts[_i]
   445  	}
   446  	var _ca []interface{}
   447  	_ca = append(_ca, ctx, in)
   448  	_ca = append(_ca, _va...)
   449  	ret := _m.Called(_ca...)
   450  
   451  	var r0 *access.BlockResponse
   452  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockRequest, ...grpc.CallOption) *access.BlockResponse); ok {
   453  		r0 = rf(ctx, in, opts...)
   454  	} else {
   455  		if ret.Get(0) != nil {
   456  			r0 = ret.Get(0).(*access.BlockResponse)
   457  		}
   458  	}
   459  
   460  	var r1 error
   461  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestBlockRequest, ...grpc.CallOption) error); ok {
   462  		r1 = rf(ctx, in, opts...)
   463  	} else {
   464  		r1 = ret.Error(1)
   465  	}
   466  
   467  	return r0, r1
   468  }
   469  
   470  // GetLatestBlockHeader provides a mock function with given fields: ctx, in, opts
   471  func (_m *AccessAPIClient) GetLatestBlockHeader(ctx context.Context, in *access.GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*access.BlockHeaderResponse, error) {
   472  	_va := make([]interface{}, len(opts))
   473  	for _i := range opts {
   474  		_va[_i] = opts[_i]
   475  	}
   476  	var _ca []interface{}
   477  	_ca = append(_ca, ctx, in)
   478  	_ca = append(_ca, _va...)
   479  	ret := _m.Called(_ca...)
   480  
   481  	var r0 *access.BlockHeaderResponse
   482  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockHeaderRequest, ...grpc.CallOption) *access.BlockHeaderResponse); ok {
   483  		r0 = rf(ctx, in, opts...)
   484  	} else {
   485  		if ret.Get(0) != nil {
   486  			r0 = ret.Get(0).(*access.BlockHeaderResponse)
   487  		}
   488  	}
   489  
   490  	var r1 error
   491  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestBlockHeaderRequest, ...grpc.CallOption) error); ok {
   492  		r1 = rf(ctx, in, opts...)
   493  	} else {
   494  		r1 = ret.Error(1)
   495  	}
   496  
   497  	return r0, r1
   498  }
   499  
   500  // GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx, in, opts
   501  func (_m *AccessAPIClient) GetLatestProtocolStateSnapshot(ctx context.Context, in *access.GetLatestProtocolStateSnapshotRequest, opts ...grpc.CallOption) (*access.ProtocolStateSnapshotResponse, error) {
   502  	_va := make([]interface{}, len(opts))
   503  	for _i := range opts {
   504  		_va[_i] = opts[_i]
   505  	}
   506  	var _ca []interface{}
   507  	_ca = append(_ca, ctx, in)
   508  	_ca = append(_ca, _va...)
   509  	ret := _m.Called(_ca...)
   510  
   511  	var r0 *access.ProtocolStateSnapshotResponse
   512  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestProtocolStateSnapshotRequest, ...grpc.CallOption) *access.ProtocolStateSnapshotResponse); ok {
   513  		r0 = rf(ctx, in, opts...)
   514  	} else {
   515  		if ret.Get(0) != nil {
   516  			r0 = ret.Get(0).(*access.ProtocolStateSnapshotResponse)
   517  		}
   518  	}
   519  
   520  	var r1 error
   521  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestProtocolStateSnapshotRequest, ...grpc.CallOption) error); ok {
   522  		r1 = rf(ctx, in, opts...)
   523  	} else {
   524  		r1 = ret.Error(1)
   525  	}
   526  
   527  	return r0, r1
   528  }
   529  
   530  // GetNetworkParameters provides a mock function with given fields: ctx, in, opts
   531  func (_m *AccessAPIClient) GetNetworkParameters(ctx context.Context, in *access.GetNetworkParametersRequest, opts ...grpc.CallOption) (*access.GetNetworkParametersResponse, error) {
   532  	_va := make([]interface{}, len(opts))
   533  	for _i := range opts {
   534  		_va[_i] = opts[_i]
   535  	}
   536  	var _ca []interface{}
   537  	_ca = append(_ca, ctx, in)
   538  	_ca = append(_ca, _va...)
   539  	ret := _m.Called(_ca...)
   540  
   541  	var r0 *access.GetNetworkParametersResponse
   542  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetNetworkParametersRequest, ...grpc.CallOption) *access.GetNetworkParametersResponse); ok {
   543  		r0 = rf(ctx, in, opts...)
   544  	} else {
   545  		if ret.Get(0) != nil {
   546  			r0 = ret.Get(0).(*access.GetNetworkParametersResponse)
   547  		}
   548  	}
   549  
   550  	var r1 error
   551  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetNetworkParametersRequest, ...grpc.CallOption) error); ok {
   552  		r1 = rf(ctx, in, opts...)
   553  	} else {
   554  		r1 = ret.Error(1)
   555  	}
   556  
   557  	return r0, r1
   558  }
   559  
   560  // GetTransaction provides a mock function with given fields: ctx, in, opts
   561  func (_m *AccessAPIClient) GetTransaction(ctx context.Context, in *access.GetTransactionRequest, opts ...grpc.CallOption) (*access.TransactionResponse, error) {
   562  	_va := make([]interface{}, len(opts))
   563  	for _i := range opts {
   564  		_va[_i] = opts[_i]
   565  	}
   566  	var _ca []interface{}
   567  	_ca = append(_ca, ctx, in)
   568  	_ca = append(_ca, _va...)
   569  	ret := _m.Called(_ca...)
   570  
   571  	var r0 *access.TransactionResponse
   572  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) *access.TransactionResponse); ok {
   573  		r0 = rf(ctx, in, opts...)
   574  	} else {
   575  		if ret.Get(0) != nil {
   576  			r0 = ret.Get(0).(*access.TransactionResponse)
   577  		}
   578  	}
   579  
   580  	var r1 error
   581  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) error); ok {
   582  		r1 = rf(ctx, in, opts...)
   583  	} else {
   584  		r1 = ret.Error(1)
   585  	}
   586  
   587  	return r0, r1
   588  }
   589  
   590  // GetTransactionResult provides a mock function with given fields: ctx, in, opts
   591  func (_m *AccessAPIClient) GetTransactionResult(ctx context.Context, in *access.GetTransactionRequest, opts ...grpc.CallOption) (*access.TransactionResultResponse, error) {
   592  	_va := make([]interface{}, len(opts))
   593  	for _i := range opts {
   594  		_va[_i] = opts[_i]
   595  	}
   596  	var _ca []interface{}
   597  	_ca = append(_ca, ctx, in)
   598  	_ca = append(_ca, _va...)
   599  	ret := _m.Called(_ca...)
   600  
   601  	var r0 *access.TransactionResultResponse
   602  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) *access.TransactionResultResponse); ok {
   603  		r0 = rf(ctx, in, opts...)
   604  	} else {
   605  		if ret.Get(0) != nil {
   606  			r0 = ret.Get(0).(*access.TransactionResultResponse)
   607  		}
   608  	}
   609  
   610  	var r1 error
   611  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) error); ok {
   612  		r1 = rf(ctx, in, opts...)
   613  	} else {
   614  		r1 = ret.Error(1)
   615  	}
   616  
   617  	return r0, r1
   618  }
   619  
   620  // GetTransactionResultByIndex provides a mock function with given fields: ctx, in, opts
   621  func (_m *AccessAPIClient) GetTransactionResultByIndex(ctx context.Context, in *access.GetTransactionByIndexRequest, opts ...grpc.CallOption) (*access.TransactionResultResponse, error) {
   622  	_va := make([]interface{}, len(opts))
   623  	for _i := range opts {
   624  		_va[_i] = opts[_i]
   625  	}
   626  	var _ca []interface{}
   627  	_ca = append(_ca, ctx, in)
   628  	_ca = append(_ca, _va...)
   629  	ret := _m.Called(_ca...)
   630  
   631  	var r0 *access.TransactionResultResponse
   632  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionByIndexRequest, ...grpc.CallOption) *access.TransactionResultResponse); ok {
   633  		r0 = rf(ctx, in, opts...)
   634  	} else {
   635  		if ret.Get(0) != nil {
   636  			r0 = ret.Get(0).(*access.TransactionResultResponse)
   637  		}
   638  	}
   639  
   640  	var r1 error
   641  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionByIndexRequest, ...grpc.CallOption) error); ok {
   642  		r1 = rf(ctx, in, opts...)
   643  	} else {
   644  		r1 = ret.Error(1)
   645  	}
   646  
   647  	return r0, r1
   648  }
   649  
   650  // GetTransactionResultsByBlockID provides a mock function with given fields: ctx, in, opts
   651  func (_m *AccessAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in *access.GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*access.TransactionResultsResponse, error) {
   652  	_va := make([]interface{}, len(opts))
   653  	for _i := range opts {
   654  		_va[_i] = opts[_i]
   655  	}
   656  	var _ca []interface{}
   657  	_ca = append(_ca, ctx, in)
   658  	_ca = append(_ca, _va...)
   659  	ret := _m.Called(_ca...)
   660  
   661  	var r0 *access.TransactionResultsResponse
   662  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) *access.TransactionResultsResponse); ok {
   663  		r0 = rf(ctx, in, opts...)
   664  	} else {
   665  		if ret.Get(0) != nil {
   666  			r0 = ret.Get(0).(*access.TransactionResultsResponse)
   667  		}
   668  	}
   669  
   670  	var r1 error
   671  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) error); ok {
   672  		r1 = rf(ctx, in, opts...)
   673  	} else {
   674  		r1 = ret.Error(1)
   675  	}
   676  
   677  	return r0, r1
   678  }
   679  
   680  // GetTransactionsByBlockID provides a mock function with given fields: ctx, in, opts
   681  func (_m *AccessAPIClient) GetTransactionsByBlockID(ctx context.Context, in *access.GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*access.TransactionsResponse, error) {
   682  	_va := make([]interface{}, len(opts))
   683  	for _i := range opts {
   684  		_va[_i] = opts[_i]
   685  	}
   686  	var _ca []interface{}
   687  	_ca = append(_ca, ctx, in)
   688  	_ca = append(_ca, _va...)
   689  	ret := _m.Called(_ca...)
   690  
   691  	var r0 *access.TransactionsResponse
   692  	if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) *access.TransactionsResponse); ok {
   693  		r0 = rf(ctx, in, opts...)
   694  	} else {
   695  		if ret.Get(0) != nil {
   696  			r0 = ret.Get(0).(*access.TransactionsResponse)
   697  		}
   698  	}
   699  
   700  	var r1 error
   701  	if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) error); ok {
   702  		r1 = rf(ctx, in, opts...)
   703  	} else {
   704  		r1 = ret.Error(1)
   705  	}
   706  
   707  	return r0, r1
   708  }
   709  
   710  // Ping provides a mock function with given fields: ctx, in, opts
   711  func (_m *AccessAPIClient) Ping(ctx context.Context, in *access.PingRequest, opts ...grpc.CallOption) (*access.PingResponse, error) {
   712  	_va := make([]interface{}, len(opts))
   713  	for _i := range opts {
   714  		_va[_i] = opts[_i]
   715  	}
   716  	var _ca []interface{}
   717  	_ca = append(_ca, ctx, in)
   718  	_ca = append(_ca, _va...)
   719  	ret := _m.Called(_ca...)
   720  
   721  	var r0 *access.PingResponse
   722  	if rf, ok := ret.Get(0).(func(context.Context, *access.PingRequest, ...grpc.CallOption) *access.PingResponse); ok {
   723  		r0 = rf(ctx, in, opts...)
   724  	} else {
   725  		if ret.Get(0) != nil {
   726  			r0 = ret.Get(0).(*access.PingResponse)
   727  		}
   728  	}
   729  
   730  	var r1 error
   731  	if rf, ok := ret.Get(1).(func(context.Context, *access.PingRequest, ...grpc.CallOption) error); ok {
   732  		r1 = rf(ctx, in, opts...)
   733  	} else {
   734  		r1 = ret.Error(1)
   735  	}
   736  
   737  	return r0, r1
   738  }
   739  
   740  // SendTransaction provides a mock function with given fields: ctx, in, opts
   741  func (_m *AccessAPIClient) SendTransaction(ctx context.Context, in *access.SendTransactionRequest, opts ...grpc.CallOption) (*access.SendTransactionResponse, error) {
   742  	_va := make([]interface{}, len(opts))
   743  	for _i := range opts {
   744  		_va[_i] = opts[_i]
   745  	}
   746  	var _ca []interface{}
   747  	_ca = append(_ca, ctx, in)
   748  	_ca = append(_ca, _va...)
   749  	ret := _m.Called(_ca...)
   750  
   751  	var r0 *access.SendTransactionResponse
   752  	if rf, ok := ret.Get(0).(func(context.Context, *access.SendTransactionRequest, ...grpc.CallOption) *access.SendTransactionResponse); ok {
   753  		r0 = rf(ctx, in, opts...)
   754  	} else {
   755  		if ret.Get(0) != nil {
   756  			r0 = ret.Get(0).(*access.SendTransactionResponse)
   757  		}
   758  	}
   759  
   760  	var r1 error
   761  	if rf, ok := ret.Get(1).(func(context.Context, *access.SendTransactionRequest, ...grpc.CallOption) error); ok {
   762  		r1 = rf(ctx, in, opts...)
   763  	} else {
   764  		r1 = ret.Error(1)
   765  	}
   766  
   767  	return r0, r1
   768  }
   769  
   770  type mockConstructorTestingTNewAccessAPIClient interface {
   771  	mock.TestingT
   772  	Cleanup(func())
   773  }
   774  
   775  // NewAccessAPIClient creates a new instance of AccessAPIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   776  func NewAccessAPIClient(t mockConstructorTestingTNewAccessAPIClient) *AccessAPIClient {
   777  	mock := &AccessAPIClient{}
   778  	mock.Mock.Test(t)
   779  
   780  	t.Cleanup(func() { mock.AssertExpectations(t) })
   781  
   782  	return mock
   783  }