executorwrapper

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleLogger

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

ConsoleLogger is a simple ExecutorLogger that records data into the console.

func NewConsoleLogger

func NewConsoleLogger() *ConsoleLogger

NewConsoleLogger creates a new ConsoleLogger, which records events into the console.

func (*ConsoleLogger) LogExecutorEvent

func (cl *ConsoleLogger) LogExecutorEvent(description string)

LogExecutorEvent logs a custom event from the executor.

func (*ConsoleLogger) LogVMHookCallAfter

func (cl *ConsoleLogger) LogVMHookCallAfter(callInfo string)

LogVMHookCallAfter is called after processing a wrapped VM hook.

func (*ConsoleLogger) LogVMHookCallBefore

func (cl *ConsoleLogger) LogVMHookCallBefore(callInfo string)

LogVMHookCallBefore is called before processing a wrapped VM hook.

func (*ConsoleLogger) SetCurrentInstance

func (cl *ConsoleLogger) SetCurrentInstance(instance executor.Instance)

SetCurrentInstance adds context pertaining to the current instance, when running tests.

type ExecutorLogger

type ExecutorLogger interface {
	SetCurrentInstance(instance executor.Instance)
	LogExecutorEvent(description string)
	LogVMHookCallBefore(callInfo string)
	LogVMHookCallAfter(callInfo string)
}

ExecutorLogger defines a logging interface for the WrapperExecutor.

type NoLogger

type NoLogger struct{}

NoLogger is an ExecutorLogger implementation that does nothing.

func (*NoLogger) LogExecutorEvent

func (*NoLogger) LogExecutorEvent(_ string)

LogExecutorEvent does nothing.

func (*NoLogger) LogVMHookCallAfter

func (*NoLogger) LogVMHookCallAfter(_ string)

LogVMHookCallAfter does nothing.

func (*NoLogger) LogVMHookCallBefore

func (*NoLogger) LogVMHookCallBefore(_ string)

LogVMHookCallBefore does nothing.

func (*NoLogger) SetCurrentInstance

func (*NoLogger) SetCurrentInstance(_ executor.Instance)

SetCurrentInstance does nothing.

type StringLogger

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

StringLogger is a simple ExecutorLogger that records data into a string builder.

func NewStringLogger

func NewStringLogger() *StringLogger

NewStringLogger creates a new StringLogger, which records events into a string builder.

func (*StringLogger) LogExecutorEvent

func (sl *StringLogger) LogExecutorEvent(description string)

LogExecutorEvent logs a custom event from the executor.

func (*StringLogger) LogVMHookCallAfter

func (sl *StringLogger) LogVMHookCallAfter(callInfo string)

LogVMHookCallAfter is called after processing a wrapped VM hook.

func (*StringLogger) LogVMHookCallBefore

func (sl *StringLogger) LogVMHookCallBefore(callInfo string)

LogVMHookCallBefore is called before processing a wrapped VM hook.

func (*StringLogger) SetCurrentInstance

func (sl *StringLogger) SetCurrentInstance(instance executor.Instance)

SetCurrentInstance adds context pertaining to the current instance, when running tests.

func (*StringLogger) String

func (sl *StringLogger) String() string

String yields the logs accumulated up to this point.

type WrapperExecutor

type WrapperExecutor struct {
	WrappedInstances map[string][]executor.Instance
	// contains filtered or unexported fields
}

WrapperExecutor is a wrapper around an executor, who additionally caches all created instances. It also offers support for logging the executor operations. This logging is designed for testing and debugging. It is meant for testing the behavior of an executor.

func (*WrapperExecutor) FunctionNames

func (wexec *WrapperExecutor) FunctionNames() vmcommon.FunctionNames

FunctionNames wraps the call to the underlying executor.

func (*WrapperExecutor) GetContractInstances

func (wexec *WrapperExecutor) GetContractInstances(code []byte) []executor.Instance

GetContractInstances gets contract instances for code

func (*WrapperExecutor) IsInterfaceNil

func (wexec *WrapperExecutor) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*WrapperExecutor) NewInstanceFromCompiledCodeWithOptions

func (wexec *WrapperExecutor) NewInstanceFromCompiledCodeWithOptions(
	compiledCode []byte,
	options executor.CompilationOptions,
) (executor.Instance, error)

NewInstanceFromCompiledCodeWithOptions wraps the call to the underlying executor.

func (*WrapperExecutor) NewInstanceWithOptions

func (wexec *WrapperExecutor) NewInstanceWithOptions(
	contractCode []byte,
	options executor.CompilationOptions,
) (executor.Instance, error)

NewInstanceWithOptions wraps the call to the underlying executor.

func (*WrapperExecutor) SetOpcodeCosts

func (wexec *WrapperExecutor) SetOpcodeCosts(opcodeCosts *executor.WASMOpcodeCost)

SetOpcodeCosts wraps the call to the underlying executor.

type WrapperExecutorFactory

type WrapperExecutorFactory struct {

	// LastCreatedExecutor gives access to the created Executor
	LastCreatedExecutor *WrapperExecutor
	// contains filtered or unexported fields
}

WrapperExecutorFactory is the factory for the WrapperExecutor.

func NewWrappedExecutorFactory

func NewWrappedExecutorFactory(
	logger ExecutorLogger,
	wrappedFactory executor.ExecutorAbstractFactory) *WrapperExecutorFactory

NewWrappedExecutorFactory yields a new WrapperExecutor factory.

func SimpleWrappedExecutorFactory

func SimpleWrappedExecutorFactory(wrappedFactory executor.ExecutorAbstractFactory) *WrapperExecutorFactory

SimpleWrappedExecutorFactory yields a WrappedExecutor factory without logging.

func (*WrapperExecutorFactory) CreateExecutor

func (factory *WrapperExecutorFactory) CreateExecutor(args executor.ExecutorFactoryArgs) (executor.Executor, error)

CreateExecutor creates a new Executor instance.

func (*WrapperExecutorFactory) IsInterfaceNil

func (factory *WrapperExecutorFactory) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

type WrapperInstance

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

WrapperInstance is a wrapper around an executor instance, which adds the possibility of logging operations.

func (*WrapperInstance) Cache

func (inst *WrapperInstance) Cache() ([]byte, error)

Cache wraps the call to the underlying instance.

func (*WrapperInstance) CallFunction

func (inst *WrapperInstance) CallFunction(functionName string) error

CallFunction wraps the call to the underlying instance.

func (*WrapperInstance) Clean

func (inst *WrapperInstance) Clean() bool

Clean wraps the call to the underlying instance.

func (*WrapperInstance) GetBreakpointValue

func (inst *WrapperInstance) GetBreakpointValue() uint64

GetBreakpointValue wraps the call to the underlying instance.

func (*WrapperInstance) GetFunctionNames

func (inst *WrapperInstance) GetFunctionNames() []string

GetFunctionNames wraps the call to the underlying instance.

func (*WrapperInstance) GetPointsUsed

func (inst *WrapperInstance) GetPointsUsed() uint64

GetPointsUsed wraps the call to the underlying instance.

func (*WrapperInstance) GetVMHooksPtr

func (inst *WrapperInstance) GetVMHooksPtr() uintptr

GetVMHooksPtr wraps the call to the underlying instance.

func (*WrapperInstance) HasFunction

func (inst *WrapperInstance) HasFunction(functionName string) bool

HasFunction wraps the call to the underlying instance.

func (*WrapperInstance) HasMemory

func (inst *WrapperInstance) HasMemory() bool

HasMemory wraps the call to the underlying instance.

func (*WrapperInstance) ID

func (inst *WrapperInstance) ID() string

ID wraps the call to the underlying instance.

func (*WrapperInstance) IsAlreadyCleaned

func (inst *WrapperInstance) IsAlreadyCleaned() bool

IsAlreadyCleaned wraps the call to the underlying instance.

func (*WrapperInstance) IsFunctionImported

func (inst *WrapperInstance) IsFunctionImported(name string) bool

IsFunctionImported wraps the call to the underlying instance.

func (*WrapperInstance) IsInterfaceNil

func (inst *WrapperInstance) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface.

func (*WrapperInstance) MemDump

func (inst *WrapperInstance) MemDump() []byte

MemDump yields the entire contents of the memory. Only used in tests.

