Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New vm-common version #795

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading