backends

package
v0.35.15-crescendo-pre... Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

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) AllocateSlabIndex added in v0.37.1

func (we *WrappedEnvironment) AllocateSlabIndex(owner []byte) (atree.SlabIndex, 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