Documentation ¶
Index ¶
- type BatchStorage
- type BeaconPrivateKeys
- type Blocks
- func (_m *Blocks) ByCollectionID(collID flow.Identifier) (*flow.Block, error)
- func (_m *Blocks) ByHeight(height uint64) (*flow.Block, error)
- func (_m *Blocks) ByID(blockID flow.Identifier) (*flow.Block, error)
- func (_m *Blocks) IndexBlockForCollections(blockID flow.Identifier, collIDs []flow.Identifier) error
- func (_m *Blocks) Store(block *flow.Block) error
- func (_m *Blocks) StoreTx(block *flow.Block) func(*transaction.Tx) error
- type ChunkDataPacks
- func (_m *ChunkDataPacks) BatchRemove(chunkID flow.Identifier, batch storage.BatchStorage) error
- func (_m *ChunkDataPacks) ByChunkID(chunkID flow.Identifier) (*flow.ChunkDataPack, error)
- func (_m *ChunkDataPacks) Remove(cs []flow.Identifier) error
- func (_m *ChunkDataPacks) Store(cs []*flow.ChunkDataPack) error
- type ChunksQueue
- type ClusterBlocks
- type ClusterPayloads
- type Collections
- func (_m *Collections) ByID(collID flow.Identifier) (*flow.Collection, error)
- func (_m *Collections) LightByID(collID flow.Identifier) (*flow.LightCollection, error)
- func (_m *Collections) LightByTransactionID(txID flow.Identifier) (*flow.LightCollection, error)
- func (_m *Collections) Remove(collID flow.Identifier) error
- func (_m *Collections) Store(collection *flow.Collection) error
- func (_m *Collections) StoreLight(collection *flow.LightCollection) error
- func (_m *Collections) StoreLightAndIndexByTransaction(collection *flow.LightCollection) error
- type Commits
- func (_m *Commits) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
- func (_m *Commits) BatchStore(blockID flow.Identifier, commit flow.StateCommitment, ...) error
- func (_m *Commits) ByBlockID(blockID flow.Identifier) (flow.StateCommitment, error)
- func (_m *Commits) Store(blockID flow.Identifier, commit flow.StateCommitment) error
- type ComputationResultUploadStatus
- func (_m *ComputationResultUploadStatus) ByID(blockID flow.Identifier) (bool, error)
- func (_m *ComputationResultUploadStatus) GetIDsByUploadStatus(targetUploadStatus bool) ([]flow.Identifier, error)
- func (_m *ComputationResultUploadStatus) Remove(blockID flow.Identifier) error
- func (_m *ComputationResultUploadStatus) Upsert(blockID flow.Identifier, wasUploadCompleted bool) error
- type ConsumerProgress
- type DKGState
- func (_m *DKGState) GetDKGEndState(epochCounter uint64) (flow.DKGEndState, error)
- func (_m *DKGState) GetDKGStarted(epochCounter uint64) (bool, error)
- func (_m *DKGState) InsertMyBeaconPrivateKey(epochCounter uint64, key crypto.PrivateKey) error
- func (_m *DKGState) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)
- func (_m *DKGState) SetDKGEndState(epochCounter uint64, endState flow.DKGEndState) error
- func (_m *DKGState) SetDKGStarted(epochCounter uint64) error
- type DeferredDBUpdate
- type EpochCommits
- type EpochProtocolStateEntries
- func (_m *EpochProtocolStateEntries) ByBlockID(blockID flow.Identifier) (*flow.RichEpochProtocolStateEntry, error)
- func (_m *EpochProtocolStateEntries) ByID(id flow.Identifier) (*flow.RichEpochProtocolStateEntry, error)
- func (_m *EpochProtocolStateEntries) Index(blockID flow.Identifier, epochProtocolStateID flow.Identifier) func(*transaction.Tx) error
- func (_m *EpochProtocolStateEntries) StoreTx(epochProtocolStateID flow.Identifier, ...) func(*transaction.Tx) error
- type EpochSetups
- type Events
- func (_m *Events) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
- func (_m *Events) BatchStore(blockID flow.Identifier, events []flow.EventsList, batch storage.BatchStorage) error
- func (_m *Events) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)
- func (_m *Events) ByBlockIDEventType(blockID flow.Identifier, eventType flow.EventType) ([]flow.Event, error)
- func (_m *Events) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) ([]flow.Event, error)
- func (_m *Events) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) ([]flow.Event, error)
- func (_m *Events) Store(blockID flow.Identifier, blockEvents []flow.EventsList) error
- type ExecutionReceipts
- func (_m *ExecutionReceipts) BatchStore(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) error
- func (_m *ExecutionReceipts) ByBlockID(blockID flow.Identifier) (flow.ExecutionReceiptList, error)
- func (_m *ExecutionReceipts) ByID(receiptID flow.Identifier) (*flow.ExecutionReceipt, error)
- func (_m *ExecutionReceipts) Store(receipt *flow.ExecutionReceipt) error
- type ExecutionResults
- func (_m *ExecutionResults) BatchIndex(blockID flow.Identifier, resultID flow.Identifier, batch storage.BatchStorage) error
- func (_m *ExecutionResults) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
- func (_m *ExecutionResults) BatchStore(result *flow.ExecutionResult, batch storage.BatchStorage) error
- func (_m *ExecutionResults) ByBlockID(blockID flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *ExecutionResults) ByID(resultID flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *ExecutionResults) ByIDTx(resultID flow.Identifier) func(*transaction.Tx) (*flow.ExecutionResult, error)
- func (_m *ExecutionResults) ForceIndex(blockID flow.Identifier, resultID flow.Identifier) error
- func (_m *ExecutionResults) Index(blockID flow.Identifier, resultID flow.Identifier) error
- func (_m *ExecutionResults) Store(result *flow.ExecutionResult) error
- type Guarantees
- type Headers
- func (_m *Headers) BlockIDByHeight(height uint64) (flow.Identifier, error)
- func (_m *Headers) ByBlockID(blockID flow.Identifier) (*flow.Header, error)
- func (_m *Headers) ByHeight(height uint64) (*flow.Header, error)
- func (_m *Headers) ByParentID(parentID flow.Identifier) ([]*flow.Header, error)
- func (_m *Headers) Exists(blockID flow.Identifier) (bool, error)
- func (_m *Headers) Store(header *flow.Header) error
- type HeightIndex
- type Index
- type Job
- type Ledger
- func (_m *Ledger) EmptyStateCommitment() flow.StateCommitment
- func (_m *Ledger) GetRegisters(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([][]byte, error)
- func (_m *Ledger) GetRegistersWithProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([][]byte, [][]byte, error)
- func (_m *Ledger) UpdateRegisters(registerIDs []flow.RegisterID, values [][]byte, ...) (flow.StateCommitment, error)
- func (_m *Ledger) UpdateRegistersWithProof(registerIDs []flow.RegisterID, values [][]byte, ...) (flow.StateCommitment, [][]byte, error)
- type LedgerVerifier
- type LightTransactionResults
- func (_m *LightTransactionResults) BatchStore(blockID flow.Identifier, transactionResults []flow.LightTransactionResult, ...) error
- func (_m *LightTransactionResults) ByBlockID(id flow.Identifier) ([]flow.LightTransactionResult, error)
- func (_m *LightTransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.LightTransactionResult, error)
- func (_m *LightTransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.LightTransactionResult, error)
- type MyExecutionReceipts
- func (_m *MyExecutionReceipts) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
- func (_m *MyExecutionReceipts) BatchStoreMyReceipt(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) error
- func (_m *MyExecutionReceipts) MyReceipt(blockID flow.Identifier) (*flow.ExecutionReceipt, error)
- func (_m *MyExecutionReceipts) StoreMyReceipt(receipt *flow.ExecutionReceipt) error
- type Payloads
- type ProtocolKVStore
- func (_m *ProtocolKVStore) ByBlockID(blockID flow.Identifier) (*flow.PSKeyValueStoreData, error)
- func (_m *ProtocolKVStore) ByID(id flow.Identifier) (*flow.PSKeyValueStoreData, error)
- func (_m *ProtocolKVStore) IndexTx(blockID flow.Identifier, stateID flow.Identifier) func(*transaction.Tx) error
- func (_m *ProtocolKVStore) StoreTx(stateID flow.Identifier, data *flow.PSKeyValueStoreData) func(*transaction.Tx) error
- type QuorumCertificates
- type RegisterIndex
- type ResultApprovals
- func (_m *ResultApprovals) ByChunk(resultID flow.Identifier, chunkIndex uint64) (*flow.ResultApproval, error)
- func (_m *ResultApprovals) ByID(approvalID flow.Identifier) (*flow.ResultApproval, error)
- func (_m *ResultApprovals) Index(resultID flow.Identifier, chunkIndex uint64, approvalID flow.Identifier) error
- func (_m *ResultApprovals) Store(result *flow.ResultApproval) error
- type SafeBeaconKeys
- type Seals
- type ServiceEvents
- func (_m *ServiceEvents) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
- func (_m *ServiceEvents) BatchStore(blockID flow.Identifier, events []flow.Event, batch storage.BatchStorage) error
- func (_m *ServiceEvents) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)
- type Storage
- func (_m *Storage) GetRegisters(registerIDs [][]byte, stateCommitment []byte) ([][]byte, error)
- func (_m *Storage) GetRegistersWithProof(registerIDs [][]byte, stateCommitment []byte) ([][]byte, [][]byte, error)
- func (_m *Storage) LatestStateCommitment() []byte
- func (_m *Storage) UpdateRegisters(registerIDs [][]byte, values [][]byte) ([]byte, error)
- func (_m *Storage) UpdateRegistersWithProof(registerIDs [][]byte, values [][]byte) ([]byte, [][]byte, error)
- type Transaction
- type TransactionResults
- func (_m *TransactionResults) BatchStore(blockID flow.Identifier, transactionResults []flow.TransactionResult, ...) error
- func (_m *TransactionResults) ByBlockID(id flow.Identifier) ([]flow.TransactionResult, error)
- func (_m *TransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResult, error)
- func (_m *TransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResult, error)
- type Transactions
- type Verifier
- type VersionBeacons
- type Views
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchStorage ¶ added in v0.15.0
BatchStorage is an autogenerated mock type for the BatchStorage type
func NewBatchStorage ¶ added in v0.26.1
func NewBatchStorage(t interface { mock.TestingT Cleanup(func()) }) *BatchStorage
NewBatchStorage creates a new instance of BatchStorage. 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 (*BatchStorage) Flush ¶ added in v0.15.2
func (_m *BatchStorage) Flush() error
Flush provides a mock function with given fields:
func (*BatchStorage) GetWriter ¶ added in v0.15.2
func (_m *BatchStorage) GetWriter() *badger.WriteBatch
GetWriter provides a mock function with given fields:
func (*BatchStorage) OnSucceed ¶ added in v0.15.2
func (_m *BatchStorage) OnSucceed(callback func())
OnSucceed provides a mock function with given fields: callback
type BeaconPrivateKeys ¶ added in v0.23.2
BeaconPrivateKeys is an autogenerated mock type for the BeaconPrivateKeys type
func (*BeaconPrivateKeys) InsertMyBeaconPrivateKey ¶ added in v0.23.2
func (_m *BeaconPrivateKeys) InsertMyBeaconPrivateKey(epochCounter uint64, key *encodable.RandomBeaconPrivKey) error
InsertMyBeaconPrivateKey provides a mock function with given fields: epochCounter, key
func (*BeaconPrivateKeys) RetrieveMyBeaconPrivateKey ¶ added in v0.23.2
func (_m *BeaconPrivateKeys) RetrieveMyBeaconPrivateKey(epochCounter uint64) (*encodable.RandomBeaconPrivKey, error)
RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter
type Blocks ¶
Blocks is an autogenerated mock type for the Blocks type
func NewBlocks ¶ added in v0.26.1
NewBlocks creates a new instance of Blocks. 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 (*Blocks) ByCollectionID ¶
ByCollectionID provides a mock function with given fields: collID
func (*Blocks) IndexBlockForCollections ¶
func (_m *Blocks) IndexBlockForCollections(blockID flow.Identifier, collIDs []flow.Identifier) error
IndexBlockForCollections provides a mock function with given fields: blockID, collIDs
type ChunkDataPacks ¶
ChunkDataPacks is an autogenerated mock type for the ChunkDataPacks type
func NewChunkDataPacks ¶ added in v0.26.1
func NewChunkDataPacks(t interface { mock.TestingT Cleanup(func()) }) *ChunkDataPacks
NewChunkDataPacks creates a new instance of ChunkDataPacks. 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 (*ChunkDataPacks) BatchRemove ¶ added in v0.30.0
func (_m *ChunkDataPacks) BatchRemove(chunkID flow.Identifier, batch storage.BatchStorage) error
BatchRemove provides a mock function with given fields: chunkID, batch
func (*ChunkDataPacks) ByChunkID ¶
func (_m *ChunkDataPacks) ByChunkID(chunkID flow.Identifier) (*flow.ChunkDataPack, error)
ByChunkID provides a mock function with given fields: chunkID
func (*ChunkDataPacks) Remove ¶
func (_m *ChunkDataPacks) Remove(cs []flow.Identifier) error
Remove provides a mock function with given fields: cs
func (*ChunkDataPacks) Store ¶
func (_m *ChunkDataPacks) Store(cs []*flow.ChunkDataPack) error
Store provides a mock function with given fields: cs
type ChunksQueue ¶ added in v0.15.0
ChunksQueue is an autogenerated mock type for the ChunksQueue type
func NewChunksQueue ¶ added in v0.26.1
func NewChunksQueue(t interface { mock.TestingT Cleanup(func()) }) *ChunksQueue
NewChunksQueue creates a new instance of ChunksQueue. 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 (*ChunksQueue) AtIndex ¶ added in v0.15.0
func (_m *ChunksQueue) AtIndex(index uint64) (*chunks.Locator, error)
AtIndex provides a mock function with given fields: index
func (*ChunksQueue) LatestIndex ¶ added in v0.15.0
func (_m *ChunksQueue) LatestIndex() (uint64, error)
LatestIndex provides a mock function with given fields:
func (*ChunksQueue) StoreChunkLocator ¶ added in v0.15.0
func (_m *ChunksQueue) StoreChunkLocator(locator *chunks.Locator) (bool, error)
StoreChunkLocator provides a mock function with given fields: locator
type ClusterBlocks ¶
ClusterBlocks is an autogenerated mock type for the ClusterBlocks type
func NewClusterBlocks ¶ added in v0.26.1
func NewClusterBlocks(t interface { mock.TestingT Cleanup(func()) }) *ClusterBlocks
NewClusterBlocks creates a new instance of ClusterBlocks. 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 (*ClusterBlocks) ByHeight ¶
func (_m *ClusterBlocks) ByHeight(height uint64) (*cluster.Block, error)
ByHeight provides a mock function with given fields: height
func (*ClusterBlocks) ByID ¶
func (_m *ClusterBlocks) ByID(blockID flow.Identifier) (*cluster.Block, error)
ByID provides a mock function with given fields: blockID
type ClusterPayloads ¶
ClusterPayloads is an autogenerated mock type for the ClusterPayloads type
func NewClusterPayloads ¶ added in v0.26.1
func NewClusterPayloads(t interface { mock.TestingT Cleanup(func()) }) *ClusterPayloads
NewClusterPayloads creates a new instance of ClusterPayloads. 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 (*ClusterPayloads) ByBlockID ¶
func (_m *ClusterPayloads) ByBlockID(blockID flow.Identifier) (*cluster.Payload, error)
ByBlockID provides a mock function with given fields: blockID
func (*ClusterPayloads) Store ¶
func (_m *ClusterPayloads) Store(blockID flow.Identifier, payload *cluster.Payload) error
Store provides a mock function with given fields: blockID, payload
type Collections ¶
Collections is an autogenerated mock type for the Collections type
func NewCollections ¶ added in v0.26.1
func NewCollections(t interface { mock.TestingT Cleanup(func()) }) *Collections
NewCollections creates a new instance of Collections. 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 (*Collections) ByID ¶
func (_m *Collections) ByID(collID flow.Identifier) (*flow.Collection, error)
ByID provides a mock function with given fields: collID
func (*Collections) LightByID ¶
func (_m *Collections) LightByID(collID flow.Identifier) (*flow.LightCollection, error)
LightByID provides a mock function with given fields: collID
func (*Collections) LightByTransactionID ¶
func (_m *Collections) LightByTransactionID(txID flow.Identifier) (*flow.LightCollection, error)
LightByTransactionID provides a mock function with given fields: txID
func (*Collections) Remove ¶
func (_m *Collections) Remove(collID flow.Identifier) error
Remove provides a mock function with given fields: collID
func (*Collections) Store ¶
func (_m *Collections) Store(collection *flow.Collection) error
Store provides a mock function with given fields: collection
func (*Collections) StoreLight ¶
func (_m *Collections) StoreLight(collection *flow.LightCollection) error
StoreLight provides a mock function with given fields: collection
func (*Collections) StoreLightAndIndexByTransaction ¶
func (_m *Collections) StoreLightAndIndexByTransaction(collection *flow.LightCollection) error
StoreLightAndIndexByTransaction provides a mock function with given fields: collection
type Commits ¶
Commits is an autogenerated mock type for the Commits type
func NewCommits ¶ added in v0.26.1
NewCommits creates a new instance of Commits. 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 (*Commits) BatchRemoveByBlockID ¶ added in v0.30.0
func (_m *Commits) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
BatchRemoveByBlockID provides a mock function with given fields: blockID, batch
func (*Commits) BatchStore ¶ added in v0.15.0
func (_m *Commits) BatchStore(blockID flow.Identifier, commit flow.StateCommitment, batch storage.BatchStorage) error
BatchStore provides a mock function with given fields: blockID, commit, batch
func (*Commits) ByBlockID ¶
func (_m *Commits) ByBlockID(blockID flow.Identifier) (flow.StateCommitment, error)
ByBlockID provides a mock function with given fields: blockID
func (*Commits) Store ¶
func (_m *Commits) Store(blockID flow.Identifier, commit flow.StateCommitment) error
Store provides a mock function with given fields: blockID, commit
type ComputationResultUploadStatus ¶ added in v0.28.0
ComputationResultUploadStatus is an autogenerated mock type for the ComputationResultUploadStatus type
func NewComputationResultUploadStatus ¶ added in v0.28.0
func NewComputationResultUploadStatus(t interface { mock.TestingT Cleanup(func()) }) *ComputationResultUploadStatus
NewComputationResultUploadStatus creates a new instance of ComputationResultUploadStatus. 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 (*ComputationResultUploadStatus) ByID ¶ added in v0.28.0
func (_m *ComputationResultUploadStatus) ByID(blockID flow.Identifier) (bool, error)
ByID provides a mock function with given fields: blockID
func (*ComputationResultUploadStatus) GetIDsByUploadStatus ¶ added in v0.28.0
func (_m *ComputationResultUploadStatus) GetIDsByUploadStatus(targetUploadStatus bool) ([]flow.Identifier, error)
GetIDsByUploadStatus provides a mock function with given fields: targetUploadStatus
func (*ComputationResultUploadStatus) Remove ¶ added in v0.28.0
func (_m *ComputationResultUploadStatus) Remove(blockID flow.Identifier) error
Remove provides a mock function with given fields: blockID
func (*ComputationResultUploadStatus) Upsert ¶ added in v0.28.0
func (_m *ComputationResultUploadStatus) Upsert(blockID flow.Identifier, wasUploadCompleted bool) error
Upsert provides a mock function with given fields: blockID, wasUploadCompleted
type ConsumerProgress ¶ added in v0.15.0
ConsumerProgress is an autogenerated mock type for the ConsumerProgress type
func NewConsumerProgress ¶ added in v0.26.1
func NewConsumerProgress(t interface { mock.TestingT Cleanup(func()) }) *ConsumerProgress
NewConsumerProgress creates a new instance of ConsumerProgress. 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 (*ConsumerProgress) InitProcessedIndex ¶ added in v0.15.0
func (_m *ConsumerProgress) InitProcessedIndex(defaultIndex uint64) error
InitProcessedIndex provides a mock function with given fields: defaultIndex
func (*ConsumerProgress) ProcessedIndex ¶ added in v0.15.0
func (_m *ConsumerProgress) ProcessedIndex() (uint64, error)
ProcessedIndex provides a mock function with given fields:
func (*ConsumerProgress) SetProcessedIndex ¶ added in v0.15.0
func (_m *ConsumerProgress) SetProcessedIndex(processed uint64) error
SetProcessedIndex provides a mock function with given fields: processed
type DKGState ¶ added in v0.23.9
DKGState is an autogenerated mock type for the DKGState type
func NewDKGState ¶ added in v0.26.1
NewDKGState creates a new instance of DKGState. 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 (*DKGState) GetDKGEndState ¶ added in v0.23.9
func (_m *DKGState) GetDKGEndState(epochCounter uint64) (flow.DKGEndState, error)
GetDKGEndState provides a mock function with given fields: epochCounter
func (*DKGState) GetDKGStarted ¶ added in v0.23.9
GetDKGStarted provides a mock function with given fields: epochCounter
func (*DKGState) InsertMyBeaconPrivateKey ¶ added in v0.23.9
func (_m *DKGState) InsertMyBeaconPrivateKey(epochCounter uint64, key crypto.PrivateKey) error
InsertMyBeaconPrivateKey provides a mock function with given fields: epochCounter, key
func (*DKGState) RetrieveMyBeaconPrivateKey ¶ added in v0.23.9
func (_m *DKGState) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)
RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter
func (*DKGState) SetDKGEndState ¶ added in v0.23.9
func (_m *DKGState) SetDKGEndState(epochCounter uint64, endState flow.DKGEndState) error
SetDKGEndState provides a mock function with given fields: epochCounter, endState
func (*DKGState) SetDKGStarted ¶ added in v0.23.9
SetDKGStarted provides a mock function with given fields: epochCounter
type DeferredDBUpdate ¶ added in v0.33.30
DeferredDBUpdate is an autogenerated mock type for the DeferredDBUpdate type
func NewDeferredDBUpdate ¶ added in v0.33.30
func NewDeferredDBUpdate(t interface { mock.TestingT Cleanup(func()) }) *DeferredDBUpdate
NewDeferredDBUpdate creates a new instance of DeferredDBUpdate. 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 (*DeferredDBUpdate) Execute ¶ added in v0.33.30
func (_m *DeferredDBUpdate) Execute(_a0 *transaction.Tx) error
Execute provides a mock function with given fields: _a0
type EpochCommits ¶
EpochCommits is an autogenerated mock type for the EpochCommits type
func NewEpochCommits ¶ added in v0.26.1
func NewEpochCommits(t interface { mock.TestingT Cleanup(func()) }) *EpochCommits
NewEpochCommits creates a new instance of EpochCommits. 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 (*EpochCommits) ByID ¶
func (_m *EpochCommits) ByID(_a0 flow.Identifier) (*flow.EpochCommit, error)
ByID provides a mock function with given fields: _a0
func (*EpochCommits) StoreTx ¶
func (_m *EpochCommits) StoreTx(commit *flow.EpochCommit) func(*transaction.Tx) error
StoreTx provides a mock function with given fields: commit
type EpochProtocolStateEntries ¶ added in v0.33.30
EpochProtocolStateEntries is an autogenerated mock type for the EpochProtocolStateEntries type
func NewEpochProtocolStateEntries ¶ added in v0.33.30
func NewEpochProtocolStateEntries(t interface { mock.TestingT Cleanup(func()) }) *EpochProtocolStateEntries
NewEpochProtocolStateEntries creates a new instance of EpochProtocolStateEntries. 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 (*EpochProtocolStateEntries) ByBlockID ¶ added in v0.33.30
func (_m *EpochProtocolStateEntries) ByBlockID(blockID flow.Identifier) (*flow.RichEpochProtocolStateEntry, error)
ByBlockID provides a mock function with given fields: blockID
func (*EpochProtocolStateEntries) ByID ¶ added in v0.33.30
func (_m *EpochProtocolStateEntries) ByID(id flow.Identifier) (*flow.RichEpochProtocolStateEntry, error)
ByID provides a mock function with given fields: id
func (*EpochProtocolStateEntries) Index ¶ added in v0.33.30
func (_m *EpochProtocolStateEntries) Index(blockID flow.Identifier, epochProtocolStateID flow.Identifier) func(*transaction.Tx) error
Index provides a mock function with given fields: blockID, epochProtocolStateID
func (*EpochProtocolStateEntries) StoreTx ¶ added in v0.33.30
func (_m *EpochProtocolStateEntries) StoreTx(epochProtocolStateID flow.Identifier, epochProtocolStateEntry *flow.EpochProtocolStateEntry) func(*transaction.Tx) error
StoreTx provides a mock function with given fields: epochProtocolStateID, epochProtocolStateEntry
type EpochSetups ¶
EpochSetups is an autogenerated mock type for the EpochSetups type
func NewEpochSetups ¶ added in v0.26.1
func NewEpochSetups(t interface { mock.TestingT Cleanup(func()) }) *EpochSetups
NewEpochSetups creates a new instance of EpochSetups. 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 (*EpochSetups) ByID ¶
func (_m *EpochSetups) ByID(_a0 flow.Identifier) (*flow.EpochSetup, error)
ByID provides a mock function with given fields: _a0
func (*EpochSetups) StoreTx ¶
func (_m *EpochSetups) StoreTx(_a0 *flow.EpochSetup) func(*transaction.Tx) error
StoreTx provides a mock function with given fields: _a0
type Events ¶
Events is an autogenerated mock type for the Events type
func NewEvents ¶ added in v0.26.1
NewEvents creates a new instance of Events. 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 (*Events) BatchRemoveByBlockID ¶ added in v0.30.0
func (_m *Events) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
BatchRemoveByBlockID provides a mock function with given fields: blockID, batch
func (*Events) BatchStore ¶ added in v0.15.0
func (_m *Events) BatchStore(blockID flow.Identifier, events []flow.EventsList, batch storage.BatchStorage) error
BatchStore provides a mock function with given fields: blockID, events, batch
func (*Events) ByBlockIDEventType ¶
func (_m *Events) ByBlockIDEventType(blockID flow.Identifier, eventType flow.EventType) ([]flow.Event, error)
ByBlockIDEventType provides a mock function with given fields: blockID, eventType
func (*Events) ByBlockIDTransactionID ¶
func (_m *Events) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) ([]flow.Event, error)
ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID
func (*Events) ByBlockIDTransactionIndex ¶ added in v0.24.8
func (_m *Events) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) ([]flow.Event, error)
ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex
func (*Events) Store ¶
func (_m *Events) Store(blockID flow.Identifier, blockEvents []flow.EventsList) error
Store provides a mock function with given fields: blockID, blockEvents
type ExecutionReceipts ¶
ExecutionReceipts is an autogenerated mock type for the ExecutionReceipts type
func NewExecutionReceipts ¶ added in v0.26.1
func NewExecutionReceipts(t interface { mock.TestingT Cleanup(func()) }) *ExecutionReceipts
NewExecutionReceipts creates a new instance of ExecutionReceipts. 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 (*ExecutionReceipts) BatchStore ¶ added in v0.15.1
func (_m *ExecutionReceipts) BatchStore(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) error
BatchStore provides a mock function with given fields: receipt, batch
func (*ExecutionReceipts) ByBlockID ¶
func (_m *ExecutionReceipts) ByBlockID(blockID flow.Identifier) (flow.ExecutionReceiptList, error)
ByBlockID provides a mock function with given fields: blockID
func (*ExecutionReceipts) ByID ¶
func (_m *ExecutionReceipts) ByID(receiptID flow.Identifier) (*flow.ExecutionReceipt, error)
ByID provides a mock function with given fields: receiptID
func (*ExecutionReceipts) Store ¶
func (_m *ExecutionReceipts) Store(receipt *flow.ExecutionReceipt) error
Store provides a mock function with given fields: receipt
type ExecutionResults ¶
ExecutionResults is an autogenerated mock type for the ExecutionResults type
func NewExecutionResults ¶ added in v0.26.1
func NewExecutionResults(t interface { mock.TestingT Cleanup(func()) }) *ExecutionResults
NewExecutionResults creates a new instance of ExecutionResults. 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 (*ExecutionResults) BatchIndex ¶ added in v0.15.0
func (_m *ExecutionResults) BatchIndex(blockID flow.Identifier, resultID flow.Identifier, batch storage.BatchStorage) error
BatchIndex provides a mock function with given fields: blockID, resultID, batch
func (*ExecutionResults) BatchRemoveIndexByBlockID ¶ added in v0.30.0
func (_m *ExecutionResults) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
BatchRemoveIndexByBlockID provides a mock function with given fields: blockID, batch
func (*ExecutionResults) BatchStore ¶ added in v0.15.0
func (_m *ExecutionResults) BatchStore(result *flow.ExecutionResult, batch storage.BatchStorage) error
BatchStore provides a mock function with given fields: result, batch
func (*ExecutionResults) ByBlockID ¶
func (_m *ExecutionResults) ByBlockID(blockID flow.Identifier) (*flow.ExecutionResult, error)
ByBlockID provides a mock function with given fields: blockID
func (*ExecutionResults) ByID ¶
func (_m *ExecutionResults) ByID(resultID flow.Identifier) (*flow.ExecutionResult, error)
ByID provides a mock function with given fields: resultID
func (*ExecutionResults) ByIDTx ¶ added in v0.23.2
func (_m *ExecutionResults) ByIDTx(resultID flow.Identifier) func(*transaction.Tx) (*flow.ExecutionResult, error)
ByIDTx provides a mock function with given fields: resultID
func (*ExecutionResults) ForceIndex ¶ added in v0.21.0
func (_m *ExecutionResults) ForceIndex(blockID flow.Identifier, resultID flow.Identifier) error
ForceIndex provides a mock function with given fields: blockID, resultID
func (*ExecutionResults) Index ¶
func (_m *ExecutionResults) Index(blockID flow.Identifier, resultID flow.Identifier) error
Index provides a mock function with given fields: blockID, resultID
func (*ExecutionResults) Store ¶
func (_m *ExecutionResults) Store(result *flow.ExecutionResult) error
Store provides a mock function with given fields: result
type Guarantees ¶
Guarantees is an autogenerated mock type for the Guarantees type
func NewGuarantees ¶ added in v0.26.1
func NewGuarantees(t interface { mock.TestingT Cleanup(func()) }) *Guarantees
NewGuarantees creates a new instance of Guarantees. 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 (*Guarantees) ByCollectionID ¶
func (_m *Guarantees) ByCollectionID(collID flow.Identifier) (*flow.CollectionGuarantee, error)
ByCollectionID provides a mock function with given fields: collID
func (*Guarantees) Store ¶
func (_m *Guarantees) Store(guarantee *flow.CollectionGuarantee) error
Store provides a mock function with given fields: guarantee
type Headers ¶
Headers is an autogenerated mock type for the Headers type
func NewHeaders ¶ added in v0.26.1
NewHeaders creates a new instance of Headers. 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 (*Headers) BlockIDByHeight ¶ added in v0.30.0
func (_m *Headers) BlockIDByHeight(height uint64) (flow.Identifier, error)
BlockIDByHeight provides a mock function with given fields: height
func (*Headers) ByParentID ¶
ByParentID provides a mock function with given fields: parentID
type HeightIndex ¶ added in v0.32.0
HeightIndex is an autogenerated mock type for the HeightIndex type
func NewHeightIndex ¶ added in v0.32.0
func NewHeightIndex(t interface { mock.TestingT Cleanup(func()) }) *HeightIndex
NewHeightIndex creates a new instance of HeightIndex. 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 (*HeightIndex) FirstHeight ¶ added in v0.32.0
func (_m *HeightIndex) FirstHeight() (uint64, error)
FirstHeight provides a mock function with given fields:
func (*HeightIndex) LatestHeight ¶ added in v0.32.0
func (_m *HeightIndex) LatestHeight() (uint64, error)
LatestHeight provides a mock function with given fields:
func (*HeightIndex) SetLatestHeight ¶ added in v0.32.0
func (_m *HeightIndex) SetLatestHeight(height uint64) error
SetLatestHeight provides a mock function with given fields: height
type Index ¶
Index is an autogenerated mock type for the Index type
func NewIndex ¶ added in v0.26.1
NewIndex creates a new instance of Index. 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.
type Ledger ¶
Ledger is an autogenerated mock type for the Ledger type
func NewLedger ¶ added in v0.26.1
NewLedger creates a new instance of Ledger. 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 (*Ledger) EmptyStateCommitment ¶
func (_m *Ledger) EmptyStateCommitment() flow.StateCommitment
EmptyStateCommitment provides a mock function with given fields:
func (*Ledger) GetRegisters ¶
func (_m *Ledger) GetRegisters(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([][]byte, error)
GetRegisters provides a mock function with given fields: registerIDs, stateCommitment
func (*Ledger) GetRegistersWithProof ¶
func (_m *Ledger) GetRegistersWithProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([][]byte, [][]byte, error)
GetRegistersWithProof provides a mock function with given fields: registerIDs, stateCommitment
func (*Ledger) UpdateRegisters ¶
func (_m *Ledger) UpdateRegisters(registerIDs []flow.RegisterID, values [][]byte, stateCommitment flow.StateCommitment) (flow.StateCommitment, error)
UpdateRegisters provides a mock function with given fields: registerIDs, values, stateCommitment
func (*Ledger) UpdateRegistersWithProof ¶
func (_m *Ledger) UpdateRegistersWithProof(registerIDs []flow.RegisterID, values [][]byte, stateCommitment flow.StateCommitment) (flow.StateCommitment, [][]byte, error)
UpdateRegistersWithProof provides a mock function with given fields: registerIDs, values, stateCommitment
type LedgerVerifier ¶
LedgerVerifier is an autogenerated mock type for the LedgerVerifier type
func NewLedgerVerifier ¶ added in v0.26.1
func NewLedgerVerifier(t interface { mock.TestingT Cleanup(func()) }) *LedgerVerifier
NewLedgerVerifier creates a new instance of LedgerVerifier. 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 (*LedgerVerifier) VerifyRegistersProof ¶
func (_m *LedgerVerifier) VerifyRegistersProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment, values [][]byte, proof [][]byte) (bool, error)
VerifyRegistersProof provides a mock function with given fields: registerIDs, stateCommitment, values, proof
type LightTransactionResults ¶ added in v0.32.0
LightTransactionResults is an autogenerated mock type for the LightTransactionResults type
func NewLightTransactionResults ¶ added in v0.32.0
func NewLightTransactionResults(t interface { mock.TestingT Cleanup(func()) }) *LightTransactionResults
NewLightTransactionResults creates a new instance of LightTransactionResults. 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 (*LightTransactionResults) BatchStore ¶ added in v0.32.0
func (_m *LightTransactionResults) BatchStore(blockID flow.Identifier, transactionResults []flow.LightTransactionResult, batch storage.BatchStorage) error
BatchStore provides a mock function with given fields: blockID, transactionResults, batch
func (*LightTransactionResults) ByBlockID ¶ added in v0.32.0
func (_m *LightTransactionResults) ByBlockID(id flow.Identifier) ([]flow.LightTransactionResult, error)
ByBlockID provides a mock function with given fields: id
func (*LightTransactionResults) ByBlockIDTransactionID ¶ added in v0.32.0
func (_m *LightTransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.LightTransactionResult, error)
ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID
func (*LightTransactionResults) ByBlockIDTransactionIndex ¶ added in v0.32.0
func (_m *LightTransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.LightTransactionResult, error)
ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex
type MyExecutionReceipts ¶ added in v0.15.0
MyExecutionReceipts is an autogenerated mock type for the MyExecutionReceipts type
func NewMyExecutionReceipts ¶ added in v0.26.1
func NewMyExecutionReceipts(t interface { mock.TestingT Cleanup(func()) }) *MyExecutionReceipts
NewMyExecutionReceipts creates a new instance of MyExecutionReceipts. 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 (*MyExecutionReceipts) BatchRemoveIndexByBlockID ¶ added in v0.30.0
func (_m *MyExecutionReceipts) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
BatchRemoveIndexByBlockID provides a mock function with given fields: blockID, batch
func (*MyExecutionReceipts) BatchStoreMyReceipt ¶ added in v0.15.1
func (_m *MyExecutionReceipts) BatchStoreMyReceipt(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) error
BatchStoreMyReceipt provides a mock function with given fields: receipt, batch
func (*MyExecutionReceipts) MyReceipt ¶ added in v0.15.0
func (_m *MyExecutionReceipts) MyReceipt(blockID flow.Identifier) (*flow.ExecutionReceipt, error)
MyReceipt provides a mock function with given fields: blockID
func (*MyExecutionReceipts) StoreMyReceipt ¶ added in v0.15.0
func (_m *MyExecutionReceipts) StoreMyReceipt(receipt *flow.ExecutionReceipt) error
StoreMyReceipt provides a mock function with given fields: receipt
type Payloads ¶
Payloads is an autogenerated mock type for the Payloads type
func NewPayloads ¶ added in v0.26.1
NewPayloads creates a new instance of Payloads. 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.
type ProtocolKVStore ¶ added in v0.33.30
ProtocolKVStore is an autogenerated mock type for the ProtocolKVStore type
func NewProtocolKVStore ¶ added in v0.33.30
func NewProtocolKVStore(t interface { mock.TestingT Cleanup(func()) }) *ProtocolKVStore
NewProtocolKVStore creates a new instance of ProtocolKVStore. 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 (*ProtocolKVStore) ByBlockID ¶ added in v0.33.30
func (_m *ProtocolKVStore) ByBlockID(blockID flow.Identifier) (*flow.PSKeyValueStoreData, error)
ByBlockID provides a mock function with given fields: blockID
func (*ProtocolKVStore) ByID ¶ added in v0.33.30
func (_m *ProtocolKVStore) ByID(id flow.Identifier) (*flow.PSKeyValueStoreData, error)
ByID provides a mock function with given fields: id
func (*ProtocolKVStore) IndexTx ¶ added in v0.33.30
func (_m *ProtocolKVStore) IndexTx(blockID flow.Identifier, stateID flow.Identifier) func(*transaction.Tx) error
IndexTx provides a mock function with given fields: blockID, stateID
func (*ProtocolKVStore) StoreTx ¶ added in v0.33.30
func (_m *ProtocolKVStore) StoreTx(stateID flow.Identifier, data *flow.PSKeyValueStoreData) func(*transaction.Tx) error
StoreTx provides a mock function with given fields: stateID, data
type QuorumCertificates ¶ added in v0.30.0
QuorumCertificates is an autogenerated mock type for the QuorumCertificates type
func NewQuorumCertificates ¶ added in v0.30.0
func NewQuorumCertificates(t interface { mock.TestingT Cleanup(func()) }) *QuorumCertificates
NewQuorumCertificates creates a new instance of QuorumCertificates. 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 (*QuorumCertificates) ByBlockID ¶ added in v0.30.0
func (_m *QuorumCertificates) ByBlockID(blockID flow.Identifier) (*flow.QuorumCertificate, error)
ByBlockID provides a mock function with given fields: blockID
func (*QuorumCertificates) StoreTx ¶ added in v0.30.0
func (_m *QuorumCertificates) StoreTx(qc *flow.QuorumCertificate) func(*transaction.Tx) error
StoreTx provides a mock function with given fields: qc
type RegisterIndex ¶ added in v0.32.0
RegisterIndex is an autogenerated mock type for the RegisterIndex type
func NewRegisterIndex ¶ added in v0.32.0
func NewRegisterIndex(t interface { mock.TestingT Cleanup(func()) }) *RegisterIndex
NewRegisterIndex creates a new instance of RegisterIndex. 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 (*RegisterIndex) FirstHeight ¶ added in v0.32.0
func (_m *RegisterIndex) FirstHeight() uint64
FirstHeight provides a mock function with given fields:
func (*RegisterIndex) Get ¶ added in v0.32.0
func (_m *RegisterIndex) Get(ID flow.RegisterID, height uint64) ([]byte, error)
Get provides a mock function with given fields: ID, height
func (*RegisterIndex) LatestHeight ¶ added in v0.32.0
func (_m *RegisterIndex) LatestHeight() uint64
LatestHeight provides a mock function with given fields:
func (*RegisterIndex) Store ¶ added in v0.32.0
func (_m *RegisterIndex) Store(entries flow.RegisterEntries, height uint64) error
Store provides a mock function with given fields: entries, height
type ResultApprovals ¶ added in v0.14.0
ResultApprovals is an autogenerated mock type for the ResultApprovals type
func NewResultApprovals ¶ added in v0.26.1
func NewResultApprovals(t interface { mock.TestingT Cleanup(func()) }) *ResultApprovals
NewResultApprovals creates a new instance of ResultApprovals. 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 (*ResultApprovals) ByChunk ¶ added in v0.14.0
func (_m *ResultApprovals) ByChunk(resultID flow.Identifier, chunkIndex uint64) (*flow.ResultApproval, error)
ByChunk provides a mock function with given fields: resultID, chunkIndex
func (*ResultApprovals) ByID ¶ added in v0.14.0
func (_m *ResultApprovals) ByID(approvalID flow.Identifier) (*flow.ResultApproval, error)
ByID provides a mock function with given fields: approvalID
func (*ResultApprovals) Index ¶ added in v0.14.0
func (_m *ResultApprovals) Index(resultID flow.Identifier, chunkIndex uint64, approvalID flow.Identifier) error
Index provides a mock function with given fields: resultID, chunkIndex, approvalID
func (*ResultApprovals) Store ¶ added in v0.14.0
func (_m *ResultApprovals) Store(result *flow.ResultApproval) error
Store provides a mock function with given fields: result
type SafeBeaconKeys ¶ added in v0.23.9
SafeBeaconKeys is an autogenerated mock type for the SafeBeaconKeys type
func NewSafeBeaconKeys ¶ added in v0.26.1
func NewSafeBeaconKeys(t interface { mock.TestingT Cleanup(func()) }) *SafeBeaconKeys
NewSafeBeaconKeys creates a new instance of SafeBeaconKeys. 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 (*SafeBeaconKeys) RetrieveMyBeaconPrivateKey ¶ added in v0.23.9
func (_m *SafeBeaconKeys) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)
RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter
type Seals ¶
Seals is an autogenerated mock type for the Seals type
func NewSeals ¶ added in v0.26.1
NewSeals creates a new instance of Seals. 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 (*Seals) FinalizedSealForBlock ¶ added in v0.26.6
FinalizedSealForBlock provides a mock function with given fields: blockID
func (*Seals) HighestInFork ¶ added in v0.26.6
HighestInFork provides a mock function with given fields: blockID
type ServiceEvents ¶ added in v0.14.0
ServiceEvents is an autogenerated mock type for the ServiceEvents type
func NewServiceEvents ¶ added in v0.26.1
func NewServiceEvents(t interface { mock.TestingT Cleanup(func()) }) *ServiceEvents
NewServiceEvents creates a new instance of ServiceEvents. 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 (*ServiceEvents) BatchRemoveByBlockID ¶ added in v0.30.0
func (_m *ServiceEvents) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error
BatchRemoveByBlockID provides a mock function with given fields: blockID, batch
func (*ServiceEvents) BatchStore ¶ added in v0.15.0
func (_m *ServiceEvents) BatchStore(blockID flow.Identifier, events []flow.Event, batch storage.BatchStorage) error
BatchStore provides a mock function with given fields: blockID, events, batch
func (*ServiceEvents) ByBlockID ¶ added in v0.14.0
func (_m *ServiceEvents) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)
ByBlockID provides a mock function with given fields: blockID
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func (*Storage) GetRegisters ¶
GetRegisters provides a mock function with given fields: registerIDs, stateCommitment
func (*Storage) GetRegistersWithProof ¶
func (_m *Storage) GetRegistersWithProof(registerIDs [][]byte, stateCommitment []byte) ([][]byte, [][]byte, error)
GetRegistersWithProof provides a mock function with given fields: registerIDs, stateCommitment
func (*Storage) LatestStateCommitment ¶
LatestStateCommitment provides a mock function with given fields:
func (*Storage) UpdateRegisters ¶
UpdateRegisters provides a mock function with given fields: registerIDs, values
type Transaction ¶ added in v0.15.2
Transaction is an autogenerated mock type for the Transaction type
func NewTransaction ¶ added in v0.26.1
func NewTransaction(t interface { mock.TestingT Cleanup(func()) }) *Transaction
NewTransaction creates a new instance of Transaction. 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.
type TransactionResults ¶
TransactionResults is an autogenerated mock type for the TransactionResults type
func NewTransactionResults ¶ added in v0.26.1
func NewTransactionResults(t interface { mock.TestingT Cleanup(func()) }) *TransactionResults
NewTransactionResults creates a new instance of TransactionResults. 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 (*TransactionResults) BatchStore ¶
func (_m *TransactionResults) BatchStore(blockID flow.Identifier, transactionResults []flow.TransactionResult, batch storage.BatchStorage) error
BatchStore provides a mock function with given fields: blockID, transactionResults, batch
func (*TransactionResults) ByBlockID ¶ added in v0.24.11
func (_m *TransactionResults) ByBlockID(id flow.Identifier) ([]flow.TransactionResult, error)
ByBlockID provides a mock function with given fields: id
func (*TransactionResults) ByBlockIDTransactionID ¶
func (_m *TransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResult, error)
ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID
func (*TransactionResults) ByBlockIDTransactionIndex ¶ added in v0.24.8
func (_m *TransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResult, error)
ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex
type Transactions ¶
Transactions is an autogenerated mock type for the Transactions type
func NewTransactions ¶ added in v0.26.1
func NewTransactions(t interface { mock.TestingT Cleanup(func()) }) *Transactions
NewTransactions creates a new instance of Transactions. 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 (*Transactions) ByID ¶
func (_m *Transactions) ByID(txID flow.Identifier) (*flow.TransactionBody, error)
ByID provides a mock function with given fields: txID
func (*Transactions) Store ¶
func (_m *Transactions) Store(tx *flow.TransactionBody) error
Store provides a mock function with given fields: tx
type VersionBeacons ¶ added in v0.31.0
VersionBeacons is an autogenerated mock type for the VersionBeacons type
func NewVersionBeacons ¶ added in v0.31.0
func NewVersionBeacons(t interface { mock.TestingT Cleanup(func()) }) *VersionBeacons
NewVersionBeacons creates a new instance of VersionBeacons. 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 (*VersionBeacons) Highest ¶ added in v0.31.0
func (_m *VersionBeacons) Highest(belowOrEqualTo uint64) (*flow.SealedVersionBeacon, error)
Highest provides a mock function with given fields: belowOrEqualTo
Source Files ¶
- batch_storage.go
- beacon_private_keys.go
- blocks.go
- chunk_data_packs.go
- chunks_queue.go
- cluster_blocks.go
- cluster_payloads.go
- collections.go
- commits.go
- computation_result_upload_status.go
- consumer_progress.go
- deferred_db_update.go
- dkg_state.go
- epoch_commits.go
- epoch_protocol_state_entries.go
- epoch_setups.go
- events.go
- execution_receipts.go
- execution_results.go
- guarantees.go
- headers.go
- height_index.go
- index.go
- job.go
- ledger.go
- ledger_verifier.go
- light_transaction_results.go
- my_execution_receipts.go
- payloads.go
- protocol_kv_store.go
- quorum_certificates.go
- register_index.go
- result_approvals.go
- safe_beacon_keys.go
- seals.go
- service_events.go
- storage.go
- transaction.go
- transaction_results.go
- transactions.go
- verifier.go
- version_beacons.go
- views.go