Documentation ¶
Index ¶
- type ExecutionState
- func (_m *ExecutionState) ChunkDataPackByChunkID(_a0 context.Context, _a1 flow.Identifier) (*flow.ChunkDataPack, error)
- func (_m *ExecutionState) GetBlockIDByChunkID(chunkID flow.Identifier) (flow.Identifier, error)
- func (_m *ExecutionState) GetCollection(identifier flow.Identifier) (*flow.Collection, error)
- func (_m *ExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
- func (_m *ExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
- func (_m *ExecutionState) GetProof(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([]byte, error)
- func (_m *ExecutionState) GetRegisters(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([][]byte, error)
- func (_m *ExecutionState) NewView(_a0 flow.StateCommitment) *delta.View
- func (_m *ExecutionState) RetrieveStateDelta(_a0 context.Context, _a1 flow.Identifier) (*messages.ExecutionStateDelta, error)
- func (_m *ExecutionState) SaveExecutionResults(ctx context.Context, header *flow.Header, endState flow.StateCommitment, ...) error
- func (_m *ExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
- func (_m *ExecutionState) UpdateHighestExecutedBlockIfHigher(_a0 context.Context, _a1 *flow.Header) error
- type NewExecutionStateT
- type NewReadOnlyExecutionStateT
- type NewRegisterUpdatesHolderT
- type ReadOnlyExecutionState
- func (_m *ReadOnlyExecutionState) ChunkDataPackByChunkID(_a0 context.Context, _a1 flow.Identifier) (*flow.ChunkDataPack, error)
- func (_m *ReadOnlyExecutionState) GetBlockIDByChunkID(chunkID flow.Identifier) (flow.Identifier, error)
- func (_m *ReadOnlyExecutionState) GetCollection(identifier flow.Identifier) (*flow.Collection, error)
- func (_m *ReadOnlyExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
- func (_m *ReadOnlyExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
- func (_m *ReadOnlyExecutionState) GetProof(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([]byte, error)
- func (_m *ReadOnlyExecutionState) GetRegisters(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([][]byte, error)
- func (_m *ReadOnlyExecutionState) NewView(_a0 flow.StateCommitment) *delta.View
- func (_m *ReadOnlyExecutionState) RetrieveStateDelta(_a0 context.Context, _a1 flow.Identifier) (*messages.ExecutionStateDelta, error)
- func (_m *ReadOnlyExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
- type RegisterUpdatesHolder
- type ViewCommitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionState ¶
ExecutionState is an autogenerated mock type for the ExecutionState type
func NewExecutionState ¶ added in v0.26.1
func NewExecutionState(t NewExecutionStateT) *ExecutionState
NewExecutionState creates a new instance of ExecutionState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExecutionState) ChunkDataPackByChunkID ¶
func (_m *ExecutionState) ChunkDataPackByChunkID(_a0 context.Context, _a1 flow.Identifier) (*flow.ChunkDataPack, error)
ChunkDataPackByChunkID provides a mock function with given fields: _a0, _a1
func (*ExecutionState) GetBlockIDByChunkID ¶ added in v0.15.0
func (_m *ExecutionState) GetBlockIDByChunkID(chunkID flow.Identifier) (flow.Identifier, error)
GetBlockIDByChunkID provides a mock function with given fields: chunkID
func (*ExecutionState) GetCollection ¶
func (_m *ExecutionState) GetCollection(identifier flow.Identifier) (*flow.Collection, error)
GetCollection provides a mock function with given fields: identifier
func (*ExecutionState) GetExecutionResultID ¶
func (_m *ExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
GetExecutionResultID provides a mock function with given fields: _a0, _a1
func (*ExecutionState) GetHighestExecutedBlockID ¶
func (_m *ExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
GetHighestExecutedBlockID provides a mock function with given fields: _a0
func (*ExecutionState) GetProof ¶ added in v0.10.0
func (_m *ExecutionState) GetProof(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([]byte, error)
GetProof provides a mock function with given fields: _a0, _a1, _a2
func (*ExecutionState) GetRegisters ¶
func (_m *ExecutionState) GetRegisters(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([][]byte, error)
GetRegisters provides a mock function with given fields: _a0, _a1, _a2
func (*ExecutionState) NewView ¶
func (_m *ExecutionState) NewView(_a0 flow.StateCommitment) *delta.View
NewView provides a mock function with given fields: _a0
func (*ExecutionState) RetrieveStateDelta ¶
func (_m *ExecutionState) RetrieveStateDelta(_a0 context.Context, _a1 flow.Identifier) (*messages.ExecutionStateDelta, error)
RetrieveStateDelta provides a mock function with given fields: _a0, _a1
func (*ExecutionState) SaveExecutionResults ¶ added in v0.22.0
func (_m *ExecutionState) SaveExecutionResults(ctx context.Context, header *flow.Header, endState flow.StateCommitment, chunkDataPacks []*flow.ChunkDataPack, executionReceipt *flow.ExecutionReceipt, events []flow.EventsList, serviceEvents flow.EventsList, results []flow.TransactionResult) error
SaveExecutionResults provides a mock function with given fields: ctx, header, endState, chunkDataPacks, executionReceipt, events, serviceEvents, results
func (*ExecutionState) StateCommitmentByBlockID ¶
func (_m *ExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function with given fields: _a0, _a1
func (*ExecutionState) UpdateHighestExecutedBlockIfHigher ¶
func (_m *ExecutionState) UpdateHighestExecutedBlockIfHigher(_a0 context.Context, _a1 *flow.Header) error
UpdateHighestExecutedBlockIfHigher provides a mock function with given fields: _a0, _a1
type NewExecutionStateT ¶ added in v0.26.16
type NewReadOnlyExecutionStateT ¶ added in v0.27.0
type NewRegisterUpdatesHolderT ¶ added in v0.27.0
type ReadOnlyExecutionState ¶
ReadOnlyExecutionState is an autogenerated mock type for the ReadOnlyExecutionState type
func NewReadOnlyExecutionState ¶ added in v0.26.1
func NewReadOnlyExecutionState(t NewReadOnlyExecutionStateT) *ReadOnlyExecutionState
NewReadOnlyExecutionState creates a new instance of ReadOnlyExecutionState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ReadOnlyExecutionState) ChunkDataPackByChunkID ¶
func (_m *ReadOnlyExecutionState) ChunkDataPackByChunkID(_a0 context.Context, _a1 flow.Identifier) (*flow.ChunkDataPack, error)
ChunkDataPackByChunkID provides a mock function with given fields: _a0, _a1
func (*ReadOnlyExecutionState) GetBlockIDByChunkID ¶ added in v0.15.0
func (_m *ReadOnlyExecutionState) GetBlockIDByChunkID(chunkID flow.Identifier) (flow.Identifier, error)
GetBlockIDByChunkID provides a mock function with given fields: chunkID
func (*ReadOnlyExecutionState) GetCollection ¶
func (_m *ReadOnlyExecutionState) GetCollection(identifier flow.Identifier) (*flow.Collection, error)
GetCollection provides a mock function with given fields: identifier
func (*ReadOnlyExecutionState) GetExecutionResultID ¶
func (_m *ReadOnlyExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
GetExecutionResultID provides a mock function with given fields: _a0, _a1
func (*ReadOnlyExecutionState) GetHighestExecutedBlockID ¶
func (_m *ReadOnlyExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
GetHighestExecutedBlockID provides a mock function with given fields: _a0
func (*ReadOnlyExecutionState) GetProof ¶ added in v0.10.0
func (_m *ReadOnlyExecutionState) GetProof(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([]byte, error)
GetProof provides a mock function with given fields: _a0, _a1, _a2
func (*ReadOnlyExecutionState) GetRegisters ¶
func (_m *ReadOnlyExecutionState) GetRegisters(_a0 context.Context, _a1 flow.StateCommitment, _a2 []flow.RegisterID) ([][]byte, error)
GetRegisters provides a mock function with given fields: _a0, _a1, _a2
func (*ReadOnlyExecutionState) NewView ¶
func (_m *ReadOnlyExecutionState) NewView(_a0 flow.StateCommitment) *delta.View
NewView provides a mock function with given fields: _a0
func (*ReadOnlyExecutionState) RetrieveStateDelta ¶
func (_m *ReadOnlyExecutionState) RetrieveStateDelta(_a0 context.Context, _a1 flow.Identifier) (*messages.ExecutionStateDelta, error)
RetrieveStateDelta provides a mock function with given fields: _a0, _a1
func (*ReadOnlyExecutionState) StateCommitmentByBlockID ¶
func (_m *ReadOnlyExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function with given fields: _a0, _a1
type RegisterUpdatesHolder ¶ added in v0.16.1
RegisterUpdatesHolder is an autogenerated mock type for the RegisterUpdatesHolder type
func NewRegisterUpdatesHolder ¶ added in v0.26.1
func NewRegisterUpdatesHolder(t NewRegisterUpdatesHolderT) *RegisterUpdatesHolder
NewRegisterUpdatesHolder creates a new instance of RegisterUpdatesHolder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RegisterUpdatesHolder) RegisterUpdates ¶ added in v0.16.1
func (_m *RegisterUpdatesHolder) RegisterUpdates() ([]flow.RegisterID, [][]byte)
RegisterUpdates provides a mock function with given fields:
type ViewCommitter ¶ added in v0.16.0
ViewCommitter is an autogenerated mock type for the ViewCommitter type