Documentation ¶
Index ¶
- type Client
- func (_m *Client) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)
- func (_m *Client) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
- func (_m *Client) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, ...) (*coretypes.ResultABCIQuery, error)
- func (_m *Client) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
- func (_m *Client) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
- func (_m *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
- func (_m *Client) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
- func (_m *Client) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
- func (_m *Client) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)
- func (_m *Client) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (_m *Client) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
- func (_m *Client) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (_m *Client) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error)
- func (_m *Client) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
- func (_m *Client) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)
- func (_m *Client) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)
- func (_m *Client) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)
- func (_m *Client) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error)
- func (_m *Client) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)
- func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error)
- func (_m *Client) IsRunning() bool
- func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error)
- func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)
- func (_m *Client) OnReset() error
- func (_m *Client) OnStart() error
- func (_m *Client) OnStop()
- func (_m *Client) Quit() <-chan struct{}
- func (_m *Client) Reset() error
- func (_m *Client) SetLogger(_a0 log.Logger)
- func (_m *Client) Start() error
- func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error)
- func (_m *Client) Stop() error
- func (_m *Client) String() string
- func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)
- func (_m *Client) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
- func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, ...) (*coretypes.ResultTxSearch, error)
- func (_m *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
- func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error
- func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error
- func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error)
- type RemoteClient
- func (_m *RemoteClient) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)
- func (_m *RemoteClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
- func (_m *RemoteClient) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, ...) (*coretypes.ResultABCIQuery, error)
- func (_m *RemoteClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
- func (_m *RemoteClient) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
- func (_m *RemoteClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
- func (_m *RemoteClient) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
- func (_m *RemoteClient) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
- func (_m *RemoteClient) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)
- func (_m *RemoteClient) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (_m *RemoteClient) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
- func (_m *RemoteClient) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (_m *RemoteClient) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error)
- func (_m *RemoteClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
- func (_m *RemoteClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)
- func (_m *RemoteClient) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)
- func (_m *RemoteClient) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)
- func (_m *RemoteClient) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error)
- func (_m *RemoteClient) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)
- func (_m *RemoteClient) Health(_a0 context.Context) (*coretypes.ResultHealth, error)
- func (_m *RemoteClient) IsRunning() bool
- func (_m *RemoteClient) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error)
- func (_m *RemoteClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)
- func (_m *RemoteClient) OnReset() error
- func (_m *RemoteClient) OnStart() error
- func (_m *RemoteClient) OnStop()
- func (_m *RemoteClient) Quit() <-chan struct{}
- func (_m *RemoteClient) Remote() string
- func (_m *RemoteClient) Reset() error
- func (_m *RemoteClient) SetLogger(_a0 log.Logger)
- func (_m *RemoteClient) Start() error
- func (_m *RemoteClient) Status(_a0 context.Context) (*coretypes.ResultStatus, error)
- func (_m *RemoteClient) Stop() error
- func (_m *RemoteClient) String() string
- func (_m *RemoteClient) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)
- func (_m *RemoteClient) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
- func (_m *RemoteClient) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, ...) (*coretypes.ResultTxSearch, error)
- func (_m *RemoteClient) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
- func (_m *RemoteClient) Unsubscribe(ctx context.Context, subscriber string, query string) error
- func (_m *RemoteClient) UnsubscribeAll(ctx context.Context, subscriber string) error
- func (_m *RemoteClient) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) ABCIQuery ¶
func (_m *Client) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
ABCIQuery provides a mock function with given fields: ctx, path, data
func (*Client) ABCIQueryWithOptions ¶
func (_m *Client) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)
ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts
func (*Client) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*Client) BlockResults ¶
func (_m *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
BlockResults provides a mock function with given fields: ctx, height
func (*Client) BlockSearch ¶
func (_m *Client) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy
func (*Client) BlockchainInfo ¶
func (_m *Client) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight
func (*Client) BroadcastEvidence ¶
func (_m *Client) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)
BroadcastEvidence provides a mock function with given fields: _a0, _a1
func (*Client) BroadcastTxAsync ¶
func (_m *Client) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxAsync provides a mock function with given fields: _a0, _a1
func (*Client) BroadcastTxCommit ¶
func (_m *Client) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
BroadcastTxCommit provides a mock function with given fields: _a0, _a1
func (*Client) BroadcastTxSync ¶
func (_m *Client) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxSync provides a mock function with given fields: _a0, _a1
func (*Client) ConsensusParams ¶
func (_m *Client) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)
ConsensusParams provides a mock function with given fields: ctx, height
func (*Client) ConsensusState ¶
ConsensusState provides a mock function with given fields: _a0
func (*Client) DumpConsensusState ¶
func (_m *Client) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)
DumpConsensusState provides a mock function with given fields: _a0
func (*Client) GenesisChunked ¶
func (_m *Client) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)
GenesisChunked provides a mock function with given fields: _a0, _a1
func (*Client) NumUnconfirmedTxs ¶
NumUnconfirmedTxs provides a mock function with given fields: _a0
func (*Client) OnStop ¶
func (_m *Client) OnStop()
OnStop provides a mock function with given fields:
func (*Client) Quit ¶
func (_m *Client) Quit() <-chan struct{}
Quit provides a mock function with given fields:
func (*Client) Subscribe ¶
func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)
Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity
func (*Client) TxSearch ¶
func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)
TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy
func (*Client) UnconfirmedTxs ¶
func (_m *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
UnconfirmedTxs provides a mock function with given fields: ctx, limit
func (*Client) Unsubscribe ¶
Unsubscribe provides a mock function with given fields: ctx, subscriber, query
func (*Client) UnsubscribeAll ¶
UnsubscribeAll provides a mock function with given fields: ctx, subscriber
type RemoteClient ¶
RemoteClient is an autogenerated mock type for the RemoteClient type
func NewRemoteClient ¶
func NewRemoteClient(t mockConstructorTestingTNewRemoteClient) *RemoteClient
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.
func (*RemoteClient) ABCIInfo ¶
func (_m *RemoteClient) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)
ABCIInfo provides a mock function with given fields: _a0
func (*RemoteClient) ABCIQuery ¶
func (_m *RemoteClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
ABCIQuery provides a mock function with given fields: ctx, path, data
func (*RemoteClient) ABCIQueryWithOptions ¶
func (_m *RemoteClient) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)
ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts
func (*RemoteClient) Block ¶
func (_m *RemoteClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
Block provides a mock function with given fields: ctx, height
func (*RemoteClient) BlockByHash ¶
func (_m *RemoteClient) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
BlockByHash provides a mock function with given fields: ctx, hash
func (*RemoteClient) BlockResults ¶
func (_m *RemoteClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
BlockResults provides a mock function with given fields: ctx, height
func (*RemoteClient) BlockSearch ¶
func (_m *RemoteClient) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy
func (*RemoteClient) BlockchainInfo ¶
func (_m *RemoteClient) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight
func (*RemoteClient) BroadcastEvidence ¶
func (_m *RemoteClient) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)
BroadcastEvidence provides a mock function with given fields: _a0, _a1
func (*RemoteClient) BroadcastTxAsync ¶
func (_m *RemoteClient) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxAsync provides a mock function with given fields: _a0, _a1
func (*RemoteClient) BroadcastTxCommit ¶
func (_m *RemoteClient) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
BroadcastTxCommit provides a mock function with given fields: _a0, _a1
func (*RemoteClient) BroadcastTxSync ¶
func (_m *RemoteClient) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxSync provides a mock function with given fields: _a0, _a1
func (*RemoteClient) CheckTx ¶
func (_m *RemoteClient) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error)
CheckTx provides a mock function with given fields: _a0, _a1
func (*RemoteClient) Commit ¶
func (_m *RemoteClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
Commit provides a mock function with given fields: ctx, height
func (*RemoteClient) ConsensusParams ¶
func (_m *RemoteClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)
ConsensusParams provides a mock function with given fields: ctx, height
func (*RemoteClient) ConsensusState ¶
func (_m *RemoteClient) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)
ConsensusState provides a mock function with given fields: _a0
func (*RemoteClient) DumpConsensusState ¶
func (_m *RemoteClient) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)
DumpConsensusState provides a mock function with given fields: _a0
func (*RemoteClient) Genesis ¶
func (_m *RemoteClient) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error)
Genesis provides a mock function with given fields: _a0
func (*RemoteClient) GenesisChunked ¶
func (_m *RemoteClient) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)
GenesisChunked provides a mock function with given fields: _a0, _a1
func (*RemoteClient) Health ¶
func (_m *RemoteClient) Health(_a0 context.Context) (*coretypes.ResultHealth, error)
Health provides a mock function with given fields: _a0
func (*RemoteClient) IsRunning ¶
func (_m *RemoteClient) IsRunning() bool
IsRunning provides a mock function with given fields:
func (*RemoteClient) NetInfo ¶
func (_m *RemoteClient) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error)
NetInfo provides a mock function with given fields: _a0
func (*RemoteClient) NumUnconfirmedTxs ¶
func (_m *RemoteClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)
NumUnconfirmedTxs provides a mock function with given fields: _a0
func (*RemoteClient) OnReset ¶
func (_m *RemoteClient) OnReset() error
OnReset provides a mock function with given fields:
func (*RemoteClient) OnStart ¶
func (_m *RemoteClient) OnStart() error
OnStart provides a mock function with given fields:
func (*RemoteClient) OnStop ¶
func (_m *RemoteClient) OnStop()
OnStop provides a mock function with given fields:
func (*RemoteClient) Quit ¶
func (_m *RemoteClient) Quit() <-chan struct{}
Quit provides a mock function with given fields:
func (*RemoteClient) Remote ¶
func (_m *RemoteClient) Remote() string
Remote provides a mock function with given fields:
func (*RemoteClient) Reset ¶
func (_m *RemoteClient) Reset() error
Reset provides a mock function with given fields:
func (*RemoteClient) SetLogger ¶
func (_m *RemoteClient) SetLogger(_a0 log.Logger)
SetLogger provides a mock function with given fields: _a0
func (*RemoteClient) Start ¶
func (_m *RemoteClient) Start() error
Start provides a mock function with given fields:
func (*RemoteClient) Status ¶
func (_m *RemoteClient) Status(_a0 context.Context) (*coretypes.ResultStatus, error)
Status provides a mock function with given fields: _a0
func (*RemoteClient) Stop ¶
func (_m *RemoteClient) Stop() error
Stop provides a mock function with given fields:
func (*RemoteClient) String ¶
func (_m *RemoteClient) String() string
String provides a mock function with given fields:
func (*RemoteClient) Subscribe ¶
func (_m *RemoteClient) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)
Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity
func (*RemoteClient) Tx ¶
func (_m *RemoteClient) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
Tx provides a mock function with given fields: ctx, hash, prove
func (*RemoteClient) TxSearch ¶
func (_m *RemoteClient) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)
TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy
func (*RemoteClient) UnconfirmedTxs ¶
func (_m *RemoteClient) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
UnconfirmedTxs provides a mock function with given fields: ctx, limit
func (*RemoteClient) Unsubscribe ¶
Unsubscribe provides a mock function with given fields: ctx, subscriber, query
func (*RemoteClient) UnsubscribeAll ¶
func (_m *RemoteClient) UnsubscribeAll(ctx context.Context, subscriber string) error
UnsubscribeAll provides a mock function with given fields: ctx, subscriber
func (*RemoteClient) Validators ¶
func (_m *RemoteClient) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error)
Validators provides a mock function with given fields: ctx, height, page, perPage