From 4eed363da01c9a6fefe3484957a1101522d38455 Mon Sep 17 00:00:00 2001 From: jules01 Date: Wed, 15 Nov 2023 17:24:02 +0200 Subject: [PATCH 1/2] - new vm-common version --- go.mod | 2 +- go.sum | 4 +- mock/world/enableEpochsHandlerStub.go | 106 ++++++++++++++------------ 3 files changed, 59 insertions(+), 53 deletions(-) diff --git a/go.mod b/go.mod index 7f8a30d68..b8b9d5357 100644 --- a/go.mod +++ b/go.mod @@ -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-0.20231115145936-fb2d250cd688 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 diff --git a/go.sum b/go.sum index 24443c298..7726877aa 100644 --- a/go.sum +++ b/go.sum @@ -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-0.20231115145936-fb2d250cd688 h1:jI8BpuE40/3pMidHwMXSSX72bpZRxmtnOcp4iWi7cqc= +github.com/multiversx/mx-chain-vm-common-go v1.5.8-0.20231115145936-fb2d250cd688/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= diff --git a/mock/world/enableEpochsHandlerStub.go b/mock/world/enableEpochsHandlerStub.go index ddc1e1ce4..b08fc85ca 100644 --- a/mock/world/enableEpochsHandlerStub.go +++ b/mock/world/enableEpochsHandlerStub.go @@ -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 - @@ -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 From f74e538352f9ab1cc37d23ec4fd84f913b1500a6 Mon Sep 17 00:00:00 2001 From: jules01 Date: Fri, 17 Nov 2023 10:25:20 +0200 Subject: [PATCH 2/2] - proper release --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b8b9d5357..3311666c2 100644 --- a/go.mod +++ b/go.mod @@ -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.8-0.20231115145936-fb2d250cd688 + 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 diff --git a/go.sum b/go.sum index 7726877aa..3ba9f5532 100644 --- a/go.sum +++ b/go.sum @@ -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.8-0.20231115145936-fb2d250cd688 h1:jI8BpuE40/3pMidHwMXSSX72bpZRxmtnOcp4iWi7cqc= -github.com/multiversx/mx-chain-vm-common-go v1.5.8-0.20231115145936-fb2d250cd688/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=