Documentation ¶
Index ¶
- func NewBlockchainContext(host arwen.VMHost, blockChainHook vmcommon.BlockchainHook) (*blockchainContext, error)
- func NewDisabledGasTracer() *disabledGasTracer
- func NewEnabledGasTracer() *gasTracer
- func NewManagedTypesContext(host arwen.VMHost) (*managedTypesContext, error)
- func NewMeteringContext(host arwen.VMHost, gasMap config.GasScheduleMap, blockGasLimit uint64) (*meteringContext, error)
- func NewOutputContext(host arwen.VMHost) (*outputContext, error)
- func NewReservedFunctions(scAPINames vmcommon.FunctionNames, ...) *reservedFunctions
- func NewRuntimeContext(host arwen.VMHost, vmType []byte, ...) (*runtimeContext, error)
- func NewStorageContext(host arwen.VMHost, blockChainHook vmcommon.BlockchainHook, ...) (*storageContext, error)
- func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount
- type WasmerInstanceBuilder
- func (builder *WasmerInstanceBuilder) NewInstanceFromCompiledCodeWithOptions(compiledCode []byte, options wasmer.CompilationOptions) (wasmer.InstanceHandler, error)
- func (builder *WasmerInstanceBuilder) NewInstanceWithOptions(contractCode []byte, options wasmer.CompilationOptions) (wasmer.InstanceHandler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlockchainContext ¶
func NewBlockchainContext( host arwen.VMHost, blockChainHook vmcommon.BlockchainHook, ) (*blockchainContext, error)
NewBlockchainContext creates a new blockchainContext
func NewDisabledGasTracer ¶
func NewDisabledGasTracer() *disabledGasTracer
NewDisabledGasTracer creates a new disabledGasTracer
func NewEnabledGasTracer ¶
func NewEnabledGasTracer() *gasTracer
NewEnabledGasTracer creates a new gasTracer
func NewManagedTypesContext ¶
NewManagedTypesContext creates a new managedTypesContext
func NewMeteringContext ¶
func NewMeteringContext( host arwen.VMHost, gasMap config.GasScheduleMap, blockGasLimit uint64, ) (*meteringContext, error)
NewMeteringContext creates a new meteringContext
func NewOutputContext ¶
NewOutputContext creates a new outputContext
func NewReservedFunctions ¶
func NewReservedFunctions(scAPINames vmcommon.FunctionNames, builtInFuncContainer vmcommon.BuiltInFunctionContainer) *reservedFunctions
NewReservedFunctions creates a new reservedFunctions
func NewRuntimeContext ¶
func NewRuntimeContext( host arwen.VMHost, vmType []byte, builtInFuncContainer vmcommon.BuiltInFunctionContainer, ) (*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 ¶
func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount
NewVMOutputAccount creates a new output account and sets the given address
Types ¶
type WasmerInstanceBuilder ¶
type WasmerInstanceBuilder struct { }
WasmerInstanceBuilder is the default instance builder, which produces real Wasmer instances from WASM bytecode
func (*WasmerInstanceBuilder) NewInstanceFromCompiledCodeWithOptions ¶
func (builder *WasmerInstanceBuilder) NewInstanceFromCompiledCodeWithOptions( compiledCode []byte, options wasmer.CompilationOptions, ) (wasmer.InstanceHandler, error)
NewInstanceFromCompiledCodeWithOptions creates a new Wasmer instance from precompiled machine code, respecting the provided options
func (*WasmerInstanceBuilder) NewInstanceWithOptions ¶
func (builder *WasmerInstanceBuilder) NewInstanceWithOptions( contractCode []byte, options wasmer.CompilationOptions, ) (wasmer.InstanceHandler, error)
NewInstanceWithOptions creates a new Wasmer instance from WASM bytecode, respecting the provided options