backends

package
v0.35.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: AGPL-3.0 Imports: 9 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (we *WrappedEnvironment) GetBlockAtHeight(height uint64) (
	runtime.Block,
	bool,
	error,
)

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) TotalEmittedEventBytes

func (we *WrappedEnvironment) TotalEmittedEventBytes() uint64

func (*WrappedEnvironment) ValueExists

func (we *WrappedEnvironment) ValueExists(owner, key []byte) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL