Skip to content

Commit

Permalink
Merge pull request #795 from multiversx/new-vm-common-2023.11.15
Browse files Browse the repository at this point in the history
New vm-common version
  • Loading branch information
iulianpascalau committed Nov 17, 2023
2 parents 2cc31dd + f74e538 commit 8a17c0d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 53 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/multiversx/mx-chain-crypto-go v1.2.8
github.com/multiversx/mx-chain-logger-go v1.0.13
github.com/multiversx/mx-chain-scenario-go v1.2.1
github.com/multiversx/mx-chain-vm-common-go v1.5.7
github.com/multiversx/mx-chain-vm-common-go v1.5.8
github.com/multiversx/mx-components-big-int v1.0.0
github.com/pelletier/go-toml v1.9.3
github.com/stretchr/testify v1.8.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ github.com/multiversx/mx-chain-logger-go v1.0.13 h1:eru/TETo0MkO4ZTnXsQDKf4PBRpA
github.com/multiversx/mx-chain-logger-go v1.0.13/go.mod h1:MZJhTAtZTJxT+yK2EHc4ZW3YOHUc1UdjCD0iahRNBZk=
github.com/multiversx/mx-chain-scenario-go v1.2.1 h1:9eC6VcOEAKRRKZ7EbSWPLzCdNIMWwuNBtAZlgR4cSMA=
github.com/multiversx/mx-chain-scenario-go v1.2.1/go.mod h1:EuZY7DpNFHVNSxJR8dKE1z2I8gBYfEFFPSwNUOXptqE=
github.com/multiversx/mx-chain-vm-common-go v1.5.7 h1:GiT2MWG2aCQX59iOk5waB+z7XSLHH7N5xO8b91j6L6s=
github.com/multiversx/mx-chain-vm-common-go v1.5.7/go.mod h1:sqkKMCnwkWl8DURdb9q7pctK8IANghdHY1KJLE0ox2c=
github.com/multiversx/mx-chain-vm-common-go v1.5.8 h1:IRHB9/DasGrK5HU8TVeeLrEWt7tcb9zfnzHRLa6KES8=
github.com/multiversx/mx-chain-vm-common-go v1.5.8/go.mod h1:sqkKMCnwkWl8DURdb9q7pctK8IANghdHY1KJLE0ox2c=
github.com/multiversx/mx-components-big-int v1.0.0 h1:Wkr8lSzK2nDqixOrrBa47VNuqdhV1m/aJhaP1EMaiS8=
github.com/multiversx/mx-components-big-int v1.0.0/go.mod h1:maIEMgHlNE2u78JaDD0oLzri+ShgU4okHfzP3LWGdQM=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
Expand Down
106 changes: 56 additions & 50 deletions mock/world/enableEpochsHandlerStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,57 @@ var _ vmcommon.EnableEpochsHandler = (*EnableEpochsHandlerStub)(nil)

