Documentation ¶
Index ¶
- type Application
- func (_m *Application) ApplySnapshotChunk(_a0 context.Context, _a1 *types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error)
- func (_m *Application) CheckTx(_a0 context.Context, _a1 *types.RequestCheckTx) (*types.ResponseCheckTx, error)
- func (_m *Application) Commit(_a0 context.Context, _a1 *types.RequestCommit) (*types.ResponseCommit, error)
- func (_m *Application) ExtendVote(_a0 context.Context, _a1 *types.RequestExtendVote) (*types.ResponseExtendVote, error)
- func (_m *Application) FinalizeBlock(_a0 context.Context, _a1 *types.RequestFinalizeBlock) (*types.ResponseFinalizeBlock, error)
- func (_m *Application) Info(_a0 context.Context, _a1 *types.RequestInfo) (*types.ResponseInfo, error)
- func (_m *Application) InitChain(_a0 context.Context, _a1 *types.RequestInitChain) (*types.ResponseInitChain, error)
- func (_m *Application) ListSnapshots(_a0 context.Context, _a1 *types.RequestListSnapshots) (*types.ResponseListSnapshots, error)
- func (_m *Application) LoadSnapshotChunk(_a0 context.Context, _a1 *types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error)
- func (_m *Application) OfferSnapshot(_a0 context.Context, _a1 *types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error)
- func (_m *Application) PrepareProposal(_a0 context.Context, _a1 *types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error)
- func (_m *Application) ProcessProposal(_a0 context.Context, _a1 *types.RequestProcessProposal) (*types.ResponseProcessProposal, error)
- func (_m *Application) Query(_a0 context.Context, _a1 *types.RequestQuery) (*types.ResponseQuery, error)
- func (_m *Application) VerifyVoteExtension(_a0 context.Context, _a1 *types.RequestVerifyVoteExtension) (*types.ResponseVerifyVoteExtension, error)
- 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) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error)
- func (_m *Client) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, 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 DA
- func (_m *DA) Commit(ctx context.Context, blobs [][]byte, namespace []byte) ([][]byte, error)
- func (_m *DA) Get(ctx context.Context, ids [][]byte, namespace []byte) ([][]byte, error)
- func (_m *DA) GetIDs(ctx context.Context, height uint64, namespace []byte) ([][]byte, error)
- func (_m *DA) GetProofs(ctx context.Context, ids [][]byte, namespace []byte) ([][]byte, error)
- func (_m *DA) MaxBlobSize(ctx context.Context) (uint64, error)
- func (_m *DA) Submit(ctx context.Context, blobs [][]byte, gasPrice float64, namespace []byte) ([][]byte, error)
- func (_m *DA) Validate(ctx context.Context, ids [][]byte, proofs [][]byte, namespace []byte) ([]bool, error)
- type Store
- func (_m *Store) Close() error
- func (_m *Store) GetBlock(ctx context.Context, height uint64) (*types.Block, error)
- func (_m *Store) GetBlockByHash(ctx context.Context, hash header.Hash) (*types.Block, error)
- func (_m *Store) GetBlockResponses(ctx context.Context, height uint64) (*abcitypes.ResponseFinalizeBlock, error)
- func (_m *Store) GetCommit(ctx context.Context, height uint64) (*types.Commit, error)
- func (_m *Store) GetCommitByHash(ctx context.Context, hash header.Hash) (*types.Commit, error)
- func (_m *Store) GetExtendedCommit(ctx context.Context, height uint64) (*abcitypes.ExtendedCommitInfo, error)
- func (_m *Store) GetMetadata(ctx context.Context, key string) ([]byte, error)
- func (_m *Store) GetState(ctx context.Context) (types.State, error)
- func (_m *Store) Height() uint64
- func (_m *Store) SaveBlock(ctx context.Context, block *types.Block, commit *types.Commit) error
- func (_m *Store) SaveBlockResponses(ctx context.Context, height uint64, responses *abcitypes.ResponseFinalizeBlock) error
- func (_m *Store) SaveExtendedCommit(ctx context.Context, height uint64, commit *abcitypes.ExtendedCommitInfo) error
- func (_m *Store) SetHeight(ctx context.Context, height uint64)
- func (_m *Store) SetMetadata(ctx context.Context, key string, value []byte) error
- func (_m *Store) UpdateState(ctx context.Context, state types.State) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
Application is an autogenerated mock type for the Application type
func NewApplication ¶
func NewApplication(t interface { mock.TestingT Cleanup(func()) }) *Application
NewApplication creates a new instance of Application. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Application) ApplySnapshotChunk ¶
func (_m *Application) ApplySnapshotChunk(_a0 context.Context, _a1 *types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error)
ApplySnapshotChunk provides a mock function with given fields: _a0, _a1
func (*Application) CheckTx ¶
func (_m *Application) CheckTx(_a0 context.Context, _a1 *types.RequestCheckTx) (*types.ResponseCheckTx, error)
CheckTx provides a mock function with given fields: _a0, _a1
func (*Application) Commit ¶
func (_m *Application) Commit(_a0 context.Context, _a1 *types.RequestCommit) (*types.ResponseCommit, error)
Commit provides a mock function with given fields: _a0, _a1
func (*Application) ExtendVote ¶ added in v0.11.2
func (_m *Application) ExtendVote(_a0 context.Context, _a1 *types.RequestExtendVote) (*types.ResponseExtendVote, error)
ExtendVote provides a mock function with given fields: _a0, _a1
func (*Application) FinalizeBlock ¶ added in v0.11.2
func (_m *Application) FinalizeBlock(_a0 context.Context, _a1 *types.RequestFinalizeBlock) (*types.ResponseFinalizeBlock, error)
FinalizeBlock provides a mock function with given fields: _a0, _a1
func (*Application) Info ¶
func (_m *Application) Info(_a0 context.Context, _a1 *types.RequestInfo) (*types.ResponseInfo, error)
Info provides a mock function with given fields: _a0, _a1
func (*Application) InitChain ¶
func (_m *Application) InitChain(_a0 context.Context, _a1 *types.RequestInitChain) (*types.ResponseInitChain, error)
InitChain provides a mock function with given fields: _a0, _a1
func (*Application) ListSnapshots ¶
func (_m *Application) ListSnapshots(_a0 context.Context, _a1 *types.RequestListSnapshots) (*types.ResponseListSnapshots, error)
ListSnapshots provides a mock function with given fields: _a0, _a1
func (*Application) LoadSnapshotChunk ¶
func (_m *Application) LoadSnapshotChunk(_a0 context.Context, _a1 *types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error)
LoadSnapshotChunk provides a mock function with given fields: _a0, _a1
func (*Application) OfferSnapshot ¶
func (_m *Application) OfferSnapshot(_a0 context.Context, _a1 *types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error)
OfferSnapshot provides a mock function with given fields: _a0, _a1
func (*Application) PrepareProposal ¶
func (_m *Application) PrepareProposal(_a0 context.Context, _a1 *types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error)
PrepareProposal provides a mock function with given fields: _a0, _a1
func (*Application) ProcessProposal ¶
func (_m *Application) ProcessProposal(_a0 context.Context, _a1 *types.RequestProcessProposal) (*types.ResponseProcessProposal, error)
ProcessProposal provides a mock function with given fields: _a0, _a1
func (*Application) Query ¶
func (_m *Application) Query(_a0 context.Context, _a1 *types.RequestQuery) (*types.ResponseQuery, error)
Query provides a mock function with given fields: _a0, _a1
func (*Application) VerifyVoteExtension ¶ added in v0.11.2
func (_m *Application) VerifyVoteExtension(_a0 context.Context, _a1 *types.RequestVerifyVoteExtension) (*types.ResponseVerifyVoteExtension, error)
VerifyVoteExtension provides a mock function with given fields: _a0, _a1
type Client ¶ added in v0.11.19
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v0.11.19
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. The first argument is typically a *testing.T value.
func (*Client) ABCIInfo ¶ added in v0.11.19
ABCIInfo provides a mock function with given fields: _a0
func (*Client) ABCIQuery ¶ added in v0.11.19
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 ¶ added in v0.11.19
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) Block ¶ added in v0.11.19
Block provides a mock function with given fields: ctx, height
func (*Client) BlockByHash ¶ added in v0.11.19
BlockByHash provides a mock function with given fields: ctx, hash
func (*Client) BlockResults ¶ added in v0.11.19
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 ¶ added in v0.11.19
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 ¶ added in v0.11.19
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 ¶ added in v0.11.19
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 ¶ added in v0.11.19
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 ¶ added in v0.11.19
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 ¶ added in v0.11.19
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) CheckTx ¶ added in v0.11.19
CheckTx provides a mock function with given fields: _a0, _a1
func (*Client) Commit ¶ added in v0.11.19
Commit provides a mock function with given fields: ctx, height
func (*Client) ConsensusParams ¶ added in v0.11.19
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 ¶ added in v0.11.19
ConsensusState provides a mock function with given fields: _a0
func (*Client) DumpConsensusState ¶ added in v0.11.19
func (_m *Client) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)
DumpConsensusState provides a mock function with given fields: _a0
func (*Client) GenesisChunked ¶ added in v0.11.19
func (_m *Client) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)
GenesisChunked provides a mock function with given fields: _a0, _a1
func (*Client) Header ¶ added in v0.11.19
Header provides a mock function with given fields: ctx, height
func (*Client) HeaderByHash ¶ added in v0.11.19
func (_m *Client) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, error)
HeaderByHash provides a mock function with given fields: ctx, hash
func (*Client) NumUnconfirmedTxs ¶ added in v0.11.19
NumUnconfirmedTxs provides a mock function with given fields: _a0
func (*Client) OnStop ¶ added in v0.11.19
func (_m *Client) OnStop()
OnStop provides a mock function with given fields:
func (*Client) Quit ¶ added in v0.11.19
func (_m *Client) Quit() <-chan struct{}
Quit provides a mock function with given fields:
func (*Client) SetLogger ¶ added in v0.11.19
SetLogger provides a mock function with given fields: _a0
func (*Client) Subscribe ¶ added in v0.11.19
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) Tx ¶ added in v0.11.19
Tx provides a mock function with given fields: ctx, hash, prove
func (*Client) TxSearch ¶ added in v0.11.19
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 ¶ added in v0.11.19
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 ¶ added in v0.11.19
Unsubscribe provides a mock function with given fields: ctx, subscriber, query
func (*Client) UnsubscribeAll ¶ added in v0.11.19
UnsubscribeAll provides a mock function with given fields: ctx, subscriber
type DA ¶ added in v0.13.0
DA is an autogenerated mock type for the DA type
func NewDA ¶ added in v0.13.0
NewDA creates a new instance of DA. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DA) Commit ¶ added in v0.13.0
Commit provides a mock function with given fields: ctx, blobs, namespace
func (*DA) Get ¶ added in v0.13.0
Get provides a mock function with given fields: ctx, ids, namespace
func (*DA) GetIDs ¶ added in v0.13.0
GetIDs provides a mock function with given fields: ctx, height, namespace
func (*DA) GetProofs ¶ added in v0.13.0
GetProofs provides a mock function with given fields: ctx, ids, namespace
func (*DA) MaxBlobSize ¶ added in v0.13.0
MaxBlobSize provides a mock function with given fields: ctx
type Store ¶ added in v0.13.0
Store is an autogenerated mock type for the Store type
func NewStore ¶ added in v0.13.0
NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Store) GetBlock ¶ added in v0.13.0
GetBlock provides a mock function with given fields: ctx, height
func (*Store) GetBlockByHash ¶ added in v0.13.0
GetBlockByHash provides a mock function with given fields: ctx, hash
func (*Store) GetBlockResponses ¶ added in v0.13.0
func (_m *Store) GetBlockResponses(ctx context.Context, height uint64) (*abcitypes.ResponseFinalizeBlock, error)
GetBlockResponses provides a mock function with given fields: ctx, height
func (*Store) GetCommit ¶ added in v0.13.0
GetCommit provides a mock function with given fields: ctx, height
func (*Store) GetCommitByHash ¶ added in v0.13.0
GetCommitByHash provides a mock function with given fields: ctx, hash
func (*Store) GetExtendedCommit ¶ added in v0.13.3
func (_m *Store) GetExtendedCommit(ctx context.Context, height uint64) (*abcitypes.ExtendedCommitInfo, error)
GetExtendedCommit provides a mock function with given fields: ctx, height
func (*Store) GetMetadata ¶ added in v0.13.0
GetMetadata provides a mock function with given fields: ctx, key
func (*Store) SaveBlock ¶ added in v0.13.0
SaveBlock provides a mock function with given fields: ctx, block, commit
func (*Store) SaveBlockResponses ¶ added in v0.13.0
func (_m *Store) SaveBlockResponses(ctx context.Context, height uint64, responses *abcitypes.ResponseFinalizeBlock) error
SaveBlockResponses provides a mock function with given fields: ctx, height, responses
func (*Store) SaveExtendedCommit ¶ added in v0.13.3
func (_m *Store) SaveExtendedCommit(ctx context.Context, height uint64, commit *abcitypes.ExtendedCommitInfo) error
SaveExtendedCommit provides a mock function with given fields: ctx, height, commit
func (*Store) SetHeight ¶ added in v0.13.0
SetHeight provides a mock function with given fields: ctx, height
func (*Store) SetMetadata ¶ added in v0.13.0
SetMetadata provides a mock function with given fields: ctx, key, value