Documentation ¶
Index ¶
- type BlockStore
- func (_m *BlockStore) Base() int64
- func (_m *BlockStore) CoreChainLockedHeight() uint32
- func (_m *BlockStore) Height() int64
- func (_m *BlockStore) LoadBaseMeta() *types.BlockMeta
- func (_m *BlockStore) LoadBlock(height int64) *types.Block
- func (_m *BlockStore) LoadBlockByHash(hash []byte) *types.Block
- func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit
- func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta
- func (_m *BlockStore) LoadBlockMetaByHash(hash []byte) *types.BlockMeta
- func (_m *BlockStore) LoadBlockPart(height int64, index int) *types.Part
- func (_m *BlockStore) LoadSeenCommit() *types.Commit
- func (_m *BlockStore) LoadSeenCommitAt(height int64) *types.Commit
- func (_m *BlockStore) PruneBlocks(height int64) (uint64, error)
- func (_m *BlockStore) SaveBlock(block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit)
- func (_m *BlockStore) Size() int64
- type EventSink
- func (_m *EventSink) GetTxByHash(_a0 []byte) (*types.TxResult, error)
- func (_m *EventSink) HasBlock(_a0 int64) (bool, error)
- func (_m *EventSink) IndexBlockEvents(_a0 tenderminttypes.EventDataNewBlockHeader) error
- func (_m *EventSink) IndexTxEvents(_a0 []*types.TxResult) error
- func (_m *EventSink) SearchBlockEvents(_a0 context.Context, _a1 *query.Query) ([]int64, error)
- func (_m *EventSink) SearchTxEvents(_a0 context.Context, _a1 *query.Query) ([]*types.TxResult, error)
- func (_m *EventSink) Stop() error
- func (_m *EventSink) Type() indexer.EventSinkType
- type EvidencePool
- func (_m *EvidencePool) AddEvidence(_a0 context.Context, _a1 types.Evidence) error
- func (_m *EvidencePool) CheckEvidence(_a0 context.Context, _a1 types.EvidenceList) error
- func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64)
- func (_m *EvidencePool) Update(_a0 context.Context, _a1 state.State, _a2 types.EvidenceList)
- type Executor
- func (_m *Executor) ApplyBlock(ctx context.Context, _a1 state.State, blockID types.BlockID, ...) (state.State, error)
- func (_m *Executor) CreateProposalBlock(ctx context.Context, height int64, round int32, _a3 state.State, ...) (*types.Block, state.CurrentRoundState, error)
- func (_m *Executor) ExtendVote(ctx context.Context, vote *types.Vote)
- func (_m *Executor) FinalizeBlock(ctx context.Context, _a1 state.State, uncommittedState state.CurrentRoundState, ...) (state.State, error)
- func (_m *Executor) ProcessProposal(ctx context.Context, block *types.Block, round int32, _a3 state.State, ...) (state.CurrentRoundState, error)
- func (_m *Executor) ValidateBlock(ctx context.Context, _a1 state.State, block *types.Block) error
- func (_m *Executor) ValidateBlockWithRoundState(ctx context.Context, _a1 state.State, uncommittedState state.CurrentRoundState, ...) error
- func (_m *Executor) VerifyVoteExtension(ctx context.Context, vote *types.Vote) error
- type Store
- func (_m *Store) Bootstrap(_a0 state.State) error
- func (_m *Store) Close() error
- func (_m *Store) Load() (state.State, error)
- func (_m *Store) LoadABCIResponses(_a0 int64) (*tendermintstate.ABCIResponses, error)
- func (_m *Store) LoadConsensusParams(_a0 int64) (types.ConsensusParams, error)
- func (_m *Store) LoadValidators(_a0 int64) (*types.ValidatorSet, error)
- func (_m *Store) PruneStates(_a0 int64) error
- func (_m *Store) Save(_a0 state.State) error
- func (_m *Store) SaveABCIResponses(_a0 int64, _a1 tendermintstate.ABCIResponses) error
- func (_m *Store) SaveValidatorSets(_a0 int64, _a1 int64, _a2 *types.ValidatorSet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStore ¶
BlockStore is an autogenerated mock type for the BlockStore type
func NewBlockStore ¶
func NewBlockStore(t interface { mock.TestingT Cleanup(func()) }) *BlockStore
NewBlockStore creates a new instance of BlockStore. 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 (*BlockStore) Base ¶
func (_m *BlockStore) Base() int64
Base provides a mock function with given fields:
func (*BlockStore) CoreChainLockedHeight ¶
func (_m *BlockStore) CoreChainLockedHeight() uint32
CoreChainLockedHeight provides a mock function with given fields:
func (*BlockStore) Height ¶
func (_m *BlockStore) Height() int64
Height provides a mock function with given fields:
func (*BlockStore) LoadBaseMeta ¶
func (_m *BlockStore) LoadBaseMeta() *types.BlockMeta
LoadBaseMeta provides a mock function with given fields:
func (*BlockStore) LoadBlock ¶
func (_m *BlockStore) LoadBlock(height int64) *types.Block
LoadBlock provides a mock function with given fields: height
func (*BlockStore) LoadBlockByHash ¶
func (_m *BlockStore) LoadBlockByHash(hash []byte) *types.Block
LoadBlockByHash provides a mock function with given fields: hash
func (*BlockStore) LoadBlockCommit ¶
func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit
LoadBlockCommit provides a mock function with given fields: height
func (*BlockStore) LoadBlockMeta ¶
func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta
LoadBlockMeta provides a mock function with given fields: height
func (*BlockStore) LoadBlockMetaByHash ¶
func (_m *BlockStore) LoadBlockMetaByHash(hash []byte) *types.BlockMeta
LoadBlockMetaByHash provides a mock function with given fields: hash
func (*BlockStore) LoadBlockPart ¶
func (_m *BlockStore) LoadBlockPart(height int64, index int) *types.Part
LoadBlockPart provides a mock function with given fields: height, index
func (*BlockStore) LoadSeenCommit ¶
func (_m *BlockStore) LoadSeenCommit() *types.Commit
LoadSeenCommit provides a mock function with given fields:
func (*BlockStore) LoadSeenCommitAt ¶
func (_m *BlockStore) LoadSeenCommitAt(height int64) *types.Commit
LoadSeenCommitAt provides a mock function with given fields: height
func (*BlockStore) PruneBlocks ¶
func (_m *BlockStore) PruneBlocks(height int64) (uint64, error)
PruneBlocks provides a mock function with given fields: height
func (*BlockStore) SaveBlock ¶
func (_m *BlockStore) SaveBlock(block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit)
SaveBlock provides a mock function with given fields: block, blockParts, seenCommit
func (*BlockStore) Size ¶
func (_m *BlockStore) Size() int64
Size provides a mock function with given fields:
type EventSink ¶
EventSink is an autogenerated mock type for the EventSink type
func (*EventSink) GetTxByHash ¶
GetTxByHash provides a mock function with given fields: _a0
func (*EventSink) IndexBlockEvents ¶
func (_m *EventSink) IndexBlockEvents(_a0 tenderminttypes.EventDataNewBlockHeader) error
IndexBlockEvents provides a mock function with given fields: _a0
func (*EventSink) IndexTxEvents ¶
IndexTxEvents provides a mock function with given fields: _a0
func (*EventSink) SearchBlockEvents ¶
SearchBlockEvents provides a mock function with given fields: _a0, _a1
func (*EventSink) SearchTxEvents ¶
func (_m *EventSink) SearchTxEvents(_a0 context.Context, _a1 *query.Query) ([]*types.TxResult, error)
SearchTxEvents provides a mock function with given fields: _a0, _a1
func (*EventSink) Type ¶
func (_m *EventSink) Type() indexer.EventSinkType
Type provides a mock function with given fields:
type EvidencePool ¶
EvidencePool is an autogenerated mock type for the EvidencePool type
func NewEvidencePool ¶
func NewEvidencePool(t interface { mock.TestingT Cleanup(func()) }) *EvidencePool
NewEvidencePool creates a new instance of EvidencePool. 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 (*EvidencePool) AddEvidence ¶
AddEvidence provides a mock function with given fields: _a0, _a1
func (*EvidencePool) CheckEvidence ¶
func (_m *EvidencePool) CheckEvidence(_a0 context.Context, _a1 types.EvidenceList) error
CheckEvidence provides a mock function with given fields: _a0, _a1
func (*EvidencePool) PendingEvidence ¶
func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64)
PendingEvidence provides a mock function with given fields: maxBytes
func (*EvidencePool) Update ¶
func (_m *EvidencePool) Update(_a0 context.Context, _a1 state.State, _a2 types.EvidenceList)
Update provides a mock function with given fields: _a0, _a1, _a2
type Executor ¶
Executor is an autogenerated mock type for the Executor type
func NewExecutor ¶
NewExecutor creates a new instance of Executor. 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 (*Executor) ApplyBlock ¶
func (_m *Executor) ApplyBlock(ctx context.Context, _a1 state.State, blockID types.BlockID, block *types.Block, commit *types.Commit) (state.State, error)
ApplyBlock provides a mock function with given fields: ctx, _a1, blockID, block, commit
func (*Executor) CreateProposalBlock ¶
func (_m *Executor) CreateProposalBlock(ctx context.Context, height int64, round int32, _a3 state.State, commit *types.Commit, proposerProTxHash []byte, proposedAppVersion uint64) (*types.Block, state.CurrentRoundState, error)
CreateProposalBlock provides a mock function with given fields: ctx, height, round, _a3, commit, proposerProTxHash, proposedAppVersion
func (*Executor) ExtendVote ¶
ExtendVote provides a mock function with given fields: ctx, vote
func (*Executor) FinalizeBlock ¶
func (_m *Executor) FinalizeBlock(ctx context.Context, _a1 state.State, uncommittedState state.CurrentRoundState, blockID types.BlockID, block *types.Block, commit *types.Commit) (state.State, error)
FinalizeBlock provides a mock function with given fields: ctx, _a1, uncommittedState, blockID, block, commit
func (*Executor) ProcessProposal ¶
func (_m *Executor) ProcessProposal(ctx context.Context, block *types.Block, round int32, _a3 state.State, verify bool) (state.CurrentRoundState, error)
ProcessProposal provides a mock function with given fields: ctx, block, round, _a3, verify
func (*Executor) ValidateBlock ¶
ValidateBlock provides a mock function with given fields: ctx, _a1, block
func (*Executor) ValidateBlockWithRoundState ¶
func (_m *Executor) ValidateBlockWithRoundState(ctx context.Context, _a1 state.State, uncommittedState state.CurrentRoundState, block *types.Block) error
ValidateBlockWithRoundState provides a mock function with given fields: ctx, _a1, uncommittedState, block
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
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) LoadABCIResponses ¶
func (_m *Store) LoadABCIResponses(_a0 int64) (*tendermintstate.ABCIResponses, error)
LoadABCIResponses provides a mock function with given fields: _a0
func (*Store) LoadConsensusParams ¶
func (_m *Store) LoadConsensusParams(_a0 int64) (types.ConsensusParams, error)
LoadConsensusParams provides a mock function with given fields: _a0
func (*Store) LoadValidators ¶
func (_m *Store) LoadValidators(_a0 int64) (*types.ValidatorSet, error)
LoadValidators provides a mock function with given fields: _a0
func (*Store) PruneStates ¶
PruneStates provides a mock function with given fields: _a0
func (*Store) SaveABCIResponses ¶
func (_m *Store) SaveABCIResponses(_a0 int64, _a1 tendermintstate.ABCIResponses) error
SaveABCIResponses provides a mock function with given fields: _a0, _a1
func (*Store) SaveValidatorSets ¶
SaveValidatorSets provides a mock function with given fields: _a0, _a1, _a2