// EnableEpochsHandlerStub -
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
IsESDTNFTImprovementV1FlagEnabledField bool
IsESDTTransferRoleFlagEnabledField bool
IsFailExecutionOnEveryAPIErrorFlagEnabledField bool
IsFixAsyncCallbackCheckFlagEnabledField bool
IsFixOOGReturnCodeFlagEnabledField bool
IsFixOldTokenLiquidityEnabledField bool
IsGlobalMintBurnFlagEnabledField bool
IsManagedCryptoAPIsFlagEnabledField bool
IsMultiESDTTransferFixOnCallBackFlagEnabledField bool
IsRefactorContextFlagEnabledField bool
IsRemoveNonUpdatedStorageFlagEnabledField bool
IsRepairCallbackFlagEnabledField bool
IsSCDeployFlagEnabledField bool
IsSaveToSystemAccountFlagEnabledField bool
IsSendAlwaysFlagEnabledField bool
IsStorageAPICostOptimizationFlagEnabledField bool
IsTransferToMetaFlagEnabledField bool
IsValueLengthCheckFlagEnabledField bool
ManagedCryptoAPIEnableEpochField uint32
MultiESDTTransferAsyncCallBackEnableEpochField uint32
RefactorContextEnableEpochField uint32
RemoveNonUpdatedStorageEnableEpochField uint32
StorageAPICostOptimizationEnableEpochField uint32
IsRuntimeMemStoreLimitEnabledField bool
IsMaxBlockchainHookCountersFlagEnabledField bool
IsWipeSingleNFTLiquidityDecreaseEnabledField bool
IsAlwaysSaveTokenMetaDataEnabledField bool
IsDynamicGasCostForDataTrieStorageLoadEnabledField bool
IsRuntimeCodeSizeFixEnabledField bool
IsSetGuardianEnabledField bool
IsGuardAccountEnabledField bool
IsChangeUsernameEnabledField bool
IsConsistentTokensValuesLengthCheckEnabledField bool
IsAutoBalanceDataTriesEnabledField bool
ScToScLogEventEnabledField bool
IsChangeOwnerAddressCrossShardThroughSCField bool
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
IsESDTNFTImprovementV1FlagEnabledField bool
IsESDTTransferRoleFlagEnabledField bool
IsFailExecutionOnEveryAPIErrorFlagEnabledField bool
IsFixAsyncCallbackCheckFlagEnabledField bool
IsFixOOGReturnCodeFlagEnabledField bool
IsFixOldTokenLiquidityEnabledField bool
IsGlobalMintBurnFlagEnabledField bool
IsManagedCryptoAPIsFlagEnabledField bool
IsMultiESDTTransferFixOnCallBackFlagEnabledField bool
IsRefactorContextFlagEnabledField bool
IsRemoveNonUpdatedStorageFlagEnabledField bool
IsRepairCallbackFlagEnabledField bool
IsSCDeployFlagEnabledField bool
IsSaveToSystemAccountFlagEnabledField bool
IsSendAlwaysFlagEnabledField bool
IsStorageAPICostOptimizationFlagEnabledField bool
IsTransferToMetaFlagEnabledField bool
IsValueLengthCheckFlagEnabledField bool
ManagedCryptoAPIEnableEpochField uint32
MultiESDTTransferAsyncCallBackEnableEpochField uint32
RefactorContextEnableEpochField uint32
RemoveNonUpdatedStorageEnableEpochField uint32
StorageAPICostOptimizationEnableEpochField uint32
IsRuntimeMemStoreLimitEnabledField bool
IsMaxBlockchainHookCountersFlagEnabledField bool
IsWipeSingleNFTLiquidityDecreaseEnabledField bool
IsAlwaysSaveTokenMetaDataEnabledField bool
IsDynamicGasCostForDataTrieStorageLoadEnabledField bool
IsRuntimeCodeSizeFixEnabledField bool
IsSetGuardianEnabledField bool
IsGuardAccountEnabledField bool
IsChangeUsernameEnabledField bool
IsConsistentTokensValuesLengthCheckEnabledField bool
IsAutoBalanceDataTriesEnabledField bool
ScToScLogEventEnabledField bool
IsChangeOwnerAddressCrossShardThroughSCField bool
FixGasRemainingForSaveKeyValueBuiltinFunctionEnabledField bool
}

// IsChangeOwnerAddressCrossShardThroughSCEnabled -
Expand Down Expand Up @@ -308,6 +309,11 @@ func (stub *EnableEpochsHandlerStub) IsScToScEventLogEnabled() bool {
return stub.ScToScLogEventEnabledField
}

// FixGasRemainingForSaveKeyValueBuiltinFunctionEnabled -
func (stub *EnableEpochsHandlerStub) FixGasRemainingForSaveKeyValueBuiltinFunctionEnabled() bool {
return stub.FixGasRemainingForSaveKeyValueBuiltinFunctionEnabledField
}

// IsInterfaceNil -
func (stub *EnableEpochsHandlerStub) IsInterfaceNil() bool {
return stub == nil
Expand Down

0 comments on commit 8a17c0d

Please sign in to comment.