Versions in this module Expand all Collapse all v0 v0.0.1 Oct 8, 2022 Changes in this version + type BlockchainContextMock struct + func (b *BlockchainContextMock) AccountExists(_ []byte) bool + func (b *BlockchainContextMock) BlockHash(_ int64) []byte + func (b *BlockchainContextMock) ClearCompiledCodes() + func (b *BlockchainContextMock) ClearStateStack() + func (b *BlockchainContextMock) CurrentEpoch() uint32 + func (b *BlockchainContextMock) CurrentNonce() uint64 + func (b *BlockchainContextMock) CurrentRandomSeed() []byte + func (b *BlockchainContextMock) CurrentRound() uint64 + func (b *BlockchainContextMock) CurrentTimeStamp() uint64 + func (b *BlockchainContextMock) GetBalance(_ []byte) []byte + func (b *BlockchainContextMock) GetBalanceBigInt(_ []byte) *big.Int + func (b *BlockchainContextMock) GetCode(addr []byte) ([]byte, error) + func (b *BlockchainContextMock) GetCodeHash(addr []byte) []byte + func (b *BlockchainContextMock) GetCodeSize(_ []byte) (int32, error) + func (b *BlockchainContextMock) GetCompiledCode(_ []byte) (bool, []byte) + func (b *BlockchainContextMock) GetMECTToken(_ []byte, _ []byte, _ uint64) (*mect.MECToken, error) + func (b *BlockchainContextMock) GetNonce(_ []byte) (uint64, error) + func (b *BlockchainContextMock) GetOwnerAddress() ([]byte, error) + func (b *BlockchainContextMock) GetShardOfAddress(_ []byte) uint32 + func (b *BlockchainContextMock) GetSnapshot() int + func (b *BlockchainContextMock) GetStateRootHash() []byte + func (b *BlockchainContextMock) GetUserAccount(_ []byte) (vmcommon.UserAccountHandler, error) + func (b *BlockchainContextMock) IncreaseNonce(_ []byte) + func (b *BlockchainContextMock) InitState() + func (b *BlockchainContextMock) IsLimitedTransfer(_ []byte) bool + func (b *BlockchainContextMock) IsPaused(_ []byte) bool + func (b *BlockchainContextMock) IsPayable(_, _ []byte) (bool, error) + func (b *BlockchainContextMock) IsSmartContract(_ []byte) bool + func (b *BlockchainContextMock) LastEpoch() uint32 + func (b *BlockchainContextMock) LastNonce() uint64 + func (b *BlockchainContextMock) LastRandomSeed() []byte + func (b *BlockchainContextMock) LastRound() uint64 + func (b *BlockchainContextMock) LastTimeStamp() uint64 + func (b *BlockchainContextMock) NewAddress(creatorAddress []byte) ([]byte, error) + func (b *BlockchainContextMock) PopDiscard() + func (b *BlockchainContextMock) PopSetActiveState() + func (b *BlockchainContextMock) ProcessBuiltInFunction(_ *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error) + func (b *BlockchainContextMock) PushState() + func (b *BlockchainContextMock) RevertToSnapshot(_ int) + func (b *BlockchainContextMock) SaveCompiledCode(_ []byte, _ []byte) + type BuiltInFunctionStub struct + IsActiveCalled func() bool + ProcessBuiltinFunctionCalled func(acntSnd, acntDst vmcommon.UserAccountHandler, ...) (*vmcommon.VMOutput, error) + SetNewGasConfigCalled func(gasCost *vmcommon.GasCost) + func (b *BuiltInFunctionStub) IsActive() bool + func (b *BuiltInFunctionStub) IsInterfaceNil() bool + func (b *BuiltInFunctionStub) ProcessBuiltinFunction(acntSnd, acntDst vmcommon.UserAccountHandler, ...) (*vmcommon.VMOutput, error) + func (b *BuiltInFunctionStub) SetNewGasConfig(gasCost *vmcommon.GasCost) + type EnableEpochsHandlerStub struct + CheckExecuteReadOnlyEnableEpochField uint32 + CreateNFTThroughExecByCallerEnableEpochField uint32 + DisableExecByCallerEnableEpochField uint32 + FixFailExecutionOnErrorEnableEpochField uint32 + FixOOGReturnCodeEnableEpochField uint32 + IsAheadOfTimeGasUsageFlagEnabledField bool + IsBuiltInFunctionsFlagEnabledField bool + IsCheckCorrectTokenIDForTransferRoleFlagEnabledField bool + IsCheckExecuteOnReadOnlyFlagEnabledField bool + IsCheckFrozenCollectionFlagEnabledField bool + IsCheckFunctionArgumentFlagEnabledField bool + IsCheckTransferFlagEnabledField bool + IsCreateNFTThroughExecByCallerFlagEnabledField bool + IsDisableExecByCallerFlagEnabledField bool + IsFailExecutionOnEveryAPIErrorFlagEnabledField bool + IsFixAsyncCallbackCheckFlagEnabledField bool + IsFixOOGReturnCodeFlagEnabledField bool + IsGlobalMintBurnFlagEnabledField bool + IsMECTNFTImprovementV1FlagEnabledField bool + IsMECTTransferRoleFlagEnabledField bool + IsManagedCryptoAPIsFlagEnabledField bool + IsMultiMECTTransferFixOnCallBackFlagEnabledField bool + IsRefactorContextFlagEnabledField bool + IsRemoveNonUpdatedStorageFlagEnabledField bool + IsRepairCallbackFlagEnabledField bool + IsSCDeployFlagEnabledField bool + IsSaveToSystemAccountFlagEnabledField bool + IsSendAlwaysFlagEnabledField bool + IsStorageAPICostOptimizationFlagEnabledField bool + IsTransferToMetaFlagEnabledField bool + IsValueLengthCheckFlagEnabledField bool + ManagedCryptoAPIEnableEpochField uint32 + MultiMECTTransferAsyncCallBackEnableEpochField uint32 + RefactorContextEnableEpochField uint32 + RemoveNonUpdatedStorageEnableEpochField uint32 + StorageAPICostOptimizationEnableEpochField uint32 + func (stub *EnableEpochsHandlerStub) CheckExecuteReadOnlyEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) CreateNFTThroughExecByCallerEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) DisableExecByCallerEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) FixFailExecutionOnErrorEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) FixOOGReturnCodeEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) IsAheadOfTimeGasUsageFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsBuiltInFunctionsFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsCheckCorrectTokenIDForTransferRoleFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsCheckExecuteOnReadOnlyFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsCheckFrozenCollectionFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsCheckFunctionArgumentFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsCheckTransferFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsCreateNFTThroughExecByCallerFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsDisableExecByCallerFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsFailExecutionOnEveryAPIErrorFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsFixAsyncCallbackCheckFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsFixOOGReturnCodeFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsGlobalMintBurnFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsInterfaceNil() bool + func (stub *EnableEpochsHandlerStub) IsMECTNFTImprovementV1FlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsMECTTransferRoleFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsManagedCryptoAPIsFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsMultiMECTTransferFixOnCallBackFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsRefactorContextFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsRemoveNonUpdatedStorageFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsRepairCallbackFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsSCDeployFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsSaveToSystemAccountFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsSendAlwaysFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsStorageAPICostOptimizationFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsTransferToMetaFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) IsValueLengthCheckFlagEnabled() bool + func (stub *EnableEpochsHandlerStub) ManagedCryptoAPIEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) MultiMECTTransferAsyncCallBackEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) RefactorContextEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) RemoveNonUpdatedStorageEnableEpoch() uint32 + func (stub *EnableEpochsHandlerStub) StorageAPICostOptimizationEnableEpoch() uint32 + type EpochNotifierStub struct + CurrentEpochCalled func() uint32 + RegisterNotifyHandlerCalled func(handler vmcommon.EpochSubscriberHandler) + func (ens *EpochNotifierStub) IsInterfaceNil() bool + func (ens *EpochNotifierStub) RegisterNotifyHandler(handler vmcommon.EpochSubscriberHandler)