contexts

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBigIntContext

func NewBigIntContext() (*bigIntContext, error)

NewBigIntContext creates a new bigIntContext

func NewBlockchainContext

func NewBlockchainContext(
	host arwen.VMHost,
	blockChainHook vmcommon.BlockchainHook,
) (*blockchainContext, error)

NewBlockchainContext creates a new blockchainContext

func NewMeteringContext

func NewMeteringContext(
	host arwen.VMHost,
	gasMap config.GasScheduleMap,
	blockGasLimit uint64,
) (*meteringContext, error)

NewMeteringContext creates a new meteringContext

func NewOutputContext

func NewOutputContext(host arwen.VMHost) (*outputContext, error)

NewOutputContext creates a new outputContext

func NewReservedFunctions added in v0.3.6

func NewReservedFunctions(scAPINames vmcommon.FunctionNames, protocolBuiltinFunctions vmcommon.FunctionNames) *reservedFunctions

NewReservedFunctions creates a new reservedFunctions

func NewRuntimeContext

func NewRuntimeContext(host arwen.VMHost, vmType []byte, useWarmInstance bool) (*runtimeContext, error)

NewRuntimeContext creates a new runtimeContext

func NewStorageContext

func NewStorageContext(
	host arwen.VMHost,
	blockChainHook vmcommon.BlockchainHook,
	elrondProtectedKeyPrefix []byte,
) (*storageContext, error)

NewStorageContext creates a new storageContext

func NewVMOutputAccount added in v0.3.36

func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount

NewVMOutputAccount creates a new output account and sets the given address

Types

This section is empty.

Jump to

Keyboard shortcuts

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