Documentation ¶
Index ¶
- func NewWrappedEnvironment(env environment.Environment) types.Backend
- type WrappedEnvironment
- func (we *WrappedEnvironment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
- func (we *WrappedEnvironment) ComputationAvailable(kind common.ComputationKind, intensity uint) bool
- func (we *WrappedEnvironment) ComputationIntensities() meter.MeteredComputationIntensities
- func (we *WrappedEnvironment) ComputationUsed() (uint64, error)
- func (we *WrappedEnvironment) ConvertedServiceEvents() flow.ServiceEventList
- func (we *WrappedEnvironment) EmitEvent(event cadence.Event) error
- func (we *WrappedEnvironment) Events() flow.EventsList
- func (we *WrappedEnvironment) GenerateUUID() (uint64, error)
- func (we *WrappedEnvironment) GetBlockAtHeight(height uint64) (runtime.Block, bool, error)
- func (we *WrappedEnvironment) GetCurrentBlockHeight() (uint64, error)
- func (we *WrappedEnvironment) GetValue(owner, key []byte) ([]byte, error)
- func (we *WrappedEnvironment) InteractionUsed() (uint64, error)
- func (we *WrappedEnvironment) Invoke(spec environment.ContractFunctionSpec, arguments []cadence.Value) (cadence.Value, error)
- func (we *WrappedEnvironment) MemoryUsed() (uint64, error)
- func (we *WrappedEnvironment) MeterComputation(kind common.ComputationKind, intensity uint) error
- func (we *WrappedEnvironment) MeterEmittedEvent(byteSize uint64) error
- func (we *WrappedEnvironment) MeterMemory(usage common.MemoryUsage) error
- func (we *WrappedEnvironment) ReadRandom(buffer []byte) error
- func (we *WrappedEnvironment) Reset()
- func (we *WrappedEnvironment) ServiceEvents() flow.EventsList
- func (we *WrappedEnvironment) SetValue(owner, key, value []byte) error
- func (we *WrappedEnvironment) StartChildSpan(name trace.SpanName, options ...otelTrace.SpanStartOption) tracing.TracerSpan
- func (we *WrappedEnvironment) TotalEmittedEventBytes() uint64
- func (we *WrappedEnvironment) ValueExists(owner, key []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWrappedEnvironment ¶
func NewWrappedEnvironment(env environment.Environment) types.Backend
NewWrappedEnvironment constructs a new wrapped environment
Types ¶
type WrappedEnvironment ¶
type WrappedEnvironment struct {
// contains filtered or unexported fields
}
WrappedEnvironment wraps an FVM environment
func (*WrappedEnvironment) AllocateStorageIndex ¶
func (we *WrappedEnvironment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
func (*WrappedEnvironment) ComputationAvailable ¶
func (we *WrappedEnvironment) ComputationAvailable(kind common.ComputationKind, intensity uint) bool
func (*WrappedEnvironment) ComputationIntensities ¶
func (we *WrappedEnvironment) ComputationIntensities() meter.MeteredComputationIntensities
func (*WrappedEnvironment) ComputationUsed ¶
func (we *WrappedEnvironment) ComputationUsed() (uint64, error)
func (*WrappedEnvironment) ConvertedServiceEvents ¶
func (we *WrappedEnvironment) ConvertedServiceEvents() flow.ServiceEventList
func (*WrappedEnvironment) EmitEvent ¶
func (we *WrappedEnvironment) EmitEvent(event cadence.Event) error
func (*WrappedEnvironment) Events ¶
func (we *WrappedEnvironment) Events() flow.EventsList
func (*WrappedEnvironment) GenerateUUID ¶
func (we *WrappedEnvironment) GenerateUUID() (uint64, error)
func (*WrappedEnvironment) GetBlockAtHeight ¶
func (*WrappedEnvironment) GetCurrentBlockHeight ¶
func (we *WrappedEnvironment) GetCurrentBlockHeight() (uint64, error)
func (*WrappedEnvironment) GetValue ¶
func (we *WrappedEnvironment) GetValue(owner, key []byte) ([]byte, error)
func (*WrappedEnvironment) InteractionUsed ¶
func (we *WrappedEnvironment) InteractionUsed() (uint64, error)
func (*WrappedEnvironment) Invoke ¶
func (we *WrappedEnvironment) Invoke( spec environment.ContractFunctionSpec, arguments []cadence.Value, ) ( cadence.Value, error, )
func (*WrappedEnvironment) MemoryUsed ¶
func (we *WrappedEnvironment) MemoryUsed() (uint64, error)
func (*WrappedEnvironment) MeterComputation ¶
func (we *WrappedEnvironment) MeterComputation(kind common.ComputationKind, intensity uint) error
func (*WrappedEnvironment) MeterEmittedEvent ¶
func (we *WrappedEnvironment) MeterEmittedEvent(byteSize uint64) error
func (*WrappedEnvironment) MeterMemory ¶
func (we *WrappedEnvironment) MeterMemory(usage common.MemoryUsage) error
func (*WrappedEnvironment) ReadRandom ¶
func (we *WrappedEnvironment) ReadRandom(buffer []byte) error
func (*WrappedEnvironment) Reset ¶
func (we *WrappedEnvironment) Reset()
func (*WrappedEnvironment) ServiceEvents ¶
func (we *WrappedEnvironment) ServiceEvents() flow.EventsList
func (*WrappedEnvironment) SetValue ¶
func (we *WrappedEnvironment) SetValue(owner, key, value []byte) error
func (*WrappedEnvironment) StartChildSpan ¶ added in v0.35.17
func (we *WrappedEnvironment) StartChildSpan( name trace.SpanName, options ...otelTrace.SpanStartOption, ) tracing.TracerSpan
func (*WrappedEnvironment) TotalEmittedEventBytes ¶
func (we *WrappedEnvironment) TotalEmittedEventBytes() uint64
func (*WrappedEnvironment) ValueExists ¶
func (we *WrappedEnvironment) ValueExists(owner, key []byte) (bool, error)
Click to show internal directories.
Click to hide internal directories.