func (*WrapperInstance) MemGrow

func (inst *WrapperInstance) MemGrow(pages uint32) error

MemGrow allocates more pages to the current memory

func (*WrapperInstance) MemLength

func (inst *WrapperInstance) MemLength() uint32

MemLength returns the length of the allocated memory. Only called directly in tests.

func (*WrapperInstance) MemLoad

func (inst *WrapperInstance) MemLoad(memPtr executor.MemPtr, length executor.MemLength) ([]byte, error)

MemLoad returns the contents from the given offset of the WASM memory.

func (*WrapperInstance) MemStore

func (inst *WrapperInstance) MemStore(memPtr executor.MemPtr, data []byte) error

MemStore stores the given data in the WASM memory at the given offset.

func (*WrapperInstance) Reset

func (inst *WrapperInstance) Reset() bool

Reset wraps the call to the underlying instance.

func (*WrapperInstance) SetBreakpointValue

func (inst *WrapperInstance) SetBreakpointValue(value uint64)

SetBreakpointValue wraps the call to the underlying instance.

func (*WrapperInstance) SetGasLimit

func (inst *WrapperInstance) SetGasLimit(gasLimit uint64)

SetGasLimit wraps the call to the underlying instance.

func (*WrapperInstance) SetPointsUsed

func (inst *WrapperInstance) SetPointsUsed(points uint64)

SetPointsUsed wraps the call to the underlying instance.

func (*WrapperInstance) SetVMHooksPtr

func (inst *WrapperInstance) SetVMHooksPtr(vmHooksPtr uintptr)

SetVMHooksPtr wraps the call to the underlying instance.

func (*WrapperInstance) ValidateFunctionArities

func (inst *WrapperInstance) ValidateFunctionArities() error

type WrapperVMHooks

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

WrapperVMHooks wraps a VMHooks instance and optionally performs some logging.

func (*WrapperVMHooks) AddEC

func (w *WrapperVMHooks) AddEC(xResultHandle int32, yResultHandle int32, ecHandle int32, fstPointXHandle int32, fstPointYHandle int32, sndPointXHandle int32, sndPointYHandle int32)

AddEC VM hook wrapper

func (*WrapperVMHooks) AsyncCall

func (w *WrapperVMHooks) AsyncCall(destOffset executor.MemPtr, valueOffset executor.MemPtr, dataOffset executor.MemPtr, length executor.MemLength)

AsyncCall VM hook wrapper

func (*WrapperVMHooks) BigFloatAbs

func (w *WrapperVMHooks) BigFloatAbs(destinationHandle int32, opHandle int32)

BigFloatAbs VM hook wrapper

func (*WrapperVMHooks) BigFloatAdd

func (w *WrapperVMHooks) BigFloatAdd(destinationHandle int32, op1Handle int32, op2Handle int32)

BigFloatAdd VM hook wrapper

func (*WrapperVMHooks) BigFloatCeil

func (w *WrapperVMHooks) BigFloatCeil(destBigIntHandle int32, opHandle int32)

BigFloatCeil VM hook wrapper

func (*WrapperVMHooks) BigFloatClone

func (w *WrapperVMHooks) BigFloatClone(destinationHandle int32, opHandle int32)

BigFloatClone VM hook wrapper

func (*WrapperVMHooks) BigFloatCmp

func (w *WrapperVMHooks) BigFloatCmp(op1Handle int32, op2Handle int32) int32

BigFloatCmp VM hook wrapper

func (*WrapperVMHooks) BigFloatDiv

func (w *WrapperVMHooks) BigFloatDiv(destinationHandle int32, op1Handle int32, op2Handle int32)

BigFloatDiv VM hook wrapper

func (*WrapperVMHooks) BigFloatFloor

func (w *WrapperVMHooks) BigFloatFloor(destBigIntHandle int32, opHandle int32)

BigFloatFloor VM hook wrapper

func (*WrapperVMHooks) BigFloatGetConstE

func (w *WrapperVMHooks) BigFloatGetConstE(destinationHandle int32)

BigFloatGetConstE VM hook wrapper

func (*WrapperVMHooks) BigFloatGetConstPi

func (w *WrapperVMHooks) BigFloatGetConstPi(destinationHandle int32)

BigFloatGetConstPi VM hook wrapper

func (*WrapperVMHooks) BigFloatIsInt

func (w *WrapperVMHooks) BigFloatIsInt(opHandle int32) int32

BigFloatIsInt VM hook wrapper

func (*WrapperVMHooks) BigFloatMul

func (w *WrapperVMHooks) BigFloatMul(destinationHandle int32, op1Handle int32, op2Handle int32)

BigFloatMul VM hook wrapper

func (*WrapperVMHooks) BigFloatNeg

func (w *WrapperVMHooks) BigFloatNeg(destinationHandle int32, opHandle int32)

BigFloatNeg VM hook wrapper

func (*WrapperVMHooks) BigFloatNewFromFrac

func (w *WrapperVMHooks) BigFloatNewFromFrac(numerator int64, denominator int64) int32

BigFloatNewFromFrac VM hook wrapper

func (*WrapperVMHooks) BigFloatNewFromParts

func (w *WrapperVMHooks) BigFloatNewFromParts(integralPart int32, fractionalPart int32, exponent int32) int32

BigFloatNewFromParts VM hook wrapper

func (*WrapperVMHooks) BigFloatNewFromSci

func (w *WrapperVMHooks) BigFloatNewFromSci(significand int64, exponent int64) int32

BigFloatNewFromSci VM hook wrapper

func (*WrapperVMHooks) BigFloatPow

func (w *WrapperVMHooks) BigFloatPow(destinationHandle int32, opHandle int32, exponent int32)

BigFloatPow VM hook wrapper

func (*WrapperVMHooks) BigFloatSetBigInt

func (w *WrapperVMHooks) BigFloatSetBigInt(destinationHandle int32, bigIntHandle int32)

BigFloatSetBigInt VM hook wrapper

func (*WrapperVMHooks) BigFloatSetInt64

func (w *WrapperVMHooks) BigFloatSetInt64(destinationHandle int32, value int64)

BigFloatSetInt64 VM hook wrapper

func (*WrapperVMHooks) BigFloatSign

func (w *WrapperVMHooks) BigFloatSign(opHandle int32) int32

BigFloatSign VM hook wrapper

func (*WrapperVMHooks) BigFloatSqrt

func (w *WrapperVMHooks) BigFloatSqrt(destinationHandle int32, opHandle int32)

BigFloatSqrt VM hook wrapper

func (*WrapperVMHooks) BigFloatSub

func (w *WrapperVMHooks) BigFloatSub(destinationHandle int32, op1Handle int32, op2Handle int32)

BigFloatSub VM hook wrapper

func (*WrapperVMHooks) BigFloatTruncate

func (w *WrapperVMHooks) BigFloatTruncate(destBigIntHandle int32, opHandle int32)

BigFloatTruncate VM hook wrapper

func (*WrapperVMHooks) BigIntAbs

func (w *WrapperVMHooks) BigIntAbs(destinationHandle int32, opHandle int32)

BigIntAbs VM hook wrapper

func (*WrapperVMHooks) BigIntAdd

