Documentation ¶
Index ¶
- Constants
- func BigIntToStringWithHost(host vmhost.VMHost, bigIntHandle int32, destinationHandle int32)
- func CleanReturnDataWithHost(host vmhost.VMHost)
- func CreateAsyncCallWithTypedArgs(host vmhost.VMHost, calledSCAddress []byte, value []byte, data []byte, ...) int32
- func DeleteFromReturnDataWithHost(host vmhost.VMHost, resultID int32)
- func DeployFromSourceContractWithTypedArgs(host vmhost.VMHost, sourceContractAddress []byte, codeMetadata []byte, ...) ([]byte, error)
- func ExecuteOnDestContextWithTypedArgs(host vmhost.VMHost, gasLimit int64, value *big.Int, function []byte, ...) int32
- func ExecuteOnSameContextWithTypedArgs(host vmhost.VMHost, gasLimit int64, value *big.Int, function []byte, ...) int32
- func ExecuteReadOnlyWithTypedArguments(host vmhost.VMHost, gasLimit int64, function []byte, dest []byte, ...) int32
- func GetCallbackClosureWithHost(host vmhost.VMHost, callbackClosureHandle int32)
- func GetReturnDataWithHostAndTypedArgs(host vmhost.VMHost, resultID int32) []byte
- func ManagedAsyncCallWithHost(host vmhost.VMHost, destHandle int32, valueHandle int32, functionHandle int32, ...)
- func ManagedBufferCopyByteSliceWithHost(host vmhost.VMHost, sourceHandle int32, startingPosition int32, ...) int32
- func ManagedBufferSetByteSliceWithTypedArgs(host vmhost.VMHost, mBufferHandle int32, startingPosition int32, ...) int32
- func ManagedBufferToHexWithHost(host vmhost.VMHost, sourceHandle int32, destHandle int32)
- func ManagedCreateECWithHost(host vmhost.VMHost, dataHandle int32) int32
- func ManagedDeleteContractWithHost(host vmhost.VMHost, destHandle int32, gasLimit int64, argumentsHandle int32)
- func ManagedEncodeSecp256k1DerSignatureWithHost(host vmhost.VMHost, rHandle, sHandle, sigHandle int32) int32
- func ManagedGenerateKeyECWithHost(host vmhost.VMHost, xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, ...) int32
- func ManagedGetCodeMetadataWithHost(host vmhost.VMHost, addressHandle int32, responseHandle int32)
- func ManagedGetESDTTokenDataWithHost(host vmhost.VMHost, addressHandle int32, tokenIDHandle int32, nonce int64, ...)
- func ManagedIsBuiltinFunctionWithHost(host vmhost.VMHost, functionNameHandle int32) int32
- func ManagedIsESDTFrozenWithHost(host vmhost.VMHost, addressHandle int32, tokenIDHandle int32, nonce int64) int32
- func ManagedIsESDTLimitedTransferWithHost(host vmhost.VMHost, tokenIDHandle int32) int32
- func ManagedIsESDTPausedWithHost(host vmhost.VMHost, tokenIDHandle int32) int32
- func ManagedMarshalCompressedECWithHost(host vmhost.VMHost, xPairHandle int32, yPairHandle int32, ecHandle int32, ...) int32
- func ManagedMarshalECWithHost(host vmhost.VMHost, xPairHandle int32, yPairHandle int32, ecHandle int32, ...) int32
- func ManagedRipemd160WithHost(host vmhost.VMHost, inputHandle int32, outputHandle int32) int32
- func ManagedScalarBaseMultECWithHost(host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, ...) int32
- func ManagedScalarMultECWithHost(host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, ...) int32
- func ManagedUnmarshalCompressedECWithHost(host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, ...) int32
- func ManagedUnmarshalECWithHost(host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, ...) int32
- func ManagedVerifyBLSWithHost(host vmhost.VMHost, keyHandle int32, messageHandle int32, sigHandle int32) int32
- func ManagedVerifyCustomSecp256k1WithHost(host vmhost.VMHost, keyHandle, messageHandle, sigHandle int32, hashType int32) int32
- func ManagedVerifyEd25519WithHost(host vmhost.VMHost, keyHandle, messageHandle, sigHandle int32) int32
- func ManagedVerifySecp256k1WithHost(host vmhost.VMHost, keyHandle, messageHandle, sigHandle int32) int32
- func SetStorageLockWithTypedArgs(host vmhost.VMHost, key []byte, lockTimestamp int64) int32
- func StorageLoadFromAddressWithTypedArgs(host vmhost.VMHost, address []byte, key []byte) ([]byte, error)
- func StorageLoadWithWithTypedArgs(host vmhost.VMHost, key []byte) ([]byte, error)
- func StorageStoreWithTypedArgs(host vmhost.VMHost, key []byte, data []byte) int32
- func TransferESDTNFTExecuteWithTypedArgs(host vmhost.VMHost, dest []byte, transfers []*vmcommon.ESDTTransfer, ...) int32
- func TransferValueExecuteWithTypedArgs(host vmhost.VMHost, dest []byte, value *big.Int, gasLimit int64, ...) int32
- func UpgradeFromSourceContractWithTypedArgs(host vmhost.VMHost, sourceContractAddress []byte, destContractAddress []byte, ...)
- func ValidateToken(tokenID []byte) bool
- func WithFaultAndHost(host vmhost.VMHost, err error, failExecution bool) bool
- type CreateContractCallType
- type VMHooksImpl
- func (context *VMHooksImpl) AddEC(xResultHandle int32, yResultHandle int32, ecHandle int32, ...)
- func (context *VMHooksImpl) AsyncCall(destOffset executor.MemPtr, valueOffset executor.MemPtr, ...)
- func (context *VMHooksImpl) BigFloatAbs(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigFloatAdd(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigFloatCeil(destBigIntHandle, opHandle int32)
- func (context *VMHooksImpl) BigFloatClone(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigFloatCmp(op1Handle, op2Handle int32) int32
- func (context *VMHooksImpl) BigFloatDiv(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigFloatFloor(destBigIntHandle, opHandle int32)
- func (context *VMHooksImpl) BigFloatGetConstE(destinationHandle int32)
- func (context *VMHooksImpl) BigFloatGetConstPi(destinationHandle int32)
- func (context *VMHooksImpl) BigFloatIsInt(opHandle int32) int32
- func (context *VMHooksImpl) BigFloatMul(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigFloatNeg(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigFloatNewFromFrac(numerator, denominator int64) int32
- func (context *VMHooksImpl) BigFloatNewFromParts(integralPart, fractionalPart, exponent int32) int32
- func (context *VMHooksImpl) BigFloatNewFromSci(significand, exponent int64) int32
- func (context *VMHooksImpl) BigFloatPow(destinationHandle, opHandle, exponent int32)
- func (context *VMHooksImpl) BigFloatSetBigInt(destinationHandle, bigIntHandle int32)
- func (context *VMHooksImpl) BigFloatSetInt64(destinationHandle int32, value int64)
- func (context *VMHooksImpl) BigFloatSign(opHandle int32) int32
- func (context *VMHooksImpl) BigFloatSqrt(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigFloatSub(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigFloatTruncate(destBigIntHandle, opHandle int32)
- func (context *VMHooksImpl) BigIntAbs(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigIntAdd(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntAnd(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntCmp(op1Handle, op2Handle int32) int32
- func (context *VMHooksImpl) BigIntEDiv(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntEMod(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntFinishSigned(referenceHandle int32)
- func (context *VMHooksImpl) BigIntFinishUnsigned(referenceHandle int32)
- func (context *VMHooksImpl) BigIntGetCallValue(destinationHandle int32)
- func (context *VMHooksImpl) BigIntGetESDTCallValue(destination int32)
- func (context *VMHooksImpl) BigIntGetESDTCallValueByIndex(destinationHandle int32, index int32)
- func (context *VMHooksImpl) BigIntGetESDTExternalBalance(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...)
- func (context *VMHooksImpl) BigIntGetExternalBalance(addressOffset executor.MemPtr, result int32)
- func (context *VMHooksImpl) BigIntGetInt64(destinationHandle int32) int64
- func (context *VMHooksImpl) BigIntGetSignedArgument(id int32, destinationHandle int32)
- func (context *VMHooksImpl) BigIntGetSignedBytes(referenceHandle int32, byteOffset executor.MemPtr) int32
- func (context *VMHooksImpl) BigIntGetUnsignedArgument(id int32, destinationHandle int32)
- func (context *VMHooksImpl) BigIntGetUnsignedBytes(referenceHandle int32, byteOffset executor.MemPtr) int32
- func (context *VMHooksImpl) BigIntIsInt64(destinationHandle int32) int32
- func (context *VMHooksImpl) BigIntLog2(op1Handle int32) int32
- func (context *VMHooksImpl) BigIntMul(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntNeg(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigIntNew(smallValue int64) int32
- func (context *VMHooksImpl) BigIntNot(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigIntOr(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntPow(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntSetInt64(destinationHandle int32, value int64)
- func (context *VMHooksImpl) BigIntSetSignedBytes(destinationHandle int32, byteOffset executor.MemPtr, ...)
- func (context *VMHooksImpl) BigIntSetUnsignedBytes(destinationHandle int32, byteOffset executor.MemPtr, ...)
- func (context *VMHooksImpl) BigIntShl(destinationHandle, opHandle, bits int32)
- func (context *VMHooksImpl) BigIntShr(destinationHandle, opHandle, bits int32)
- func (context *VMHooksImpl) BigIntSign(opHandle int32) int32
- func (context *VMHooksImpl) BigIntSignedByteLength(referenceHandle int32) int32
- func (context *VMHooksImpl) BigIntSqrt(destinationHandle, opHandle int32)
- func (context *VMHooksImpl) BigIntStorageLoadUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) BigIntStorageStoreUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, sourceHandle int32) int32
- func (context *VMHooksImpl) BigIntSub(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntTDiv(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntTMod(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) BigIntToString(bigIntHandle int32, destinationHandle int32)
- func (context *VMHooksImpl) BigIntUnsignedByteLength(referenceHandle int32) int32
- func (context *VMHooksImpl) BigIntXor(destinationHandle, op1Handle, op2Handle int32)
- func (context *VMHooksImpl) CheckNoPayment()
- func (context *VMHooksImpl) CleanReturnData()
- func (context *VMHooksImpl) ClearStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength) int32
- func (context *VMHooksImpl) CreateAsyncCall(destOffset executor.MemPtr, valueOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) CreateAsyncCallWithHost(host vmhost.VMHost, destOffset executor.MemPtr, valueOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) CreateContract(gasLimit int64, valueOffset executor.MemPtr, codeOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) CreateEC(dataOffset executor.MemPtr, dataLength executor.MemLength) int32
- func (context *VMHooksImpl) DeleteContract(destOffset executor.MemPtr, gasLimit int64, numArguments int32, ...)
- func (context *VMHooksImpl) DeleteFromReturnData(resultID int32)
- func (context *VMHooksImpl) DeployFromSourceContract(gasLimit int64, valueOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) DoubleEC(xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, ...)
- func (context *VMHooksImpl) EllipticCurveGetValues(ecHandle int32, fieldOrderHandle int32, basePointOrderHandle int32, ...) int32
- func (context *VMHooksImpl) EncodeSecp256k1DerSignature(rOffset executor.MemPtr, rLength executor.MemLength, sOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) ExecuteOnDestContext(gasLimit int64, addressOffset executor.MemPtr, valueOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) ExecuteOnDestContextWithHost(host vmhost.VMHost, gasLimit int64, addressOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) ExecuteOnSameContext(gasLimit int64, addressOffset executor.MemPtr, valueOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) ExecuteOnSameContextWithHost(host vmhost.VMHost, gasLimit int64, addressOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) ExecuteReadOnly(gasLimit int64, addressOffset executor.MemPtr, functionOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) ExecuteReadOnlyWithHost(host vmhost.VMHost, gasLimit int64, addressOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) Finish(pointer executor.MemPtr, length executor.MemLength)
- func (context *VMHooksImpl) GenerateKeyEC(xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, ...) int32
- func (context *VMHooksImpl) GetArgument(id int32, argOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetArgumentLength(id int32) int32
- func (context *VMHooksImpl) GetBlockEpoch() int64
- func (context *VMHooksImpl) GetBlockHash(nonce int64, resultOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetBlockNonce() int64
- func (context *VMHooksImpl) GetBlockRandomSeed(pointer executor.MemPtr)
- func (context *VMHooksImpl) GetBlockRound() int64
- func (context *VMHooksImpl) GetBlockTimestamp() int64
- func (context *VMHooksImpl) GetBlockchainContext() vmhost.BlockchainContext
- func (context *VMHooksImpl) GetCallValue(resultOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetCallValueTokenName(callValueOffset executor.MemPtr, tokenNameOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetCallValueTokenNameByIndex(callValueOffset executor.MemPtr, tokenNameOffset executor.MemPtr, index int32) int32
- func (context *VMHooksImpl) GetCaller(resultOffset executor.MemPtr)
- func (context *VMHooksImpl) GetCryptoContext() crypto.VMCrypto
- func (context *VMHooksImpl) GetCurrentESDTNFTNonce(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int64
- func (context *VMHooksImpl) GetCurrentTxHash(dataOffset executor.MemPtr)
- func (context *VMHooksImpl) GetCurveLengthEC(ecHandle int32) int32
- func (context *VMHooksImpl) GetESDTBalance(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) GetESDTLocalRoles(tokenIdHandle int32) int64
- func (context *VMHooksImpl) GetESDTNFTAttributeLength(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) GetESDTNFTNameLength(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) GetESDTNFTURILength(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) GetESDTTokenData(addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) GetESDTTokenName(resultOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetESDTTokenNameByIndex(resultOffset executor.MemPtr, index int32) int32
- func (context *VMHooksImpl) GetESDTTokenNonce() int64
- func (context *VMHooksImpl) GetESDTTokenNonceByIndex(index int32) int64
- func (context *VMHooksImpl) GetESDTTokenType() int32
- func (context *VMHooksImpl) GetESDTTokenTypeByIndex(index int32) int32
- func (context *VMHooksImpl) GetESDTValue(resultOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetESDTValueByIndex(resultOffset executor.MemPtr, index int32) int32
- func (context *VMHooksImpl) GetExternalBalance(addressOffset executor.MemPtr, resultOffset executor.MemPtr)
- func (context *VMHooksImpl) GetFunction(functionOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetGasLeft() int64
- func (context *VMHooksImpl) GetManagedTypesContext() vmhost.ManagedTypesContext
- func (context *VMHooksImpl) GetMeteringContext() vmhost.MeteringContext
- func (context *VMHooksImpl) GetNumArguments() int32
- func (context *VMHooksImpl) GetNumESDTTransfers() int32
- func (context *VMHooksImpl) GetNumReturnData() int32
- func (context *VMHooksImpl) GetOriginalTxHash(dataOffset executor.MemPtr)
- func (context *VMHooksImpl) GetOutputContext() vmhost.OutputContext
- func (context *VMHooksImpl) GetOwnerAddress(resultOffset executor.MemPtr)
- func (context *VMHooksImpl) GetPrevBlockEpoch() int64
- func (context *VMHooksImpl) GetPrevBlockNonce() int64
- func (context *VMHooksImpl) GetPrevBlockRandomSeed(pointer executor.MemPtr)
- func (context *VMHooksImpl) GetPrevBlockRound() int64
- func (context *VMHooksImpl) GetPrevBlockTimestamp() int64
- func (context *VMHooksImpl) GetPrevTxHash(dataOffset executor.MemPtr)
- func (context *VMHooksImpl) GetPrivKeyByteLengthEC(ecHandle int32) int32
- func (context *VMHooksImpl) GetReturnData(resultID int32, dataOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetReturnDataSize(resultID int32) int32
- func (context *VMHooksImpl) GetRuntimeContext() vmhost.RuntimeContext
- func (context *VMHooksImpl) GetSCAddress(resultOffset executor.MemPtr)
- func (context *VMHooksImpl) GetShardOfAddress(addressOffset executor.MemPtr) int32
- func (context *VMHooksImpl) GetStateRootHash(pointer executor.MemPtr)
- func (context *VMHooksImpl) GetStorageContext() vmhost.StorageContext
- func (context *VMHooksImpl) GetStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
- func (context *VMHooksImpl) GetVMHost() vmhost.VMHost
- func (context *VMHooksImpl) Int64finish(value int64)
- func (context *VMHooksImpl) Int64getArgument(id int32) int64
- func (context *VMHooksImpl) Int64storageLoad(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
- func (context *VMHooksImpl) Int64storageStore(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32
- func (context *VMHooksImpl) IsOnCurveEC(ecHandle int32, pointXHandle int32, pointYHandle int32) int32
- func (context *VMHooksImpl) IsSmartContract(addressOffset executor.MemPtr) int32
- func (context *VMHooksImpl) IsStorageLocked(keyOffset executor.MemPtr, keyLength executor.MemLength) int32
- func (context *VMHooksImpl) Keccak256(dataOffset executor.MemPtr, length executor.MemLength, ...) int32
- func (context *VMHooksImpl) MBufferAppend(accumulatorHandle int32, dataHandle int32) int32
- func (context *VMHooksImpl) MBufferAppendBytes(accumulatorHandle int32, dataOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) MBufferCopyByteSlice(sourceHandle int32, startingPosition int32, sliceLength int32, ...) int32
- func (context *VMHooksImpl) MBufferEq(mBufferHandle1 int32, mBufferHandle2 int32) int32
- func (context *VMHooksImpl) MBufferFinish(sourceHandle int32) int32
- func (context *VMHooksImpl) MBufferFromBigFloat(mBufferHandle, bigFloatHandle int32) int32
- func (context *VMHooksImpl) MBufferFromBigIntSigned(mBufferHandle int32, bigIntHandle int32) int32
- func (context *VMHooksImpl) MBufferFromBigIntUnsigned(mBufferHandle int32, bigIntHandle int32) int32
- func (context *VMHooksImpl) MBufferGetArgument(id int32, destinationHandle int32) int32
- func (context *VMHooksImpl) MBufferGetByteSlice(sourceHandle int32, startingPosition int32, sliceLength int32, ...) int32
- func (context *VMHooksImpl) MBufferGetBytes(mBufferHandle int32, resultOffset executor.MemPtr) int32
- func (context *VMHooksImpl) MBufferGetLength(mBufferHandle int32) int32
- func (context *VMHooksImpl) MBufferNew() int32
- func (context *VMHooksImpl) MBufferNewFromBytes(dataOffset executor.MemPtr, dataLength executor.MemLength) int32
- func (context *VMHooksImpl) MBufferSetByteSlice(mBufferHandle int32, startingPosition int32, dataLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) MBufferSetBytes(mBufferHandle int32, dataOffset executor.MemPtr, dataLength executor.MemLength) int32
- func (context *VMHooksImpl) MBufferSetRandom(destinationHandle int32, length int32) int32
- func (context *VMHooksImpl) MBufferStorageLoad(keyHandle int32, destinationHandle int32) int32
- func (context *VMHooksImpl) MBufferStorageLoadFromAddress(addressHandle, keyHandle, destinationHandle int32)
- func (context *VMHooksImpl) MBufferStorageStore(keyHandle int32, sourceHandle int32) int32
- func (context *VMHooksImpl) MBufferToBigFloat(mBufferHandle, bigFloatHandle int32) int32
- func (context *VMHooksImpl) MBufferToBigIntSigned(mBufferHandle int32, bigIntHandle int32) int32
- func (context *VMHooksImpl) MBufferToBigIntUnsigned(mBufferHandle int32, bigIntHandle int32) int32
- func (context *VMHooksImpl) ManagedAsyncCall(destHandle int32, valueHandle int32, functionHandle int32, ...)
- func (context *VMHooksImpl) ManagedBufferSetByteSliceWithHost(host vmhost.VMHost, mBufferHandle int32, startingPosition int32, ...) int32
- func (context *VMHooksImpl) ManagedBufferToHex(sourceHandle int32, destHandle int32)
- func (context *VMHooksImpl) ManagedCaller(destinationHandle int32)
- func (context *VMHooksImpl) ManagedCreateAsyncCall(destHandle int32, valueHandle int32, functionHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedCreateContract(gas int64, valueHandle int32, codeHandle int32, codeMetadataHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedCreateEC(dataHandle int32) int32
- func (context *VMHooksImpl) ManagedDeleteContract(destHandle int32, gasLimit int64, argumentsHandle int32)
- func (context *VMHooksImpl) ManagedDeployFromSourceContract(gas int64, valueHandle int32, addressHandle int32, codeMetadataHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedEncodeSecp256k1DerSignature(rHandle, sHandle, sigHandle int32) int32
- func (context *VMHooksImpl) ManagedExecuteOnDestContext(gas int64, addressHandle int32, valueHandle int32, functionHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedExecuteOnSameContext(gas int64, addressHandle int32, valueHandle int32, functionHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedExecuteReadOnly(gas int64, addressHandle int32, functionHandle int32, argumentsHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedGenerateKeyEC(xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, resultHandle int32) int32
- func (context *VMHooksImpl) ManagedGetBackTransfers(esdtTransfersValueHandle int32, callValueHandle int32)
- func (context *VMHooksImpl) ManagedGetBlockRandomSeed(resultHandle int32)
- func (context *VMHooksImpl) ManagedGetCallbackClosure(callbackClosureHandle int32)
- func (context *VMHooksImpl) ManagedGetCodeMetadata(addressHandle int32, responseHandle int32)
- func (context *VMHooksImpl) ManagedGetESDTBalance(addressHandle int32, tokenIDHandle int32, nonce int64, valueHandle int32)
- func (context *VMHooksImpl) ManagedGetESDTTokenData(addressHandle int32, tokenIDHandle int32, nonce int64, ...)
- func (context *VMHooksImpl) ManagedGetMultiESDTCallValue(multiCallValueHandle int32)
- func (context *VMHooksImpl) ManagedGetOriginalTxHash(resultHandle int32)
- func (context *VMHooksImpl) ManagedGetPrevBlockRandomSeed(resultHandle int32)
- func (context *VMHooksImpl) ManagedGetReturnData(resultID int32, resultHandle int32)
- func (context *VMHooksImpl) ManagedGetStateRootHash(resultHandle int32)
- func (context *VMHooksImpl) ManagedIsBuiltinFunction(functionNameHandle int32) int32
- func (context *VMHooksImpl) ManagedIsESDTFrozen(addressHandle int32, tokenIDHandle int32, nonce int64) int32
- func (context *VMHooksImpl) ManagedIsESDTLimitedTransfer(tokenIDHandle int32) int32
- func (context *VMHooksImpl) ManagedIsESDTPaused(tokenIDHandle int32) int32
- func (context *VMHooksImpl) ManagedKeccak256(inputHandle, outputHandle int32) int32
- func (context *VMHooksImpl) ManagedMapContains(mMapHandle int32, keyHandle int32) int32
- func (context *VMHooksImpl) ManagedMapGet(mMapHandle int32, keyHandle int32, outValueHandle int32) int32
- func (context *VMHooksImpl) ManagedMapNew() int32
- func (context *VMHooksImpl) ManagedMapPut(mMapHandle int32, keyHandle int32, valueHandle int32) int32
- func (context *VMHooksImpl) ManagedMapRemove(mMapHandle int32, keyHandle int32, outValueHandle int32) int32
- func (context *VMHooksImpl) ManagedMarshalCompressedEC(xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32) int32
- func (context *VMHooksImpl) ManagedMarshalEC(xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32) int32
- func (context *VMHooksImpl) ManagedMultiTransferESDTNFTExecute(dstHandle int32, tokenTransfersHandle int32, gasLimit int64, ...) int32
- func (context *VMHooksImpl) ManagedOwnerAddress(destinationHandle int32)
- func (context *VMHooksImpl) ManagedRipemd160(inputHandle int32, outputHandle int32) int32
- func (context *VMHooksImpl) ManagedSCAddress(destinationHandle int32)
- func (context *VMHooksImpl) ManagedScalarBaseMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32) int32
- func (context *VMHooksImpl) ManagedScalarMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedSha256(inputHandle, outputHandle int32) int32
- func (context *VMHooksImpl) ManagedSignalError(errHandle int32)
- func (context *VMHooksImpl) ManagedTransferValueExecute(dstHandle int32, valueHandle int32, gasLimit int64, functionHandle int32, ...) int32
- func (context *VMHooksImpl) ManagedUnmarshalCompressedEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32) int32
- func (context *VMHooksImpl) ManagedUnmarshalEC(xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32) int32
- func (context *VMHooksImpl) ManagedUpgradeContract(destHandle int32, gas int64, valueHandle int32, codeHandle int32, ...)
- func (context *VMHooksImpl) ManagedUpgradeFromSourceContract(destHandle int32, gas int64, valueHandle int32, addressHandle int32, ...)
- func (context *VMHooksImpl) ManagedVerifyBLS(keyHandle int32, messageHandle int32, sigHandle int32) int32
- func (context *VMHooksImpl) ManagedVerifyCustomSecp256k1(keyHandle, messageHandle, sigHandle int32, hashType int32) int32
- func (context *VMHooksImpl) ManagedVerifyEd25519(keyHandle, messageHandle, sigHandle int32) int32
- func (context *VMHooksImpl) ManagedVerifySecp256k1(keyHandle, messageHandle, sigHandle int32) int32
- func (context *VMHooksImpl) ManagedWriteLog(topicsHandle int32, dataHandle int32)
- func (context *VMHooksImpl) MarshalCompressedEC(xPairHandle int32, yPairHandle int32, ecHandle int32, ...) int32
- func (context *VMHooksImpl) MarshalEC(xPairHandle int32, yPairHandle int32, ecHandle int32, ...) int32
- func (context *VMHooksImpl) MemLoad(memPtr executor.MemPtr, length executor.MemLength) ([]byte, error)
- func (context *VMHooksImpl) MemLoadMultiple(memPtr executor.MemPtr, lengths []int32) ([][]byte, error)
- func (context *VMHooksImpl) MemStore(memPtr executor.MemPtr, data []byte) error
- func (context *VMHooksImpl) MultiTransferESDTNFTExecute(destOffset executor.MemPtr, numTokenTransfers int32, ...) int32
- func (context *VMHooksImpl) Ripemd160(dataOffset executor.MemPtr, length executor.MemLength, ...) int32
- func (context *VMHooksImpl) ScalarBaseMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, ...) int32
- func (context *VMHooksImpl) ScalarMultEC(xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, ...) int32
- func (context *VMHooksImpl) SetAsyncContextCallback(callback executor.MemPtr, callbackLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) SetStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength, lockTimestamp int64) int32
- func (context *VMHooksImpl) SetStorageLockWithHost(host vmhost.VMHost, keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) Sha256(dataOffset executor.MemPtr, length executor.MemLength, ...) int32
- func (context *VMHooksImpl) SignalError(messageOffset executor.MemPtr, messageLength executor.MemLength)
- func (context *VMHooksImpl) SmallIntFinishSigned(value int64)
- func (context *VMHooksImpl) SmallIntFinishUnsigned(value int64)
- func (context *VMHooksImpl) SmallIntGetSignedArgument(id int32) int64
- func (context *VMHooksImpl) SmallIntGetUnsignedArgument(id int32) int64
- func (context *VMHooksImpl) SmallIntStorageLoadSigned(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
- func (context *VMHooksImpl) SmallIntStorageLoadUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
- func (context *VMHooksImpl) SmallIntStorageStoreSigned(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32
- func (context *VMHooksImpl) SmallIntStorageStoreUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32
- func (context *VMHooksImpl) StorageLoad(keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) StorageLoadFromAddress(addressOffset executor.MemPtr, keyOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) StorageLoadFromAddressWithHost(host vmhost.VMHost, addressOffset executor.MemPtr, keyOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) StorageLoadLength(keyOffset executor.MemPtr, keyLength executor.MemLength) int32
- func (context *VMHooksImpl) StorageLoadWithHost(host vmhost.VMHost, keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) StorageStore(keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) StorageStoreWithHost(host vmhost.VMHost, keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) TransferESDTExecute(destOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) TransferESDTNFTExecute(destOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) TransferESDTNFTExecuteWithHost(host vmhost.VMHost, destOffset executor.MemPtr, tokenIDOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) TransferValue(destOffset executor.MemPtr, valueOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) TransferValueExecute(destOffset executor.MemPtr, valueOffset executor.MemPtr, gasLimit int64, ...) int32
- func (context *VMHooksImpl) TransferValueExecuteWithHost(host vmhost.VMHost, destOffset executor.MemPtr, valueOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) UnmarshalCompressedEC(xResultHandle int32, yResultHandle int32, ecHandle int32, ...) int32
- func (context *VMHooksImpl) UnmarshalEC(xResultHandle int32, yResultHandle int32, ecHandle int32, ...) int32
- func (context *VMHooksImpl) UpgradeContract(destOffset executor.MemPtr, gasLimit int64, valueOffset executor.MemPtr, ...)
- func (context *VMHooksImpl) UpgradeFromSourceContract(destOffset executor.MemPtr, gasLimit int64, valueOffset executor.MemPtr, ...)
- func (context *VMHooksImpl) ValidateTokenIdentifier(tokenIdHandle int32) int32
- func (context *VMHooksImpl) VerifyBLS(keyOffset executor.MemPtr, messageOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) VerifyCustomSecp256k1(keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) VerifyEd25519(keyOffset executor.MemPtr, messageOffset executor.MemPtr, ...) int32
- func (context *VMHooksImpl) VerifySecp256k1(keyOffset executor.MemPtr, keyLength executor.MemLength, ...) int32
- func (context *VMHooksImpl) WithFault(err error, failExecution bool) bool
- func (context *VMHooksImpl) WriteEventLog(numTopics int32, topicLengthsOffset executor.MemPtr, ...)
- func (context *VMHooksImpl) WriteLog(dataPointer executor.MemPtr, dataLength executor.MemLength, ...)
Constants ¶
const ( CreateContract = iota DeployContract )
const ( RoleMint = 1 << iota RoleBurn RoleNFTCreate RoleNFTAddQuantity RoleNFTBurn )
constants defining roles values
Variables ¶
This section is empty.
Functions ¶
func BigIntToStringWithHost ¶
func CleanReturnDataWithHost ¶
CleanReturnDataWithHost - exposed version of v1_5_deleteFromReturnData for tests
func CreateAsyncCallWithTypedArgs ¶
func CreateAsyncCallWithTypedArgs(host vmhost.VMHost, calledSCAddress []byte, value []byte, data []byte, successFunc []byte, errorFunc []byte, gas int64, extraGasForCallback int64, callbackClosure []byte) int32
CreateAsyncCallWithTypedArgs - createAsyncCall with arguments already read from memory
func DeleteFromReturnDataWithHost ¶
DeleteFromReturnDataWithHost - exposed version of v1_5_deleteFromReturnData for tests
func DeployFromSourceContractWithTypedArgs ¶
func DeployFromSourceContractWithTypedArgs( host vmhost.VMHost, sourceContractAddress []byte, codeMetadata []byte, value *big.Int, data [][]byte, gasLimit int64, ) ([]byte, error)
DeployFromSourceContractWithTypedArgs - deployFromSourceContract with args already read from memory
func ExecuteOnDestContextWithTypedArgs ¶
func ExecuteOnDestContextWithTypedArgs( host vmhost.VMHost, gasLimit int64, value *big.Int, function []byte, dest []byte, args [][]byte, ) int32
ExecuteOnDestContextWithTypedArgs - executeOnDestContext with args already read from memory
func ExecuteOnSameContextWithTypedArgs ¶
func ExecuteOnSameContextWithTypedArgs( host vmhost.VMHost, gasLimit int64, value *big.Int, function []byte, dest []byte, args [][]byte, ) int32
ExecuteOnSameContextWithTypedArgs - executeOnSameContext with args already read from memory
func ExecuteReadOnlyWithTypedArguments ¶
func ExecuteReadOnlyWithTypedArguments( host vmhost.VMHost, gasLimit int64, function []byte, dest []byte, args [][]byte, ) int32
ExecuteReadOnlyWithTypedArguments - executeReadOnly with args already read from memory
func ManagedBufferCopyByteSliceWithHost ¶
func ManagedBufferCopyByteSliceWithHost(host vmhost.VMHost, sourceHandle int32, startingPosition int32, sliceLength int32, destinationHandle int32) int32
ManagedBufferCopyByteSliceWithHost VMHooks implementation.
func ManagedBufferSetByteSliceWithTypedArgs ¶
func ManagedBufferSetByteSliceWithTypedArgs(host vmhost.VMHost, mBufferHandle int32, startingPosition int32, dataLength int32, data []byte) int32
ManagedBufferSetByteSliceWithTypedArgs VMHooks implementation.
func ManagedCreateECWithHost ¶
ManagedCreateECWithHost VMHooks implementation.
func ManagedEncodeSecp256k1DerSignatureWithHost ¶
func ManagedEncodeSecp256k1DerSignatureWithHost( host vmhost.VMHost, rHandle, sHandle, sigHandle int32, ) int32
ManagedEncodeSecp256k1DerSignatureWithHost VMHooks implementation.
func ManagedGenerateKeyECWithHost ¶
func ManagedGenerateKeyECWithHost( host vmhost.VMHost, xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, resultHandle int32, ) int32
ManagedGenerateKeyECWithHost VMHooks implementation.
func ManagedGetCodeMetadataWithHost ¶ added in v1.5.4
func ManagedIsBuiltinFunctionWithHost ¶ added in v1.5.4
func ManagedMarshalCompressedECWithHost ¶
func ManagedMarshalCompressedECWithHost( host vmhost.VMHost, xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32, ) int32
ManagedMarshalCompressedECWithHost VMHooks implementation.
func ManagedMarshalECWithHost ¶
func ManagedMarshalECWithHost( host vmhost.VMHost, xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32, ) int32
ManagedMarshalECWithHost VMHooks implementation.
func ManagedRipemd160WithHost ¶
ManagedRipemd160WithHost VMHooks implementation.
func ManagedScalarBaseMultECWithHost ¶
func ManagedScalarBaseMultECWithHost( host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32, ) int32
ManagedScalarBaseMultECWithHost VMHooks implementation.
func ManagedScalarMultECWithHost ¶
func ManagedScalarMultECWithHost( host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, pointYHandle int32, dataHandle int32, ) int32
ManagedScalarMultECWithHost VMHooks implementation.
func ManagedUnmarshalCompressedECWithHost ¶
func ManagedUnmarshalCompressedECWithHost( host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32, ) int32
ManagedUnmarshalCompressedECWithHost VMHooks implementation.
func ManagedUnmarshalECWithHost ¶
func ManagedUnmarshalECWithHost( host vmhost.VMHost, xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32, ) int32
ManagedUnmarshalECWithHost VMHooks implementation.
func ManagedVerifyBLSWithHost ¶
func ManagedVerifyBLSWithHost( host vmhost.VMHost, keyHandle int32, messageHandle int32, sigHandle int32, ) int32
ManagedVerifyBLSWithHost VMHooks implementation.
func ManagedVerifyCustomSecp256k1WithHost ¶
func ManagedVerifyCustomSecp256k1WithHost( host vmhost.VMHost, keyHandle, messageHandle, sigHandle int32, hashType int32, ) int32
ManagedVerifyCustomSecp256k1WithHost VMHooks implementation.
func ManagedVerifyEd25519WithHost ¶
func ManagedVerifyEd25519WithHost( host vmhost.VMHost, keyHandle, messageHandle, sigHandle int32, ) int32
ManagedVerifyEd25519WithHost VMHooks implementation.
func ManagedVerifySecp256k1WithHost ¶
func ManagedVerifySecp256k1WithHost( host vmhost.VMHost, keyHandle, messageHandle, sigHandle int32, ) int32
ManagedVerifySecp256k1WithHost VMHooks implementation.
func SetStorageLockWithTypedArgs ¶
SetStorageLockWithTypedArgs - setStorageLock with args already read from memory
func StorageLoadFromAddressWithTypedArgs ¶
func StorageLoadFromAddressWithTypedArgs(host vmhost.VMHost, address []byte, key []byte) ([]byte, error)
StorageLoadFromAddressWithTypedArgs - storageLoadFromAddress with args already read from memory
func StorageLoadWithWithTypedArgs ¶
StorageLoadWithWithTypedArgs - storageLoad with args already read from memory
func StorageStoreWithTypedArgs ¶
StorageStoreWithTypedArgs - storageStore with args already read from memory
func TransferESDTNFTExecuteWithTypedArgs ¶
func TransferESDTNFTExecuteWithTypedArgs( host vmhost.VMHost, dest []byte, transfers []*vmcommon.ESDTTransfer, gasLimit int64, function []byte, data [][]byte, ) int32
TransferESDTNFTExecuteWithTypedArgs defines the actual transfer ESDT execute logic
func TransferValueExecuteWithTypedArgs ¶
func TransferValueExecuteWithTypedArgs( host vmhost.VMHost, dest []byte, value *big.Int, gasLimit int64, function []byte, args [][]byte, ) int32
TransferValueExecuteWithTypedArgs - transferValueExecute with args already read from memory
func UpgradeFromSourceContractWithTypedArgs ¶
func UpgradeFromSourceContractWithTypedArgs( host vmhost.VMHost, sourceContractAddress []byte, destContractAddress []byte, value []byte, data [][]byte, gasLimit int64, codeMetadata []byte, )
UpgradeFromSourceContractWithTypedArgs - upgradeFromSourceContract with args already read from memory
Types ¶
type CreateContractCallType ¶ added in v1.5.7
type CreateContractCallType int
type VMHooksImpl ¶
type VMHooksImpl struct {
// contains filtered or unexported fields
}
VMHooksImpl is the VM structure that implements VMHooks, with all the hooks (callbacks) from the executor.
func NewVMHooksImpl ¶
func NewVMHooksImpl(host vmhost.VMHost) *VMHooksImpl
NewVMHooksImpl creates a new VMHooksImpl instance.
func (*VMHooksImpl) AddEC ¶
func (context *VMHooksImpl) AddEC( xResultHandle int32, yResultHandle int32, ecHandle int32, fstPointXHandle int32, fstPointYHandle int32, sndPointXHandle int32, sndPointYHandle int32, )
AddEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) AsyncCall ¶
func (context *VMHooksImpl) AsyncCall( destOffset executor.MemPtr, valueOffset executor.MemPtr, dataOffset executor.MemPtr, length executor.MemLength)
AsyncCall VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatAbs ¶
func (context *VMHooksImpl) BigFloatAbs(destinationHandle, opHandle int32)
BigFloatAbs VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatAdd ¶
func (context *VMHooksImpl) BigFloatAdd(destinationHandle, op1Handle, op2Handle int32)
BigFloatAdd VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatCeil ¶
func (context *VMHooksImpl) BigFloatCeil(destBigIntHandle, opHandle int32)
BigFloatCeil VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatClone ¶
func (context *VMHooksImpl) BigFloatClone(destinationHandle, opHandle int32)
BigFloatClone VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatCmp ¶
func (context *VMHooksImpl) BigFloatCmp(op1Handle, op2Handle int32) int32
BigFloatCmp VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatDiv ¶
func (context *VMHooksImpl) BigFloatDiv(destinationHandle, op1Handle, op2Handle int32)
BigFloatDiv VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatFloor ¶
func (context *VMHooksImpl) BigFloatFloor(destBigIntHandle, opHandle int32)
BigFloatFloor VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatGetConstE ¶
func (context *VMHooksImpl) BigFloatGetConstE(destinationHandle int32)
BigFloatGetConstE VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatGetConstPi ¶
func (context *VMHooksImpl) BigFloatGetConstPi(destinationHandle int32)
BigFloatGetConstPi VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatIsInt ¶
func (context *VMHooksImpl) BigFloatIsInt(opHandle int32) int32
BigFloatIsInt VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatMul ¶
func (context *VMHooksImpl) BigFloatMul(destinationHandle, op1Handle, op2Handle int32)
BigFloatMul VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatNeg ¶
func (context *VMHooksImpl) BigFloatNeg(destinationHandle, opHandle int32)
BigFloatNeg VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatNewFromFrac ¶
func (context *VMHooksImpl) BigFloatNewFromFrac(numerator, denominator int64) int32
BigFloatNewFromFrac VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatNewFromParts ¶
func (context *VMHooksImpl) BigFloatNewFromParts(integralPart, fractionalPart, exponent int32) int32
BigFloatNewFromParts VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatNewFromSci ¶
func (context *VMHooksImpl) BigFloatNewFromSci(significand, exponent int64) int32
BigFloatNewFromSci VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatPow ¶
func (context *VMHooksImpl) BigFloatPow(destinationHandle, opHandle, exponent int32)
BigFloatPow VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatSetBigInt ¶
func (context *VMHooksImpl) BigFloatSetBigInt(destinationHandle, bigIntHandle int32)
BigFloatSetBigInt VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatSetInt64 ¶
func (context *VMHooksImpl) BigFloatSetInt64(destinationHandle int32, value int64)
BigFloatSetInt64 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatSign ¶
func (context *VMHooksImpl) BigFloatSign(opHandle int32) int32
BigFloatSign VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatSqrt ¶
func (context *VMHooksImpl) BigFloatSqrt(destinationHandle, opHandle int32)
BigFloatSqrt VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatSub ¶
func (context *VMHooksImpl) BigFloatSub(destinationHandle, op1Handle, op2Handle int32)
BigFloatSub VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigFloatTruncate ¶
func (context *VMHooksImpl) BigFloatTruncate(destBigIntHandle, opHandle int32)
BigFloatTruncate VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntAbs ¶
func (context *VMHooksImpl) BigIntAbs(destinationHandle, opHandle int32)
BigIntAbs VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntAdd ¶
func (context *VMHooksImpl) BigIntAdd(destinationHandle, op1Handle, op2Handle int32)
BigIntAdd VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntAnd ¶
func (context *VMHooksImpl) BigIntAnd(destinationHandle, op1Handle, op2Handle int32)
BigIntAnd VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntCmp ¶
func (context *VMHooksImpl) BigIntCmp(op1Handle, op2Handle int32) int32
BigIntCmp VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntEDiv ¶
func (context *VMHooksImpl) BigIntEDiv(destinationHandle, op1Handle, op2Handle int32)
BigIntEDiv VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntEMod ¶
func (context *VMHooksImpl) BigIntEMod(destinationHandle, op1Handle, op2Handle int32)
BigIntEMod VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntFinishSigned ¶
func (context *VMHooksImpl) BigIntFinishSigned(referenceHandle int32)
BigIntFinishSigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntFinishUnsigned ¶
func (context *VMHooksImpl) BigIntFinishUnsigned(referenceHandle int32)
BigIntFinishUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetCallValue ¶
func (context *VMHooksImpl) BigIntGetCallValue(destinationHandle int32)
BigIntGetCallValue VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetESDTCallValue ¶
func (context *VMHooksImpl) BigIntGetESDTCallValue(destination int32)
BigIntGetESDTCallValue VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetESDTCallValueByIndex ¶
func (context *VMHooksImpl) BigIntGetESDTCallValueByIndex(destinationHandle int32, index int32)
BigIntGetESDTCallValueByIndex VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetESDTExternalBalance ¶
func (context *VMHooksImpl) BigIntGetESDTExternalBalance( addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, resultHandle int32)
BigIntGetESDTExternalBalance VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetExternalBalance ¶
func (context *VMHooksImpl) BigIntGetExternalBalance(addressOffset executor.MemPtr, result int32)
BigIntGetExternalBalance VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetInt64 ¶
func (context *VMHooksImpl) BigIntGetInt64(destinationHandle int32) int64
BigIntGetInt64 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetSignedArgument ¶
func (context *VMHooksImpl) BigIntGetSignedArgument(id int32, destinationHandle int32)
BigIntGetSignedArgument VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetSignedBytes ¶
func (context *VMHooksImpl) BigIntGetSignedBytes(referenceHandle int32, byteOffset executor.MemPtr) int32
BigIntGetSignedBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetUnsignedArgument ¶
func (context *VMHooksImpl) BigIntGetUnsignedArgument(id int32, destinationHandle int32)
BigIntGetUnsignedArgument VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntGetUnsignedBytes ¶
func (context *VMHooksImpl) BigIntGetUnsignedBytes(referenceHandle int32, byteOffset executor.MemPtr) int32
BigIntGetUnsignedBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntIsInt64 ¶
func (context *VMHooksImpl) BigIntIsInt64(destinationHandle int32) int32
BigIntIsInt64 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntLog2 ¶
func (context *VMHooksImpl) BigIntLog2(op1Handle int32) int32
BigIntLog2 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntMul ¶
func (context *VMHooksImpl) BigIntMul(destinationHandle, op1Handle, op2Handle int32)
BigIntMul VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntNeg ¶
func (context *VMHooksImpl) BigIntNeg(destinationHandle, opHandle int32)
BigIntNeg VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntNew ¶
func (context *VMHooksImpl) BigIntNew(smallValue int64) int32
BigIntNew VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntNot ¶
func (context *VMHooksImpl) BigIntNot(destinationHandle, opHandle int32)
BigIntNot VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntOr ¶
func (context *VMHooksImpl) BigIntOr(destinationHandle, op1Handle, op2Handle int32)
BigIntOr VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntPow ¶
func (context *VMHooksImpl) BigIntPow(destinationHandle, op1Handle, op2Handle int32)
BigIntPow VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntSetInt64 ¶
func (context *VMHooksImpl) BigIntSetInt64(destinationHandle int32, value int64)
BigIntSetInt64 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntSetSignedBytes ¶
func (context *VMHooksImpl) BigIntSetSignedBytes(destinationHandle int32, byteOffset executor.MemPtr, byteLength executor.MemLength)
BigIntSetSignedBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntSetUnsignedBytes ¶
func (context *VMHooksImpl) BigIntSetUnsignedBytes(destinationHandle int32, byteOffset executor.MemPtr, byteLength executor.MemLength)
BigIntSetUnsignedBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntShl ¶
func (context *VMHooksImpl) BigIntShl(destinationHandle, opHandle, bits int32)
BigIntShl VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntShr ¶
func (context *VMHooksImpl) BigIntShr(destinationHandle, opHandle, bits int32)
BigIntShr VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntSign ¶
func (context *VMHooksImpl) BigIntSign(opHandle int32) int32
BigIntSign VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntSignedByteLength ¶
func (context *VMHooksImpl) BigIntSignedByteLength(referenceHandle int32) int32
BigIntSignedByteLength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntSqrt ¶
func (context *VMHooksImpl) BigIntSqrt(destinationHandle, opHandle int32)
BigIntSqrt VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntStorageLoadUnsigned ¶
func (context *VMHooksImpl) BigIntStorageLoadUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, destinationHandle int32) int32
BigIntStorageLoadUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntStorageStoreUnsigned ¶
func (context *VMHooksImpl) BigIntStorageStoreUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, sourceHandle int32) int32
BigIntStorageStoreUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntSub ¶
func (context *VMHooksImpl) BigIntSub(destinationHandle, op1Handle, op2Handle int32)
BigIntSub VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntTDiv ¶
func (context *VMHooksImpl) BigIntTDiv(destinationHandle, op1Handle, op2Handle int32)
BigIntTDiv VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntTMod ¶
func (context *VMHooksImpl) BigIntTMod(destinationHandle, op1Handle, op2Handle int32)
BigIntTMod VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntToString ¶
func (context *VMHooksImpl) BigIntToString(bigIntHandle int32, destinationHandle int32)
BigIntToString VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntUnsignedByteLength ¶
func (context *VMHooksImpl) BigIntUnsignedByteLength(referenceHandle int32) int32
BigIntUnsignedByteLength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) BigIntXor ¶
func (context *VMHooksImpl) BigIntXor(destinationHandle, op1Handle, op2Handle int32)
BigIntXor VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) CheckNoPayment ¶
func (context *VMHooksImpl) CheckNoPayment()
CheckNoPayment VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) CleanReturnData ¶
func (context *VMHooksImpl) CleanReturnData()
CleanReturnData VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ClearStorageLock ¶
func (context *VMHooksImpl) ClearStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength) int32
ClearStorageLock VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) CreateAsyncCall ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) CreateAsyncCallWithHost ¶
func (context *VMHooksImpl) CreateAsyncCallWithHost(host vmhost.VMHost, 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
CreateAsyncCallWithHost - createAsyncCall with host instead of pointer
func (*VMHooksImpl) CreateContract ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) CreateEC ¶
func (context *VMHooksImpl) CreateEC(dataOffset executor.MemPtr, dataLength executor.MemLength) int32
CreateEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) DeleteContract ¶
func (context *VMHooksImpl) DeleteContract( destOffset executor.MemPtr, gasLimit int64, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr, )
DeleteContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) DeleteFromReturnData ¶
func (context *VMHooksImpl) DeleteFromReturnData(resultID int32)
DeleteFromReturnData VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) DeployFromSourceContract ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) DoubleEC ¶
func (context *VMHooksImpl) DoubleEC( xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, pointYHandle int32, )
DoubleEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) EllipticCurveGetValues ¶
func (context *VMHooksImpl) EllipticCurveGetValues(ecHandle int32, fieldOrderHandle int32, basePointOrderHandle int32, eqConstantHandle int32, xBasePointHandle int32, yBasePointHandle int32) int32
EllipticCurveGetValues VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) EncodeSecp256k1DerSignature ¶
func (context *VMHooksImpl) EncodeSecp256k1DerSignature( rOffset executor.MemPtr, rLength executor.MemLength, sOffset executor.MemPtr, sLength executor.MemLength, sigOffset executor.MemPtr, ) int32
EncodeSecp256k1DerSignature VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ExecuteOnDestContext ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ExecuteOnDestContextWithHost ¶
func (context *VMHooksImpl) ExecuteOnDestContextWithHost( host vmhost.VMHost, gasLimit int64, addressOffset executor.MemPtr, valueOffset executor.MemPtr, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr, ) int32
ExecuteOnDestContextWithHost - executeOnDestContext with host instead of pointer context
func (*VMHooksImpl) ExecuteOnSameContext ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ExecuteOnSameContextWithHost ¶
func (context *VMHooksImpl) ExecuteOnSameContextWithHost( host vmhost.VMHost, gasLimit int64, addressOffset executor.MemPtr, valueOffset executor.MemPtr, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr, ) int32
ExecuteOnSameContextWithHost - executeOnSameContext with host instead of pointer context
func (*VMHooksImpl) ExecuteReadOnly ¶
func (context *VMHooksImpl) ExecuteReadOnly( gasLimit int64, addressOffset executor.MemPtr, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr, ) int32
ExecuteReadOnly VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ExecuteReadOnlyWithHost ¶
func (context *VMHooksImpl) ExecuteReadOnlyWithHost( host vmhost.VMHost, gasLimit int64, addressOffset executor.MemPtr, functionOffset executor.MemPtr, functionLength executor.MemLength, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr, ) int32
ExecuteReadOnlyWithHost - executeReadOnly with host instead of pointer context
func (*VMHooksImpl) Finish ¶
func (context *VMHooksImpl) Finish(pointer executor.MemPtr, length executor.MemLength)
Finish VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GenerateKeyEC ¶
func (context *VMHooksImpl) GenerateKeyEC( xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, resultOffset executor.MemPtr, ) int32
GenerateKeyEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetArgument ¶
func (context *VMHooksImpl) GetArgument(id int32, argOffset executor.MemPtr) int32
GetArgument VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetArgumentLength ¶
func (context *VMHooksImpl) GetArgumentLength(id int32) int32
GetArgumentLength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetBlockEpoch ¶
func (context *VMHooksImpl) GetBlockEpoch() int64
GetBlockEpoch VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetBlockHash ¶
func (context *VMHooksImpl) GetBlockHash(nonce int64, resultOffset executor.MemPtr) int32
GetBlockHash VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetBlockNonce ¶
func (context *VMHooksImpl) GetBlockNonce() int64
GetBlockNonce VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetBlockRandomSeed ¶
func (context *VMHooksImpl) GetBlockRandomSeed(pointer executor.MemPtr)
GetBlockRandomSeed VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetBlockRound ¶
func (context *VMHooksImpl) GetBlockRound() int64
GetBlockRound VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetBlockTimestamp ¶
func (context *VMHooksImpl) GetBlockTimestamp() int64
GetBlockTimestamp VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetBlockchainContext ¶
func (context *VMHooksImpl) GetBlockchainContext() vmhost.BlockchainContext
GetBlockchainContext returns the blockchain context
func (*VMHooksImpl) GetCallValue ¶
func (context *VMHooksImpl) GetCallValue(resultOffset executor.MemPtr) int32
GetCallValue VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetCallValueTokenName ¶
func (context *VMHooksImpl) GetCallValueTokenName(callValueOffset executor.MemPtr, tokenNameOffset executor.MemPtr) int32
GetCallValueTokenName VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetCallValueTokenNameByIndex ¶
func (context *VMHooksImpl) GetCallValueTokenNameByIndex( callValueOffset executor.MemPtr, tokenNameOffset executor.MemPtr, index int32) int32
GetCallValueTokenNameByIndex VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetCaller ¶
func (context *VMHooksImpl) GetCaller(resultOffset executor.MemPtr)
GetCaller VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetCryptoContext ¶
func (context *VMHooksImpl) GetCryptoContext() crypto.VMCrypto
GetCryptoContext returns the crypto context
func (*VMHooksImpl) GetCurrentESDTNFTNonce ¶
func (context *VMHooksImpl) GetCurrentESDTNFTNonce( addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength) int64
GetCurrentESDTNFTNonce VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetCurrentTxHash ¶
func (context *VMHooksImpl) GetCurrentTxHash(dataOffset executor.MemPtr)
GetCurrentTxHash VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetCurveLengthEC ¶
func (context *VMHooksImpl) GetCurveLengthEC(ecHandle int32) int32
GetCurveLengthEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTBalance ¶
func (context *VMHooksImpl) GetESDTBalance( addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, resultOffset executor.MemPtr, ) int32
GetESDTBalance VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTLocalRoles ¶
func (context *VMHooksImpl) GetESDTLocalRoles(tokenIdHandle int32) int64
GetESDTLocalRoles VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTNFTAttributeLength ¶
func (context *VMHooksImpl) GetESDTNFTAttributeLength( addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, ) int32
GetESDTNFTAttributeLength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTNFTNameLength ¶
func (context *VMHooksImpl) GetESDTNFTNameLength( addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, ) int32
GetESDTNFTNameLength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTNFTURILength ¶
func (context *VMHooksImpl) GetESDTNFTURILength( addressOffset executor.MemPtr, tokenIDOffset executor.MemPtr, tokenIDLen executor.MemLength, nonce int64, ) int32
GetESDTNFTURILength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTTokenData ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTTokenName ¶
func (context *VMHooksImpl) GetESDTTokenName(resultOffset executor.MemPtr) int32
GetESDTTokenName VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTTokenNameByIndex ¶
func (context *VMHooksImpl) GetESDTTokenNameByIndex(resultOffset executor.MemPtr, index int32) int32
GetESDTTokenNameByIndex VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTTokenNonce ¶
func (context *VMHooksImpl) GetESDTTokenNonce() int64
GetESDTTokenNonce VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTTokenNonceByIndex ¶
func (context *VMHooksImpl) GetESDTTokenNonceByIndex(index int32) int64
GetESDTTokenNonceByIndex VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTTokenType ¶
func (context *VMHooksImpl) GetESDTTokenType() int32
GetESDTTokenType VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTTokenTypeByIndex ¶
func (context *VMHooksImpl) GetESDTTokenTypeByIndex(index int32) int32
GetESDTTokenTypeByIndex VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTValue ¶
func (context *VMHooksImpl) GetESDTValue(resultOffset executor.MemPtr) int32
GetESDTValue VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetESDTValueByIndex ¶
func (context *VMHooksImpl) GetESDTValueByIndex(resultOffset executor.MemPtr, index int32) int32
GetESDTValueByIndex VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetExternalBalance ¶
func (context *VMHooksImpl) GetExternalBalance(addressOffset executor.MemPtr, resultOffset executor.MemPtr)
GetExternalBalance VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetFunction ¶
func (context *VMHooksImpl) GetFunction(functionOffset executor.MemPtr) int32
GetFunction VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetGasLeft ¶
func (context *VMHooksImpl) GetGasLeft() int64
GetGasLeft VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetManagedTypesContext ¶
func (context *VMHooksImpl) GetManagedTypesContext() vmhost.ManagedTypesContext
GetManagedTypesContext returns the big int context
func (*VMHooksImpl) GetMeteringContext ¶
func (context *VMHooksImpl) GetMeteringContext() vmhost.MeteringContext
GetMeteringContext returns the metering context
func (*VMHooksImpl) GetNumArguments ¶
func (context *VMHooksImpl) GetNumArguments() int32
GetNumArguments VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetNumESDTTransfers ¶
func (context *VMHooksImpl) GetNumESDTTransfers() int32
GetNumESDTTransfers VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetNumReturnData ¶
func (context *VMHooksImpl) GetNumReturnData() int32
GetNumReturnData VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetOriginalTxHash ¶
func (context *VMHooksImpl) GetOriginalTxHash(dataOffset executor.MemPtr)
GetOriginalTxHash VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetOutputContext ¶
func (context *VMHooksImpl) GetOutputContext() vmhost.OutputContext
GetOutputContext returns the output context
func (*VMHooksImpl) GetOwnerAddress ¶
func (context *VMHooksImpl) GetOwnerAddress(resultOffset executor.MemPtr)
GetOwnerAddress VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetPrevBlockEpoch ¶
func (context *VMHooksImpl) GetPrevBlockEpoch() int64
GetPrevBlockEpoch VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetPrevBlockNonce ¶
func (context *VMHooksImpl) GetPrevBlockNonce() int64
GetPrevBlockNonce VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetPrevBlockRandomSeed ¶
func (context *VMHooksImpl) GetPrevBlockRandomSeed(pointer executor.MemPtr)
GetPrevBlockRandomSeed VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetPrevBlockRound ¶
func (context *VMHooksImpl) GetPrevBlockRound() int64
GetPrevBlockRound VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetPrevBlockTimestamp ¶
func (context *VMHooksImpl) GetPrevBlockTimestamp() int64
GetPrevBlockTimestamp VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetPrevTxHash ¶
func (context *VMHooksImpl) GetPrevTxHash(dataOffset executor.MemPtr)
GetPrevTxHash VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetPrivKeyByteLengthEC ¶
func (context *VMHooksImpl) GetPrivKeyByteLengthEC(ecHandle int32) int32
GetPrivKeyByteLengthEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetReturnData ¶
func (context *VMHooksImpl) GetReturnData(resultID int32, dataOffset executor.MemPtr) int32
GetReturnData VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetReturnDataSize ¶
func (context *VMHooksImpl) GetReturnDataSize(resultID int32) int32
GetReturnDataSize VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetRuntimeContext ¶
func (context *VMHooksImpl) GetRuntimeContext() vmhost.RuntimeContext
GetRuntimeContext returns the runtime context
func (*VMHooksImpl) GetSCAddress ¶
func (context *VMHooksImpl) GetSCAddress(resultOffset executor.MemPtr)
GetSCAddress VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetShardOfAddress ¶
func (context *VMHooksImpl) GetShardOfAddress(addressOffset executor.MemPtr) int32
GetShardOfAddress VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetStateRootHash ¶
func (context *VMHooksImpl) GetStateRootHash(pointer executor.MemPtr)
GetStateRootHash VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetStorageContext ¶
func (context *VMHooksImpl) GetStorageContext() vmhost.StorageContext
GetStorageContext returns the storage context
func (*VMHooksImpl) GetStorageLock ¶
func (context *VMHooksImpl) GetStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
GetStorageLock VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) GetVMHost ¶
func (context *VMHooksImpl) GetVMHost() vmhost.VMHost
GetVMHost returns the vm Context from the vm context map
func (*VMHooksImpl) Int64finish ¶
func (context *VMHooksImpl) Int64finish(value int64)
Int64finish VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) Int64getArgument ¶
func (context *VMHooksImpl) Int64getArgument(id int32) int64
Int64getArgument VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) Int64storageLoad ¶
func (context *VMHooksImpl) Int64storageLoad(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
Int64storageLoad VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) Int64storageStore ¶
func (context *VMHooksImpl) Int64storageStore(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32
Int64storageStore VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) IsOnCurveEC ¶
func (context *VMHooksImpl) IsOnCurveEC( ecHandle int32, pointXHandle int32, pointYHandle int32, ) int32
IsOnCurveEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) IsSmartContract ¶
func (context *VMHooksImpl) IsSmartContract(addressOffset executor.MemPtr) int32
IsSmartContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) IsStorageLocked ¶
func (context *VMHooksImpl) IsStorageLocked(keyOffset executor.MemPtr, keyLength executor.MemLength) int32
IsStorageLocked VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) Keccak256 ¶
func (context *VMHooksImpl) Keccak256(dataOffset executor.MemPtr, length executor.MemLength, resultOffset executor.MemPtr) int32
Keccak256 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferAppend ¶
func (context *VMHooksImpl) MBufferAppend(accumulatorHandle int32, dataHandle int32) int32
MBufferAppend VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferAppendBytes ¶
func (context *VMHooksImpl) MBufferAppendBytes(accumulatorHandle int32, dataOffset executor.MemPtr, dataLength executor.MemLength) int32
MBufferAppendBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferCopyByteSlice ¶
func (context *VMHooksImpl) MBufferCopyByteSlice(sourceHandle int32, startingPosition int32, sliceLength int32, destinationHandle int32) int32
MBufferCopyByteSlice VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferEq ¶
func (context *VMHooksImpl) MBufferEq(mBufferHandle1 int32, mBufferHandle2 int32) int32
MBufferEq VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferFinish ¶
func (context *VMHooksImpl) MBufferFinish(sourceHandle int32) int32
MBufferFinish VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferFromBigFloat ¶
func (context *VMHooksImpl) MBufferFromBigFloat(mBufferHandle, bigFloatHandle int32) int32
MBufferFromBigFloat VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferFromBigIntSigned ¶
func (context *VMHooksImpl) MBufferFromBigIntSigned(mBufferHandle int32, bigIntHandle int32) int32
MBufferFromBigIntSigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferFromBigIntUnsigned ¶
func (context *VMHooksImpl) MBufferFromBigIntUnsigned(mBufferHandle int32, bigIntHandle int32) int32
MBufferFromBigIntUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferGetArgument ¶
func (context *VMHooksImpl) MBufferGetArgument(id int32, destinationHandle int32) int32
MBufferGetArgument VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferGetByteSlice ¶
func (context *VMHooksImpl) MBufferGetByteSlice( sourceHandle int32, startingPosition int32, sliceLength int32, resultOffset executor.MemPtr) int32
MBufferGetByteSlice VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferGetBytes ¶
func (context *VMHooksImpl) MBufferGetBytes(mBufferHandle int32, resultOffset executor.MemPtr) int32
MBufferGetBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferGetLength ¶
func (context *VMHooksImpl) MBufferGetLength(mBufferHandle int32) int32
MBufferGetLength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferNew ¶
func (context *VMHooksImpl) MBufferNew() int32
MBufferNew VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferNewFromBytes ¶
func (context *VMHooksImpl) MBufferNewFromBytes(dataOffset executor.MemPtr, dataLength executor.MemLength) int32
MBufferNewFromBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferSetByteSlice ¶
func (context *VMHooksImpl) MBufferSetByteSlice( mBufferHandle int32, startingPosition int32, dataLength executor.MemLength, dataOffset executor.MemPtr) int32
MBufferSetByteSlice VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferSetBytes ¶
func (context *VMHooksImpl) MBufferSetBytes(mBufferHandle int32, dataOffset executor.MemPtr, dataLength executor.MemLength) int32
MBufferSetBytes VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferSetRandom ¶
func (context *VMHooksImpl) MBufferSetRandom(destinationHandle int32, length int32) int32
MBufferSetRandom VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferStorageLoad ¶
func (context *VMHooksImpl) MBufferStorageLoad(keyHandle int32, destinationHandle int32) int32
MBufferStorageLoad VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferStorageLoadFromAddress ¶
func (context *VMHooksImpl) MBufferStorageLoadFromAddress(addressHandle, keyHandle, destinationHandle int32)
MBufferStorageLoadFromAddress VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferStorageStore ¶
func (context *VMHooksImpl) MBufferStorageStore(keyHandle int32, sourceHandle int32) int32
MBufferStorageStore VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferToBigFloat ¶
func (context *VMHooksImpl) MBufferToBigFloat(mBufferHandle, bigFloatHandle int32) int32
MBufferToBigFloat VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferToBigIntSigned ¶
func (context *VMHooksImpl) MBufferToBigIntSigned(mBufferHandle int32, bigIntHandle int32) int32
MBufferToBigIntSigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MBufferToBigIntUnsigned ¶
func (context *VMHooksImpl) MBufferToBigIntUnsigned(mBufferHandle int32, bigIntHandle int32) int32
MBufferToBigIntUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedAsyncCall ¶
func (context *VMHooksImpl) ManagedAsyncCall( destHandle int32, valueHandle int32, functionHandle int32, argumentsHandle int32)
ManagedAsyncCall VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedBufferSetByteSliceWithHost ¶
func (context *VMHooksImpl) ManagedBufferSetByteSliceWithHost( host vmhost.VMHost, mBufferHandle int32, startingPosition int32, dataLength executor.MemLength, dataOffset executor.MemPtr) int32
ManagedBufferSetByteSliceWithHost VMHooks implementation.
func (*VMHooksImpl) ManagedBufferToHex ¶
func (context *VMHooksImpl) ManagedBufferToHex(sourceHandle int32, destHandle int32)
ManagedBufferToHex VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedCaller ¶
func (context *VMHooksImpl) ManagedCaller(destinationHandle int32)
ManagedCaller VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedCreateAsyncCall ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedCreateContract ¶
func (context *VMHooksImpl) ManagedCreateContract( gas int64, valueHandle int32, codeHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultAddressHandle int32, resultHandle int32, ) int32
ManagedCreateContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedCreateEC ¶
func (context *VMHooksImpl) ManagedCreateEC(dataHandle int32) int32
ManagedCreateEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedDeleteContract ¶
func (context *VMHooksImpl) ManagedDeleteContract( destHandle int32, gasLimit int64, argumentsHandle int32, )
ManagedDeleteContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedDeployFromSourceContract ¶
func (context *VMHooksImpl) ManagedDeployFromSourceContract( gas int64, valueHandle int32, addressHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultAddressHandle int32, resultHandle int32, ) int32
ManagedDeployFromSourceContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedEncodeSecp256k1DerSignature ¶
func (context *VMHooksImpl) ManagedEncodeSecp256k1DerSignature( rHandle, sHandle, sigHandle int32, ) int32
ManagedEncodeSecp256k1DerSignature VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedExecuteOnDestContext ¶
func (context *VMHooksImpl) ManagedExecuteOnDestContext( gas int64, addressHandle int32, valueHandle int32, functionHandle int32, argumentsHandle int32, resultHandle int32, ) int32
ManagedExecuteOnDestContext VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedExecuteOnSameContext ¶
func (context *VMHooksImpl) ManagedExecuteOnSameContext( gas int64, addressHandle int32, valueHandle int32, functionHandle int32, argumentsHandle int32, resultHandle int32, ) int32
ManagedExecuteOnSameContext VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedExecuteReadOnly ¶
func (context *VMHooksImpl) ManagedExecuteReadOnly( gas int64, addressHandle int32, functionHandle int32, argumentsHandle int32, resultHandle int32, ) int32
ManagedExecuteReadOnly VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGenerateKeyEC ¶
func (context *VMHooksImpl) ManagedGenerateKeyEC( xPubKeyHandle int32, yPubKeyHandle int32, ecHandle int32, resultHandle int32, ) int32
ManagedGenerateKeyEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetBackTransfers ¶ added in v1.5.8
func (context *VMHooksImpl) ManagedGetBackTransfers(esdtTransfersValueHandle int32, callValueHandle int32)
ManagedGetBackTransfers VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetBlockRandomSeed ¶
func (context *VMHooksImpl) ManagedGetBlockRandomSeed(resultHandle int32)
ManagedGetBlockRandomSeed VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetCallbackClosure ¶
func (context *VMHooksImpl) ManagedGetCallbackClosure( callbackClosureHandle int32, )
ManagedGetCallbackClosure VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetCodeMetadata ¶ added in v1.5.4
func (context *VMHooksImpl) ManagedGetCodeMetadata(addressHandle int32, responseHandle int32)
ManagedGetCodeMetadata VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetESDTBalance ¶
func (context *VMHooksImpl) ManagedGetESDTBalance(addressHandle int32, tokenIDHandle int32, nonce int64, valueHandle int32)
ManagedGetESDTBalance VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetESDTTokenData ¶
func (context *VMHooksImpl) ManagedGetESDTTokenData( addressHandle int32, tokenIDHandle int32, nonce int64, valueHandle, propertiesHandle, hashHandle, nameHandle, attributesHandle, creatorHandle, royaltiesHandle, urisHandle int32)
ManagedGetESDTTokenData VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetMultiESDTCallValue ¶
func (context *VMHooksImpl) ManagedGetMultiESDTCallValue(multiCallValueHandle int32)
ManagedGetMultiESDTCallValue VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetOriginalTxHash ¶
func (context *VMHooksImpl) ManagedGetOriginalTxHash(resultHandle int32)
ManagedGetOriginalTxHash VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetPrevBlockRandomSeed ¶
func (context *VMHooksImpl) ManagedGetPrevBlockRandomSeed(resultHandle int32)
ManagedGetPrevBlockRandomSeed VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetReturnData ¶
func (context *VMHooksImpl) ManagedGetReturnData(resultID int32, resultHandle int32)
ManagedGetReturnData VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedGetStateRootHash ¶
func (context *VMHooksImpl) ManagedGetStateRootHash(resultHandle int32)
ManagedGetStateRootHash VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedIsBuiltinFunction ¶ added in v1.5.4
func (context *VMHooksImpl) ManagedIsBuiltinFunction(functionNameHandle int32) int32
ManagedIsBuiltinFunction VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedIsESDTFrozen ¶
func (context *VMHooksImpl) ManagedIsESDTFrozen( addressHandle int32, tokenIDHandle int32, nonce int64) int32
ManagedIsESDTFrozen VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedIsESDTLimitedTransfer ¶
func (context *VMHooksImpl) ManagedIsESDTLimitedTransfer(tokenIDHandle int32) int32
ManagedIsESDTLimitedTransfer VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedIsESDTPaused ¶
func (context *VMHooksImpl) ManagedIsESDTPaused(tokenIDHandle int32) int32
ManagedIsESDTPaused VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedKeccak256 ¶
func (context *VMHooksImpl) ManagedKeccak256(inputHandle, outputHandle int32) int32
ManagedKeccak256 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMapContains ¶
func (context *VMHooksImpl) ManagedMapContains(mMapHandle int32, keyHandle int32) int32
ManagedMapContains VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMapGet ¶
func (context *VMHooksImpl) ManagedMapGet(mMapHandle int32, keyHandle int32, outValueHandle int32) int32
ManagedMapGet VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMapNew ¶
func (context *VMHooksImpl) ManagedMapNew() int32
ManagedMapNew VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMapPut ¶
func (context *VMHooksImpl) ManagedMapPut(mMapHandle int32, keyHandle int32, valueHandle int32) int32
ManagedMapPut VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMapRemove ¶
func (context *VMHooksImpl) ManagedMapRemove(mMapHandle int32, keyHandle int32, outValueHandle int32) int32
ManagedMapRemove VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMarshalCompressedEC ¶
func (context *VMHooksImpl) ManagedMarshalCompressedEC( xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32, ) int32
ManagedMarshalCompressedEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMarshalEC ¶
func (context *VMHooksImpl) ManagedMarshalEC( xPairHandle int32, yPairHandle int32, ecHandle int32, resultHandle int32, ) int32
ManagedMarshalEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedMultiTransferESDTNFTExecute ¶
func (context *VMHooksImpl) ManagedMultiTransferESDTNFTExecute( dstHandle int32, tokenTransfersHandle int32, gasLimit int64, functionHandle int32, argumentsHandle int32, ) int32
ManagedMultiTransferESDTNFTExecute VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedOwnerAddress ¶
func (context *VMHooksImpl) ManagedOwnerAddress(destinationHandle int32)
ManagedOwnerAddress VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedRipemd160 ¶
func (context *VMHooksImpl) ManagedRipemd160(inputHandle int32, outputHandle int32) int32
ManagedRipemd160 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedSCAddress ¶
func (context *VMHooksImpl) ManagedSCAddress(destinationHandle int32)
ManagedSCAddress VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedScalarBaseMultEC ¶
func (context *VMHooksImpl) ManagedScalarBaseMultEC( xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32, ) int32
ManagedScalarBaseMultEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedScalarMultEC ¶
func (context *VMHooksImpl) ManagedScalarMultEC( xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, pointYHandle int32, dataHandle int32, ) int32
ManagedScalarMultEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedSha256 ¶
func (context *VMHooksImpl) ManagedSha256(inputHandle, outputHandle int32) int32
ManagedSha256 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedSignalError ¶
func (context *VMHooksImpl) ManagedSignalError(errHandle int32)
ManagedSignalError VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedTransferValueExecute ¶
func (context *VMHooksImpl) ManagedTransferValueExecute( dstHandle int32, valueHandle int32, gasLimit int64, functionHandle int32, argumentsHandle int32, ) int32
ManagedTransferValueExecute VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedUnmarshalCompressedEC ¶
func (context *VMHooksImpl) ManagedUnmarshalCompressedEC( xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32, ) int32
ManagedUnmarshalCompressedEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedUnmarshalEC ¶
func (context *VMHooksImpl) ManagedUnmarshalEC( xResultHandle int32, yResultHandle int32, ecHandle int32, dataHandle int32, ) int32
ManagedUnmarshalEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedUpgradeContract ¶
func (context *VMHooksImpl) ManagedUpgradeContract( destHandle int32, gas int64, valueHandle int32, codeHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultHandle int32, )
ManagedUpgradeContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedUpgradeFromSourceContract ¶
func (context *VMHooksImpl) ManagedUpgradeFromSourceContract( destHandle int32, gas int64, valueHandle int32, addressHandle int32, codeMetadataHandle int32, argumentsHandle int32, resultHandle int32, )
ManagedUpgradeFromSourceContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedVerifyBLS ¶
func (context *VMHooksImpl) ManagedVerifyBLS( keyHandle int32, messageHandle int32, sigHandle int32, ) int32
ManagedVerifyBLS VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedVerifyCustomSecp256k1 ¶
func (context *VMHooksImpl) ManagedVerifyCustomSecp256k1( keyHandle, messageHandle, sigHandle int32, hashType int32, ) int32
ManagedVerifyCustomSecp256k1 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedVerifyEd25519 ¶
func (context *VMHooksImpl) ManagedVerifyEd25519( keyHandle, messageHandle, sigHandle int32, ) int32
ManagedVerifyEd25519 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedVerifySecp256k1 ¶
func (context *VMHooksImpl) ManagedVerifySecp256k1( keyHandle, messageHandle, sigHandle int32, ) int32
ManagedVerifySecp256k1 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ManagedWriteLog ¶
func (context *VMHooksImpl) ManagedWriteLog( topicsHandle int32, dataHandle int32, )
ManagedWriteLog VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MarshalCompressedEC ¶
func (context *VMHooksImpl) MarshalCompressedEC( xPairHandle int32, yPairHandle int32, ecHandle int32, resultOffset executor.MemPtr, ) int32
MarshalCompressedEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MarshalEC ¶
func (context *VMHooksImpl) MarshalEC( xPairHandle int32, yPairHandle int32, ecHandle int32, resultOffset executor.MemPtr, ) int32
MarshalEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) MemLoad ¶
func (context *VMHooksImpl) MemLoad(memPtr executor.MemPtr, length executor.MemLength) ([]byte, error)
MemLoad returns the contents from the given offset of the WASM memory.
func (*VMHooksImpl) MemLoadMultiple ¶
func (context *VMHooksImpl) MemLoadMultiple(memPtr executor.MemPtr, lengths []int32) ([][]byte, error)
MemLoadMultiple returns multiple byte slices loaded from the WASM memory, starting at the given offset and having the provided lengths.
func (*VMHooksImpl) MemStore ¶
func (context *VMHooksImpl) MemStore(memPtr executor.MemPtr, data []byte) error
MemStore stores the given data in the WASM memory at the given offset.
func (*VMHooksImpl) MultiTransferESDTNFTExecute ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) Ripemd160 ¶
func (context *VMHooksImpl) Ripemd160(dataOffset executor.MemPtr, length executor.MemLength, resultOffset executor.MemPtr) int32
Ripemd160 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ScalarBaseMultEC ¶
func (context *VMHooksImpl) ScalarBaseMultEC( xResultHandle int32, yResultHandle int32, ecHandle int32, dataOffset executor.MemPtr, length executor.MemLength, ) int32
ScalarBaseMultEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ScalarMultEC ¶
func (context *VMHooksImpl) ScalarMultEC( xResultHandle int32, yResultHandle int32, ecHandle int32, pointXHandle int32, pointYHandle int32, dataOffset executor.MemPtr, length executor.MemLength, ) int32
ScalarMultEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SetAsyncContextCallback ¶
func (context *VMHooksImpl) SetAsyncContextCallback( callback executor.MemPtr, callbackLength executor.MemLength, data executor.MemPtr, dataLength executor.MemLength, gas int64, ) int32
SetAsyncContextCallback VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SetStorageLock ¶
func (context *VMHooksImpl) SetStorageLock(keyOffset executor.MemPtr, keyLength executor.MemLength, lockTimestamp int64) int32
SetStorageLock VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SetStorageLockWithHost ¶
func (context *VMHooksImpl) SetStorageLockWithHost(host vmhost.VMHost, keyOffset executor.MemPtr, keyLength executor.MemLength, lockTimestamp int64) int32
SetStorageLockWithHost - setStorageLock with host instead of pointer context
func (*VMHooksImpl) Sha256 ¶
func (context *VMHooksImpl) Sha256( dataOffset executor.MemPtr, length executor.MemLength, resultOffset executor.MemPtr) int32
Sha256 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SignalError ¶
func (context *VMHooksImpl) SignalError(messageOffset executor.MemPtr, messageLength executor.MemLength)
SignalError VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntFinishSigned ¶
func (context *VMHooksImpl) SmallIntFinishSigned(value int64)
SmallIntFinishSigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntFinishUnsigned ¶
func (context *VMHooksImpl) SmallIntFinishUnsigned(value int64)
SmallIntFinishUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntGetSignedArgument ¶
func (context *VMHooksImpl) SmallIntGetSignedArgument(id int32) int64
SmallIntGetSignedArgument VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntGetUnsignedArgument ¶
func (context *VMHooksImpl) SmallIntGetUnsignedArgument(id int32) int64
SmallIntGetUnsignedArgument VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntStorageLoadSigned ¶
func (context *VMHooksImpl) SmallIntStorageLoadSigned(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
SmallIntStorageLoadSigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntStorageLoadUnsigned ¶
func (context *VMHooksImpl) SmallIntStorageLoadUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength) int64
SmallIntStorageLoadUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntStorageStoreSigned ¶
func (context *VMHooksImpl) SmallIntStorageStoreSigned(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32
SmallIntStorageStoreSigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) SmallIntStorageStoreUnsigned ¶
func (context *VMHooksImpl) SmallIntStorageStoreUnsigned(keyOffset executor.MemPtr, keyLength executor.MemLength, value int64) int32
SmallIntStorageStoreUnsigned VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) StorageLoad ¶
func (context *VMHooksImpl) StorageLoad(keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr) int32
StorageLoad VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) StorageLoadFromAddress ¶
func (context *VMHooksImpl) StorageLoadFromAddress( addressOffset executor.MemPtr, keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr) int32
StorageLoadFromAddress VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) StorageLoadFromAddressWithHost ¶
func (context *VMHooksImpl) StorageLoadFromAddressWithHost( host vmhost.VMHost, addressOffset executor.MemPtr, keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr) int32
StorageLoadFromAddressWithHost - storageLoadFromAddress with host instead of pointer context
func (*VMHooksImpl) StorageLoadLength ¶
func (context *VMHooksImpl) StorageLoadLength(keyOffset executor.MemPtr, keyLength executor.MemLength) int32
StorageLoadLength VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) StorageLoadWithHost ¶
func (context *VMHooksImpl) StorageLoadWithHost(host vmhost.VMHost, keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr) int32
StorageLoadWithHost - storageLoad with host instead of pointer context
func (*VMHooksImpl) StorageStore ¶
func (context *VMHooksImpl) StorageStore( keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr, dataLength executor.MemLength) int32
StorageStore VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) StorageStoreWithHost ¶
func (context *VMHooksImpl) StorageStoreWithHost( host vmhost.VMHost, keyOffset executor.MemPtr, keyLength executor.MemLength, dataOffset executor.MemPtr, dataLength executor.MemLength) int32
StorageStoreWithHost - storageStore with host instead of pointer context
func (*VMHooksImpl) TransferESDTExecute ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) TransferESDTNFTExecute ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) TransferESDTNFTExecuteWithHost ¶
func (context *VMHooksImpl) TransferESDTNFTExecuteWithHost( host vmhost.VMHost, 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
TransferESDTNFTExecuteWithHost contains only memory reading of arguments
func (*VMHooksImpl) TransferValue ¶
func (context *VMHooksImpl) TransferValue( destOffset executor.MemPtr, valueOffset executor.MemPtr, dataOffset executor.MemPtr, length executor.MemLength) int32
TransferValue VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) TransferValueExecute ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) TransferValueExecuteWithHost ¶
func (context *VMHooksImpl) TransferValueExecuteWithHost( host vmhost.VMHost, destOffset executor.MemPtr, valueOffset executor.MemPtr, gasLimit int64, functionOffset executor.MemPtr, functionLength int32, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr, ) int32
TransferValueExecuteWithHost - transferValueExecute with host instead of pointer context
func (*VMHooksImpl) UnmarshalCompressedEC ¶
func (context *VMHooksImpl) UnmarshalCompressedEC( xResultHandle int32, yResultHandle int32, ecHandle int32, dataOffset executor.MemPtr, length executor.MemLength, ) int32
UnmarshalCompressedEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) UnmarshalEC ¶
func (context *VMHooksImpl) UnmarshalEC( xResultHandle int32, yResultHandle int32, ecHandle int32, dataOffset executor.MemPtr, length executor.MemLength, ) int32
UnmarshalEC VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) UpgradeContract ¶
func (context *VMHooksImpl) 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 VMHooks implementation. @autogenerate(VMHooks) @autogenerate(VMHooks)
func (*VMHooksImpl) UpgradeFromSourceContract ¶
func (context *VMHooksImpl) UpgradeFromSourceContract( destOffset executor.MemPtr, gasLimit int64, valueOffset executor.MemPtr, sourceContractAddressOffset executor.MemPtr, codeMetadataOffset executor.MemPtr, numArguments int32, argumentsLengthOffset executor.MemPtr, dataOffset executor.MemPtr, )
UpgradeFromSourceContract VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) ValidateTokenIdentifier ¶
func (context *VMHooksImpl) ValidateTokenIdentifier( tokenIdHandle int32, ) int32
ValidateTokenIdentifier VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) VerifyBLS ¶
func (context *VMHooksImpl) VerifyBLS( keyOffset executor.MemPtr, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr, ) int32
VerifyBLS VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) VerifyCustomSecp256k1 ¶
func (context *VMHooksImpl) VerifyCustomSecp256k1( keyOffset executor.MemPtr, keyLength executor.MemLength, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr, hashType int32, ) int32
VerifyCustomSecp256k1 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) VerifyEd25519 ¶
func (context *VMHooksImpl) VerifyEd25519( keyOffset executor.MemPtr, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr, ) int32
VerifyEd25519 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) VerifySecp256k1 ¶
func (context *VMHooksImpl) VerifySecp256k1( keyOffset executor.MemPtr, keyLength executor.MemLength, messageOffset executor.MemPtr, messageLength executor.MemLength, sigOffset executor.MemPtr, ) int32
VerifySecp256k1 VMHooks implementation. @autogenerate(VMHooks)
func (*VMHooksImpl) WithFault ¶
func (context *VMHooksImpl) WithFault(err error, failExecution bool) bool
WithFault handles an error, taking into account whether it should completely fail the execution of a contract or not.