github.com/number571/tendermint@v0.34.11-gost/abci/client/mocks/client.go (about)

     1  // Code generated by mockery v0.0.0-dev. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	abcicli "github.com/number571/tendermint/abci/client"
     9  
    10  	log "github.com/number571/tendermint/libs/log"
    11  
    12  	mock "github.com/stretchr/testify/mock"
    13  
    14  	types "github.com/number571/tendermint/abci/types"
    15  )
    16  
    17  // Client is an autogenerated mock type for the Client type
    18  type Client struct {
    19  	mock.Mock
    20  }
    21  
    22  // ApplySnapshotChunkAsync provides a mock function with given fields: _a0, _a1
    23  func (_m *Client) ApplySnapshotChunkAsync(_a0 context.Context, _a1 types.RequestApplySnapshotChunk) (*abcicli.ReqRes, error) {
    24  	ret := _m.Called(_a0, _a1)
    25  
    26  	var r0 *abcicli.ReqRes
    27  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestApplySnapshotChunk) *abcicli.ReqRes); ok {
    28  		r0 = rf(_a0, _a1)
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(*abcicli.ReqRes)
    32  		}
    33  	}
    34  
    35  	var r1 error
    36  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestApplySnapshotChunk) error); ok {
    37  		r1 = rf(_a0, _a1)
    38  	} else {
    39  		r1 = ret.Error(1)
    40  	}
    41  
    42  	return r0, r1
    43  }
    44  
    45  // ApplySnapshotChunkSync provides a mock function with given fields: _a0, _a1
    46  func (_m *Client) ApplySnapshotChunkSync(_a0 context.Context, _a1 types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) {
    47  	ret := _m.Called(_a0, _a1)
    48  
    49  	var r0 *types.ResponseApplySnapshotChunk
    50  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestApplySnapshotChunk) *types.ResponseApplySnapshotChunk); ok {
    51  		r0 = rf(_a0, _a1)
    52  	} else {
    53  		if ret.Get(0) != nil {
    54  			r0 = ret.Get(0).(*types.ResponseApplySnapshotChunk)
    55  		}
    56  	}
    57  
    58  	var r1 error
    59  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestApplySnapshotChunk) error); ok {
    60  		r1 = rf(_a0, _a1)
    61  	} else {
    62  		r1 = ret.Error(1)
    63  	}
    64  
    65  	return r0, r1
    66  }
    67  
    68  // BeginBlockAsync provides a mock function with given fields: _a0, _a1
    69  func (_m *Client) BeginBlockAsync(_a0 context.Context, _a1 types.RequestBeginBlock) (*abcicli.ReqRes, error) {
    70  	ret := _m.Called(_a0, _a1)
    71  
    72  	var r0 *abcicli.ReqRes
    73  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestBeginBlock) *abcicli.ReqRes); ok {
    74  		r0 = rf(_a0, _a1)
    75  	} else {
    76  		if ret.Get(0) != nil {
    77  			r0 = ret.Get(0).(*abcicli.ReqRes)
    78  		}
    79  	}
    80  
    81  	var r1 error
    82  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestBeginBlock) error); ok {
    83  		r1 = rf(_a0, _a1)
    84  	} else {
    85  		r1 = ret.Error(1)
    86  	}
    87  
    88  	return r0, r1
    89  }
    90  
    91  // BeginBlockSync provides a mock function with given fields: _a0, _a1
    92  func (_m *Client) BeginBlockSync(_a0 context.Context, _a1 types.RequestBeginBlock) (*types.ResponseBeginBlock, error) {
    93  	ret := _m.Called(_a0, _a1)
    94  
    95  	var r0 *types.ResponseBeginBlock
    96  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestBeginBlock) *types.ResponseBeginBlock); ok {
    97  		r0 = rf(_a0, _a1)
    98  	} else {
    99  		if ret.Get(0) != nil {
   100  			r0 = ret.Get(0).(*types.ResponseBeginBlock)
   101  		}
   102  	}
   103  
   104  	var r1 error
   105  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestBeginBlock) error); ok {
   106  		r1 = rf(_a0, _a1)
   107  	} else {
   108  		r1 = ret.Error(1)
   109  	}
   110  
   111  	return r0, r1
   112  }
   113  
   114  // CheckTxAsync provides a mock function with given fields: _a0, _a1
   115  func (_m *Client) CheckTxAsync(_a0 context.Context, _a1 types.RequestCheckTx) (*abcicli.ReqRes, error) {
   116  	ret := _m.Called(_a0, _a1)
   117  
   118  	var r0 *abcicli.ReqRes
   119  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *abcicli.ReqRes); ok {
   120  		r0 = rf(_a0, _a1)
   121  	} else {
   122  		if ret.Get(0) != nil {
   123  			r0 = ret.Get(0).(*abcicli.ReqRes)
   124  		}
   125  	}
   126  
   127  	var r1 error
   128  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
   129  		r1 = rf(_a0, _a1)
   130  	} else {
   131  		r1 = ret.Error(1)
   132  	}
   133  
   134  	return r0, r1
   135  }
   136  
   137  // CheckTxSync provides a mock function with given fields: _a0, _a1
   138  func (_m *Client) CheckTxSync(_a0 context.Context, _a1 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
   139  	ret := _m.Called(_a0, _a1)
   140  
   141  	var r0 *types.ResponseCheckTx
   142  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *types.ResponseCheckTx); ok {
   143  		r0 = rf(_a0, _a1)
   144  	} else {
   145  		if ret.Get(0) != nil {
   146  			r0 = ret.Get(0).(*types.ResponseCheckTx)
   147  		}
   148  	}
   149  
   150  	var r1 error
   151  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
   152  		r1 = rf(_a0, _a1)
   153  	} else {
   154  		r1 = ret.Error(1)
   155  	}
   156  
   157  	return r0, r1
   158  }
   159  
   160  // CommitAsync provides a mock function with given fields: _a0
   161  func (_m *Client) CommitAsync(_a0 context.Context) (*abcicli.ReqRes, error) {
   162  	ret := _m.Called(_a0)
   163  
   164  	var r0 *abcicli.ReqRes
   165  	if rf, ok := ret.Get(0).(func(context.Context) *abcicli.ReqRes); ok {
   166  		r0 = rf(_a0)
   167  	} else {
   168  		if ret.Get(0) != nil {
   169  			r0 = ret.Get(0).(*abcicli.ReqRes)
   170  		}
   171  	}
   172  
   173  	var r1 error
   174  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   175  		r1 = rf(_a0)
   176  	} else {
   177  		r1 = ret.Error(1)
   178  	}
   179  
   180  	return r0, r1
   181  }
   182  
   183  // CommitSync provides a mock function with given fields: _a0
   184  func (_m *Client) CommitSync(_a0 context.Context) (*types.ResponseCommit, error) {
   185  	ret := _m.Called(_a0)
   186  
   187  	var r0 *types.ResponseCommit
   188  	if rf, ok := ret.Get(0).(func(context.Context) *types.ResponseCommit); ok {
   189  		r0 = rf(_a0)
   190  	} else {
   191  		if ret.Get(0) != nil {
   192  			r0 = ret.Get(0).(*types.ResponseCommit)
   193  		}
   194  	}
   195  
   196  	var r1 error
   197  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   198  		r1 = rf(_a0)
   199  	} else {
   200  		r1 = ret.Error(1)
   201  	}
   202  
   203  	return r0, r1
   204  }
   205  
   206  // DeliverTxAsync provides a mock function with given fields: _a0, _a1
   207  func (_m *Client) DeliverTxAsync(_a0 context.Context, _a1 types.RequestDeliverTx) (*abcicli.ReqRes, error) {
   208  	ret := _m.Called(_a0, _a1)
   209  
   210  	var r0 *abcicli.ReqRes
   211  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestDeliverTx) *abcicli.ReqRes); ok {
   212  		r0 = rf(_a0, _a1)
   213  	} else {
   214  		if ret.Get(0) != nil {
   215  			r0 = ret.Get(0).(*abcicli.ReqRes)
   216  		}
   217  	}
   218  
   219  	var r1 error
   220  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestDeliverTx) error); ok {
   221  		r1 = rf(_a0, _a1)
   222  	} else {
   223  		r1 = ret.Error(1)
   224  	}
   225  
   226  	return r0, r1
   227  }
   228  
   229  // DeliverTxSync provides a mock function with given fields: _a0, _a1
   230  func (_m *Client) DeliverTxSync(_a0 context.Context, _a1 types.RequestDeliverTx) (*types.ResponseDeliverTx, error) {
   231  	ret := _m.Called(_a0, _a1)
   232  
   233  	var r0 *types.ResponseDeliverTx
   234  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestDeliverTx) *types.ResponseDeliverTx); ok {
   235  		r0 = rf(_a0, _a1)
   236  	} else {
   237  		if ret.Get(0) != nil {
   238  			r0 = ret.Get(0).(*types.ResponseDeliverTx)
   239  		}
   240  	}
   241  
   242  	var r1 error
   243  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestDeliverTx) error); ok {
   244  		r1 = rf(_a0, _a1)
   245  	} else {
   246  		r1 = ret.Error(1)
   247  	}
   248  
   249  	return r0, r1
   250  }
   251  
   252  // EchoAsync provides a mock function with given fields: ctx, msg
   253  func (_m *Client) EchoAsync(ctx context.Context, msg string) (*abcicli.ReqRes, error) {
   254  	ret := _m.Called(ctx, msg)
   255  
   256  	var r0 *abcicli.ReqRes
   257  	if rf, ok := ret.Get(0).(func(context.Context, string) *abcicli.ReqRes); ok {
   258  		r0 = rf(ctx, msg)
   259  	} else {
   260  		if ret.Get(0) != nil {
   261  			r0 = ret.Get(0).(*abcicli.ReqRes)
   262  		}
   263  	}
   264  
   265  	var r1 error
   266  	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
   267  		r1 = rf(ctx, msg)
   268  	} else {
   269  		r1 = ret.Error(1)
   270  	}
   271  
   272  	return r0, r1
   273  }
   274  
   275  // EchoSync provides a mock function with given fields: ctx, msg
   276  func (_m *Client) EchoSync(ctx context.Context, msg string) (*types.ResponseEcho, error) {
   277  	ret := _m.Called(ctx, msg)
   278  
   279  	var r0 *types.ResponseEcho
   280  	if rf, ok := ret.Get(0).(func(context.Context, string) *types.ResponseEcho); ok {
   281  		r0 = rf(ctx, msg)
   282  	} else {
   283  		if ret.Get(0) != nil {
   284  			r0 = ret.Get(0).(*types.ResponseEcho)
   285  		}
   286  	}
   287  
   288  	var r1 error
   289  	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
   290  		r1 = rf(ctx, msg)
   291  	} else {
   292  		r1 = ret.Error(1)
   293  	}
   294  
   295  	return r0, r1
   296  }
   297  
   298  // EndBlockAsync provides a mock function with given fields: _a0, _a1
   299  func (_m *Client) EndBlockAsync(_a0 context.Context, _a1 types.RequestEndBlock) (*abcicli.ReqRes, error) {
   300  	ret := _m.Called(_a0, _a1)
   301  
   302  	var r0 *abcicli.ReqRes
   303  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestEndBlock) *abcicli.ReqRes); ok {
   304  		r0 = rf(_a0, _a1)
   305  	} else {
   306  		if ret.Get(0) != nil {
   307  			r0 = ret.Get(0).(*abcicli.ReqRes)
   308  		}
   309  	}
   310  
   311  	var r1 error
   312  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestEndBlock) error); ok {
   313  		r1 = rf(_a0, _a1)
   314  	} else {
   315  		r1 = ret.Error(1)
   316  	}
   317  
   318  	return r0, r1
   319  }
   320  
   321  // EndBlockSync provides a mock function with given fields: _a0, _a1
   322  func (_m *Client) EndBlockSync(_a0 context.Context, _a1 types.RequestEndBlock) (*types.ResponseEndBlock, error) {
   323  	ret := _m.Called(_a0, _a1)
   324  
   325  	var r0 *types.ResponseEndBlock
   326  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestEndBlock) *types.ResponseEndBlock); ok {
   327  		r0 = rf(_a0, _a1)
   328  	} else {
   329  		if ret.Get(0) != nil {
   330  			r0 = ret.Get(0).(*types.ResponseEndBlock)
   331  		}
   332  	}
   333  
   334  	var r1 error
   335  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestEndBlock) error); ok {
   336  		r1 = rf(_a0, _a1)
   337  	} else {
   338  		r1 = ret.Error(1)
   339  	}
   340  
   341  	return r0, r1
   342  }
   343  
   344  // Error provides a mock function with given fields:
   345  func (_m *Client) Error() error {
   346  	ret := _m.Called()
   347  
   348  	var r0 error
   349  	if rf, ok := ret.Get(0).(func() error); ok {
   350  		r0 = rf()
   351  	} else {
   352  		r0 = ret.Error(0)
   353  	}
   354  
   355  	return r0
   356  }
   357  
   358  // FlushAsync provides a mock function with given fields: _a0
   359  func (_m *Client) FlushAsync(_a0 context.Context) (*abcicli.ReqRes, error) {
   360  	ret := _m.Called(_a0)
   361  
   362  	var r0 *abcicli.ReqRes
   363  	if rf, ok := ret.Get(0).(func(context.Context) *abcicli.ReqRes); ok {
   364  		r0 = rf(_a0)
   365  	} else {
   366  		if ret.Get(0) != nil {
   367  			r0 = ret.Get(0).(*abcicli.ReqRes)
   368  		}
   369  	}
   370  
   371  	var r1 error
   372  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
   373  		r1 = rf(_a0)
   374  	} else {
   375  		r1 = ret.Error(1)
   376  	}
   377  
   378  	return r0, r1
   379  }
   380  
   381  // FlushSync provides a mock function with given fields: _a0
   382  func (_m *Client) FlushSync(_a0 context.Context) error {
   383  	ret := _m.Called(_a0)
   384  
   385  	var r0 error
   386  	if rf, ok := ret.Get(0).(func(context.Context) error); ok {
   387  		r0 = rf(_a0)
   388  	} else {
   389  		r0 = ret.Error(0)
   390  	}
   391  
   392  	return r0
   393  }
   394  
   395  // InfoAsync provides a mock function with given fields: _a0, _a1
   396  func (_m *Client) InfoAsync(_a0 context.Context, _a1 types.RequestInfo) (*abcicli.ReqRes, error) {
   397  	ret := _m.Called(_a0, _a1)
   398  
   399  	var r0 *abcicli.ReqRes
   400  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestInfo) *abcicli.ReqRes); ok {
   401  		r0 = rf(_a0, _a1)
   402  	} else {
   403  		if ret.Get(0) != nil {
   404  			r0 = ret.Get(0).(*abcicli.ReqRes)
   405  		}
   406  	}
   407  
   408  	var r1 error
   409  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestInfo) error); ok {
   410  		r1 = rf(_a0, _a1)
   411  	} else {
   412  		r1 = ret.Error(1)
   413  	}
   414  
   415  	return r0, r1
   416  }
   417  
   418  // InfoSync provides a mock function with given fields: _a0, _a1
   419  func (_m *Client) InfoSync(_a0 context.Context, _a1 types.RequestInfo) (*types.ResponseInfo, error) {
   420  	ret := _m.Called(_a0, _a1)
   421  
   422  	var r0 *types.ResponseInfo
   423  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestInfo) *types.ResponseInfo); ok {
   424  		r0 = rf(_a0, _a1)
   425  	} else {
   426  		if ret.Get(0) != nil {
   427  			r0 = ret.Get(0).(*types.ResponseInfo)
   428  		}
   429  	}
   430  
   431  	var r1 error
   432  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestInfo) error); ok {
   433  		r1 = rf(_a0, _a1)
   434  	} else {
   435  		r1 = ret.Error(1)
   436  	}
   437  
   438  	return r0, r1
   439  }
   440  
   441  // InitChainAsync provides a mock function with given fields: _a0, _a1
   442  func (_m *Client) InitChainAsync(_a0 context.Context, _a1 types.RequestInitChain) (*abcicli.ReqRes, error) {
   443  	ret := _m.Called(_a0, _a1)
   444  
   445  	var r0 *abcicli.ReqRes
   446  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestInitChain) *abcicli.ReqRes); ok {
   447  		r0 = rf(_a0, _a1)
   448  	} else {
   449  		if ret.Get(0) != nil {
   450  			r0 = ret.Get(0).(*abcicli.ReqRes)
   451  		}
   452  	}
   453  
   454  	var r1 error
   455  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestInitChain) error); ok {
   456  		r1 = rf(_a0, _a1)
   457  	} else {
   458  		r1 = ret.Error(1)
   459  	}
   460  
   461  	return r0, r1
   462  }
   463  
   464  // InitChainSync provides a mock function with given fields: _a0, _a1
   465  func (_m *Client) InitChainSync(_a0 context.Context, _a1 types.RequestInitChain) (*types.ResponseInitChain, error) {
   466  	ret := _m.Called(_a0, _a1)
   467  
   468  	var r0 *types.ResponseInitChain
   469  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestInitChain) *types.ResponseInitChain); ok {
   470  		r0 = rf(_a0, _a1)
   471  	} else {
   472  		if ret.Get(0) != nil {
   473  			r0 = ret.Get(0).(*types.ResponseInitChain)
   474  		}
   475  	}
   476  
   477  	var r1 error
   478  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestInitChain) error); ok {
   479  		r1 = rf(_a0, _a1)
   480  	} else {
   481  		r1 = ret.Error(1)
   482  	}
   483  
   484  	return r0, r1
   485  }
   486  
   487  // IsRunning provides a mock function with given fields:
   488  func (_m *Client) IsRunning() bool {
   489  	ret := _m.Called()
   490  
   491  	var r0 bool
   492  	if rf, ok := ret.Get(0).(func() bool); ok {
   493  		r0 = rf()
   494  	} else {
   495  		r0 = ret.Get(0).(bool)
   496  	}
   497  
   498  	return r0
   499  }
   500  
   501  // ListSnapshotsAsync provides a mock function with given fields: _a0, _a1
   502  func (_m *Client) ListSnapshotsAsync(_a0 context.Context, _a1 types.RequestListSnapshots) (*abcicli.ReqRes, error) {
   503  	ret := _m.Called(_a0, _a1)
   504  
   505  	var r0 *abcicli.ReqRes
   506  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestListSnapshots) *abcicli.ReqRes); ok {
   507  		r0 = rf(_a0, _a1)
   508  	} else {
   509  		if ret.Get(0) != nil {
   510  			r0 = ret.Get(0).(*abcicli.ReqRes)
   511  		}
   512  	}
   513  
   514  	var r1 error
   515  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestListSnapshots) error); ok {
   516  		r1 = rf(_a0, _a1)
   517  	} else {
   518  		r1 = ret.Error(1)
   519  	}
   520  
   521  	return r0, r1
   522  }
   523  
   524  // ListSnapshotsSync provides a mock function with given fields: _a0, _a1
   525  func (_m *Client) ListSnapshotsSync(_a0 context.Context, _a1 types.RequestListSnapshots) (*types.ResponseListSnapshots, error) {
   526  	ret := _m.Called(_a0, _a1)
   527  
   528  	var r0 *types.ResponseListSnapshots
   529  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestListSnapshots) *types.ResponseListSnapshots); ok {
   530  		r0 = rf(_a0, _a1)
   531  	} else {
   532  		if ret.Get(0) != nil {
   533  			r0 = ret.Get(0).(*types.ResponseListSnapshots)
   534  		}
   535  	}
   536  
   537  	var r1 error
   538  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestListSnapshots) error); ok {
   539  		r1 = rf(_a0, _a1)
   540  	} else {
   541  		r1 = ret.Error(1)
   542  	}
   543  
   544  	return r0, r1
   545  }
   546  
   547  // LoadSnapshotChunkAsync provides a mock function with given fields: _a0, _a1
   548  func (_m *Client) LoadSnapshotChunkAsync(_a0 context.Context, _a1 types.RequestLoadSnapshotChunk) (*abcicli.ReqRes, error) {
   549  	ret := _m.Called(_a0, _a1)
   550  
   551  	var r0 *abcicli.ReqRes
   552  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestLoadSnapshotChunk) *abcicli.ReqRes); ok {
   553  		r0 = rf(_a0, _a1)
   554  	} else {
   555  		if ret.Get(0) != nil {
   556  			r0 = ret.Get(0).(*abcicli.ReqRes)
   557  		}
   558  	}
   559  
   560  	var r1 error
   561  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestLoadSnapshotChunk) error); ok {
   562  		r1 = rf(_a0, _a1)
   563  	} else {
   564  		r1 = ret.Error(1)
   565  	}
   566  
   567  	return r0, r1
   568  }
   569  
   570  // LoadSnapshotChunkSync provides a mock function with given fields: _a0, _a1
   571  func (_m *Client) LoadSnapshotChunkSync(_a0 context.Context, _a1 types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) {
   572  	ret := _m.Called(_a0, _a1)
   573  
   574  	var r0 *types.ResponseLoadSnapshotChunk
   575  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestLoadSnapshotChunk) *types.ResponseLoadSnapshotChunk); ok {
   576  		r0 = rf(_a0, _a1)
   577  	} else {
   578  		if ret.Get(0) != nil {
   579  			r0 = ret.Get(0).(*types.ResponseLoadSnapshotChunk)
   580  		}
   581  	}
   582  
   583  	var r1 error
   584  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestLoadSnapshotChunk) error); ok {
   585  		r1 = rf(_a0, _a1)
   586  	} else {
   587  		r1 = ret.Error(1)
   588  	}
   589  
   590  	return r0, r1
   591  }
   592  
   593  // OfferSnapshotAsync provides a mock function with given fields: _a0, _a1
   594  func (_m *Client) OfferSnapshotAsync(_a0 context.Context, _a1 types.RequestOfferSnapshot) (*abcicli.ReqRes, error) {
   595  	ret := _m.Called(_a0, _a1)
   596  
   597  	var r0 *abcicli.ReqRes
   598  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestOfferSnapshot) *abcicli.ReqRes); ok {
   599  		r0 = rf(_a0, _a1)
   600  	} else {
   601  		if ret.Get(0) != nil {
   602  			r0 = ret.Get(0).(*abcicli.ReqRes)
   603  		}
   604  	}
   605  
   606  	var r1 error
   607  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestOfferSnapshot) error); ok {
   608  		r1 = rf(_a0, _a1)
   609  	} else {
   610  		r1 = ret.Error(1)
   611  	}
   612  
   613  	return r0, r1
   614  }
   615  
   616  // OfferSnapshotSync provides a mock function with given fields: _a0, _a1
   617  func (_m *Client) OfferSnapshotSync(_a0 context.Context, _a1 types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) {
   618  	ret := _m.Called(_a0, _a1)
   619  
   620  	var r0 *types.ResponseOfferSnapshot
   621  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestOfferSnapshot) *types.ResponseOfferSnapshot); ok {
   622  		r0 = rf(_a0, _a1)
   623  	} else {
   624  		if ret.Get(0) != nil {
   625  			r0 = ret.Get(0).(*types.ResponseOfferSnapshot)
   626  		}
   627  	}
   628  
   629  	var r1 error
   630  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestOfferSnapshot) error); ok {
   631  		r1 = rf(_a0, _a1)
   632  	} else {
   633  		r1 = ret.Error(1)
   634  	}
   635  
   636  	return r0, r1
   637  }
   638  
   639  // OnReset provides a mock function with given fields:
   640  func (_m *Client) OnReset() error {
   641  	ret := _m.Called()
   642  
   643  	var r0 error
   644  	if rf, ok := ret.Get(0).(func() error); ok {
   645  		r0 = rf()
   646  	} else {
   647  		r0 = ret.Error(0)
   648  	}
   649  
   650  	return r0
   651  }
   652  
   653  // OnStart provides a mock function with given fields:
   654  func (_m *Client) OnStart() error {
   655  	ret := _m.Called()
   656  
   657  	var r0 error
   658  	if rf, ok := ret.Get(0).(func() error); ok {
   659  		r0 = rf()
   660  	} else {
   661  		r0 = ret.Error(0)
   662  	}
   663  
   664  	return r0
   665  }
   666  
   667  // OnStop provides a mock function with given fields:
   668  func (_m *Client) OnStop() {
   669  	_m.Called()
   670  }
   671  
   672  // QueryAsync provides a mock function with given fields: _a0, _a1
   673  func (_m *Client) QueryAsync(_a0 context.Context, _a1 types.RequestQuery) (*abcicli.ReqRes, error) {
   674  	ret := _m.Called(_a0, _a1)
   675  
   676  	var r0 *abcicli.ReqRes
   677  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestQuery) *abcicli.ReqRes); ok {
   678  		r0 = rf(_a0, _a1)
   679  	} else {
   680  		if ret.Get(0) != nil {
   681  			r0 = ret.Get(0).(*abcicli.ReqRes)
   682  		}
   683  	}
   684  
   685  	var r1 error
   686  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestQuery) error); ok {
   687  		r1 = rf(_a0, _a1)
   688  	} else {
   689  		r1 = ret.Error(1)
   690  	}
   691  
   692  	return r0, r1
   693  }
   694  
   695  // QuerySync provides a mock function with given fields: _a0, _a1
   696  func (_m *Client) QuerySync(_a0 context.Context, _a1 types.RequestQuery) (*types.ResponseQuery, error) {
   697  	ret := _m.Called(_a0, _a1)
   698  
   699  	var r0 *types.ResponseQuery
   700  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestQuery) *types.ResponseQuery); ok {
   701  		r0 = rf(_a0, _a1)
   702  	} else {
   703  		if ret.Get(0) != nil {
   704  			r0 = ret.Get(0).(*types.ResponseQuery)
   705  		}
   706  	}
   707  
   708  	var r1 error
   709  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestQuery) error); ok {
   710  		r1 = rf(_a0, _a1)
   711  	} else {
   712  		r1 = ret.Error(1)
   713  	}
   714  
   715  	return r0, r1
   716  }
   717  
   718  // Quit provides a mock function with given fields:
   719  func (_m *Client) Quit() <-chan struct{} {
   720  	ret := _m.Called()
   721  
   722  	var r0 <-chan struct{}
   723  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
   724  		r0 = rf()
   725  	} else {
   726  		if ret.Get(0) != nil {
   727  			r0 = ret.Get(0).(<-chan struct{})
   728  		}
   729  	}
   730  
   731  	return r0
   732  }
   733  
   734  // Reset provides a mock function with given fields:
   735  func (_m *Client) Reset() error {
   736  	ret := _m.Called()
   737  
   738  	var r0 error
   739  	if rf, ok := ret.Get(0).(func() error); ok {
   740  		r0 = rf()
   741  	} else {
   742  		r0 = ret.Error(0)
   743  	}
   744  
   745  	return r0
   746  }
   747  
   748  // SetLogger provides a mock function with given fields: _a0
   749  func (_m *Client) SetLogger(_a0 log.Logger) {
   750  	_m.Called(_a0)
   751  }
   752  
   753  // SetResponseCallback provides a mock function with given fields: _a0
   754  func (_m *Client) SetResponseCallback(_a0 abcicli.Callback) {
   755  	_m.Called(_a0)
   756  }
   757  
   758  // Start provides a mock function with given fields:
   759  func (_m *Client) Start() error {
   760  	ret := _m.Called()
   761  
   762  	var r0 error
   763  	if rf, ok := ret.Get(0).(func() error); ok {
   764  		r0 = rf()
   765  	} else {
   766  		r0 = ret.Error(0)
   767  	}
   768  
   769  	return r0
   770  }
   771  
   772  // Stop provides a mock function with given fields:
   773  func (_m *Client) Stop() error {
   774  	ret := _m.Called()
   775  
   776  	var r0 error
   777  	if rf, ok := ret.Get(0).(func() error); ok {
   778  		r0 = rf()
   779  	} else {
   780  		r0 = ret.Error(0)
   781  	}
   782  
   783  	return r0
   784  }
   785  
   786  // String provides a mock function with given fields:
   787  func (_m *Client) String() string {
   788  	ret := _m.Called()
   789  
   790  	var r0 string
   791  	if rf, ok := ret.Get(0).(func() string); ok {
   792  		r0 = rf()
   793  	} else {
   794  		r0 = ret.Get(0).(string)
   795  	}
   796  
   797  	return r0
   798  }
   799  
   800  // Wait provides a mock function with given fields:
   801  func (_m *Client) Wait() {
   802  	_m.Called()
   803  }