Documentation ¶
Index ¶
- type ComputationManager
- type Manager
- func (e *Manager) ComputeBlock(ctx context.Context, block *entity.ExecutableBlock, view *delta.View) (*execution.ComputationResult, error)
- func (e *Manager) ExecuteScript(code []byte, arguments [][]byte, blockHeader *flow.Header, view *delta.View) ([]byte, error)
- func (e *Manager) GetAccount(address flow.Address, blockHeader *flow.Header, view *delta.View) (*flow.Account, error)
- type VirtualMachine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputationManager ¶
type ComputationManager interface { ExecuteScript([]byte, [][]byte, *flow.Header, *delta.View) ([]byte, error) ComputeBlock( ctx context.Context, block *entity.ExecutableBlock, view *delta.View, ) (*execution.ComputationResult, error) GetAccount(addr flow.Address, header *flow.Header, view *delta.View) (*flow.Account, error) }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages computation and execution
func (*Manager) ComputeBlock ¶
func (e *Manager) ComputeBlock( ctx context.Context, block *entity.ExecutableBlock, view *delta.View, ) (*execution.ComputationResult, error)
func (*Manager) ExecuteScript ¶
Click to show internal directories.
Click to hide internal directories.