Documentation ¶
Index ¶
- type Batch
- type BlockStore
- func (_m *BlockStore) Base() int64
- 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) LoadBlockPart(height int64, index int) *types.Part
- func (_m *BlockStore) LoadSeenCommit(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 DB
- func (_m *DB) Close() error
- func (_m *DB) Delete(_a0 []byte) error
- func (_m *DB) DeleteSync(_a0 []byte) error
- func (_m *DB) Get(_a0 []byte) ([]byte, error)
- func (_m *DB) Has(key []byte) (bool, error)
- func (_m *DB) Iterator(start []byte, end []byte) (db.Iterator, error)
- func (_m *DB) NewBatch() db.Batch
- func (_m *DB) Print() error
- func (_m *DB) ReverseIterator(start []byte, end []byte) (db.Iterator, error)
- func (_m *DB) Set(_a0 []byte, _a1 []byte) error
- func (_m *DB) SetSync(_a0 []byte, _a1 []byte) error
- func (_m *DB) Stats() map[string]string
- type EvidencePool
- 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) LoadFromDBOrGenesisDoc(_a0 *ostracontypes.GenesisDoc) (state.State, error)
- func (_m *Store) LoadFromDBOrGenesisFile(_a0 string) (state.State, error)
- func (_m *Store) LoadLastABCIResponse(_a0 int64) (*tendermintstate.ABCIResponses, error)
- func (_m *Store) LoadProofHash(_a0 int64) ([]byte, error)
- func (_m *Store) LoadValidators(_a0 int64) (*ostracontypes.ValidatorSet, error)
- func (_m *Store) PruneStates(_a0 int64, _a1 int64) error
- func (_m *Store) Save(_a0 state.State) error
- func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
Batch is an autogenerated mock type for the Batch type
func NewBatch ¶
func NewBatch(t mockConstructorTestingTNewBatch) *Batch
NewBatch creates a new instance of Batch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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) 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) 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(height int64) *types.Commit
LoadSeenCommit 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 DB ¶
DB is an autogenerated mock type for the DB type
func NewDB ¶
func NewDB(t mockConstructorTestingTNewDB) *DB
NewDB creates a new instance of DB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DB) DeleteSync ¶
DeleteSync provides a mock function with given fields: _a0
func (*DB) ReverseIterator ¶
ReverseIterator provides a mock function with given fields: start, end
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 ¶
func (_m *EvidencePool) AddEvidence(_a0 types.Evidence) error
AddEvidence provides a mock function with given fields: _a0
func (*EvidencePool) CheckEvidence ¶
func (_m *EvidencePool) CheckEvidence(_a0 types.EvidenceList) error
CheckEvidence provides a mock function with given fields: _a0
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 state.State, _a1 types.EvidenceList)
Update provides a mock function with given fields: _a0, _a1
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) LoadFromDBOrGenesisDoc ¶
func (_m *Store) LoadFromDBOrGenesisDoc(_a0 *ostracontypes.GenesisDoc) (state.State, error)
LoadFromDBOrGenesisDoc provides a mock function with given fields: _a0
func (*Store) LoadFromDBOrGenesisFile ¶
LoadFromDBOrGenesisFile provides a mock function with given fields: _a0
func (*Store) LoadLastABCIResponse ¶ added in v1.1.1
func (_m *Store) LoadLastABCIResponse(_a0 int64) (*tendermintstate.ABCIResponses, error)
LoadLastABCIResponse provides a mock function with given fields: _a0
func (*Store) LoadProofHash ¶
LoadProofHash provides a mock function with given fields: _a0
func (*Store) LoadValidators ¶
func (_m *Store) LoadValidators(_a0 int64) (*ostracontypes.ValidatorSet, error)
LoadValidators provides a mock function with given fields: _a0
func (*Store) PruneStates ¶
PruneStates provides a mock function with given fields: _a0, _a1
func (*Store) SaveABCIResponses ¶
func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error
SaveABCIResponses provides a mock function with given fields: _a0, _a1