Documentation
¶
Index ¶
- 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) GetLastFullBlockHeight() (uint64, 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(*badger.Txn) error
- func (_m *Blocks) UpdateLastFullBlockHeight(height uint64) error
- type ChunkDataPacks
- type Cleaner
- 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
- type EpochCommits
- type EpochSetups
- type EpochStates
- type EpochStatuses
- type Events
- 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) Store(blockID flow.Identifier, events []flow.Event) error
- type ExecutionReceipts
- func (_m *ExecutionReceipts) ByBlockID(blockID flow.Identifier) (*flow.ExecutionReceipt, error)
- func (_m *ExecutionReceipts) ByBlockIDAllExecutionReceipts(blockID flow.Identifier) ([]flow.ExecutionReceipt, error)
- func (_m *ExecutionReceipts) ByID(resultID flow.Identifier) (*flow.ExecutionReceipt, error)
- func (_m *ExecutionReceipts) Index(blockID flow.Identifier, resultID flow.Identifier) error
- func (_m *ExecutionReceipts) IndexByBlockIDAndExecutionID(blockID flow.Identifier, executorID flow.Identifier, resultID flow.Identifier) error
- func (_m *ExecutionReceipts) Store(result *flow.ExecutionReceipt) error
- type ExecutionResults
- func (_m *ExecutionResults) ByBlockID(blockID flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *ExecutionResults) ByID(resultID flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *ExecutionResults) Index(blockID flow.Identifier, resultID flow.Identifier) error
- func (_m *ExecutionResults) Store(result *flow.ExecutionResult) error
- type Guarantees
- type Headers
- type Identities
- type Index
- type Ledger
- func (_m *Ledger) DiskSize() (int64, error)
- func (_m *Ledger) Done() <-chan struct{}
- func (_m *Ledger) EmptyStateCommitment() []byte
- func (_m *Ledger) GetRegisters(registerIDs []flow.RegisterID, stateCommitment []byte) ([][]byte, error)
- func (_m *Ledger) GetRegistersWithProof(registerIDs []flow.RegisterID, stateCommitment []byte) ([][]byte, [][]byte, error)
- func (_m *Ledger) Ready() <-chan struct{}
- func (_m *Ledger) UpdateRegisters(registerIDs []flow.RegisterID, values [][]byte, stateCommitment []byte) ([]byte, error)
- func (_m *Ledger) UpdateRegistersWithProof(registerIDs []flow.RegisterID, values [][]byte, stateCommitment []byte) ([]byte, [][]byte, error)
- type LedgerVerifier
- type Payloads
- 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 Seals
- type ServiceEvents
- 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 TransactionResults
- func (_m *TransactionResults) BatchStore(blockID flow.Identifier, transactionResults []flow.TransactionResult) error
- func (_m *TransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResult, error)
- func (_m *TransactionResults) Store(blockID flow.Identifier, transactionResult *flow.TransactionResult) error
- type Transactions
- type Verifier
- type Views
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blocks ¶
Blocks is an autogenerated mock type for the Blocks type
func (*Blocks) ByCollectionID ¶
ByCollectionID provides a mock function with given fields: collID
func (*Blocks) GetLastFullBlockHeight ¶
GetLastFullBlockHeight provides a mock function with given fields:
func (*Blocks) IndexBlockForCollections ¶
func (_m *Blocks) IndexBlockForCollections(blockID flow.Identifier, collIDs []flow.Identifier) error
IndexBlockForCollections provides a mock function with given fields: blockID, collIDs
func (*Blocks) UpdateLastFullBlockHeight ¶
UpdateLastFullBlockHeight provides a mock function with given fields: height
type ChunkDataPacks ¶
ChunkDataPacks is an autogenerated mock type for the ChunkDataPacks type
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(chunkID flow.Identifier) error
Remove provides a mock function with given fields: chunkID
func (*ChunkDataPacks) Store ¶
func (_m *ChunkDataPacks) Store(c *flow.ChunkDataPack) error
Store provides a mock function with given fields: c
type ClusterBlocks ¶
ClusterBlocks is an autogenerated mock type for the ClusterBlocks type
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 (*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 (*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
type EpochCommits ¶
EpochCommits is an autogenerated mock type for the EpochCommits type
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(*badger.Txn) error
StoreTx provides a mock function with given fields: commit
type EpochSetups ¶
EpochSetups is an autogenerated mock type for the EpochSetups type
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(*badger.Txn) error
StoreTx provides a mock function with given fields: _a0
type EpochStates ¶
EpochStates is an autogenerated mock type for the EpochStates type
func (*EpochStates) ByBlockID ¶
func (_m *EpochStates) ByBlockID(_a0 flow.Identifier) (*flow.EpochStatus, error)
ByBlockID provides a mock function with given fields: _a0
func (*EpochStates) StoreTx ¶
func (_m *EpochStates) StoreTx(blockID flow.Identifier, state *flow.EpochStatus) func(*badger.Txn) error
StoreTx provides a mock function with given fields: blockID, state
type EpochStatuses ¶
EpochStatuses is an autogenerated mock type for the EpochStatuses type
func (*EpochStatuses) ByBlockID ¶
func (_m *EpochStatuses) ByBlockID(_a0 flow.Identifier) (*flow.EpochStatus, error)
ByBlockID provides a mock function with given fields: _a0
func (*EpochStatuses) StoreTx ¶
func (_m *EpochStatuses) StoreTx(blockID flow.Identifier, state *flow.EpochStatus) func(*badger.Txn) error
StoreTx provides a mock function with given fields: blockID, state
type Events ¶
Events is an autogenerated mock type for the Events type
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
type ExecutionReceipts ¶
ExecutionReceipts is an autogenerated mock type for the ExecutionReceipts type
func (*ExecutionReceipts) ByBlockID ¶
func (_m *ExecutionReceipts) ByBlockID(blockID flow.Identifier) (*flow.ExecutionReceipt, error)
ByBlockID provides a mock function with given fields: blockID
func (*ExecutionReceipts) ByBlockIDAllExecutionReceipts ¶ added in v0.14.0
func (_m *ExecutionReceipts) ByBlockIDAllExecutionReceipts(blockID flow.Identifier) ([]flow.ExecutionReceipt, error)
ByBlockIDAllExecutionReceipts provides a mock function with given fields: blockID
func (*ExecutionReceipts) ByID ¶
func (_m *ExecutionReceipts) ByID(resultID flow.Identifier) (*flow.ExecutionReceipt, error)
ByID provides a mock function with given fields: resultID
func (*ExecutionReceipts) Index ¶
func (_m *ExecutionReceipts) Index(blockID flow.Identifier, resultID flow.Identifier) error
Index provides a mock function with given fields: blockID, resultID
func (*ExecutionReceipts) IndexByBlockIDAndExecutionID ¶ added in v0.14.0
func (_m *ExecutionReceipts) IndexByBlockIDAndExecutionID(blockID flow.Identifier, executorID flow.Identifier, resultID flow.Identifier) error
IndexByBlockIDAndExecutionID provides a mock function with given fields: blockID, executorID, resultID
func (*ExecutionReceipts) Store ¶
func (_m *ExecutionReceipts) Store(result *flow.ExecutionReceipt) error
Store provides a mock function with given fields: result
type ExecutionResults ¶
ExecutionResults is an autogenerated mock type for the ExecutionResults type
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) 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 (*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 (*Headers) ByParentID ¶
ByParentID provides a mock function with given fields: parentID
type Identities ¶
Identities is an autogenerated mock type for the Identities type
func (*Identities) ByNodeID ¶
func (_m *Identities) ByNodeID(nodeID flow.Identifier) (*flow.Identity, error)
ByNodeID provides a mock function with given fields: nodeID
type Index ¶
Index is an autogenerated mock type for the Index type
type Ledger ¶
Ledger is an autogenerated mock type for the Ledger type
func (*Ledger) Done ¶
func (_m *Ledger) Done() <-chan struct{}
Done provides a mock function with given fields:
func (*Ledger) EmptyStateCommitment ¶
EmptyStateCommitment provides a mock function with given fields:
func (*Ledger) GetRegisters ¶
func (_m *Ledger) GetRegisters(registerIDs []flow.RegisterID, stateCommitment []byte) ([][]byte, error)
GetRegisters provides a mock function with given fields: registerIDs, stateCommitment
func (*Ledger) GetRegistersWithProof ¶
func (_m *Ledger) GetRegistersWithProof(registerIDs []flow.RegisterID, stateCommitment []byte) ([][]byte, [][]byte, error)
GetRegistersWithProof provides a mock function with given fields: registerIDs, stateCommitment
func (*Ledger) Ready ¶
func (_m *Ledger) Ready() <-chan struct{}
Ready provides a mock function with given fields:
func (*Ledger) UpdateRegisters ¶
func (_m *Ledger) UpdateRegisters(registerIDs []flow.RegisterID, values [][]byte, stateCommitment []byte) ([]byte, 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 []byte) ([]byte, [][]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 (*LedgerVerifier) VerifyRegistersProof ¶
func (_m *LedgerVerifier) VerifyRegistersProof(registerIDs []flow.RegisterID, stateCommitment []byte, values [][]byte, proof [][]byte) (bool, error)
VerifyRegistersProof provides a mock function with given fields: registerIDs, stateCommitment, values, proof
type Payloads ¶
Payloads is an autogenerated mock type for the Payloads type
type ResultApprovals ¶ added in v0.14.0
ResultApprovals is an autogenerated mock type for the ResultApprovals type
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 Seals ¶
Seals is an autogenerated mock type for the Seals type
type ServiceEvents ¶ added in v0.14.0
ServiceEvents is an autogenerated mock type for the ServiceEvents type
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
func (*ServiceEvents) Store ¶ added in v0.14.0
func (_m *ServiceEvents) Store(blockID flow.Identifier, events []flow.Event) error
Store provides a mock function with given fields: blockID, events
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 TransactionResults ¶
TransactionResults is an autogenerated mock type for the TransactionResults type
func (*TransactionResults) BatchStore ¶
func (_m *TransactionResults) BatchStore(blockID flow.Identifier, transactionResults []flow.TransactionResult) error
BatchStore provides a mock function with given fields: blockID, transactionResults
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) Store ¶
func (_m *TransactionResults) Store(blockID flow.Identifier, transactionResult *flow.TransactionResult) error
Store provides a mock function with given fields: blockID, transactionResult
type Transactions ¶
Transactions is an autogenerated mock type for the Transactions type
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
Source Files
¶
- blocks.go
- chunk_data_packs.go
- cleaner.go
- cluster_blocks.go
- cluster_payloads.go
- collections.go
- commits.go
- epoch_commits.go
- epoch_setups.go
- epoch_states.go
- epoch_statuses.go
- events.go
- execution_receipts.go
- execution_results.go
- guarantees.go
- headers.go
- identities.go
- index.go
- ledger.go
- ledger_verifier.go
- payloads.go
- result_approvals.go
- seals.go
- service_events.go
- storage.go
- transaction_results.go
- transactions.go
- verifier.go
- views.go