@ -17,31 +17,8 @@ type Client struct {
mock . Mock
}
// ApplySnapshotChunkAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ApplySnapshotChunkAsync ( _a0 context . Context , _a1 types . RequestApplySnapshotChunk ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestApplySnapshotChunk ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestApplySnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// ApplySnapshotChunkSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ApplySnapshotChunkSync ( _a0 context . Context , _a1 types . RequestApplySnapshotChunk ) ( * types . ResponseApplySnapshotChunk , error ) {
// ApplySnapshotChunk provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ApplySnapshotChunk ( _a0 context . Context , _a1 types . RequestApplySnapshotChunk ) ( * types . ResponseApplySnapshotChunk , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseApplySnapshotChunk
@ -63,31 +40,8 @@ func (_m *Client) ApplySnapshotChunkSync(_a0 context.Context, _a1 types.RequestA
return r0 , r1
}
// BeginBlockAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) BeginBlockAsync ( _a0 context . Context , _a1 types . RequestBeginBlock ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestBeginBlock ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestBeginBlock ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// BeginBlockSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) BeginBlockSync ( _a0 context . Context , _a1 types . RequestBeginBlock ) ( * types . ResponseBeginBlock , error ) {
// BeginBlock provides a mock function with given fields: _a0, _a1
func ( _m * Client ) BeginBlock ( _a0 context . Context , _a1 types . RequestBeginBlock ) ( * types . ResponseBeginBlock , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseBeginBlock
@ -109,31 +63,8 @@ func (_m *Client) BeginBlockSync(_a0 context.Context, _a1 types.RequestBeginBloc
return r0 , r1
}
// CheckTxAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) CheckTxAsync ( _a0 context . Context , _a1 types . RequestCheckTx ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestCheckTx ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestCheckTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// CheckTxSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) CheckTxSync ( _a0 context . Context , _a1 types . RequestCheckTx ) ( * types . ResponseCheckTx , error ) {
// CheckTx provides a mock function with given fields: _a0, _a1
func ( _m * Client ) CheckTx ( _a0 context . Context , _a1 types . RequestCheckTx ) ( * types . ResponseCheckTx , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseCheckTx
@ -155,13 +86,13 @@ func (_m *Client) CheckTxSync(_a0 context.Context, _a1 types.RequestCheckTx) (*t
return r0 , r1
}
// Commit Async provides a mock function with given fields: _a0
func ( _m * Client ) Commit Async ( _a0 context . Context ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 )
// CheckTx Async provides a mock function with given fields: _a0, _a1
func ( _m * Client ) CheckTx Async ( _a0 context . Context , _a1 types . RequestCheckTx ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestCheckTx ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
@ -169,8 +100,8 @@ func (_m *Client) CommitAsync(_a0 context.Context) (*abciclient.ReqRes, error) {
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestCheckTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -178,8 +109,8 @@ func (_m *Client) CommitAsync(_a0 context.Context) (*abciclient.ReqRes, error) {
return r0 , r1
}
// CommitSync provides a mock function with given fields: _a0
func ( _m * Client ) CommitSync ( _a0 context . Context ) ( * types . ResponseCommit , error ) {
// Commit provides a mock function with given fields: _a0
func ( _m * Client ) Commit ( _a0 context . Context ) ( * types . ResponseCommit , error ) {
ret := _m . Called ( _a0 )
var r0 * types . ResponseCommit
@ -201,31 +132,8 @@ func (_m *Client) CommitSync(_a0 context.Context) (*types.ResponseCommit, error)
return r0 , r1
}
// DeliverTxAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) DeliverTxAsync ( _a0 context . Context , _a1 types . RequestDeliverTx ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestDeliverTx ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestDeliverTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DeliverTxSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) DeliverTxSync ( _a0 context . Context , _a1 types . RequestDeliverTx ) ( * types . ResponseDeliverTx , error ) {
// DeliverTx provides a mock function with given fields: _a0, _a1
func ( _m * Client ) DeliverTx ( _a0 context . Context , _a1 types . RequestDeliverTx ) ( * types . ResponseDeliverTx , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseDeliverTx
@ -247,13 +155,13 @@ func (_m *Client) DeliverTxSync(_a0 context.Context, _a1 types.RequestDeliverTx)
return r0 , r1
}
// EchoAsync provides a mock function with given fields: ctx, msg
func ( _m * Client ) EchoAsync ( ctx context . Context , msg string ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( ctx , msg )
// DeliverTxAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) DeliverTxAsync ( _a0 context . Context , _a1 types . RequestDeliverTx ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string ) * abciclient . ReqRes ) ; ok {
r0 = rf ( ctx , msg )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestDeliverTx ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
@ -261,8 +169,8 @@ func (_m *Client) EchoAsync(ctx context.Context, msg string) (*abciclient.ReqRes
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string ) error ) ; ok {
r1 = rf ( ctx , msg )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestDeliverTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -270,8 +178,8 @@ func (_m *Client) EchoAsync(ctx context.Context, msg string) (*abciclient.ReqRes
return r0 , r1
}
// EchoSync provides a mock function with given fields: ctx, msg
func ( _m * Client ) EchoSync ( ctx context . Context , msg string ) ( * types . ResponseEcho , error ) {
// Echo provides a mock function with given fields: ctx, msg
func ( _m * Client ) Echo ( ctx context . Context , msg string ) ( * types . ResponseEcho , error ) {
ret := _m . Called ( ctx , msg )
var r0 * types . ResponseEcho
@ -293,31 +201,8 @@ func (_m *Client) EchoSync(ctx context.Context, msg string) (*types.ResponseEcho
return r0 , r1
}
// EndBlockAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) EndBlockAsync ( _a0 context . Context , _a1 types . RequestEndBlock ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestEndBlock ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestEndBlock ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// EndBlockSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) EndBlockSync ( _a0 context . Context , _a1 types . RequestEndBlock ) ( * types . ResponseEndBlock , error ) {
// EndBlock provides a mock function with given fields: _a0, _a1
func ( _m * Client ) EndBlock ( _a0 context . Context , _a1 types . RequestEndBlock ) ( * types . ResponseEndBlock , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseEndBlock
@ -353,31 +238,8 @@ func (_m *Client) Error() error {
return r0
}
// FlushAsync provides a mock function with given fields: _a0
func ( _m * Client ) FlushAsync ( _a0 context . Context ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// FlushSync provides a mock function with given fields: _a0
func ( _m * Client ) FlushSync ( _a0 context . Context ) error {
// Flush provides a mock function with given fields: _a0
func ( _m * Client ) Flush ( _a0 context . Context ) error {
ret := _m . Called ( _a0 )
var r0 error
@ -390,13 +252,13 @@ func (_m *Client) FlushSync(_a0 context.Context) error {
return r0
}
// Info Async provides a mock function with given fields: _a0, _a1
func ( _m * Client ) Info Async( _a0 context . Context , _a1 types . RequestInfo ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
// Flush Async provides a mock function with given fields: _a0
func ( _m * Client ) Flush Async( _a0 context . Context ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestInfo ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
@ -404,8 +266,8 @@ func (_m *Client) InfoAsync(_a0 context.Context, _a1 types.RequestInfo) (*abcicl
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestInfo ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
@ -413,8 +275,8 @@ func (_m *Client) InfoAsync(_a0 context.Context, _a1 types.RequestInfo) (*abcicl
return r0 , r1
}
// InfoSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InfoSync ( _a0 context . Context , _a1 types . RequestInfo ) ( * types . ResponseInfo , error ) {
// Info provides a mock function with given fields: _a0, _a1
func ( _m * Client ) Info ( _a0 context . Context , _a1 types . RequestInfo ) ( * types . ResponseInfo , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseInfo
@ -436,31 +298,8 @@ func (_m *Client) InfoSync(_a0 context.Context, _a1 types.RequestInfo) (*types.R
return r0 , r1
}
// InitChainAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InitChainAsync ( _a0 context . Context , _a1 types . RequestInitChain ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestInitChain ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestInitChain ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// InitChainSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InitChainSync ( _a0 context . Context , _a1 types . RequestInitChain ) ( * types . ResponseInitChain , error ) {
// InitChain provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InitChain ( _a0 context . Context , _a1 types . RequestInitChain ) ( * types . ResponseInitChain , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseInitChain
@ -496,31 +335,8 @@ func (_m *Client) IsRunning() bool {
return r0
}
// ListSnapshotsAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ListSnapshotsAsync ( _a0 context . Context , _a1 types . RequestListSnapshots ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestListSnapshots ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestListSnapshots ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// ListSnapshotsSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ListSnapshotsSync ( _a0 context . Context , _a1 types . RequestListSnapshots ) ( * types . ResponseListSnapshots , error ) {
// ListSnapshots provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ListSnapshots ( _a0 context . Context , _a1 types . RequestListSnapshots ) ( * types . ResponseListSnapshots , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseListSnapshots
@ -542,31 +358,8 @@ func (_m *Client) ListSnapshotsSync(_a0 context.Context, _a1 types.RequestListSn
return r0 , r1
}
// LoadSnapshotChunkAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) LoadSnapshotChunkAsync ( _a0 context . Context , _a1 types . RequestLoadSnapshotChunk ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestLoadSnapshotChunk ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestLoadSnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// LoadSnapshotChunkSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) LoadSnapshotChunkSync ( _a0 context . Context , _a1 types . RequestLoadSnapshotChunk ) ( * types . ResponseLoadSnapshotChunk , error ) {
// LoadSnapshotChunk provides a mock function with given fields: _a0, _a1
func ( _m * Client ) LoadSnapshotChunk ( _a0 context . Context , _a1 types . RequestLoadSnapshotChunk ) ( * types . ResponseLoadSnapshotChunk , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseLoadSnapshotChunk
@ -588,31 +381,8 @@ func (_m *Client) LoadSnapshotChunkSync(_a0 context.Context, _a1 types.RequestLo
return r0 , r1
}
// OfferSnapshotAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) OfferSnapshotAsync ( _a0 context . Context , _a1 types . RequestOfferSnapshot ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestOfferSnapshot ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestOfferSnapshot ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// OfferSnapshotSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) OfferSnapshotSync ( _a0 context . Context , _a1 types . RequestOfferSnapshot ) ( * types . ResponseOfferSnapshot , error ) {
// OfferSnapshot provides a mock function with given fields: _a0, _a1
func ( _m * Client ) OfferSnapshot ( _a0 context . Context , _a1 types . RequestOfferSnapshot ) ( * types . ResponseOfferSnapshot , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseOfferSnapshot
@ -634,31 +404,8 @@ func (_m *Client) OfferSnapshotSync(_a0 context.Context, _a1 types.RequestOfferS
return r0 , r1
}
// QueryAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) QueryAsync ( _a0 context . Context , _a1 types . RequestQuery ) ( * abciclient . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abciclient . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestQuery ) * abciclient . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abciclient . ReqRes )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestQuery ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// QuerySync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) QuerySync ( _a0 context . Context , _a1 types . RequestQuery ) ( * types . ResponseQuery , error ) {
// Query provides a mock function with given fields: _a0, _a1
func ( _m * Client ) Query ( _a0 context . Context , _a1 types . RequestQuery ) ( * types . ResponseQuery , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseQuery