Versions in this module Expand all Collapse all v2 v2.0.0 Jun 17, 2021 Changes in this version + func NewRuntimeContextWrapper(inputRuntimeContext *arwen.RuntimeContext) *runtimeContextWrapper + type BlockchainHookStub struct + CurrentEpochCalled func() uint32 + CurrentNonceCalled func() uint64 + CurrentRandomSeedCalled func() []byte + CurrentRoundCalled func() uint64 + CurrentTimeStampCalled func() uint64 + GetAllStateCalled func(address []byte) (map[string][]byte, error) + GetBlockHashCalled func(nonce uint64) ([]byte, error) + GetBuiltinFunctionNamesCalled func() vmcommon.FunctionNames + GetCodeCalled func(account vmcommon.UserAccountHandler) []byte + GetCompiledCodeCalled func(codeHash []byte) (bool, []byte) + GetESDTTokenCalled func(address []byte, tokenID []byte, nonce uint64) (*esdt.ESDigitalToken, error) + GetShardOfAddressCalled func(address []byte) uint32 + GetSnapshotCalled func() int + GetStateRootHashCalled func() []byte + GetStorageDataCalled func(accountsAddress []byte, index []byte) ([]byte, error) + GetUserAccountCalled func(address []byte) (vmcommon.UserAccountHandler, error) + IsPayableCalled func(address []byte) (bool, error) + IsSmartContractCalled func(address []byte) bool + LastEpochCalled func() uint32 + LastNonceCalled func() uint64 + LastRandomSeedCalled func() []byte + LastRoundCalled func() uint64 + LastTimeStampCalled func() uint64 + NewAddressCalled func(creatorAddress []byte, creatorNonce uint64, vmType []byte) ([]byte, error) + ProcessBuiltInFunctionCalled func(input *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error) + RevertToSnapshotCalled func(snapshot int) error + SaveCompiledCodeCalled func(codeHash []byte, code []byte) + func (b *BlockchainHookStub) ClearCompiledCodes() + func (b *BlockchainHookStub) CurrentEpoch() uint32 + func (b *BlockchainHookStub) CurrentNonce() uint64 + func (b *BlockchainHookStub) CurrentRandomSeed() []byte + func (b *BlockchainHookStub) CurrentRound() uint64 + func (b *BlockchainHookStub) CurrentTimeStamp() uint64 + func (b *BlockchainHookStub) GetAllState(address []byte) (map[string][]byte, error) + func (b *BlockchainHookStub) GetBlockhash(nonce uint64) ([]byte, error) + func (b *BlockchainHookStub) GetBuiltinFunctionNames() vmcommon.FunctionNames + func (b *BlockchainHookStub) GetCode(account vmcommon.UserAccountHandler) []byte + func (b *BlockchainHookStub) GetCompiledCode(codeHash []byte) (bool, []byte) + func (b *BlockchainHookStub) GetESDTToken(address []byte, tokenID []byte, nonce uint64) (*esdt.ESDigitalToken, error) + func (b *BlockchainHookStub) GetShardOfAddress(address []byte) uint32 + func (b *BlockchainHookStub) GetSnapshot() int + func (b *BlockchainHookStub) GetStateRootHash() []byte + func (b *BlockchainHookStub) GetStorageData(accountAddress []byte, index []byte) ([]byte, error) + func (b *BlockchainHookStub) GetUserAccount(address []byte) (vmcommon.UserAccountHandler, error) + func (b *BlockchainHookStub) IsInterfaceNil() bool + func (b *BlockchainHookStub) IsPayable(address []byte) (bool, error) + func (b *BlockchainHookStub) IsSmartContract(address []byte) bool + func (b *BlockchainHookStub) LastEpoch() uint32 + func (b *BlockchainHookStub) LastNonce() uint64 + func (b *BlockchainHookStub) LastRandomSeed() []byte + func (b *BlockchainHookStub) LastRound() uint64 + func (b *BlockchainHookStub) LastTimeStamp() uint64 + func (b *BlockchainHookStub) NewAddress(creatorAddress []byte, creatorNonce uint64, vmType []byte) ([]byte, error) + func (b *BlockchainHookStub) ProcessBuiltInFunction(input *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error) + func (b *BlockchainHookStub) RevertToSnapshot(snapshot int) error + func (b *BlockchainHookStub) SaveCompiledCode(codeHash []byte, code []byte) + type CryptoHookMock struct + Err error + Result []byte + func (c *CryptoHookMock) Ecrecover(hash []byte, recoveryID []byte, r []byte, s []byte) ([]byte, error) + func (c *CryptoHookMock) Keccak256(data []byte) ([]byte, error) + func (c *CryptoHookMock) Ripemd160(data []byte) ([]byte, error) + func (c *CryptoHookMock) Sha256(data []byte) ([]byte, error) + func (c *CryptoHookMock) VerifyBLS(key []byte, msg []byte, sig []byte) error + func (c *CryptoHookMock) VerifyEd25519(key []byte, msg []byte, sig []byte) error + func (c *CryptoHookMock) VerifySecp256k1(key []byte, msg []byte, sig []byte) error + type InstanceBuilderMock struct + InstanceMap map[string]wasmer.InstanceHandler + World *worldmock.MockWorld + func NewInstanceBuilderMock(world *worldmock.MockWorld) *InstanceBuilderMock + func (builder *InstanceBuilderMock) CreateAndStoreInstanceMock(code []byte, balance int64) *InstanceMock + func (builder *InstanceBuilderMock) GetStoredInstance(code []byte, gasLimit uint64) (wasmer.InstanceHandler, bool) + func (builder *InstanceBuilderMock) NewInstanceFromCompiledCodeWithOptions(compiledCode []byte, options wasmer.CompilationOptions) (wasmer.InstanceHandler, error) + func (builder *InstanceBuilderMock) NewInstanceWithOptions(contractCode []byte, options wasmer.CompilationOptions) (wasmer.InstanceHandler, error) + type InstanceBuilderRecorderMock struct + InstanceMap map[string][]wasmer.InstanceHandler + func NewInstanceBuilderRecorderMock() *InstanceBuilderRecorderMock + func (builder *InstanceBuilderRecorderMock) GetContractInstances(code []byte) []wasmer.InstanceHandler + func (builder *InstanceBuilderRecorderMock) NewInstanceFromCompiledCodeWithOptions(compiledCode []byte, options wasmer.CompilationOptions) (wasmer.InstanceHandler, error) + func (builder *InstanceBuilderRecorderMock) NewInstanceWithOptions(contractCode []byte, options wasmer.CompilationOptions) (wasmer.InstanceHandler, error) + type InstanceMock struct + BreakpointValue uint64 + Code []byte + Data uintptr + Exports wasmer.ExportsMap + GasLimit uint64 + Memory wasmer.MemoryHandler + Points uint64 + func NewInstanceMock(code []byte) *InstanceMock + func (instance *InstanceMock) AddMockMethod(name string, method func()) + func (instance *InstanceMock) Cache() ([]byte, error) + func (instance *InstanceMock) Clean() + func (instance *InstanceMock) GetBreakpointValue() uint64 + func (instance *InstanceMock) GetData() uintptr + func (instance *InstanceMock) GetExports() wasmer.ExportsMap + func (instance *InstanceMock) GetInstanceCtxMemory() wasmer.MemoryHandler + func (instance *InstanceMock) GetMemory() wasmer.MemoryHandler + func (instance *InstanceMock) GetPointsUsed() uint64 + func (instance *InstanceMock) GetSignature(functionName string) (*wasmer.ExportedFunctionSignature, bool) + func (instance *InstanceMock) HasMemory() bool + func (instance *InstanceMock) IsFunctionImported(name string) bool + func (instance *InstanceMock) SetBreakpointValue(value uint64) + func (instance *InstanceMock) SetContextData(data uintptr) + func (instance *InstanceMock) SetGasLimit(gasLimit uint64) + func (instance *InstanceMock) SetPointsUsed(points uint64) + type MemoryMock struct + Contents []byte + PageSize uint32 + Pages uint32 + func NewMemoryMock() *MemoryMock + func (memory *MemoryMock) Data() []byte + func (memory *MemoryMock) Destroy() + func (memory *MemoryMock) Grow(pages uint32) error + func (memory *MemoryMock) Length() uint32 + type MeteringContextMock struct + BlockGasLimitMock uint64 + Err error + GasComputedToLock uint64 + GasCost *config.GasCost + GasLeftMock uint64 + GasLockedMock uint64 + func (m *MeteringContextMock) AddToUsedGas(_ []byte, _ uint64) + func (m *MeteringContextMock) BlockGasLimit() uint64 + func (m *MeteringContextMock) BoundGasLimit(value int64) uint64 + func (m *MeteringContextMock) ClearStateStack() + func (m *MeteringContextMock) ComputeGasLockedForAsync() uint64 + func (m *MeteringContextMock) DeductGasIfAsyncStep() error + func (m *MeteringContextMock) DeductInitialGasForDirectDeployment(_ arwen.CodeDeployInput) error + func (m *MeteringContextMock) DeductInitialGasForExecution(_ []byte) error + func (m *MeteringContextMock) DeductInitialGasForIndirectDeployment(_ arwen.CodeDeployInput) error + func (m *MeteringContextMock) ForwardGas(_ []byte, _ []byte, _ uint64) + func (m *MeteringContextMock) FreeGas(_ uint64) + func (m *MeteringContextMock) GasLeft() uint64 + func (m *MeteringContextMock) GasSchedule() *config.GasCost + func (m *MeteringContextMock) GasSpentByContract() uint64 + func (m *MeteringContextMock) GasUsedByContract() (uint64, uint64) + func (m *MeteringContextMock) GasUsedForExecution() uint64 + func (m *MeteringContextMock) GetForwardedGas(_ []byte) uint64 + func (m *MeteringContextMock) GetGasForExecution() uint64 + func (m *MeteringContextMock) GetGasLocked() uint64 + func (m *MeteringContextMock) GetGasProvided() uint64 + func (m *MeteringContextMock) GetPreviousTotalUsedGas() uint64 + func (m *MeteringContextMock) GetSCPrepareInitialCost() uint64 + func (m *MeteringContextMock) InitState() + func (m *MeteringContextMock) InitStateFromContractCallInput(_ *vmcommon.VMInput) + func (m *MeteringContextMock) PopDiscard() + func (m *MeteringContextMock) PopSetActiveState() + func (m *MeteringContextMock) PushState() + func (m *MeteringContextMock) RestoreGas(_ uint64) + func (m *MeteringContextMock) SetGasSchedule(gasSchedule config.GasScheduleMap) + func (m *MeteringContextMock) SetTotalUsedGas(_ uint64) + func (m *MeteringContextMock) UnlockGasIfAsyncCallback() + func (m *MeteringContextMock) UnlockGasIfAsyncStep() + func (m *MeteringContextMock) UseGas(_ uint64) + func (m *MeteringContextMock) UseGasBounded(_ uint64) error + func (m *MeteringContextMock) UseGasForAsyncStep() error + type OutputContextMock struct + DeletedAccounts [][]byte + Err error + GasRefund *big.Int + GasRemaining uint64 + Logs []*vmcommon.LogEntry + OutputAccountIsNew bool + OutputAccountMock *vmcommon.OutputAccount + OutputAccounts map[string]*vmcommon.OutputAccount + OutputStateMock *vmcommon.VMOutput + ReturnCodeMock vmcommon.ReturnCode + ReturnDataMock [][]byte + ReturnMessageMock string + TouchedAccounts [][]byte + TransferResult error + func (o *OutputContextMock) AddToActiveState(_ *vmcommon.VMOutput) + func (o *OutputContextMock) AddTxValueToAccount(_ []byte, _ *big.Int) + func (o *OutputContextMock) CensorVMOutput() + func (o *OutputContextMock) ClearReturnData() + func (o *OutputContextMock) ClearStateStack() + func (o *OutputContextMock) CopyTopOfStackToActiveState() + func (o *OutputContextMock) CreateVMOutputInCaseOfError(_ error) *vmcommon.VMOutput + func (o *OutputContextMock) DeleteOutputAccount(_ []byte) + func (o *OutputContextMock) DeployCode(_ arwen.CodeDeployInput) + func (o *OutputContextMock) Finish(data []byte) + func (o *OutputContextMock) GetCurrentTotalUsedGas() (uint64, bool) + func (o *OutputContextMock) GetOutputAccount(_ []byte) (*vmcommon.OutputAccount, bool) + func (o *OutputContextMock) GetRefund() uint64 + func (o *OutputContextMock) GetVMOutput() *vmcommon.VMOutput + func (o *OutputContextMock) InitState() + func (o *OutputContextMock) NewVMOutputAccount(address []byte) *vmcommon.OutputAccount + func (o *OutputContextMock) NewVMOutputAccountFromMockAccount(account *worldmock.Account) *vmcommon.OutputAccount + func (o *OutputContextMock) PopDiscard() + func (o *OutputContextMock) PopMergeActiveState() + func (o *OutputContextMock) PopSetActiveState() + func (o *OutputContextMock) PrependFinish(data []byte) + func (o *OutputContextMock) PushState() + func (o *OutputContextMock) ResetGas() + func (o *OutputContextMock) ReturnCode() vmcommon.ReturnCode + func (o *OutputContextMock) ReturnData() [][]byte + func (o *OutputContextMock) ReturnMessage() string + func (o *OutputContextMock) SelfDestruct(_ []byte, _ []byte) + func (o *OutputContextMock) SetRefund(refund uint64) + func (o *OutputContextMock) SetReturnCode(returnCode vmcommon.ReturnCode) + func (o *OutputContextMock) SetReturnMessage(returnMessage string) + func (o *OutputContextMock) Transfer(_ []byte, _ []byte, _ uint64, _ uint64, _ *big.Int, _ []byte, ...) error + func (o *OutputContextMock) TransferESDT(_ []byte, _ []byte, _ []byte, _ uint64, _ *big.Int, ...) (uint64, error) + func (o *OutputContextMock) TransferValueOnly(_ []byte, _ []byte, _ *big.Int, _ bool) error + func (o *OutputContextMock) WriteLog(_ []byte, _ [][]byte, _ []byte) + type OutputContextStub struct + AddToActiveStateCalled func(vmOutput *vmcommon.VMOutput) + AddTxValueToAccountCalled func(address []byte, value *big.Int) + CensorVMOutputCalled func() + ClearReturnDataCalled func() + ClearStateStackCalled func() + CopyTopOfStackToActiveStateCalled func() + CreateVMOutputInCaseOfErrorCalled func(err error) *vmcommon.VMOutput + DeleteOutputAccountCalled func(address []byte) + DeployCodeCalled func(input arwen.CodeDeployInput) + FinishCalled func(data []byte) + GetCurrentTotalUsedGasCalled func() (uint64, bool) + GetOutputAccountCalled func(address []byte) (*vmcommon.OutputAccount, bool) + GetRefundCalled func() uint64 + GetVMOutputCalled func() *vmcommon.VMOutput + InitStateCalled func() + PopDiscardCalled func() + PopMergeActiveStateCalled func() + PopSetActiveStateCalled func() + PrependFinishCalled func(data []byte) + PushStateCalled func() + ResetGasCalled func() + ReturnCodeCalled func() vmcommon.ReturnCode + ReturnDataCalled func() [][]byte + ReturnMessageCalled func() string + SelfDestructCalled func(address []byte, beneficiary []byte) + SetRefundCalled func(refund uint64) + SetReturnCodeCalled func(returnCode vmcommon.ReturnCode) + SetReturnMessageCalled func(message string) + TransferCalled func(destination []byte, sender []byte, gasLimit uint64, gasLocked uint64, ...) error + TransferESDTCalled func(destination []byte, sender []byte, tokenIdentifier []byte, nonce uint64, ...) (uint64, error) + TransferValueOnlyCalled func(destination []byte, sender []byte, value *big.Int, checkPayable bool) error + WriteLogCalled func(address []byte, topics [][]byte, data []byte) + func (o *OutputContextStub) AddToActiveState(vmOutput *vmcommon.VMOutput) + func (o *OutputContextStub) AddTxValueToAccount(address []byte, value *big.Int) + func (o *OutputContextStub) CensorVMOutput() + func (o *OutputContextStub) ClearReturnData() + func (o *OutputContextStub) ClearStateStack() + func (o *OutputContextStub) CopyTopOfStackToActiveState() + func (o *OutputContextStub) CreateVMOutputInCaseOfError(err error) *vmcommon.VMOutput + func (o *OutputContextStub) DeleteOutputAccount(address []byte) + func (o *OutputContextStub) DeployCode(input arwen.CodeDeployInput) + func (o *OutputContextStub) Finish(data []byte) + func (o *OutputContextStub) GetCurrentTotalUsedGas() (uint64, bool) + func (o *OutputContextStub) GetOutputAccount(address []byte) (*vmcommon.OutputAccount, bool) + func (o *OutputContextStub) GetRefund() uint64 + func (o *OutputContextStub) GetVMOutput() *vmcommon.VMOutput + func (o *OutputContextStub) InitState() + func (o *OutputContextStub) PopDiscard() + func (o *OutputContextStub) PopMergeActiveState() + func (o *OutputContextStub) PopSetActiveState() + func (o *OutputContextStub) PrependFinish(data []byte) + func (o *OutputContextStub) PushState() + func (o *OutputContextStub) ResetGas() + func (o *OutputContextStub) ReturnCode() vmcommon.ReturnCode + func (o *OutputContextStub) ReturnData() [][]byte + func (o *OutputContextStub) ReturnMessage() string + func (o *OutputContextStub) SelfDestruct(address []byte, beneficiary []byte) + func (o *OutputContextStub) SetRefund(refund uint64) + func (o *OutputContextStub) SetReturnCode(returnCode vmcommon.ReturnCode) + func (o *OutputContextStub) SetReturnMessage(message string) + func (o *OutputContextStub) Transfer(destination []byte, sender []byte, gasLimit uint64, gasLocked uint64, ...) error + func (o *OutputContextStub) TransferESDT(destination []byte, sender []byte, tokenIdentifier []byte, nonce uint64, ...) (uint64, error) + func (o *OutputContextStub) TransferValueOnly(destination []byte, sender []byte, value *big.Int, checkPayable bool) error + func (o *OutputContextStub) WriteLog(address []byte, topics [][]byte, data []byte) + type RuntimeContextMock struct + AsyncCallInfo *arwen.AsyncCallInfo + CallFunction string + CurrentBreakpointValue arwen.BreakpointValue + CurrentTxHash []byte + Err error + FailBigIntAPI bool + FailCryptoAPI bool + FailElrondAPI bool + FailElrondSyncExecAPI bool + InstanceCtxID int + IsContractOnStack bool + MemLoadMultipleResult [][]byte + MemLoadResult []byte + OriginalTxHash []byte + PointsUsed uint64 + ReadOnlyFlag bool + RunningInstances uint64 + SCAddress []byte + SCCode []byte + SCCodeSize uint64 + VMInput *vmcommon.VMInput + VMType []byte + VerifyCode bool + func (r *RuntimeContextMock) AddAsyncContextCall(_ []byte, _ *arwen.AsyncGeneratedCall) error + func (r *RuntimeContextMock) Arguments() [][]byte + func (r *RuntimeContextMock) BigIntAPIErrorShouldFailExecution() bool + func (r *RuntimeContextMock) CleanWasmerInstance() + func (r *RuntimeContextMock) ClearInstanceStack() + func (r *RuntimeContextMock) ClearStateStack() + func (r *RuntimeContextMock) CryptoAPIErrorShouldFailExecution() bool + func (r *RuntimeContextMock) ElrondAPIErrorShouldFailExecution() bool + func (r *RuntimeContextMock) ElrondSyncExecAPIErrorShouldFailExecution() bool + func (r *RuntimeContextMock) ExecuteAsyncCall(address []byte, data []byte, value []byte) error + func (r *RuntimeContextMock) ExtractCodeUpgradeFromArgs() ([]byte, []byte, error) + func (r *RuntimeContextMock) FailExecution(_ error) + func (r *RuntimeContextMock) Function() string + func (r *RuntimeContextMock) GetAsyncCallInfo() *arwen.AsyncCallInfo + func (r *RuntimeContextMock) GetAsyncContext(_ []byte) (*arwen.AsyncContext, error) + func (r *RuntimeContextMock) GetAsyncContextInfo() *arwen.AsyncContextInfo + func (r *RuntimeContextMock) GetCurrentTxHash() []byte + func (r *RuntimeContextMock) GetFunctionToCall() (wasmer.ExportedFunctionCallback, error) + func (r *RuntimeContextMock) GetInitFunction() wasmer.ExportedFunctionCallback + func (r *RuntimeContextMock) GetInstanceExports() wasmer.ExportsMap + func (r *RuntimeContextMock) GetOriginalTxHash() []byte + func (r *RuntimeContextMock) GetPointsUsed() uint64 + func (r *RuntimeContextMock) GetRuntimeBreakpointValue() arwen.BreakpointValue + func (r *RuntimeContextMock) GetSCAddress() []byte + func (r *RuntimeContextMock) GetSCCode() ([]byte, error) + func (r *RuntimeContextMock) GetSCCodeSize() uint64 + func (r *RuntimeContextMock) GetVMInput() *vmcommon.VMInput + func (r *RuntimeContextMock) GetVMType() []byte + func (r *RuntimeContextMock) InitState() + func (r *RuntimeContextMock) InitStateFromContractCallInput(_ *vmcommon.ContractCallInput) + func (r *RuntimeContextMock) IsContractOnTheStack(_ []byte) bool + func (r *RuntimeContextMock) IsFunctionImported(_ string) bool + func (r *RuntimeContextMock) IsWarmInstance() bool + func (r *RuntimeContextMock) MemLoad(_ int32, _ int32) ([]byte, error) + func (r *RuntimeContextMock) MemLoadMultiple(_ int32, _ []int32) ([][]byte, error) + func (r *RuntimeContextMock) MemStore(_ int32, _ []byte) error + func (r *RuntimeContextMock) MustVerifyNextContractCode() + func (r *RuntimeContextMock) PopDiscard() + func (r *RuntimeContextMock) PopInstance() + func (r *RuntimeContextMock) PopSetActiveState() + func (r *RuntimeContextMock) PushInstance() + func (r *RuntimeContextMock) PushState() + func (r *RuntimeContextMock) ReadOnly() bool + func (r *RuntimeContextMock) ReplaceInstanceBuilder(_ arwen.InstanceBuilder) + func (r *RuntimeContextMock) ResetWarmInstance() + func (r *RuntimeContextMock) RunningInstancesCount() uint64 + func (r *RuntimeContextMock) SetAsyncCallInfo(asyncCallInfo *arwen.AsyncCallInfo) + func (r *RuntimeContextMock) SetCaching(_ bool) + func (r *RuntimeContextMock) SetCustomCallFunction(_ string) + func (r *RuntimeContextMock) SetMaxInstanceCount(uint64) + func (r *RuntimeContextMock) SetPointsUsed(gasPoints uint64) + func (r *RuntimeContextMock) SetReadOnly(readOnly bool) + func (r *RuntimeContextMock) SetRuntimeBreakpointValue(_ arwen.BreakpointValue) + func (r *RuntimeContextMock) SetSCAddress(scAddress []byte) + func (r *RuntimeContextMock) SetVMInput(vmInput *vmcommon.VMInput) + func (r *RuntimeContextMock) SignalExit(_ int) + func (r *RuntimeContextMock) SignalUserError(_ string) + func (r *RuntimeContextMock) StartWasmerInstance(_ []byte, _ uint64, _ bool) error + func (r *RuntimeContextMock) VerifyContractCode() error + type StubAccount struct + Address []byte + Balance *big.Int + CodeHash []byte + CodeMetadata []byte + Err error + Nonce uint64 + OwnerAddress []byte + ShardID uint32 + Storage map[string][]byte + UserName []byte + func (a *StubAccount) AddressBytes() []byte + func (a *StubAccount) GetBalance() *big.Int + func (a *StubAccount) GetCodeHash() []byte + func (a *StubAccount) GetCodeMetadata() []byte + func (a *StubAccount) GetDeveloperReward() *big.Int + func (a *StubAccount) GetNonce() uint64 + func (a *StubAccount) GetOwnerAddress() []byte + func (a *StubAccount) GetRootHash() []byte + func (a *StubAccount) GetUserName() []byte + func (a *StubAccount) IsInterfaceNil() bool + type VMHostMock struct + BigIntContext arwen.BigIntContext + BlockChainHook vmcommon.BlockchainHook + BlockchainContext arwen.BlockchainContext + CryptoHook crypto.VMCrypto + EthInput []byte + IsBuiltinFunc bool + MeteringContext arwen.MeteringContext + OutputContext arwen.OutputContext + RuntimeContext arwen.RuntimeContext + SCAPIMethods *wasmer.Imports + StorageContext arwen.StorageContext + func (host *VMHostMock) AreInSameShard(_ []byte, _ []byte) bool + func (host *VMHostMock) BigInt() arwen.BigIntContext + func (host *VMHostMock) Blockchain() arwen.BlockchainContext + func (host *VMHostMock) ClearStateStack() + func (host *VMHostMock) CreateNewContract(_ *vmcommon.ContractCreateInput) ([]byte, error) + func (host *VMHostMock) Crypto() crypto.VMCrypto + func (host *VMHostMock) ExecuteESDTTransfer(_ []byte, _ []byte, _ []byte, _ uint64, _ *big.Int, _ vmcommon.CallType, ...) (*vmcommon.VMOutput, uint64, error) + func (host *VMHostMock) ExecuteOnDestContext(_ *vmcommon.ContractCallInput) (*vmcommon.VMOutput, *arwen.AsyncContextInfo, uint64, error) + func (host *VMHostMock) ExecuteOnSameContext(_ *vmcommon.ContractCallInput) (*arwen.AsyncContextInfo, error) + func (host *VMHostMock) GetAPIMethods() *wasmer.Imports + func (host *VMHostMock) GetProtocolBuiltinFunctions() vmcommon.FunctionNames + func (host *VMHostMock) InitState() + func (host *VMHostMock) IsAheadOfTimeCompileEnabled() bool + func (host *VMHostMock) IsArwenV2Enabled() bool + func (host *VMHostMock) IsArwenV3Enabled() bool + func (host *VMHostMock) IsBuiltinFunctionName(_ string) bool + func (host *VMHostMock) IsDynamicGasLockingEnabled() bool + func (host *VMHostMock) IsESDTFunctionsEnabled() bool + func (host *VMHostMock) Metering() arwen.MeteringContext + func (host *VMHostMock) Output() arwen.OutputContext + func (host *VMHostMock) PopState() + func (host *VMHostMock) PushState() + func (host *VMHostMock) RevertESDTTransfer(_ *vmcommon.ContractCallInput) + func (host *VMHostMock) Runtime() arwen.RuntimeContext + func (host *VMHostMock) Storage() arwen.StorageContext + type VMHostStub struct + AreInSameShardCalled func(left []byte, right []byte) bool + BigIntCalled func() arwen.BigIntContext + BlockchainCalled func() arwen.BlockchainContext + ClearStateStackCalled func() + CreateNewContractCalled func(input *vmcommon.ContractCreateInput) ([]byte, error) + CryptoCalled func() crypto.VMCrypto + ExecuteESDTTransferCalled func(destination []byte, sender []byte, tokenIdentifier []byte, nonce uint64, ...) (*vmcommon.VMOutput, uint64, error) + ExecuteOnDestContextCalled func(input *vmcommon.ContractCallInput) (*vmcommon.VMOutput, *arwen.AsyncContextInfo, uint64, error) + ExecuteOnSameContextCalled func(input *vmcommon.ContractCallInput) (*arwen.AsyncContextInfo, error) + GetAPIMethodsCalled func() *wasmer.Imports + GetProtocolBuiltinFunctionsCalled func() vmcommon.FunctionNames + InitStateCalled func() + IsBuiltinFunctionNameCalled func(functionName string) bool + MeteringCalled func() arwen.MeteringContext + OutputCalled func() arwen.OutputContext + PopStateCalled func() + PushStateCalled func() + RevertESDTTransferCalled func(input *vmcommon.ContractCallInput) + RuntimeCalled func() arwen.RuntimeContext + StorageCalled func() arwen.StorageContext + func (vhs *VMHostStub) AreInSameShard(left []byte, right []byte) bool + func (vhs *VMHostStub) BigInt() arwen.BigIntContext + func (vhs *VMHostStub) Blockchain() arwen.BlockchainContext + func (vhs *VMHostStub) ClearStateStack() + func (vhs *VMHostStub) CreateNewContract(input *vmcommon.ContractCreateInput) ([]byte, error) + func (vhs *VMHostStub) Crypto() crypto.VMCrypto + func (vhs *VMHostStub) ExecuteESDTTransfer(destination []byte, sender []byte, tokenIdentifier []byte, nonce uint64, ...) (*vmcommon.VMOutput, uint64, error) + func (vhs *VMHostStub) ExecuteOnDestContext(input *vmcommon.ContractCallInput) (*vmcommon.VMOutput, *arwen.AsyncContextInfo, uint64, error) + func (vhs *VMHostStub) ExecuteOnSameContext(input *vmcommon.ContractCallInput) (*arwen.AsyncContextInfo, error) + func (vhs *VMHostStub) GetAPIMethods() *wasmer.Imports + func (vhs *VMHostStub) GetProtocolBuiltinFunctions() vmcommon.FunctionNames + func (vhs *VMHostStub) InitState() + func (vhs *VMHostStub) IsAheadOfTimeCompileEnabled() bool + func (vhs *VMHostStub) IsArwenV2Enabled() bool + func (vhs *VMHostStub) IsArwenV3Enabled() bool + func (vhs *VMHostStub) IsBuiltinFunctionName(functionName string) bool + func (vhs *VMHostStub) IsDynamicGasLockingEnabled() bool + func (vhs *VMHostStub) IsESDTFunctionsEnabled() bool + func (vhs *VMHostStub) Metering() arwen.MeteringContext + func (vhs *VMHostStub) Output() arwen.OutputContext + func (vhs *VMHostStub) PopState() + func (vhs *VMHostStub) PushState() + func (vhs *VMHostStub) RevertESDTTransfer(input *vmcommon.ContractCallInput) + func (vhs *VMHostStub) Runtime() arwen.RuntimeContext + func (vhs *VMHostStub) Storage() arwen.StorageContext Other modules containing this package github.com/bogdan-rosianu/arwen-wasm-vm/v3