github.com/line/ostracon@v1.0.10-0.20230328032236-7f20145f065d/rpc/client/mocks/remote_client.go (about)

     1  // Code generated by mockery v2.16.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	bytes "github.com/line/ostracon/libs/bytes"
     7  	client "github.com/line/ostracon/rpc/client"
     8  
     9  	context "context"
    10  
    11  	coretypes "github.com/line/ostracon/rpc/core/types"
    12  
    13  	log "github.com/line/ostracon/libs/log"
    14  
    15  	mock "github.com/stretchr/testify/mock"
    16  
    17  	types "github.com/line/ostracon/types"
    18  )
    19  
    20  // RemoteClient is an autogenerated mock type for the RemoteClient type
    21  type RemoteClient struct {
    22  	mock.Mock
    23  }
    24  
    25  // ABCIInfo provides a mock function with given fields: _a0
    26  func (_m *RemoteClient) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error) {
    27  	ret := _m.Called(_a0)
    28  
    29  	var r0 *coretypes.ResultABCIInfo
    30  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultABCIInfo); ok {
    31  		r0 = rf(_a0)
    32  	} else {
    33  		if ret.Get(0) != nil {
    34  			r0 = ret.Get(0).(*coretypes.ResultABCIInfo)
    35  		}
    36  	}
    37  
    38  	var r1 error
    39  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
    40  		r1 = rf(_a0)
    41  	} else {
    42  		r1 = ret.Error(1)
    43  	}
    44  
    45  	return r0, r1
    46  }
    47  
    48  // ABCIQuery provides a mock function with given fields: ctx, path, data
    49  func (_m *RemoteClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error) {
    50  	ret := _m.Called(ctx, path, data)
    51  
    52  	var r0 *coretypes.ResultABCIQuery
    53  	if rf, ok := ret.Get(0).(func(context.Context, string, bytes.HexBytes) *coretypes.ResultABCIQuery); ok {
    54  		r0 = rf(ctx, path, data)
    55  	} else {
    56  		if ret.Get(0) != nil {
    57  			r0 = ret.Get(0).(*coretypes.ResultABCIQuery)
    58  		}
    59  	}
    60  
    61  	var r1 error
    62  	if rf, ok := ret.Get(1).(func(context.Context, string, bytes.HexBytes) error); ok {
    63  		r1 = rf(ctx, path, data)
    64  	} else {
    65  		r1 = ret.Error(1)
    66  	}
    67  
    68  	return r0, r1
    69  }
    70  
    71  // ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts
    72  func (_m *RemoteClient) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error) {
    73  	ret := _m.Called(ctx, path, data, opts)
    74  
    75  	var r0 *coretypes.ResultABCIQuery
    76  	if rf, ok := ret.Get(0).(func(context.Context, string, bytes.HexBytes, client.ABCIQueryOptions) *coretypes.ResultABCIQuery); ok {
    77  		r0 = rf(ctx, path, data, opts)
    78  	} else {
    79  		if ret.Get(0) != nil {
    80  			r0 = ret.Get(0).(*coretypes.ResultABCIQuery)
    81  		}
    82  	}
    83  
    84  	var r1 error
    85  	if rf, ok := ret.Get(1).(func(context.Context, string, bytes.HexBytes, client.ABCIQueryOptions) error); ok {
    86  		r1 = rf(ctx, path, data, opts)
    87  	} else {
    88  		r1 = ret.Error(1)
    89  	}
    90  
    91  	return r0, r1
    92  }
    93  
    94  // Block provides a mock function with given fields: ctx, height
    95  func (_m *RemoteClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error) {
    96  	ret := _m.Called(ctx, height)
    97  
    98  	var r0 *coretypes.ResultBlock
    99  	if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultBlock); ok {
   100  		r0 = rf(ctx, height)
   101  	} else {
   102  		if ret.Get(0) != nil {
   103  			r0 = ret.Get(0).(*coretypes.ResultBlock)
   104  		}
   105  	}
   106  
   107  	var r1 error
   108  	if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
   109  		r1 = rf(ctx, height)
   110  	} else {
   111  		r1 = ret.Error(1)
   112  	}
   113  
   114  	return r0, r1
   115  }
   116  
   117  // BlockByHash provides a mock function with given fields: ctx, hash
   118  func (_m *RemoteClient) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error) {
   119  	ret := _m.Called(ctx, hash)
   120  
   121  	var r0 *coretypes.ResultBlock
   122  	if rf, ok := ret.Get(0).(func(context.Context, []byte) *coretypes.ResultBlock); ok {
   123  		r0 = rf(ctx, hash)
   124  	} else {
   125  		if ret.Get(0) != nil {
   126  			r0 = ret.Get(0).(*coretypes.ResultBlock)
   127  		}
   128  	}
   129  
   130  	var r1 error
   131  	if rf, ok := ret.Get(1).(func(context.Context, []byte) error); ok {
   132  		r1 = rf(ctx, hash)
   133  	} else {
   134  		r1 = ret.Error(1)
   135  	}
   136  
   137  	return r0, r1
   138  }
   139  
   140  // BlockResults provides a mock function with given fields: ctx, height
   141  func (_m *RemoteClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error) {
   142  	ret := _m.Called(ctx, height)
   143  
   144  	var r0 *coretypes.ResultBlockResults
   145  	if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultBlockResults); ok {
   146  		r0 = rf(ctx, height)
   147  	} else {
   148  		if ret.Get(0) != nil {
   149  			r0 = ret.Get(0).(*coretypes.ResultBlockResults)
   150  		}
   151  	}
   152  
   153  	var r1 error
   154  	if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
   155  		r1 = rf(ctx, height)
   156  	} else {
   157  		r1 = ret.Error(1)
   158  	}
   159  
   160  	return r0, r1
   161  }
   162  
   163  // BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy
   164  func (_m *RemoteClient) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error) {
   165  	ret := _m.Called(ctx, query, page, perPage, orderBy)
   166  
   167  	var r0 *coretypes.ResultBlockSearch
   168  	if rf, ok := ret.Get(0).(func(context.Context, string, *int, *int, string) *coretypes.ResultBlockSearch); ok {
   169  		r0 = rf(ctx, query, page, perPage, orderBy)
   170  	} else {
   171  		if ret.Get(0) != nil {
   172  			r0 = ret.Get(0).(*coretypes.ResultBlockSearch)
   173  		}
   174  	}
   175  
   176  	var r1 error
   177  	if rf, ok := ret.Get(1).(func(context.Context, string, *int, *int, string) error); ok {
   178  		r1 = rf(ctx, query, page, perPage, orderBy)
   179  	} else {
   180  		r1 = ret.Error(1)
   181  	}
   182  
   183  	return r0, r1
   184  }
   185  
   186  // BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight
   187  func (_m *RemoteClient) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error) {
   188  	ret := _m.Called(ctx, minHeight, maxHeight)
   189  
   190  	var r0 *coretypes.ResultBlockchainInfo
   191  	if rf, ok := ret.Get(0).(func(context.Context, int64, int64) *coretypes.ResultBlockchainInfo); ok {
   192  		r0 = rf(ctx, minHeight, maxHeight)
   193  	} else {
   194  		if ret.Get(0) != nil {
   195  			r0 = ret.Get(0).(*coretypes.ResultBlockchainInfo)
   196  		}
   197  	}
   198  
   199  	var r1 error
   200  	if rf, ok := ret.Get(1).(func(context.Context, int64, int64) error); ok {
   201  		r1 = rf(ctx, minHeight, maxHeight)
   202  	} else {
   203  		r1 = ret.Error(1)
   204  	}
   205  
   206  	return r0, r1
   207  }
   208  
   209  // BroadcastEvidence provides a mock function with given fields: _a0, _a1
   210  func (_m *RemoteClient) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error) {
   211  	ret := _m.Called(_a0, _a1)
   212  
   213  	var r0 *coretypes.ResultBroadcastEvidence
   214  	if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) *coretypes.ResultBroadcastEvidence); ok {
   215  		r0 = rf(_a0, _a1)
   216  	} else {
   217  		if ret.Get(0) != nil {
   218  			r0 = ret.Get(0).(*coretypes.ResultBroadcastEvidence)
   219  		}
   220  	}
   221  
   222  	var r1 error
   223  	if rf, ok := ret.Get(1).(func(context.Context, types.Evidence) error); ok {
   224  		r1 = rf(_a0, _a1)
   225  	} else {
   226  		r1 = ret.Error(1)
   227  	}
   228  
   229  	return r0, r1
   230  }
   231  
   232  // BroadcastTxAsync provides a mock function with given fields: _a0, _a1
   233  func (_m *RemoteClient) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error) {
   234  	ret := _m.Called(_a0, _a1)
   235  
   236  	var r0 *coretypes.ResultBroadcastTx
   237  	if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTx); ok {
   238  		r0 = rf(_a0, _a1)
   239  	} else {
   240  		if ret.Get(0) != nil {
   241  			r0 = ret.Get(0).(*coretypes.ResultBroadcastTx)
   242  		}
   243  	}
   244  
   245  	var r1 error
   246  	if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok {
   247  		r1 = rf(_a0, _a1)
   248  	} else {
   249  		r1 = ret.Error(1)
   250  	}
   251  
   252  	return r0, r1
   253  }
   254  
   255  // BroadcastTxCommit provides a mock function with given fields: _a0, _a1
   256  func (_m *RemoteClient) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error) {
   257  	ret := _m.Called(_a0, _a1)
   258  
   259  	var r0 *coretypes.ResultBroadcastTxCommit
   260  	if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTxCommit); ok {
   261  		r0 = rf(_a0, _a1)
   262  	} else {
   263  		if ret.Get(0) != nil {
   264  			r0 = ret.Get(0).(*coretypes.ResultBroadcastTxCommit)
   265  		}
   266  	}
   267  
   268  	var r1 error
   269  	if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok {
   270  		r1 = rf(_a0, _a1)
   271  	} else {
   272  		r1 = ret.Error(1)
   273  	}
   274  
   275  	return r0, r1
   276  }
   277  
   278  // BroadcastTxSync provides a mock function with given fields: _a0, _a1
   279  func (_m *RemoteClient) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error) {
   280  	ret := _m.Called(_a0, _a1)
   281  
   282  	var r0 *coretypes.ResultBroadcastTx
   283  	if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTx); ok {
   284  		r0 = rf(_a0, _a1)
   285  	} else {
   286  		if ret.Get(0) != nil {
   287  			r0 = ret.Get(0).(*coretypes.ResultBroadcastTx)
   288  		}
   289  	}
   290  
   291  	var r1 error
   292  	if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok {
   293  		r1 = rf(_a0, _a1)
   294  	} else {
   295  		r1 = ret.Error(1)
   296  	}
   297  
   298  	return r0, r1
   299  }
   300  
   301  // CheckTx provides a mock function with given fields: _a0, _a1
   302  func (_m *RemoteClient) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error) {
   303  	ret := _m.Called(_a0, _a1)
   304  
   305  	var r0 *coretypes.ResultCheckTx
   306  	if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultCheckTx); ok {
   307  		r0 = rf(_a0, _a1)
   308  	} else {
   309  		if ret.Get(0) != nil {
   310  			r0 = ret.Get(0).(*coretypes.ResultCheckTx)
   311  		}
   312  	}
   313  
   314  	var r1 error
   315  	if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok {
   316  		r1 = rf(_a0, _a1)
   317  	} else {
   318  		r1 = ret.Error(1)
   319  	}
   320  
   321  	return r0, r1
   322  }
   323  
   324  // Commit provides a mock function with given fields: ctx, height
   325  func (_m *RemoteClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error) {
   326  	ret := _m.Called(ctx, height)
   327  
   328  	var r0 *coretypes.ResultCommit
   329  	if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultCommit); ok {
   330  		r0 = rf(ctx, height)
   331  	} else {
   332  		if ret.Get(0) != nil {
   333  			r0 = ret.Get(0).(*coretypes.ResultCommit)
   334  		}
   335  	}
   336  
   337  	var r1 error
   338  	if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
   339  		r1 = rf(ctx, height)
   340  	} else {
   341  		r1 = ret.Error(1)
   342  	}
   343  
   344  	return r0, r1
   345  }
   346  
   347  // ConsensusParams provides a mock function with given fields: ctx, height
   348  func (_m *RemoteClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error) {
   349  	ret := _m.Called(ctx, height)
   350  
   351  	var r0 *coretypes.ResultConsensusParams
   352  	if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultConsensusParams); ok {
   353  		r0 = rf(ctx, height)
   354  	} else {
   355  		if ret.Get(0) != nil {
   356  			r0 = ret.Get(0).(*coretypes.ResultConsensusParams)
   357  		}
   358  	}
   359  
   360  	var r1 error
   361  	if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
   362  		r1 = rf(ctx, height)
   363  	} else {
   364  		r1 = ret.Error(1)
   365  	}
   366  
   367  	return r0, r1
   368  }
   369  
   370  // ConsensusState provides a mock function with given fields: _a0
   371  func (_m *RemoteClient) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error) {
   372  	ret := _m.Called(_a0)
   373  
   374  	var r0 *coretypes.ResultConsensusState
   375  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultConsensusState); ok {
   376  		r0 = rf(_a0)
   377  	} else {
   378  		if ret.Get(0) != nil {
   379  			r0 = ret.Get(0).(*coretypes.ResultConsensusState)
   380  		}
   381  	}
   382  
   383  	var r1 error
   384  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   385  		r1 = rf(_a0)
   386  	} else {
   387  		r1 = ret.Error(1)
   388  	}
   389  
   390  	return r0, r1
   391  }
   392  
   393  // DumpConsensusState provides a mock function with given fields: _a0
   394  func (_m *RemoteClient) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error) {
   395  	ret := _m.Called(_a0)
   396  
   397  	var r0 *coretypes.ResultDumpConsensusState
   398  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultDumpConsensusState); ok {
   399  		r0 = rf(_a0)
   400  	} else {
   401  		if ret.Get(0) != nil {
   402  			r0 = ret.Get(0).(*coretypes.ResultDumpConsensusState)
   403  		}
   404  	}
   405  
   406  	var r1 error
   407  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   408  		r1 = rf(_a0)
   409  	} else {
   410  		r1 = ret.Error(1)
   411  	}
   412  
   413  	return r0, r1
   414  }
   415  
   416  // Genesis provides a mock function with given fields: _a0
   417  func (_m *RemoteClient) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error) {
   418  	ret := _m.Called(_a0)
   419  
   420  	var r0 *coretypes.ResultGenesis
   421  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultGenesis); ok {
   422  		r0 = rf(_a0)
   423  	} else {
   424  		if ret.Get(0) != nil {
   425  			r0 = ret.Get(0).(*coretypes.ResultGenesis)
   426  		}
   427  	}
   428  
   429  	var r1 error
   430  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   431  		r1 = rf(_a0)
   432  	} else {
   433  		r1 = ret.Error(1)
   434  	}
   435  
   436  	return r0, r1
   437  }
   438  
   439  // GenesisChunked provides a mock function with given fields: _a0, _a1
   440  func (_m *RemoteClient) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error) {
   441  	ret := _m.Called(_a0, _a1)
   442  
   443  	var r0 *coretypes.ResultGenesisChunk
   444  	if rf, ok := ret.Get(0).(func(context.Context, uint) *coretypes.ResultGenesisChunk); ok {
   445  		r0 = rf(_a0, _a1)
   446  	} else {
   447  		if ret.Get(0) != nil {
   448  			r0 = ret.Get(0).(*coretypes.ResultGenesisChunk)
   449  		}
   450  	}
   451  
   452  	var r1 error
   453  	if rf, ok := ret.Get(1).(func(context.Context, uint) error); ok {
   454  		r1 = rf(_a0, _a1)
   455  	} else {
   456  		r1 = ret.Error(1)
   457  	}
   458  
   459  	return r0, r1
   460  }
   461  
   462  // Health provides a mock function with given fields: _a0
   463  func (_m *RemoteClient) Health(_a0 context.Context) (*coretypes.ResultHealth, error) {
   464  	ret := _m.Called(_a0)
   465  
   466  	var r0 *coretypes.ResultHealth
   467  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultHealth); ok {
   468  		r0 = rf(_a0)
   469  	} else {
   470  		if ret.Get(0) != nil {
   471  			r0 = ret.Get(0).(*coretypes.ResultHealth)
   472  		}
   473  	}
   474  
   475  	var r1 error
   476  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   477  		r1 = rf(_a0)
   478  	} else {
   479  		r1 = ret.Error(1)
   480  	}
   481  
   482  	return r0, r1
   483  }
   484  
   485  // IsRunning provides a mock function with given fields:
   486  func (_m *RemoteClient) IsRunning() bool {
   487  	ret := _m.Called()
   488  
   489  	var r0 bool
   490  	if rf, ok := ret.Get(0).(func() bool); ok {
   491  		r0 = rf()
   492  	} else {
   493  		r0 = ret.Get(0).(bool)
   494  	}
   495  
   496  	return r0
   497  }
   498  
   499  // NetInfo provides a mock function with given fields: _a0
   500  func (_m *RemoteClient) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error) {
   501  	ret := _m.Called(_a0)
   502  
   503  	var r0 *coretypes.ResultNetInfo
   504  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultNetInfo); ok {
   505  		r0 = rf(_a0)
   506  	} else {
   507  		if ret.Get(0) != nil {
   508  			r0 = ret.Get(0).(*coretypes.ResultNetInfo)
   509  		}
   510  	}
   511  
   512  	var r1 error
   513  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   514  		r1 = rf(_a0)
   515  	} else {
   516  		r1 = ret.Error(1)
   517  	}
   518  
   519  	return r0, r1
   520  }
   521  
   522  // NumUnconfirmedTxs provides a mock function with given fields: _a0
   523  func (_m *RemoteClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error) {
   524  	ret := _m.Called(_a0)
   525  
   526  	var r0 *coretypes.ResultUnconfirmedTxs
   527  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultUnconfirmedTxs); ok {
   528  		r0 = rf(_a0)
   529  	} else {
   530  		if ret.Get(0) != nil {
   531  			r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
   532  		}
   533  	}
   534  
   535  	var r1 error
   536  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   537  		r1 = rf(_a0)
   538  	} else {
   539  		r1 = ret.Error(1)
   540  	}
   541  
   542  	return r0, r1
   543  }
   544  
   545  // OnReset provides a mock function with given fields:
   546  func (_m *RemoteClient) OnReset() error {
   547  	ret := _m.Called()
   548  
   549  	var r0 error
   550  	if rf, ok := ret.Get(0).(func() error); ok {
   551  		r0 = rf()
   552  	} else {
   553  		r0 = ret.Error(0)
   554  	}
   555  
   556  	return r0
   557  }
   558  
   559  // OnStart provides a mock function with given fields:
   560  func (_m *RemoteClient) OnStart() error {
   561  	ret := _m.Called()
   562  
   563  	var r0 error
   564  	if rf, ok := ret.Get(0).(func() error); ok {
   565  		r0 = rf()
   566  	} else {
   567  		r0 = ret.Error(0)
   568  	}
   569  
   570  	return r0
   571  }
   572  
   573  // OnStop provides a mock function with given fields:
   574  func (_m *RemoteClient) OnStop() {
   575  	_m.Called()
   576  }
   577  
   578  // Quit provides a mock function with given fields:
   579  func (_m *RemoteClient) Quit() <-chan struct{} {
   580  	ret := _m.Called()
   581  
   582  	var r0 <-chan struct{}
   583  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
   584  		r0 = rf()
   585  	} else {
   586  		if ret.Get(0) != nil {
   587  			r0 = ret.Get(0).(<-chan struct{})
   588  		}
   589  	}
   590  
   591  	return r0
   592  }
   593  
   594  // Remote provides a mock function with given fields:
   595  func (_m *RemoteClient) Remote() string {
   596  	ret := _m.Called()
   597  
   598  	var r0 string
   599  	if rf, ok := ret.Get(0).(func() string); ok {
   600  		r0 = rf()
   601  	} else {
   602  		r0 = ret.Get(0).(string)
   603  	}
   604  
   605  	return r0
   606  }
   607  
   608  // Reset provides a mock function with given fields:
   609  func (_m *RemoteClient) Reset() error {
   610  	ret := _m.Called()
   611  
   612  	var r0 error
   613  	if rf, ok := ret.Get(0).(func() error); ok {
   614  		r0 = rf()
   615  	} else {
   616  		r0 = ret.Error(0)
   617  	}
   618  
   619  	return r0
   620  }
   621  
   622  // SetLogger provides a mock function with given fields: _a0
   623  func (_m *RemoteClient) SetLogger(_a0 log.Logger) {
   624  	_m.Called(_a0)
   625  }
   626  
   627  // Start provides a mock function with given fields:
   628  func (_m *RemoteClient) Start() error {
   629  	ret := _m.Called()
   630  
   631  	var r0 error
   632  	if rf, ok := ret.Get(0).(func() error); ok {
   633  		r0 = rf()
   634  	} else {
   635  		r0 = ret.Error(0)
   636  	}
   637  
   638  	return r0
   639  }
   640  
   641  // Status provides a mock function with given fields: _a0
   642  func (_m *RemoteClient) Status(_a0 context.Context) (*coretypes.ResultStatus, error) {
   643  	ret := _m.Called(_a0)
   644  
   645  	var r0 *coretypes.ResultStatus
   646  	if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultStatus); ok {
   647  		r0 = rf(_a0)
   648  	} else {
   649  		if ret.Get(0) != nil {
   650  			r0 = ret.Get(0).(*coretypes.ResultStatus)
   651  		}
   652  	}
   653  
   654  	var r1 error
   655  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   656  		r1 = rf(_a0)
   657  	} else {
   658  		r1 = ret.Error(1)
   659  	}
   660  
   661  	return r0, r1
   662  }
   663  
   664  // Stop provides a mock function with given fields:
   665  func (_m *RemoteClient) Stop() error {
   666  	ret := _m.Called()
   667  
   668  	var r0 error
   669  	if rf, ok := ret.Get(0).(func() error); ok {
   670  		r0 = rf()
   671  	} else {
   672  		r0 = ret.Error(0)
   673  	}
   674  
   675  	return r0
   676  }
   677  
   678  // String provides a mock function with given fields:
   679  func (_m *RemoteClient) String() string {
   680  	ret := _m.Called()
   681  
   682  	var r0 string
   683  	if rf, ok := ret.Get(0).(func() string); ok {
   684  		r0 = rf()
   685  	} else {
   686  		r0 = ret.Get(0).(string)
   687  	}
   688  
   689  	return r0
   690  }
   691  
   692  // Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity
   693  func (_m *RemoteClient) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) {
   694  	_va := make([]interface{}, len(outCapacity))
   695  	for _i := range outCapacity {
   696  		_va[_i] = outCapacity[_i]
   697  	}
   698  	var _ca []interface{}
   699  	_ca = append(_ca, ctx, subscriber, query)
   700  	_ca = append(_ca, _va...)
   701  	ret := _m.Called(_ca...)
   702  
   703  	var r0 <-chan coretypes.ResultEvent
   704  	if rf, ok := ret.Get(0).(func(context.Context, string, string, ...int) <-chan coretypes.ResultEvent); ok {
   705  		r0 = rf(ctx, subscriber, query, outCapacity...)
   706  	} else {
   707  		if ret.Get(0) != nil {
   708  			r0 = ret.Get(0).(<-chan coretypes.ResultEvent)
   709  		}
   710  	}
   711  
   712  	var r1 error
   713  	if rf, ok := ret.Get(1).(func(context.Context, string, string, ...int) error); ok {
   714  		r1 = rf(ctx, subscriber, query, outCapacity...)
   715  	} else {
   716  		r1 = ret.Error(1)
   717  	}
   718  
   719  	return r0, r1
   720  }
   721  
   722  // Tx provides a mock function with given fields: ctx, hash, prove
   723  func (_m *RemoteClient) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) {
   724  	ret := _m.Called(ctx, hash, prove)
   725  
   726  	var r0 *coretypes.ResultTx
   727  	if rf, ok := ret.Get(0).(func(context.Context, []byte, bool) *coretypes.ResultTx); ok {
   728  		r0 = rf(ctx, hash, prove)
   729  	} else {
   730  		if ret.Get(0) != nil {
   731  			r0 = ret.Get(0).(*coretypes.ResultTx)
   732  		}
   733  	}
   734  
   735  	var r1 error
   736  	if rf, ok := ret.Get(1).(func(context.Context, []byte, bool) error); ok {
   737  		r1 = rf(ctx, hash, prove)
   738  	} else {
   739  		r1 = ret.Error(1)
   740  	}
   741  
   742  	return r0, r1
   743  }
   744  
   745  // TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy
   746  func (_m *RemoteClient) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) {
   747  	ret := _m.Called(ctx, query, prove, page, perPage, orderBy)
   748  
   749  	var r0 *coretypes.ResultTxSearch
   750  	if rf, ok := ret.Get(0).(func(context.Context, string, bool, *int, *int, string) *coretypes.ResultTxSearch); ok {
   751  		r0 = rf(ctx, query, prove, page, perPage, orderBy)
   752  	} else {
   753  		if ret.Get(0) != nil {
   754  			r0 = ret.Get(0).(*coretypes.ResultTxSearch)
   755  		}
   756  	}
   757  
   758  	var r1 error
   759  	if rf, ok := ret.Get(1).(func(context.Context, string, bool, *int, *int, string) error); ok {
   760  		r1 = rf(ctx, query, prove, page, perPage, orderBy)
   761  	} else {
   762  		r1 = ret.Error(1)
   763  	}
   764  
   765  	return r0, r1
   766  }
   767  
   768  // UnconfirmedTxs provides a mock function with given fields: ctx, limit
   769  func (_m *RemoteClient) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error) {
   770  	ret := _m.Called(ctx, limit)
   771  
   772  	var r0 *coretypes.ResultUnconfirmedTxs
   773  	if rf, ok := ret.Get(0).(func(context.Context, *int) *coretypes.ResultUnconfirmedTxs); ok {
   774  		r0 = rf(ctx, limit)
   775  	} else {
   776  		if ret.Get(0) != nil {
   777  			r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
   778  		}
   779  	}
   780  
   781  	var r1 error
   782  	if rf, ok := ret.Get(1).(func(context.Context, *int) error); ok {
   783  		r1 = rf(ctx, limit)
   784  	} else {
   785  		r1 = ret.Error(1)
   786  	}
   787  
   788  	return r0, r1
   789  }
   790  
   791  // Unsubscribe provides a mock function with given fields: ctx, subscriber, query
   792  func (_m *RemoteClient) Unsubscribe(ctx context.Context, subscriber string, query string) error {
   793  	ret := _m.Called(ctx, subscriber, query)
   794  
   795  	var r0 error
   796  	if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
   797  		r0 = rf(ctx, subscriber, query)
   798  	} else {
   799  		r0 = ret.Error(0)
   800  	}
   801  
   802  	return r0
   803  }
   804  
   805  // UnsubscribeAll provides a mock function with given fields: ctx, subscriber
   806  func (_m *RemoteClient) UnsubscribeAll(ctx context.Context, subscriber string) error {
   807  	ret := _m.Called(ctx, subscriber)
   808  
   809  	var r0 error
   810  	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
   811  		r0 = rf(ctx, subscriber)
   812  	} else {
   813  		r0 = ret.Error(0)
   814  	}
   815  
   816  	return r0
   817  }
   818  
   819  // Validators provides a mock function with given fields: ctx, height, page, perPage
   820  func (_m *RemoteClient) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) {
   821  	ret := _m.Called(ctx, height, page, perPage)
   822  
   823  	var r0 *coretypes.ResultValidators
   824  	if rf, ok := ret.Get(0).(func(context.Context, *int64, *int, *int) *coretypes.ResultValidators); ok {
   825  		r0 = rf(ctx, height, page, perPage)
   826  	} else {
   827  		if ret.Get(0) != nil {
   828  			r0 = ret.Get(0).(*coretypes.ResultValidators)
   829  		}
   830  	}
   831  
   832  	var r1 error
   833  	if rf, ok := ret.Get(1).(func(context.Context, *int64, *int, *int) error); ok {
   834  		r1 = rf(ctx, height, page, perPage)
   835  	} else {
   836  		r1 = ret.Error(1)
   837  	}
   838  
   839  	return r0, r1
   840  }
   841  
   842  type mockConstructorTestingTNewRemoteClient interface {
   843  	mock.TestingT
   844  	Cleanup(func())
   845  }
   846  
   847  // NewRemoteClient creates a new instance of RemoteClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   848  func NewRemoteClient(t mockConstructorTestingTNewRemoteClient) *RemoteClient {
   849  	mock := &RemoteClient{}
   850  	mock.Mock.Test(t)
   851  
   852  	t.Cleanup(func() { mock.AssertExpectations(t) })
   853  
   854  	return mock
   855  }