Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2024 Changes in this version + type HistoryRepositoryStub struct + GetDCDTSupplyCalled func(token string) (*dcdtSupply.SupplyDCDT, error) + GetEpochByHashCalled func(hash []byte) (uint32, error) + GetEventsHashesByTxHashCalled func(hash []byte, epoch uint32) (*dblookupext.ResultsHashesByTxHash, error) + GetMiniblockMetadataByTxHashCalled func(hash []byte) (*dblookupext.MiniblockMetadata, error) + IsEnabledCalled func() bool + OnNotarizedBlocksCalled func(shardID uint32, headers []data.HeaderHandler, headersHashes [][]byte) + RecordBlockCalled func(blockHeaderHash []byte, blockHeader data.HeaderHandler, ...) error + func (hp *HistoryRepositoryStub) GetDCDTSupply(token string) (*dcdtSupply.SupplyDCDT, error) + func (hp *HistoryRepositoryStub) GetEpochByHash(hash []byte) (uint32, error) + func (hp *HistoryRepositoryStub) GetMiniblockMetadataByTxHash(hash []byte) (*dblookupext.MiniblockMetadata, error) + func (hp *HistoryRepositoryStub) GetResultsHashesByTxHash(hash []byte, epoch uint32) (*dblookupext.ResultsHashesByTxHash, error) + func (hp *HistoryRepositoryStub) IsEnabled() bool + func (hp *HistoryRepositoryStub) IsInterfaceNil() bool + func (hp *HistoryRepositoryStub) OnNotarizedBlocks(shardID uint32, headers []data.HeaderHandler, headersHashes [][]byte) + func (hp *HistoryRepositoryStub) RecordBlock(blockHeaderHash []byte, blockHeader data.HeaderHandler, ...) error + func (hp *HistoryRepositoryStub) RevertBlock(_ data.HeaderHandler, _ data.BodyHandler) error