contexts

package
v0.3.34 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NoArity = -1

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,
	gasSchedule 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 NewRuntimeContext

func NewRuntimeContext(host arwen.VMHost, vmType []byte) (*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

Types

type ReservedFunctions added in v0.3.6

type ReservedFunctions struct {
	// contains filtered or unexported fields
}

ReservedFunctions holds the reserved function names

func NewReservedFunctions added in v0.3.6

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

NewReservedFunctions creates a new ReservedFunctions

func (*ReservedFunctions) GetReserved added in v0.3.6

func (reservedFunctions *ReservedFunctions) GetReserved() []string

GetReserved gets the reserved functions as a slice of strings

func (*ReservedFunctions) IsReserved added in v0.3.6

func (reservedFunctions *ReservedFunctions) IsReserved(functionName string) bool

IsReserved returns whether a function is reserved

type WASMValidator added in v0.3.7

type WASMValidator struct {
	// contains filtered or unexported fields
}

WASMValidator is a validator for WASM SmartContracts

func NewWASMValidator added in v0.3.7

func NewWASMValidator(scAPINames vmcommon.FunctionNames, protocolBuiltinFunctions vmcommon.FunctionNames) *WASMValidator

NewWASMValidator creates a new WASMValidator

Jump to

Keyboard shortcuts

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