Documentation ¶
Index ¶
- type ExecutedFinalizedWAL
- type ExtendableStorageSnapshot
- func (_m *ExtendableStorageSnapshot) Commitment() flow.StateCommitment
- func (_m *ExtendableStorageSnapshot) Extend(newCommit flow.StateCommitment, updatedRegisters map[flow.RegisterID][]byte) execution.ExtendableStorageSnapshot
- func (_m *ExtendableStorageSnapshot) Get(id flow.RegisterID) ([]byte, error)
- type FinalizedReader
- type InMemoryRegisterStore
- func (_m *InMemoryRegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) ([]byte, error)
- func (_m *InMemoryRegisterStore) GetUpdatedRegisters(height uint64, blockID flow.Identifier) (flow.RegisterEntries, error)
- func (_m *InMemoryRegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
- func (_m *InMemoryRegisterStore) Prune(finalizedHeight uint64, finalizedBlockID flow.Identifier) error
- func (_m *InMemoryRegisterStore) PrunedHeight() uint64
- func (_m *InMemoryRegisterStore) SaveRegisters(height uint64, blockID flow.Identifier, parentID flow.Identifier, ...) error
- type RegisterStore
- func (_m *RegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) ([]byte, error)
- func (_m *RegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
- func (_m *RegisterStore) LastFinalizedAndExecutedHeight() uint64
- func (_m *RegisterStore) OnBlockFinalized() error
- func (_m *RegisterStore) SaveRegisters(header *flow.Header, registers flow.RegisterEntries) error
- type RegisterStoreNotifier
- type ScriptExecutor
- func (_m *ScriptExecutor) ExecuteScriptAtBlockID(ctx context.Context, script []byte, arguments [][]byte, ...) ([]byte, uint64, error)
- func (_m *ScriptExecutor) GetAccount(ctx context.Context, address flow.Address, blockID flow.Identifier) (*flow.Account, error)
- func (_m *ScriptExecutor) GetRegisterAtBlockID(ctx context.Context, owner []byte, key []byte, blockID flow.Identifier) ([]byte, error)
- type WALReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutedFinalizedWAL ¶ added in v0.33.1
ExecutedFinalizedWAL is an autogenerated mock type for the ExecutedFinalizedWAL type
func NewExecutedFinalizedWAL ¶ added in v0.33.1
func NewExecutedFinalizedWAL(t mockConstructorTestingTNewExecutedFinalizedWAL) *ExecutedFinalizedWAL
NewExecutedFinalizedWAL creates a new instance of ExecutedFinalizedWAL. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExecutedFinalizedWAL) Append ¶ added in v0.33.1
func (_m *ExecutedFinalizedWAL) Append(height uint64, registers flow.RegisterEntries) error
Append provides a mock function with given fields: height, registers
func (*ExecutedFinalizedWAL) GetReader ¶ added in v0.33.1
func (_m *ExecutedFinalizedWAL) GetReader(height uint64) execution.WALReader
GetReader provides a mock function with given fields: height
func (*ExecutedFinalizedWAL) Latest ¶ added in v0.33.1
func (_m *ExecutedFinalizedWAL) Latest() (uint64, error)
Latest provides a mock function with given fields:
type ExtendableStorageSnapshot ¶ added in v0.33.1
ExtendableStorageSnapshot is an autogenerated mock type for the ExtendableStorageSnapshot type
func NewExtendableStorageSnapshot ¶ added in v0.33.1
func NewExtendableStorageSnapshot(t mockConstructorTestingTNewExtendableStorageSnapshot) *ExtendableStorageSnapshot
NewExtendableStorageSnapshot creates a new instance of ExtendableStorageSnapshot. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExtendableStorageSnapshot) Commitment ¶ added in v0.33.1
func (_m *ExtendableStorageSnapshot) Commitment() flow.StateCommitment
Commitment provides a mock function with given fields:
func (*ExtendableStorageSnapshot) Extend ¶ added in v0.33.1
func (_m *ExtendableStorageSnapshot) Extend(newCommit flow.StateCommitment, updatedRegisters map[flow.RegisterID][]byte) execution.ExtendableStorageSnapshot
Extend provides a mock function with given fields: newCommit, updatedRegisters
func (*ExtendableStorageSnapshot) Get ¶ added in v0.33.1
func (_m *ExtendableStorageSnapshot) Get(id flow.RegisterID) ([]byte, error)
Get provides a mock function with given fields: id
type FinalizedReader ¶ added in v0.33.1
FinalizedReader is an autogenerated mock type for the FinalizedReader type
func NewFinalizedReader ¶ added in v0.33.1
func NewFinalizedReader(t mockConstructorTestingTNewFinalizedReader) *FinalizedReader
NewFinalizedReader creates a new instance of FinalizedReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FinalizedReader) FinalizedBlockIDAtHeight ¶ added in v0.33.1
func (_m *FinalizedReader) FinalizedBlockIDAtHeight(height uint64) (flow.Identifier, error)
FinalizedBlockIDAtHeight provides a mock function with given fields: height
type InMemoryRegisterStore ¶ added in v0.33.1
InMemoryRegisterStore is an autogenerated mock type for the InMemoryRegisterStore type
func NewInMemoryRegisterStore ¶ added in v0.33.1
func NewInMemoryRegisterStore(t mockConstructorTestingTNewInMemoryRegisterStore) *InMemoryRegisterStore
NewInMemoryRegisterStore creates a new instance of InMemoryRegisterStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*InMemoryRegisterStore) GetRegister ¶ added in v0.33.1
func (_m *InMemoryRegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) ([]byte, error)
GetRegister provides a mock function with given fields: height, blockID, register
func (*InMemoryRegisterStore) GetUpdatedRegisters ¶ added in v0.33.1
func (_m *InMemoryRegisterStore) GetUpdatedRegisters(height uint64, blockID flow.Identifier) (flow.RegisterEntries, error)
GetUpdatedRegisters provides a mock function with given fields: height, blockID
func (*InMemoryRegisterStore) IsBlockExecuted ¶ added in v0.33.1
func (_m *InMemoryRegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
IsBlockExecuted provides a mock function with given fields: height, blockID
func (*InMemoryRegisterStore) Prune ¶ added in v0.33.1
func (_m *InMemoryRegisterStore) Prune(finalizedHeight uint64, finalizedBlockID flow.Identifier) error
Prune provides a mock function with given fields: finalizedHeight, finalizedBlockID
func (*InMemoryRegisterStore) PrunedHeight ¶ added in v0.33.1
func (_m *InMemoryRegisterStore) PrunedHeight() uint64
PrunedHeight provides a mock function with given fields:
func (*InMemoryRegisterStore) SaveRegisters ¶ added in v0.33.1
func (_m *InMemoryRegisterStore) SaveRegisters(height uint64, blockID flow.Identifier, parentID flow.Identifier, registers flow.RegisterEntries) error
SaveRegisters provides a mock function with given fields: height, blockID, parentID, registers
type RegisterStore ¶ added in v0.33.1
RegisterStore is an autogenerated mock type for the RegisterStore type
func NewRegisterStore ¶ added in v0.33.1
func NewRegisterStore(t mockConstructorTestingTNewRegisterStore) *RegisterStore
NewRegisterStore creates a new instance of RegisterStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RegisterStore) GetRegister ¶ added in v0.33.1
func (_m *RegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) ([]byte, error)
GetRegister provides a mock function with given fields: height, blockID, register
func (*RegisterStore) IsBlockExecuted ¶ added in v0.33.1
func (_m *RegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
IsBlockExecuted provides a mock function with given fields: height, blockID
func (*RegisterStore) LastFinalizedAndExecutedHeight ¶ added in v0.33.1
func (_m *RegisterStore) LastFinalizedAndExecutedHeight() uint64
LastFinalizedAndExecutedHeight provides a mock function with given fields:
func (*RegisterStore) OnBlockFinalized ¶ added in v0.33.1
func (_m *RegisterStore) OnBlockFinalized() error
OnBlockFinalized provides a mock function with given fields:
func (*RegisterStore) SaveRegisters ¶ added in v0.33.1
func (_m *RegisterStore) SaveRegisters(header *flow.Header, registers flow.RegisterEntries) error
SaveRegisters provides a mock function with given fields: header, registers
type RegisterStoreNotifier ¶ added in v0.33.1
RegisterStoreNotifier is an autogenerated mock type for the RegisterStoreNotifier type
func NewRegisterStoreNotifier ¶ added in v0.33.1
func NewRegisterStoreNotifier(t mockConstructorTestingTNewRegisterStoreNotifier) *RegisterStoreNotifier
NewRegisterStoreNotifier creates a new instance of RegisterStoreNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RegisterStoreNotifier) OnFinalizedAndExecutedHeightUpdated ¶ added in v0.33.1
func (_m *RegisterStoreNotifier) OnFinalizedAndExecutedHeightUpdated(height uint64)
OnFinalizedAndExecutedHeightUpdated provides a mock function with given fields: height
type ScriptExecutor ¶
ScriptExecutor is an autogenerated mock type for the ScriptExecutor type
func NewScriptExecutor ¶
func NewScriptExecutor(t mockConstructorTestingTNewScriptExecutor) *ScriptExecutor
NewScriptExecutor creates a new instance of ScriptExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScriptExecutor) ExecuteScriptAtBlockID ¶
func (_m *ScriptExecutor) ExecuteScriptAtBlockID(ctx context.Context, script []byte, arguments [][]byte, blockID flow.Identifier) ([]byte, uint64, error)
ExecuteScriptAtBlockID provides a mock function with given fields: ctx, script, arguments, blockID
func (*ScriptExecutor) GetAccount ¶
func (_m *ScriptExecutor) GetAccount(ctx context.Context, address flow.Address, blockID flow.Identifier) (*flow.Account, error)
GetAccount provides a mock function with given fields: ctx, address, blockID
func (*ScriptExecutor) GetRegisterAtBlockID ¶
func (_m *ScriptExecutor) GetRegisterAtBlockID(ctx context.Context, owner []byte, key []byte, blockID flow.Identifier) ([]byte, error)
GetRegisterAtBlockID provides a mock function with given fields: ctx, owner, key, blockID
type WALReader ¶ added in v0.33.1
WALReader is an autogenerated mock type for the WALReader type
func NewWALReader ¶ added in v0.33.1
func NewWALReader(t mockConstructorTestingTNewWALReader) *WALReader
NewWALReader creates a new instance of WALReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.