func (w *WrapperVMHooks) BigIntAdd(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntAdd VM hook wrapper

func (*WrapperVMHooks) BigIntAnd

func (w *WrapperVMHooks) BigIntAnd(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntAnd VM hook wrapper

func (*WrapperVMHooks) BigIntCmp

func (w *WrapperVMHooks) BigIntCmp(op1Handle int32, op2Handle int32) int32

BigIntCmp VM hook wrapper

func (*WrapperVMHooks) BigIntEDiv

func (w *WrapperVMHooks) BigIntEDiv(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntEDiv VM hook wrapper

func (*WrapperVMHooks) BigIntEMod

func (w *WrapperVMHooks) BigIntEMod(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntEMod VM hook wrapper

func (*WrapperVMHooks) BigIntFinishSigned

func (w *WrapperVMHooks) BigIntFinishSigned(referenceHandle int32)

BigIntFinishSigned VM hook wrapper

func (*WrapperVMHooks) BigIntFinishUnsigned

func (w *WrapperVMHooks) BigIntFinishUnsigned(referenceHandle int32)

BigIntFinishUnsigned VM hook wrapper

func (*WrapperVMHooks) BigIntGetCallValue

func (w *WrapperVMHooks) BigIntGetCallValue(destinationHandle int32)

BigIntGetCallValue VM hook wrapper

func (*WrapperVMHooks) BigIntGetESDTCallValue

func (w *WrapperVMHooks) BigIntGetESDTCallValue(destination int32)

BigIntGetESDTCallValue VM hook wrapper

func (*WrapperVMHooks) BigIntGetESDTCallValueByIndex

func (w *WrapperVMHooks) BigIntGetESDTCallValueByIndex(destinationHandle int32, index int32)

BigIntGetESDTCallValueByIndex VM hook wrapper

func (*WrapperVMHooks) BigIntGetESDTExternalBalance

func (w *WrapperVMHooks) BigIntGetESDTExternalBalance(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, resultHandle int32)

BigIntGetESDTExternalBalance VM hook wrapper

func (*WrapperVMHooks) BigIntGetExternalBalance

func (w *WrapperVMHooks) BigIntGetExternalBalance(addressOffset executor.MemPtr, result int32)

BigIntGetExternalBalance VM hook wrapper

func (*WrapperVMHooks) BigIntGetInt64

func (w *WrapperVMHooks) BigIntGetInt64(destinationHandle int32) int64

BigIntGetInt64 VM hook wrapper

func (*WrapperVMHooks) BigIntGetSignedArgument

func (w *WrapperVMHooks) BigIntGetSignedArgument(id int32, destinationHandle int32)

BigIntGetSignedArgument VM hook wrapper

func (*WrapperVMHooks) BigIntGetSignedBytes

func (w *WrapperVMHooks) BigIntGetSignedBytes(referenceHandle int32, byteOffset executor.MemPtr) int32

BigIntGetSignedBytes VM hook wrapper

func (*WrapperVMHooks) BigIntGetUnsignedArgument

func (w *WrapperVMHooks) BigIntGetUnsignedArgument(id int32, destinationHandle int32)

BigIntGetUnsignedArgument VM hook wrapper

func (*WrapperVMHooks) BigIntGetUnsignedBytes

func (w *WrapperVMHooks) BigIntGetUnsignedBytes(referenceHandle int32, byteOffset executor.MemPtr) int32

BigIntGetUnsignedBytes VM hook wrapper

func (*WrapperVMHooks) BigIntIsInt64

func (w *WrapperVMHooks) BigIntIsInt64(destinationHandle int32) int32

BigIntIsInt64 VM hook wrapper

func (*WrapperVMHooks) BigIntLog2

func (w *WrapperVMHooks) BigIntLog2(op1Handle int32) int32

BigIntLog2 VM hook wrapper

func (*WrapperVMHooks) BigIntMul

func (w *WrapperVMHooks) BigIntMul(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntMul VM hook wrapper

func (*WrapperVMHooks) BigIntNeg

func (w *WrapperVMHooks) BigIntNeg(destinationHandle int32, opHandle int32)

BigIntNeg VM hook wrapper

func (*WrapperVMHooks) BigIntNew

func (w *WrapperVMHooks) BigIntNew(smallValue int64) int32

BigIntNew VM hook wrapper

func (*WrapperVMHooks) BigIntNot

func (w *WrapperVMHooks) BigIntNot(destinationHandle int32, opHandle int32)

BigIntNot VM hook wrapper

func (*WrapperVMHooks) BigIntOr

func (w *WrapperVMHooks) BigIntOr(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntOr VM hook wrapper

func (*WrapperVMHooks) BigIntPow

func (w *WrapperVMHooks) BigIntPow(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntPow VM hook wrapper

func (*WrapperVMHooks) BigIntSetInt64

func (w *WrapperVMHooks) BigIntSetInt64(destinationHandle int32, value int64)

BigIntSetInt64 VM hook wrapper

func (*WrapperVMHooks) BigIntSetSignedBytes

func (w *WrapperVMHooks) BigIntSetSignedBytes(destinationHandle int32, byteOffset executor.MemPtr, byteLength executor.MemLength)

BigIntSetSignedBytes VM hook wrapper

func (*WrapperVMHooks) BigIntSetUnsignedBytes

func (w *WrapperVMHooks) BigIntSetUnsignedBytes(destinationHandle int32, byteOffset executor.MemPtr, byteLength executor.MemLength)

BigIntSetUnsignedBytes VM hook wrapper

func (*WrapperVMHooks) BigIntShl

func (w *WrapperVMHooks) BigIntShl(destinationHandle int32, opHandle int32, bits int32)

BigIntShl VM hook wrapper

func (*WrapperVMHooks) BigIntShr

func (w *WrapperVMHooks) BigIntShr(destinationHandle int32, opHandle int32, bits int32)

BigIntShr VM hook wrapper

func (*WrapperVMHooks) BigIntSign

func (w *WrapperVMHooks) BigIntSign(opHandle int32) int32

BigIntSign VM hook wrapper

func (*WrapperVMHooks) BigIntSignedByteLength

func (w *WrapperVMHooks) BigIntSignedByteLength(referenceHandle int32) int32

BigIntSignedByteLength VM hook wrapper

func (*WrapperVMHooks) BigIntSqrt

func (w *WrapperVMHooks) BigIntSqrt(destinationHandle int32, opHandle int32)

BigIntSqrt VM hook wrapper

func (*WrapperVMHooks) BigIntStorageLoadUnsigned

func (w *WrapperVMHooks) BigIntStorageLoadUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, destinationHandle int32) int32

BigIntStorageLoadUnsigned VM hook wrapper

func (*WrapperVMHooks) BigIntStorageStoreUnsigned

func (w *WrapperVMHooks) BigIntStorageStoreUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, sourceHandle int32) int32

BigIntStorageStoreUnsigned VM hook wrapper

func (*WrapperVMHooks) BigIntSub

func (w *WrapperVMHooks) BigIntSub(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntSub VM hook wrapper

func (*WrapperVMHooks) BigIntTDiv

func (w *WrapperVMHooks) BigIntTDiv(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntTDiv VM hook wrapper

func (*WrapperVMHooks) BigIntTMod

func (w *WrapperVMHooks) BigIntTMod(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntTMod VM hook wrapper

func (*WrapperVMHooks) BigIntToString

func (w *WrapperVMHooks) BigIntToString(bigIntHandle int32, destinationHandle int32)

BigIntToString VM hook wrapper

func (*WrapperVMHooks) BigIntUnsignedByteLength

func (w *WrapperVMHooks) BigIntUnsignedByteLength(referenceHandle int32) int32

BigIntUnsignedByteLength VM hook wrapper

func (*WrapperVMHooks) BigIntXor

func (w *WrapperVMHooks) BigIntXor(destinationHandle int32, op1Handle int32, op2Handle int32)

BigIntXor VM hook wrapper

func (*WrapperVMHooks) CheckNoPayment

func (w *WrapperVMHooks) CheckNoPayment()

CheckNoPayment VM hook wrapper

func (*WrapperVMHooks) CleanReturnData

func (w *WrapperVMHooks) CleanReturnData()

CleanReturnData VM hook wrapper

func (*WrapperVMHooks) ClearStorageLock

func (w *WrapperVMHooks) ClearStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength) int32

ClearStorageLock VM hook wrapper

func (*WrapperVMHooks) CreateAsyncCall

func (w *WrapperVMHooks) CreateAsyncCall(destOffset executor.MemPtr, valueOffset executor.MemPtr, dataOffset executor.MemPtr, dataLength executor.MemLength, successOffset executor.MemPtr, successLength executor.MemLength, errorOffset executor.MemPtr, errorLength executor.MemLength, gas int64, extraGasForCallback int64) int32

CreateAsyncCall VM hook wrapper

func (*WrapperVMHooks) CreateContract

func (w *WrapperVMHooks) CreateContract(gasLimit int64, valueOffset executor.MemPtr, codeOffset executor.MemPtr, codeMetadataOffset executor.MemPtr, length executor.MemLength, resultOffset executor.MemPtr, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

CreateContract VM hook wrapper

func (*WrapperVMHooks) CreateEC

func (w *WrapperVMHooks) CreateEC(dataOffset executor.MemPtr, dataLength executor.MemLength) int32

CreateEC VM hook wrapper

func (*WrapperVMHooks) DeleteContract

func (w *WrapperVMHooks) DeleteContract(destOffset executor.MemPtr, gasLimit int64, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr)

DeleteContract VM hook wrapper

func (*WrapperVMHooks) DeleteFromReturnData

func (w *WrapperVMHooks) DeleteFromReturnData(resultID int32)

DeleteFromReturnData VM hook wrapper

func (*WrapperVMHooks) DeployFromSourceContract

func (w *WrapperVMHooks) DeployFromSourceContract(gasLimit int64, valueOffset executor.MemPtr, sourceContractAddressOffset executor.MemPtr, codeMetadataOffset executor.MemPtr, resultAddressOffset executor.MemPtr, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

DeployFromSourceContract VM hook wrapper

func (*WrapperVMHooks) DoubleEC

func (w *WrapperVMHooks) DoubleEC(xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, pointYHandle int32)

DoubleEC VM hook wrapper

func (*WrapperVMHooks) EllipticCurveGetValues

func (w *WrapperVMHooks) EllipticCurveGetValues(ecHandle int32, fieldOrderHandle int32, basePointOrderHandle int32, eqConstantHandle int32, xBasePointHandle int32, yBasePointHandle int32) int32

EllipticCurveGetValues VM hook wrapper

func (*WrapperVMHooks) EncodeSecp256k1DerSignature

func (w *WrapperVMHooks) EncodeSecp256k1DerSignature(rOffset executor.MemPtr, rLength executor.MemLength, sOffset executor.MemPtr, sLength executor.MemLength, sigOffset executor.MemPtr) int32

EncodeSecp256k1DerSignature VM hook wrapper

func (*WrapperVMHooks) ExecuteOnDestContext

func (w *WrapperVMHooks) ExecuteOnDestContext(gasLimit int64, addressOffset executor.MemPtr, valueOffset executor.MemPtr, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

ExecuteOnDestContext VM hook wrapper

func (*WrapperVMHooks) ExecuteOnSameContext

func (w *WrapperVMHooks) ExecuteOnSameContext(gasLimit int64, addressOffset executor.MemPtr, valueOffset executor.MemPtr, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

ExecuteOnSameContext VM hook wrapper

func (*WrapperVMHooks) ExecuteReadOnly

func (w *WrapperVMHooks) ExecuteReadOnly(gasLimit int64, addressOffset executor.MemPtr, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

ExecuteReadOnly VM hook wrapper

func (*WrapperVMHooks) Finish

func (w *WrapperVMHooks) Finish(pointer executor.MemPtr, length executor.MemLength)

Finish VM hook wrapper

func (*WrapperVMHooks) GenerateKeyEC

func (w *WrapperVMHooks) GenerateKeyEC(xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, resultOffset executor.MemPtr) int32

GenerateKeyEC VM hook wrapper

func (*WrapperVMHooks) GetArgument

func (w *WrapperVMHooks) GetArgument(id int32, argOffset executor.MemPtr) int32

GetArgument VM hook wrapper

func (*WrapperVMHooks) GetArgumentLength

func (w *WrapperVMHooks) GetArgumentLength(id int32) int32

GetArgumentLength VM hook wrapper

func (*WrapperVMHooks) GetBlockEpoch

func (w *WrapperVMHooks) GetBlockEpoch() int64

GetBlockEpoch VM hook wrapper

func (*WrapperVMHooks) GetBlockHash

func (w *WrapperVMHooks) GetBlockHash(nonce int64, resultOffset executor.MemPtr) int32

GetBlockHash VM hook wrapper

func (*WrapperVMHooks) GetBlockNonce

func (w *WrapperVMHooks) GetBlockNonce() int64

GetBlockNonce VM hook wrapper

func (*WrapperVMHooks) GetBlockRandomSeed

func (w *WrapperVMHooks) GetBlockRandomSeed(pointer executor.MemPtr)

GetBlockRandomSeed VM hook wrapper

func (*WrapperVMHooks) GetBlockRound

func (w *WrapperVMHooks) GetBlockRound() int64

GetBlockRound VM hook wrapper

func (*WrapperVMHooks) GetBlockTimestamp

func (w *WrapperVMHooks) GetBlockTimestamp() int64

GetBlockTimestamp VM hook wrapper

func (*WrapperVMHooks) GetCallValue

func (w *WrapperVMHooks) GetCallValue(resultOffset executor.MemPtr) int32

GetCallValue VM hook wrapper

func (*WrapperVMHooks) GetCallValueTokenName

func (w *WrapperVMHooks) GetCallValueTokenName(callValueOffset executor.MemPtr, tokenNameOffset executor.MemPtr) int32

GetCallValueTokenName VM hook wrapper

func (*WrapperVMHooks) GetCallValueTokenNameByIndex

func (w *WrapperVMHooks) GetCallValueTokenNameByIndex(callValueOffset executor.MemPtr, tokenNameOffset executor.MemPtr, index int32) int32

GetCallValueTokenNameByIndex VM hook wrapper

func (*WrapperVMHooks) GetCaller

func (w *WrapperVMHooks) GetCaller(resultOffset executor.MemPtr)

GetCaller VM hook wrapper

func (*WrapperVMHooks) GetCurrentESDTNFTNonce

func (w *WrapperVMHooks) GetCurrentESDTNFTNonce(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength) int64

GetCurrentESDTNFTNonce VM hook wrapper

func (*WrapperVMHooks) GetCurrentTxHash

func (w *WrapperVMHooks) GetCurrentTxHash(dataOffset executor.MemPtr)

GetCurrentTxHash VM hook wrapper

func (*WrapperVMHooks) GetCurveLengthEC

func (w *WrapperVMHooks) GetCurveLengthEC(ecHandle int32) int32

GetCurveLengthEC VM hook wrapper

func (*WrapperVMHooks) GetESDTBalance

func (w *WrapperVMHooks) GetESDTBalance(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, resultOffset executor.MemPtr) int32

GetESDTBalance VM hook wrapper

func (*WrapperVMHooks) GetESDTLocalRoles

func (w *WrapperVMHooks) GetESDTLocalRoles(tokenIdHandle int32) int64

GetESDTLocalRoles VM hook wrapper

func (*WrapperVMHooks) GetESDTNFTAttributeLength

func (w *WrapperVMHooks) GetESDTNFTAttributeLength(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64) int32

GetESDTNFTAttributeLength VM hook wrapper

func (*WrapperVMHooks) GetESDTNFTNameLength

func (w *WrapperVMHooks) GetESDTNFTNameLength(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64) int32

GetESDTNFTNameLength VM hook wrapper

func (*WrapperVMHooks) GetESDTNFTURILength

func (w *WrapperVMHooks) GetESDTNFTURILength(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64) int32

GetESDTNFTURILength VM hook wrapper

func (*WrapperVMHooks) GetESDTTokenData

func (w *WrapperVMHooks) GetESDTTokenData(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, valueHandle int32, propertiesOffset executor.MemPtr, hashOffset executor.MemPtr, nameOffset executor.MemPtr, attributesOffset executor.MemPtr, creatorOffset executor.MemPtr, royaltiesHandle int32, urisOffset executor.MemPtr) int32

GetESDTTokenData VM hook wrapper

func (*WrapperVMHooks) GetESDTTokenName

func (w *WrapperVMHooks) GetESDTTokenName(resultOffset executor.MemPtr) int32

GetESDTTokenName VM hook wrapper

func (*WrapperVMHooks) GetESDTTokenNameByIndex

func (w *WrapperVMHooks) GetESDTTokenNameByIndex(resultOffset executor.MemPtr, index int32) int32

GetESDTTokenNameByIndex VM hook wrapper

func (*WrapperVMHooks) GetESDTTokenNonce

func (w *WrapperVMHooks) GetESDTTokenNonce() int64

GetESDTTokenNonce VM hook wrapper

func (*WrapperVMHooks) GetESDTTokenNonceByIndex

func (w *WrapperVMHooks) GetESDTTokenNonceByIndex(index int32) int64

GetESDTTokenNonceByIndex VM hook wrapper

func (*WrapperVMHooks) GetESDTTokenType

func (w *WrapperVMHooks) GetESDTTokenType() int32

GetESDTTokenType VM hook wrapper

func (*WrapperVMHooks) GetESDTTokenTypeByIndex

func (w *WrapperVMHooks) GetESDTTokenTypeByIndex(index int32) int32

GetESDTTokenTypeByIndex VM hook wrapper

func (*WrapperVMHooks) GetESDTValue

func (w *WrapperVMHooks) GetESDTValue(resultOffset executor.MemPtr) int32

GetESDTValue VM hook wrapper

func (*WrapperVMHooks) GetESDTValueByIndex

func (w *WrapperVMHooks) GetESDTValueByIndex(resultOffset executor.MemPtr, index int32) int32

GetESDTValueByIndex VM hook wrapper

func (*WrapperVMHooks) GetExternalBalance

func (w *WrapperVMHooks) GetExternalBalance(addressOffset executor.MemPtr, resultOffset executor.MemPtr)

GetExternalBalance VM hook wrapper

func (*WrapperVMHooks) GetFunction

func (w *WrapperVMHooks) GetFunction(functionOffset executor.MemPtr) int32

GetFunction VM hook wrapper

func (*WrapperVMHooks) GetGasLeft

func (w *WrapperVMHooks) GetGasLeft() int64

GetGasLeft VM hook wrapper

func (*WrapperVMHooks) GetNumArguments

func (w *WrapperVMHooks) GetNumArguments() int32

GetNumArguments VM hook wrapper

func (*WrapperVMHooks) GetNumESDTTransfers

func (w *WrapperVMHooks) GetNumESDTTransfers() int32

GetNumESDTTransfers VM hook wrapper

func (*WrapperVMHooks) GetNumReturnData

func (w *WrapperVMHooks) GetNumReturnData() int32

GetNumReturnData VM hook wrapper

func (*WrapperVMHooks) GetOriginalTxHash

func (w *WrapperVMHooks) GetOriginalTxHash(dataOffset executor.MemPtr)

GetOriginalTxHash VM hook wrapper

func (*WrapperVMHooks) GetOwnerAddress

func (w *WrapperVMHooks) GetOwnerAddress(resultOffset executor.MemPtr)

GetOwnerAddress VM hook wrapper

func (*WrapperVMHooks) GetPrevBlockEpoch

func (w *WrapperVMHooks) GetPrevBlockEpoch() int64

GetPrevBlockEpoch VM hook wrapper

func (*WrapperVMHooks) GetPrevBlockNonce

func (w *WrapperVMHooks) GetPrevBlockNonce() int64

GetPrevBlockNonce VM hook wrapper

func (*WrapperVMHooks) GetPrevBlockRandomSeed

func (w *WrapperVMHooks) GetPrevBlockRandomSeed(pointer executor.MemPtr)

GetPrevBlockRandomSeed VM hook wrapper

func (*WrapperVMHooks) GetPrevBlockRound

func (w *WrapperVMHooks) GetPrevBlockRound() int64

GetPrevBlockRound VM hook wrapper

func (*WrapperVMHooks) GetPrevBlockTimestamp

func (w *WrapperVMHooks) GetPrevBlockTimestamp() int64

GetPrevBlockTimestamp VM hook wrapper

func (*WrapperVMHooks) GetPrevTxHash

func (w *WrapperVMHooks) GetPrevTxHash(dataOffset executor.MemPtr)

GetPrevTxHash VM hook wrapper

func (*WrapperVMHooks) GetPrivKeyByteLengthEC

func (w *WrapperVMHooks) GetPrivKeyByteLengthEC(ecHandle int32) int32

GetPrivKeyByteLengthEC VM hook wrapper

func (*WrapperVMHooks) GetReturnData

func (w *WrapperVMHooks) GetReturnData(resultID int32, dataOffset executor.MemPtr) int32

GetReturnData VM hook wrapper

func (*WrapperVMHooks) GetReturnDataSize

func (w *WrapperVMHooks) GetReturnDataSize(resultID int32) int32

GetReturnDataSize VM hook wrapper

func (*WrapperVMHooks) GetSCAddress

func (w *WrapperVMHooks) GetSCAddress(resultOffset executor.MemPtr)

GetSCAddress VM hook wrapper

func (*WrapperVMHooks) GetShardOfAddress

func (w *WrapperVMHooks) GetShardOfAddress(addressOffset executor.MemPtr) int32

GetShardOfAddress VM hook wrapper

func (*WrapperVMHooks) GetStateRootHash

func (w *WrapperVMHooks) GetStateRootHash(pointer executor.MemPtr)

GetStateRootHash VM hook wrapper

func (*WrapperVMHooks) GetStorageLock

func (w *WrapperVMHooks) GetStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength) int64

GetStorageLock VM hook wrapper

func (*WrapperVMHooks) Int64finish

func (w *WrapperVMHooks) Int64finish(value int64)

Int64finish VM hook wrapper

func (*WrapperVMHooks) Int64getArgument

func (w *WrapperVMHooks) Int64getArgument(id int32) int64

Int64getArgument VM hook wrapper

func (*WrapperVMHooks) Int64storageLoad

func (w *WrapperVMHooks) Int64storageLoad(keyOffset executor.MemPtr, keyLength executor.MemLength) int64

Int64storageLoad VM hook wrapper

func (*WrapperVMHooks) Int64storageStore

func (w *WrapperVMHooks) Int64storageStore(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32

Int64storageStore VM hook wrapper

func (*WrapperVMHooks) IsOnCurveEC

func (w *WrapperVMHooks) IsOnCurveEC(ecHandle int32, pointXHandle int32, pointYHandle int32) int32

IsOnCurveEC VM hook wrapper

func (*WrapperVMHooks) IsSmartContract

func (w *WrapperVMHooks) IsSmartContract(addressOffset executor.MemPtr) int32

IsSmartContract VM hook wrapper

func (*WrapperVMHooks) IsStorageLocked

func (w *WrapperVMHooks) IsStorageLocked(keyOffset executor.MemPtr, keyLength executor.MemLength) int32

IsStorageLocked VM hook wrapper

func (*WrapperVMHooks) Keccak256

func (w *WrapperVMHooks) Keccak256(dataOffset executor.MemPtr, length executor.MemLength, resultOffset executor.MemPtr) int32

Keccak256 VM hook wrapper

func (*WrapperVMHooks) MBufferAppend

func (w *WrapperVMHooks) MBufferAppend(accumulatorHandle int32, dataHandle int32) int32

MBufferAppend VM hook wrapper

func (*WrapperVMHooks) MBufferAppendBytes

func (w *WrapperVMHooks) MBufferAppendBytes(accumulatorHandle int32, dataOffset executor.MemPtr, dataLength executor.MemLength) int32

MBufferAppendBytes VM hook wrapper

func (*WrapperVMHooks) MBufferCopyByteSlice

func (w *WrapperVMHooks) MBufferCopyByteSlice(sourceHandle int32, startingPosition int32, sliceLength int32, destinationHandle int32) int32

MBufferCopyByteSlice VM hook wrapper

func (*WrapperVMHooks) MBufferEq

func (w *WrapperVMHooks) MBufferEq(mBufferHandle1 int32, mBufferHandle2 int32) int32

MBufferEq VM hook wrapper

func (*WrapperVMHooks) MBufferFinish

func (w *WrapperVMHooks) MBufferFinish(sourceHandle int32) int32

MBufferFinish VM hook wrapper

func (*WrapperVMHooks) MBufferFromBigFloat

func (w *WrapperVMHooks) MBufferFromBigFloat(mBufferHandle int32, bigFloatHandle int32) int32

MBufferFromBigFloat VM hook wrapper

func (*WrapperVMHooks) MBufferFromBigIntSigned

func (w *WrapperVMHooks) MBufferFromBigIntSigned(mBufferHandle int32, bigIntHandle int32) int32

MBufferFromBigIntSigned VM hook wrapper

func (*WrapperVMHooks) MBufferFromBigIntUnsigned

func (w *WrapperVMHooks) MBufferFromBigIntUnsigned(mBufferHandle int32, bigIntHandle int32) int32

MBufferFromBigIntUnsigned VM hook wrapper

func (*WrapperVMHooks) MBufferGetArgument

func (w *WrapperVMHooks) MBufferGetArgument(id int32, destinationHandle int32) int32

MBufferGetArgument VM hook wrapper

func (*WrapperVMHooks) MBufferGetByteSlice

func (w *WrapperVMHooks) MBufferGetByteSlice(sourceHandle int32, startingPosition int32, sliceLength int32, resultOffset executor.MemPtr) int32

MBufferGetByteSlice VM hook wrapper

func (*WrapperVMHooks) MBufferGetBytes

func (w *WrapperVMHooks) MBufferGetBytes(mBufferHandle int32, resultOffset executor.MemPtr) int32

MBufferGetBytes VM hook wrapper

func (*WrapperVMHooks) MBufferGetLength

func (w *WrapperVMHooks) MBufferGetLength(mBufferHandle int32) int32

MBufferGetLength VM hook wrapper

func (*WrapperVMHooks) MBufferNew

func (w *WrapperVMHooks) MBufferNew() int32

MBufferNew VM hook wrapper

func (*WrapperVMHooks) MBufferNewFromBytes

func (w *WrapperVMHooks) MBufferNewFromBytes(dataOffset executor.MemPtr, dataLength executor.MemLength) int32

MBufferNewFromBytes VM hook wrapper

func (*WrapperVMHooks) MBufferSetByteSlice

func (w *WrapperVMHooks) MBufferSetByteSlice(mBufferHandle int32, startingPosition int32, dataLength executor.MemLength, dataOffset executor.MemPtr) int32

MBufferSetByteSlice VM hook wrapper

func (*WrapperVMHooks) MBufferSetBytes

func (w *WrapperVMHooks) MBufferSetBytes(mBufferHandle int32, dataOffset executor.MemPtr, dataLength executor.MemLength) int32

MBufferSetBytes VM hook wrapper

func (*WrapperVMHooks) MBufferSetRandom

func (w *WrapperVMHooks) MBufferSetRandom(destinationHandle int32, length int32) int32

MBufferSetRandom VM hook wrapper

func (*WrapperVMHooks) MBufferStorageLoad

func (w *WrapperVMHooks) MBufferStorageLoad(keyHandle int32, destinationHandle int32) int32

MBufferStorageLoad VM hook wrapper

func (*WrapperVMHooks) MBufferStorageLoadFromAddress

func (w *WrapperVMHooks) MBufferStorageLoadFromAddress(addressHandle int32, keyHandle int32, destinationHandle int32)

MBufferStorageLoadFromAddress VM hook wrapper

func (*WrapperVMHooks) MBufferStorageStore

func (w *WrapperVMHooks) MBufferStorageStore(keyHandle int32, sourceHandle int32) int32

MBufferStorageStore VM hook wrapper

func (*WrapperVMHooks) MBufferToBigFloat

func (w *WrapperVMHooks) MBufferToBigFloat(mBufferHandle int32, bigFloatHandle int32) int32

MBufferToBigFloat VM hook wrapper

func (*WrapperVMHooks) MBufferToBigIntSigned

func (w *WrapperVMHooks) MBufferToBigIntSigned(mBufferHandle int32, bigIntHandle int32) int32

MBufferToBigIntSigned VM hook wrapper

func (*WrapperVMHooks) MBufferToBigIntUnsigned

func (w *WrapperVMHooks) MBufferToBigIntUnsigned(mBufferHandle int32, bigIntHandle int32) int32

MBufferToBigIntUnsigned VM hook wrapper

func (*WrapperVMHooks) ManagedAsyncCall

func (w *WrapperVMHooks) ManagedAsyncCall(destHandle int32, valueHandle int32, functionHandle int32, argumentsHandle int32)

ManagedAsyncCall VM hook wrapper

func (*WrapperVMHooks) ManagedBufferToHex

func (w *WrapperVMHooks) ManagedBufferToHex(sourceHandle int32, destHandle int32)

ManagedBufferToHex VM hook wrapper

func (*WrapperVMHooks) ManagedCaller

func (w *WrapperVMHooks) ManagedCaller(destinationHandle int32)

ManagedCaller VM hook wrapper

func (*WrapperVMHooks) ManagedCreateAsyncCall

func (w *WrapperVMHooks) ManagedCreateAsyncCall(destHandle int32, valueHandle int32, functionHandle int32, argumentsHandle int32, successOffset executor.MemPtr, successLength executor.MemLength, errorOffset executor.MemPtr, errorLength executor.MemLength, gas int64, extraGasForCallback int64, callbackClosureHandle int32) int32

ManagedCreateAsyncCall VM hook wrapper

func (*WrapperVMHooks) ManagedCreateContract

func (w *WrapperVMHooks) ManagedCreateContract(gas int64, valueHandle int32, codeHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultAddressHandle int32, resultHandle int32) int32

ManagedCreateContract VM hook wrapper

func (*WrapperVMHooks) ManagedCreateEC

func (w *WrapperVMHooks) ManagedCreateEC(dataHandle int32) int32

ManagedCreateEC VM hook wrapper

func (*WrapperVMHooks) ManagedDeleteContract

func (w *WrapperVMHooks) ManagedDeleteContract(destHandle int32, gasLimit int64, argumentsHandle int32)

ManagedDeleteContract VM hook wrapper

func (*WrapperVMHooks) ManagedDeployFromSourceContract

func (w *WrapperVMHooks) ManagedDeployFromSourceContract(gas int64, valueHandle int32, addressHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultAddressHandle int32, resultHandle int32) int32

ManagedDeployFromSourceContract VM hook wrapper

func (*WrapperVMHooks) ManagedEncodeSecp256k1DerSignature

func (w *WrapperVMHooks) ManagedEncodeSecp256k1DerSignature(rHandle int32, sHandle int32, sigHandle int32) int32

ManagedEncodeSecp256k1DerSignature VM hook wrapper

func (*WrapperVMHooks) ManagedExecuteOnDestContext

func (w *WrapperVMHooks) ManagedExecuteOnDestContext(gas int64, addressHandle int32, valueHandle int32, functionHandle int32, argumentsHandle int32, resultHandle int32) int32

ManagedExecuteOnDestContext VM hook wrapper

func (*WrapperVMHooks) ManagedExecuteOnSameContext

func (w *WrapperVMHooks) ManagedExecuteOnSameContext(gas int64, addressHandle int32, valueHandle int32, functionHandle int32, argumentsHandle int32, resultHandle int32) int32

ManagedExecuteOnSameContext VM hook wrapper

func (*WrapperVMHooks) ManagedExecuteReadOnly

func (w *WrapperVMHooks) ManagedExecuteReadOnly(gas int64, addressHandle int32, functionHandle int32, argumentsHandle int32, resultHandle int32) int32

ManagedExecuteReadOnly VM hook wrapper

func (*WrapperVMHooks) ManagedGenerateKeyEC

func (w *WrapperVMHooks) ManagedGenerateKeyEC(xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, resultHandle int32) int32

ManagedGenerateKeyEC VM hook wrapper

func (*WrapperVMHooks) ManagedGetBlockRandomSeed

func (w *WrapperVMHooks) ManagedGetBlockRandomSeed(resultHandle int32)

ManagedGetBlockRandomSeed VM hook wrapper

func (*WrapperVMHooks) ManagedGetCallbackClosure

func (w *WrapperVMHooks) ManagedGetCallbackClosure(callbackClosureHandle int32)

ManagedGetCallbackClosure VM hook wrapper

func (*WrapperVMHooks) ManagedGetESDTBalance

func (w *WrapperVMHooks) ManagedGetESDTBalance(addressHandle int32, tokenIDHandle int32, nonce int64, valueHandle int32)

ManagedGetESDTBalance VM hook wrapper

func (*WrapperVMHooks) ManagedGetESDTTokenData

func (w *WrapperVMHooks) ManagedGetESDTTokenData(addressHandle int32, tokenIDHandle int32, nonce int64, valueHandle int32, propertiesHandle int32, hashHandle int32, nameHandle int32, attributesHandle int32, creatorHandle int32, royaltiesHandle int32, urisHandle int32)

ManagedGetESDTTokenData VM hook wrapper

func (*WrapperVMHooks) ManagedGetMultiESDTCallValue

func (w *WrapperVMHooks) ManagedGetMultiESDTCallValue(multiCallValueHandle int32)

ManagedGetMultiESDTCallValue VM hook wrapper

func (*WrapperVMHooks) ManagedGetOriginalTxHash

func (w *WrapperVMHooks) ManagedGetOriginalTxHash(resultHandle int32)

ManagedGetOriginalTxHash VM hook wrapper

func (*WrapperVMHooks) ManagedGetPrevBlockRandomSeed

func (w *WrapperVMHooks) ManagedGetPrevBlockRandomSeed(resultHandle int32)

ManagedGetPrevBlockRandomSeed VM hook wrapper

func (*WrapperVMHooks) ManagedGetReturnData

func (w *WrapperVMHooks) ManagedGetReturnData(resultID int32, resultHandle int32)

ManagedGetReturnData VM hook wrapper

func (*WrapperVMHooks) ManagedGetStateRootHash

func (w *WrapperVMHooks) ManagedGetStateRootHash(resultHandle int32)

ManagedGetStateRootHash VM hook wrapper

func (*WrapperVMHooks) ManagedIsESDTFrozen

func (w *WrapperVMHooks) ManagedIsESDTFrozen(addressHandle int32, tokenIDHandle int32, nonce int64) int32

ManagedIsESDTFrozen VM hook wrapper

func (*WrapperVMHooks) ManagedIsESDTLimitedTransfer

func (w *WrapperVMHooks) ManagedIsESDTLimitedTransfer(tokenIDHandle int32) int32

ManagedIsESDTLimitedTransfer VM hook wrapper

func (*WrapperVMHooks) ManagedIsESDTPaused

func (w *WrapperVMHooks) ManagedIsESDTPaused(tokenIDHandle int32) int32

ManagedIsESDTPaused VM hook wrapper

func (*WrapperVMHooks) ManagedKeccak256

func (w *WrapperVMHooks) ManagedKeccak256(inputHandle int32, outputHandle int32) int32

ManagedKeccak256 VM hook wrapper

func (*WrapperVMHooks) ManagedMapContains

func (w *WrapperVMHooks) ManagedMapContains(mMapHandle int32, keyHandle int32) int32

ManagedMapContains VM hook wrapper

func (*WrapperVMHooks) ManagedMapGet

func (w *WrapperVMHooks) ManagedMapGet(mMapHandle int32, keyHandle int32, outValueHandle int32) int32

ManagedMapGet VM hook wrapper

func (*WrapperVMHooks) ManagedMapNew

func (w *WrapperVMHooks) ManagedMapNew() int32

ManagedMapNew VM hook wrapper

func (*WrapperVMHooks) ManagedMapPut

func (w *WrapperVMHooks) ManagedMapPut(mMapHandle int32, keyHandle int32, valueHandle int32) int32

ManagedMapPut VM hook wrapper

func (*WrapperVMHooks) ManagedMapRemove

func (w *WrapperVMHooks) ManagedMapRemove(mMapHandle int32, keyHandle int32, outValueHandle int32) int32

ManagedMapRemove VM hook wrapper

func (*WrapperVMHooks) ManagedMarshalCompressedEC

func (w *WrapperVMHooks) ManagedMarshalCompressedEC(xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32) int32

ManagedMarshalCompressedEC VM hook wrapper

func (*WrapperVMHooks) ManagedMarshalEC

func (w *WrapperVMHooks) ManagedMarshalEC(xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32) int32

ManagedMarshalEC VM hook wrapper

func (*WrapperVMHooks) ManagedMultiTransferESDTNFTExecute

func (w *WrapperVMHooks) ManagedMultiTransferESDTNFTExecute(dstHandle int32, tokenTransfersHandle int32, gasLimit int64, functionHandle int32, argumentsHandle int32) int32

ManagedMultiTransferESDTNFTExecute VM hook wrapper

func (*WrapperVMHooks) ManagedOwnerAddress

func (w *WrapperVMHooks) ManagedOwnerAddress(destinationHandle int32)

ManagedOwnerAddress VM hook wrapper

func (*WrapperVMHooks) ManagedRipemd160

func (w *WrapperVMHooks) ManagedRipemd160(inputHandle int32, outputHandle int32) int32

ManagedRipemd160 VM hook wrapper

func (*WrapperVMHooks) ManagedSCAddress

func (w *WrapperVMHooks) ManagedSCAddress(destinationHandle int32)

ManagedSCAddress VM hook wrapper

func (*WrapperVMHooks) ManagedScalarBaseMultEC

func (w *WrapperVMHooks) ManagedScalarBaseMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32) int32

ManagedScalarBaseMultEC VM hook wrapper

func (*WrapperVMHooks) ManagedScalarMultEC

func (w *WrapperVMHooks) ManagedScalarMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, pointYHandle int32, dataHandle int32) int32

ManagedScalarMultEC VM hook wrapper

func (*WrapperVMHooks) ManagedSha256

func (w *WrapperVMHooks) ManagedSha256(inputHandle int32, outputHandle int32) int32

ManagedSha256 VM hook wrapper

func (*WrapperVMHooks) ManagedSignalError

func (w *WrapperVMHooks) ManagedSignalError(errHandle int32)

ManagedSignalError VM hook wrapper

func (*WrapperVMHooks) ManagedTransferValueExecute

func (w *WrapperVMHooks) ManagedTransferValueExecute(dstHandle int32, valueHandle int32, gasLimit int64, functionHandle int32, argumentsHandle int32) int32

ManagedTransferValueExecute VM hook wrapper

func (*WrapperVMHooks) ManagedUnmarshalCompressedEC

func (w *WrapperVMHooks) ManagedUnmarshalCompressedEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32) int32

ManagedUnmarshalCompressedEC VM hook wrapper

func (*WrapperVMHooks) ManagedUnmarshalEC

func (w *WrapperVMHooks) ManagedUnmarshalEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32) int32

ManagedUnmarshalEC VM hook wrapper

func (*WrapperVMHooks) ManagedUpgradeContract

func (w *WrapperVMHooks) ManagedUpgradeContract(destHandle int32, gas int64, valueHandle int32, codeHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultHandle int32)

ManagedUpgradeContract VM hook wrapper

func (*WrapperVMHooks) ManagedUpgradeFromSourceContract

func (w *WrapperVMHooks) ManagedUpgradeFromSourceContract(destHandle int32, gas int64, valueHandle int32, addressHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultHandle int32)

ManagedUpgradeFromSourceContract VM hook wrapper

func (*WrapperVMHooks) ManagedVerifyBLS

func (w *WrapperVMHooks) ManagedVerifyBLS(keyHandle int32, messageHandle int32, sigHandle int32) int32

ManagedVerifyBLS VM hook wrapper

func (*WrapperVMHooks) ManagedVerifyCustomSecp256k1

func (w *WrapperVMHooks) ManagedVerifyCustomSecp256k1(keyHandle int32, messageHandle int32, sigHandle int32, hashType int32) int32

ManagedVerifyCustomSecp256k1 VM hook wrapper

func (*WrapperVMHooks) ManagedVerifyEd25519

func (w *WrapperVMHooks) ManagedVerifyEd25519(keyHandle int32, messageHandle int32, sigHandle int32) int32

ManagedVerifyEd25519 VM hook wrapper

func (*WrapperVMHooks) ManagedVerifySecp256k1

func (w *WrapperVMHooks) ManagedVerifySecp256k1(keyHandle int32, messageHandle int32, sigHandle int32) int32

ManagedVerifySecp256k1 VM hook wrapper

func (*WrapperVMHooks) ManagedWriteLog

func (w *WrapperVMHooks) ManagedWriteLog(topicsHandle int32, dataHandle int32)

ManagedWriteLog VM hook wrapper

func (*WrapperVMHooks) MarshalCompressedEC

func (w *WrapperVMHooks) MarshalCompressedEC(xPairHandle int32, yPairHandle int32, ecHandle int32, resultOffset executor.MemPtr) int32

MarshalCompressedEC VM hook wrapper

func (*WrapperVMHooks) MarshalEC

func (w *WrapperVMHooks) MarshalEC(xPairHandle int32, yPairHandle int32, ecHandle int32, resultOffset executor.MemPtr) int32

MarshalEC VM hook wrapper

func (*WrapperVMHooks) MultiTransferESDTNFTExecute

func (w *WrapperVMHooks) MultiTransferESDTNFTExecute(destOffset executor.MemPtr, numTokenTransfers int32, tokenTransfersArgsLengthOffset executor.MemPtr, tokenTransferDataOffset executor.MemPtr, gasLimit int64, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

MultiTransferESDTNFTExecute VM hook wrapper

func (*WrapperVMHooks) Ripemd160

func (w *WrapperVMHooks) Ripemd160(dataOffset executor.MemPtr, length executor.MemLength, resultOffset executor.MemPtr) int32

Ripemd160 VM hook wrapper

func (*WrapperVMHooks) ScalarBaseMultEC

func (w *WrapperVMHooks) ScalarBaseMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataOffset executor.MemPtr, length executor.MemLength) int32

ScalarBaseMultEC VM hook wrapper

func (*WrapperVMHooks) ScalarMultEC

func (w *WrapperVMHooks) ScalarMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, pointYHandle int32, dataOffset executor.MemPtr, length executor.MemLength) int32

ScalarMultEC VM hook wrapper

func (*WrapperVMHooks) SetAsyncContextCallback

func (w *WrapperVMHooks) SetAsyncContextCallback(callback executor.MemPtr, callbackLength executor.MemLength, data executor.MemPtr, dataLength executor.MemLength, gas int64) int32

SetAsyncContextCallback VM hook wrapper

func (*WrapperVMHooks) SetStorageLock

func (w *WrapperVMHooks) SetStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength, lockTimestamp int64) int32

SetStorageLock VM hook wrapper

func (*WrapperVMHooks) Sha256

func (w *WrapperVMHooks) Sha256(dataOffset executor.MemPtr, length executor.MemLength, resultOffset executor.MemPtr) int32

Sha256 VM hook wrapper

func (*WrapperVMHooks) SignalError

func (w *WrapperVMHooks) SignalError(messageOffset executor.MemPtr, messageLength executor.MemLength)

SignalError VM hook wrapper

func (*WrapperVMHooks) SmallIntFinishSigned

func (w *WrapperVMHooks) SmallIntFinishSigned(value int64)

SmallIntFinishSigned VM hook wrapper

func (*WrapperVMHooks) SmallIntFinishUnsigned

func (w *WrapperVMHooks) SmallIntFinishUnsigned(value int64)

SmallIntFinishUnsigned VM hook wrapper

func (*WrapperVMHooks) SmallIntGetSignedArgument

func (w *WrapperVMHooks) SmallIntGetSignedArgument(id int32) int64

SmallIntGetSignedArgument VM hook wrapper

func (*WrapperVMHooks) SmallIntGetUnsignedArgument

func (w *WrapperVMHooks) SmallIntGetUnsignedArgument(id int32) int64

SmallIntGetUnsignedArgument VM hook wrapper

func (*WrapperVMHooks) SmallIntStorageLoadSigned

func (w *WrapperVMHooks) SmallIntStorageLoadSigned(keyOffset executor.MemPtr, keyLength executor.MemLength) int64

SmallIntStorageLoadSigned VM hook wrapper

func (*WrapperVMHooks) SmallIntStorageLoadUnsigned

func (w *WrapperVMHooks) SmallIntStorageLoadUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength) int64

SmallIntStorageLoadUnsigned VM hook wrapper

func (*WrapperVMHooks) SmallIntStorageStoreSigned

func (w *WrapperVMHooks) SmallIntStorageStoreSigned(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32

SmallIntStorageStoreSigned VM hook wrapper

func (*WrapperVMHooks) SmallIntStorageStoreUnsigned

func (w *WrapperVMHooks) SmallIntStorageStoreUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32

SmallIntStorageStoreUnsigned VM hook wrapper

func (*WrapperVMHooks) StorageLoad

func (w *WrapperVMHooks) StorageLoad(keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr) int32

StorageLoad VM hook wrapper

func (*WrapperVMHooks) StorageLoadFromAddress

func (w *WrapperVMHooks) StorageLoadFromAddress(addressOffset executor.MemPtr, keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr) int32

StorageLoadFromAddress VM hook wrapper

func (*WrapperVMHooks) StorageLoadLength

func (w *WrapperVMHooks) StorageLoadLength(keyOffset executor.MemPtr, keyLength executor.MemLength) int32

StorageLoadLength VM hook wrapper

func (*WrapperVMHooks) StorageStore

func (w *WrapperVMHooks) StorageStore(keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr, dataLength executor.MemLength) int32

StorageStore VM hook wrapper

func (*WrapperVMHooks) TransferESDTExecute

func (w *WrapperVMHooks) TransferESDTExecute(destOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, valueOffset executor.MemPtr, gasLimit int64, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

TransferESDTExecute VM hook wrapper

func (*WrapperVMHooks) TransferESDTNFTExecute

func (w *WrapperVMHooks) TransferESDTNFTExecute(destOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, valueOffset executor.MemPtr, nonce int64, gasLimit int64, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

TransferESDTNFTExecute VM hook wrapper

func (*WrapperVMHooks) TransferValue

func (w *WrapperVMHooks) TransferValue(destOffset executor.MemPtr, valueOffset executor.MemPtr, dataOffset executor.MemPtr, length executor.MemLength) int32

TransferValue VM hook wrapper

func (*WrapperVMHooks) TransferValueExecute

func (w *WrapperVMHooks) TransferValueExecute(destOffset executor.MemPtr, valueOffset executor.MemPtr, gasLimit int64, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr) int32

TransferValueExecute VM hook wrapper

func (*WrapperVMHooks) UnmarshalCompressedEC

func (w *WrapperVMHooks) UnmarshalCompressedEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataOffset executor.MemPtr, length executor.MemLength) int32

UnmarshalCompressedEC VM hook wrapper

func (*WrapperVMHooks) UnmarshalEC

func (w *WrapperVMHooks) UnmarshalEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataOffset executor.MemPtr, length executor.MemLength) int32

UnmarshalEC VM hook wrapper

func (*WrapperVMHooks) UpgradeContract

func (w *WrapperVMHooks) UpgradeContract(destOffset executor.MemPtr, gasLimit int64, valueOffset executor.MemPtr, codeOffset executor.MemPtr, codeMetadataOffset executor.MemPtr, length executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr)

UpgradeContract VM hook wrapper

func (*WrapperVMHooks) UpgradeFromSourceContract

func (w *WrapperVMHooks) UpgradeFromSourceContract(destOffset executor.MemPtr, gasLimit int64, valueOffset executor.MemPtr, sourceContractAddressOffset executor.MemPtr, codeMetadataOffset executor.MemPtr, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr)

UpgradeFromSourceContract VM hook wrapper

func (*WrapperVMHooks) ValidateTokenIdentifier

func (w *WrapperVMHooks) ValidateTokenIdentifier(tokenIdHandle int32) int32

ValidateTokenIdentifier VM hook wrapper

func (*WrapperVMHooks) VerifyBLS

func (w *WrapperVMHooks) VerifyBLS(keyOffset executor.MemPtr, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr) int32

VerifyBLS VM hook wrapper

func (*WrapperVMHooks) VerifyCustomSecp256k1

func (w *WrapperVMHooks) VerifyCustomSecp256k1(keyOffset executor.MemPtr, keyLength executor.MemLength, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr, hashType int32) int32

VerifyCustomSecp256k1 VM hook wrapper

func (*WrapperVMHooks) VerifyEd25519

func (w *WrapperVMHooks) VerifyEd25519(keyOffset executor.MemPtr, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr) int32

VerifyEd25519 VM hook wrapper

func (*WrapperVMHooks) VerifySecp256k1

func (w *WrapperVMHooks) VerifySecp256k1(keyOffset executor.MemPtr, keyLength executor.MemLength, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr) int32

VerifySecp256k1 VM hook wrapper

func (*WrapperVMHooks) WriteEventLog

func (w *WrapperVMHooks) WriteEventLog(numTopics int32, topicLengthsOffset executor.MemPtr, topicOffset executor.MemPtr, dataOffset executor.MemPtr, dataLength executor.MemLength)

WriteEventLog VM hook wrapper

func (*WrapperVMHooks) WriteLog

func (w *WrapperVMHooks) WriteLog(dataPointer executor.MemPtr, dataLength executor.MemLength, topicPtr executor.MemPtr, numTopics int32)

WriteLog VM hook wrapper

Jump to

Keyboard shortcuts

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