Documentation ¶
Index ¶
- Constants
- type ComputationConfig
- type ComputationManager
- type Manager
- func (e *Manager) ComputeBlock(ctx context.Context, parentBlockExecutionResultID flow.Identifier, ...) (*execution.ComputationResult, error)
- func (e *Manager) ExecuteScript(ctx context.Context, code []byte, arguments [][]byte, blockHeader *flow.Header, ...) ([]byte, error)
- func (e *Manager) GetAccount(ctx context.Context, address flow.Address, blockHeader *flow.Header, ...) (*flow.Account, error)
- func (e *Manager) VM() fvm.VM
Constants ¶
View Source
const (
ReusableCadenceRuntimePoolSize = 1000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputationConfig ¶ added in v0.28.0
type ComputationConfig struct { query.QueryConfig CadenceTracing bool ExtensiveTracing bool DerivedDataCacheSize uint // When NewCustomVirtualMachine is nil, the manager will create a standard // fvm virtual machine via fvm.NewVirtualMachine. Otherwise, the manager // will create a virtual machine using this function. // // Note that this is primarily used for testing. NewCustomVirtualMachine func() fvm.VM }
type ComputationManager ¶
type ComputationManager interface { ExecuteScript( ctx context.Context, script []byte, arguments [][]byte, blockHeader *flow.Header, snapshot snapshot.StorageSnapshot, ) ( []byte, error, ) ComputeBlock( ctx context.Context, parentBlockExecutionResultID flow.Identifier, block *entity.ExecutableBlock, snapshot snapshot.StorageSnapshot, ) ( *execution.ComputationResult, error, ) GetAccount( ctx context.Context, addr flow.Address, header *flow.Header, snapshot snapshot.StorageSnapshot, ) ( *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, parentBlockExecutionResultID flow.Identifier, block *entity.ExecutableBlock, snapshot snapshot.StorageSnapshot, ) (*execution.ComputationResult, error)
func (*Manager) ExecuteScript ¶
func (*Manager) GetAccount ¶
Click to show internal directories.
Click to hide internal directories.