mock

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMultipleShardsCoordinatorFake

func NewMultipleShardsCoordinatorFake(numOfShards uint32, currentShard uint32) *multipleShardsCoordinatorFake

NewMultipleShardsCoordinatorFake -

Types

type EnableEpochsHandlerMock

type EnableEpochsHandlerMock struct {
	WaitingListFixEnableEpochField            uint32
	RefactorPeersMiniBlocksEnableEpochField   uint32
	IsRefactorPeersMiniBlocksFlagEnabledField bool
}

EnableEpochsHandlerMock -

func (*EnableEpochsHandlerMock) BalanceWaitingListsEnableEpoch

func (mock *EnableEpochsHandlerMock) BalanceWaitingListsEnableEpoch() uint32

BalanceWaitingListsEnableEpoch returns WaitingListFixEnableEpochField

func (*EnableEpochsHandlerMock) BlockGasAndFeesReCheckEnableEpoch

func (mock *EnableEpochsHandlerMock) BlockGasAndFeesReCheckEnableEpoch() uint32

BlockGasAndFeesReCheckEnableEpoch returns 0

func (*EnableEpochsHandlerMock) CheckExecuteReadOnlyEnableEpoch

func (mock *EnableEpochsHandlerMock) CheckExecuteReadOnlyEnableEpoch() uint32

CheckExecuteReadOnlyEnableEpoch returns 0

func (*EnableEpochsHandlerMock) CreateNFTThroughExecByCallerEnableEpoch

func (mock *EnableEpochsHandlerMock) CreateNFTThroughExecByCallerEnableEpoch() uint32

CreateNFTThroughExecByCallerEnableEpoch returns 0

func (*EnableEpochsHandlerMock) DisableExecByCallerEnableEpoch

func (mock *EnableEpochsHandlerMock) DisableExecByCallerEnableEpoch() uint32

DisableExecByCallerEnableEpoch returns 0

func (*EnableEpochsHandlerMock) FixFailExecutionOnErrorEnableEpoch

func (mock *EnableEpochsHandlerMock) FixFailExecutionOnErrorEnableEpoch() uint32

FixFailExecutionOnErrorEnableEpoch returns 0

func (*EnableEpochsHandlerMock) FixOOGReturnCodeEnableEpoch

func (mock *EnableEpochsHandlerMock) FixOOGReturnCodeEnableEpoch() uint32

FixOOGReturnCodeEnableEpoch returns 0

func (*EnableEpochsHandlerMock) IsAddFailedRelayedTxToInvalidMBsFlag

func (mock *EnableEpochsHandlerMock) IsAddFailedRelayedTxToInvalidMBsFlag() bool

IsAddFailedRelayedTxToInvalidMBsFlag returns false

func (*EnableEpochsHandlerMock) IsAddTokensToDelegationFlagEnabled

func (mock *EnableEpochsHandlerMock) IsAddTokensToDelegationFlagEnabled() bool

IsAddTokensToDelegationFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsAheadOfTimeGasUsageFlagEnabled

func (mock *EnableEpochsHandlerMock) IsAheadOfTimeGasUsageFlagEnabled() bool

IsAheadOfTimeGasUsageFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsAlwaysSaveTokenMetaDataEnabled

func (mock *EnableEpochsHandlerMock) IsAlwaysSaveTokenMetaDataEnabled() bool

IsAlwaysSaveTokenMetaDataEnabled -

func (*EnableEpochsHandlerMock) IsBackwardCompSaveKeyValueFlagEnabled

func (mock *EnableEpochsHandlerMock) IsBackwardCompSaveKeyValueFlagEnabled() bool

IsBackwardCompSaveKeyValueFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsBalanceWaitingListsFlagEnabled

func (mock *EnableEpochsHandlerMock) IsBalanceWaitingListsFlagEnabled() bool

IsBalanceWaitingListsFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsBelowSignedThresholdFlagEnabled

func (mock *EnableEpochsHandlerMock) IsBelowSignedThresholdFlagEnabled() bool

IsBelowSignedThresholdFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsBuiltInFunctionOnMetaFlagEnabled

func (mock *EnableEpochsHandlerMock) IsBuiltInFunctionOnMetaFlagEnabled() bool

IsBuiltInFunctionOnMetaFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsBuiltInFunctionsFlagEnabled

func (mock *EnableEpochsHandlerMock) IsBuiltInFunctionsFlagEnabled() bool

IsBuiltInFunctionsFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsChangeDelegationOwnerFlagEnabled

func (mock *EnableEpochsHandlerMock) IsChangeDelegationOwnerFlagEnabled() bool

IsChangeDelegationOwnerFlagEnabled -

func (*EnableEpochsHandlerMock) IsCheckCorrectTokenIDForTransferRoleFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCheckCorrectTokenIDForTransferRoleFlagEnabled() bool

IsCheckCorrectTokenIDForTransferRoleFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCheckExecuteOnReadOnlyFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCheckExecuteOnReadOnlyFlagEnabled() bool

IsCheckExecuteOnReadOnlyFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCheckFrozenCollectionFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCheckFrozenCollectionFlagEnabled() bool

IsCheckFrozenCollectionFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCheckFunctionArgumentFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCheckFunctionArgumentFlagEnabled() bool

IsCheckFunctionArgumentFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCheckTransferFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCheckTransferFlagEnabled() bool

IsCheckTransferFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCleanUpInformativeSCRsFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCleanUpInformativeSCRsFlagEnabled() bool

IsCleanUpInformativeSCRsFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsComputeRewardCheckpointFlagEnabled

func (mock *EnableEpochsHandlerMock) IsComputeRewardCheckpointFlagEnabled() bool

IsComputeRewardCheckpointFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCorrectFirstQueuedFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCorrectFirstQueuedFlagEnabled() bool

IsCorrectFirstQueuedFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCorrectJailedNotUnStakedEmptyQueueFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCorrectJailedNotUnStakedEmptyQueueFlagEnabled() bool

IsCorrectJailedNotUnStakedEmptyQueueFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCorrectLastUnJailedFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCorrectLastUnJailedFlagEnabled() bool

IsCorrectLastUnJailedFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsCorrectLastUnJailedFlagEnabledForCurrentEpoch

func (mock *EnableEpochsHandlerMock) IsCorrectLastUnJailedFlagEnabledForCurrentEpoch() bool

IsCorrectLastUnJailedFlagEnabledForCurrentEpoch returns false

func (*EnableEpochsHandlerMock) IsCreateNFTThroughExecByCallerFlagEnabled

func (mock *EnableEpochsHandlerMock) IsCreateNFTThroughExecByCallerFlagEnabled() bool

IsCreateNFTThroughExecByCallerFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsDelegationManagerFlagEnabled

func (mock *EnableEpochsHandlerMock) IsDelegationManagerFlagEnabled() bool

IsDelegationManagerFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsDelegationSmartContractFlagEnabled

func (mock *EnableEpochsHandlerMock) IsDelegationSmartContractFlagEnabled() bool

IsDelegationSmartContractFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsDelegationSmartContractFlagEnabledForCurrentEpoch

func (mock *EnableEpochsHandlerMock) IsDelegationSmartContractFlagEnabledForCurrentEpoch() bool

IsDelegationSmartContractFlagEnabledForCurrentEpoch returns false

func (*EnableEpochsHandlerMock) IsDeleteDelegatorAfterClaimRewardsFlagEnabled

func (mock *EnableEpochsHandlerMock) IsDeleteDelegatorAfterClaimRewardsFlagEnabled() bool

IsDeleteDelegatorAfterClaimRewardsFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsDisableExecByCallerFlagEnabled

func (mock *EnableEpochsHandlerMock) IsDisableExecByCallerFlagEnabled() bool

IsDisableExecByCallerFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsDoNotReturnOldBlockInBlockchainHookFlagEnabled

func (mock *EnableEpochsHandlerMock) IsDoNotReturnOldBlockInBlockchainHookFlagEnabled() bool

IsDoNotReturnOldBlockInBlockchainHookFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsDoubleKeyProtectionFlagEnabled

func (mock *EnableEpochsHandlerMock) IsDoubleKeyProtectionFlagEnabled() bool

IsDoubleKeyProtectionFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsESDTFlagEnabled

func (mock *EnableEpochsHandlerMock) IsESDTFlagEnabled() bool

IsESDTFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsESDTFlagEnabledForCurrentEpoch

func (mock *EnableEpochsHandlerMock) IsESDTFlagEnabledForCurrentEpoch() bool

IsESDTFlagEnabledForCurrentEpoch returns false

func (*EnableEpochsHandlerMock) IsESDTMetadataContinuousCleanupFlagEnabled

func (mock *EnableEpochsHandlerMock) IsESDTMetadataContinuousCleanupFlagEnabled() bool

IsESDTMetadataContinuousCleanupFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsESDTMultiTransferFlagEnabled

func (mock *EnableEpochsHandlerMock) IsESDTMultiTransferFlagEnabled() bool

IsESDTMultiTransferFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsESDTNFTCreateOnMultiShardFlagEnabled

func (mock *EnableEpochsHandlerMock) IsESDTNFTCreateOnMultiShardFlagEnabled() bool

IsESDTNFTCreateOnMultiShardFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsESDTNFTImprovementV1FlagEnabled

func (mock *EnableEpochsHandlerMock) IsESDTNFTImprovementV1FlagEnabled() bool

IsESDTNFTImprovementV1FlagEnabled returns false

func (*EnableEpochsHandlerMock) IsESDTRegisterAndSetAllRolesFlagEnabled

func (mock *EnableEpochsHandlerMock) IsESDTRegisterAndSetAllRolesFlagEnabled() bool

IsESDTRegisterAndSetAllRolesFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsESDTTransferRoleFlagEnabled

func (mock *EnableEpochsHandlerMock) IsESDTTransferRoleFlagEnabled() bool

IsESDTTransferRoleFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsFailExecutionOnEveryAPIErrorFlagEnabled

func (mock *EnableEpochsHandlerMock) IsFailExecutionOnEveryAPIErrorFlagEnabled() bool

IsFailExecutionOnEveryAPIErrorFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsFixAsyncCallBackArgsListFlagEnabled

func (mock *EnableEpochsHandlerMock) IsFixAsyncCallBackArgsListFlagEnabled() bool

IsFixAsyncCallBackArgsListFlagEnabled -

func (*EnableEpochsHandlerMock) IsFixAsyncCallbackCheckFlagEnabled

func (mock *EnableEpochsHandlerMock) IsFixAsyncCallbackCheckFlagEnabled() bool

IsFixAsyncCallbackCheckFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsFixOOGReturnCodeFlagEnabled

func (mock *EnableEpochsHandlerMock) IsFixOOGReturnCodeFlagEnabled() bool

IsFixOOGReturnCodeFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsFixOldTokenLiquidityEnabled

func (mock *EnableEpochsHandlerMock) IsFixOldTokenLiquidityEnabled() bool

IsFixOldTokenLiquidityEnabled -

func (*EnableEpochsHandlerMock) IsFrontRunningProtectionFlagEnabled

func (mock *EnableEpochsHandlerMock) IsFrontRunningProtectionFlagEnabled() bool

IsFrontRunningProtectionFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsGasPriceModifierFlagEnabled

func (mock *EnableEpochsHandlerMock) IsGasPriceModifierFlagEnabled() bool

IsGasPriceModifierFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsGlobalMintBurnFlagEnabled

func (mock *EnableEpochsHandlerMock) IsGlobalMintBurnFlagEnabled() bool

IsGlobalMintBurnFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsGovernanceFlagEnabled

func (mock *EnableEpochsHandlerMock) IsGovernanceFlagEnabled() bool

IsGovernanceFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsGovernanceFlagEnabledForCurrentEpoch

func (mock *EnableEpochsHandlerMock) IsGovernanceFlagEnabledForCurrentEpoch() bool

IsGovernanceFlagEnabledForCurrentEpoch returns false

func (*EnableEpochsHandlerMock) IsIncrementSCRNonceInMultiTransferFlagEnabled

func (mock *EnableEpochsHandlerMock) IsIncrementSCRNonceInMultiTransferFlagEnabled() bool

IsIncrementSCRNonceInMultiTransferFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsInterfaceNil

func (mock *EnableEpochsHandlerMock) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*EnableEpochsHandlerMock) IsManagedCryptoAPIsFlagEnabled

func (mock *EnableEpochsHandlerMock) IsManagedCryptoAPIsFlagEnabled() bool

IsManagedCryptoAPIsFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsMaxBlockchainHookCountersFlagEnabled

func (mock *EnableEpochsHandlerMock) IsMaxBlockchainHookCountersFlagEnabled() bool

IsMaxBlockchainHookCountersFlagEnabled -

func (*EnableEpochsHandlerMock) IsMetaESDTSetFlagEnabled

func (mock *EnableEpochsHandlerMock) IsMetaESDTSetFlagEnabled() bool

IsMetaESDTSetFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsMetaProtectionFlagEnabled

func (mock *EnableEpochsHandlerMock) IsMetaProtectionFlagEnabled() bool

IsMetaProtectionFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsMiniBlockPartialExecutionFlagEnabled

func (mock *EnableEpochsHandlerMock) IsMiniBlockPartialExecutionFlagEnabled() bool

IsMiniBlockPartialExecutionFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsMultiESDTTransferFixOnCallBackFlagEnabled

func (mock *EnableEpochsHandlerMock) IsMultiESDTTransferFixOnCallBackFlagEnabled() bool

IsMultiESDTTransferFixOnCallBackFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsOptimizeGasUsedInCrossMiniBlocksFlagEnabled

func (mock *EnableEpochsHandlerMock) IsOptimizeGasUsedInCrossMiniBlocksFlagEnabled() bool

IsOptimizeGasUsedInCrossMiniBlocksFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsOptimizeNFTStoreFlagEnabled

func (mock *EnableEpochsHandlerMock) IsOptimizeNFTStoreFlagEnabled() bool

IsOptimizeNFTStoreFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsPayableBySCFlagEnabled

func (mock *EnableEpochsHandlerMock) IsPayableBySCFlagEnabled() bool

IsPayableBySCFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsPenalizedTooMuchGasFlagEnabled

func (mock *EnableEpochsHandlerMock) IsPenalizedTooMuchGasFlagEnabled() bool

IsPenalizedTooMuchGasFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsReDelegateBelowMinCheckFlagEnabled

func (mock *EnableEpochsHandlerMock) IsReDelegateBelowMinCheckFlagEnabled() bool

IsReDelegateBelowMinCheckFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsRefactorContextFlagEnabled

func (mock *EnableEpochsHandlerMock) IsRefactorContextFlagEnabled() bool

IsRefactorContextFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsRefactorPeersMiniBlocksFlagEnabled

func (mock *EnableEpochsHandlerMock) IsRefactorPeersMiniBlocksFlagEnabled() bool

IsRefactorPeersMiniBlocksFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsRelayedTransactionsFlagEnabled

func (mock *EnableEpochsHandlerMock) IsRelayedTransactionsFlagEnabled() bool

IsRelayedTransactionsFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsRelayedTransactionsV2FlagEnabled

func (mock *EnableEpochsHandlerMock) IsRelayedTransactionsV2FlagEnabled() bool

IsRelayedTransactionsV2FlagEnabled returns false

func (*EnableEpochsHandlerMock) IsRemoveNonUpdatedStorageFlagEnabled

func (mock *EnableEpochsHandlerMock) IsRemoveNonUpdatedStorageFlagEnabled() bool

IsRemoveNonUpdatedStorageFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsRepairCallbackFlagEnabled

func (mock *EnableEpochsHandlerMock) IsRepairCallbackFlagEnabled() bool

IsRepairCallbackFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsReturnDataToLastTransferFlagEnabled

func (mock *EnableEpochsHandlerMock) IsReturnDataToLastTransferFlagEnabled() bool

IsReturnDataToLastTransferFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsRuntimeMemStoreLimitEnabled

func (mock *EnableEpochsHandlerMock) IsRuntimeMemStoreLimitEnabled() bool

IsRuntimeMemStoreLimitEnabled -

func (*EnableEpochsHandlerMock) IsSCDeployFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSCDeployFlagEnabled() bool

IsSCDeployFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSCRSizeInvariantCheckFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSCRSizeInvariantCheckFlagEnabled() bool

IsSCRSizeInvariantCheckFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSCRSizeInvariantOnBuiltInResultFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSCRSizeInvariantOnBuiltInResultFlagEnabled() bool

IsSCRSizeInvariantOnBuiltInResultFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSaveJailedAlwaysFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSaveJailedAlwaysFlagEnabled() bool

IsSaveJailedAlwaysFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSaveToSystemAccountFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSaveToSystemAccountFlagEnabled() bool

IsSaveToSystemAccountFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsScheduledMiniBlocksFlagEnabled

func (mock *EnableEpochsHandlerMock) IsScheduledMiniBlocksFlagEnabled() bool

IsScheduledMiniBlocksFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSendAlwaysFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSendAlwaysFlagEnabled() bool

IsSendAlwaysFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSenderInOutTransferFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSenderInOutTransferFlagEnabled() bool

IsSenderInOutTransferFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSetSenderInEeiOutputTransferFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSetSenderInEeiOutputTransferFlagEnabled() bool

IsSetSenderInEeiOutputTransferFlagEnabled -

func (*EnableEpochsHandlerMock) IsStakeFlagEnabled

func (mock *EnableEpochsHandlerMock) IsStakeFlagEnabled() bool

IsStakeFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsStakingV2FlagEnabled

func (mock *EnableEpochsHandlerMock) IsStakingV2FlagEnabled() bool

IsStakingV2FlagEnabled returns false

func (*EnableEpochsHandlerMock) IsStakingV2FlagEnabledForActivationEpochCompleted

func (mock *EnableEpochsHandlerMock) IsStakingV2FlagEnabledForActivationEpochCompleted() bool

IsStakingV2FlagEnabledForActivationEpochCompleted returns false

func (*EnableEpochsHandlerMock) IsStakingV2OwnerFlagEnabled

func (mock *EnableEpochsHandlerMock) IsStakingV2OwnerFlagEnabled() bool

IsStakingV2OwnerFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsStopDecreasingValidatorRatingWhenStuckFlagEnabled

func (mock *EnableEpochsHandlerMock) IsStopDecreasingValidatorRatingWhenStuckFlagEnabled() bool

IsStopDecreasingValidatorRatingWhenStuckFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsStorageAPICostOptimizationFlagEnabled

func (mock *EnableEpochsHandlerMock) IsStorageAPICostOptimizationFlagEnabled() bool

IsStorageAPICostOptimizationFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSwitchHysteresisForMinNodesFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSwitchHysteresisForMinNodesFlagEnabled() bool

IsSwitchHysteresisForMinNodesFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsSwitchHysteresisForMinNodesFlagEnabledForCurrentEpoch

func (mock *EnableEpochsHandlerMock) IsSwitchHysteresisForMinNodesFlagEnabledForCurrentEpoch() bool

IsSwitchHysteresisForMinNodesFlagEnabledForCurrentEpoch returns false

func (*EnableEpochsHandlerMock) IsSwitchJailWaitingFlagEnabled

func (mock *EnableEpochsHandlerMock) IsSwitchJailWaitingFlagEnabled() bool

IsSwitchJailWaitingFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsTransactionSignedWithTxHashFlagEnabled

func (mock *EnableEpochsHandlerMock) IsTransactionSignedWithTxHashFlagEnabled() bool

IsTransactionSignedWithTxHashFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsTransferToMetaFlagEnabled

func (mock *EnableEpochsHandlerMock) IsTransferToMetaFlagEnabled() bool

IsTransferToMetaFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsUnBondTokensV2FlagEnabled

func (mock *EnableEpochsHandlerMock) IsUnBondTokensV2FlagEnabled() bool

IsUnBondTokensV2FlagEnabled returns false

func (*EnableEpochsHandlerMock) IsValidatorToDelegationFlagEnabled

func (mock *EnableEpochsHandlerMock) IsValidatorToDelegationFlagEnabled() bool

IsValidatorToDelegationFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsValueLengthCheckFlagEnabled

func (mock *EnableEpochsHandlerMock) IsValueLengthCheckFlagEnabled() bool

IsValueLengthCheckFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsWaitingListFixFlagEnabled

func (mock *EnableEpochsHandlerMock) IsWaitingListFixFlagEnabled() bool

IsWaitingListFixFlagEnabled returns false

func (*EnableEpochsHandlerMock) IsWipeSingleNFTLiquidityDecreaseEnabled

func (mock *EnableEpochsHandlerMock) IsWipeSingleNFTLiquidityDecreaseEnabled() bool

IsWipeSingleNFTLiquidityDecreaseEnabled -

func (*EnableEpochsHandlerMock) ManagedCryptoAPIEnableEpoch

func (mock *EnableEpochsHandlerMock) ManagedCryptoAPIEnableEpoch() uint32

ManagedCryptoAPIEnableEpoch returns 0

func (*EnableEpochsHandlerMock) MiniBlockPartialExecutionEnableEpoch

func (mock *EnableEpochsHandlerMock) MiniBlockPartialExecutionEnableEpoch() uint32

MiniBlockPartialExecutionEnableEpoch returns 0

func (*EnableEpochsHandlerMock) MultiESDTTransferAsyncCallBackEnableEpoch

func (mock *EnableEpochsHandlerMock) MultiESDTTransferAsyncCallBackEnableEpoch() uint32

MultiESDTTransferAsyncCallBackEnableEpoch returns 0

func (*EnableEpochsHandlerMock) RefactorContextEnableEpoch

func (mock *EnableEpochsHandlerMock) RefactorContextEnableEpoch() uint32

RefactorContextEnableEpoch returns 0

func (*EnableEpochsHandlerMock) RefactorPeersMiniBlocksEnableEpoch

func (mock *EnableEpochsHandlerMock) RefactorPeersMiniBlocksEnableEpoch() uint32

RefactorPeersMiniBlocksEnableEpoch returns 0

func (*EnableEpochsHandlerMock) RemoveNonUpdatedStorageEnableEpoch

func (mock *EnableEpochsHandlerMock) RemoveNonUpdatedStorageEnableEpoch() uint32

RemoveNonUpdatedStorageEnableEpoch returns 0

func (*EnableEpochsHandlerMock) ResetPenalizedTooMuchGasFlag

func (mock *EnableEpochsHandlerMock) ResetPenalizedTooMuchGasFlag()

ResetPenalizedTooMuchGasFlag does nothing

func (*EnableEpochsHandlerMock) ScheduledMiniBlocksEnableEpoch

func (mock *EnableEpochsHandlerMock) ScheduledMiniBlocksEnableEpoch() uint32

ScheduledMiniBlocksEnableEpoch returns 0

func (*EnableEpochsHandlerMock) StakingV2EnableEpoch

func (mock *EnableEpochsHandlerMock) StakingV2EnableEpoch() uint32

StakingV2EnableEpoch returns 0

func (*EnableEpochsHandlerMock) StorageAPICostOptimizationEnableEpoch

func (mock *EnableEpochsHandlerMock) StorageAPICostOptimizationEnableEpoch() uint32

StorageAPICostOptimizationEnableEpoch returns 0

func (*EnableEpochsHandlerMock) SwitchJailWaitingEnableEpoch

func (mock *EnableEpochsHandlerMock) SwitchJailWaitingEnableEpoch() uint32

SwitchJailWaitingEnableEpoch returns 0

func (*EnableEpochsHandlerMock) WaitingListFixEnableEpoch

func (mock *EnableEpochsHandlerMock) WaitingListFixEnableEpoch() uint32

WaitingListFixEnableEpoch returns WaitingListFixEnableEpochField

type EpochHandlerMock

type EpochHandlerMock struct {
	EpochValue uint32
}

EpochHandlerMock -

func (*EpochHandlerMock) Epoch

func (ehm *EpochHandlerMock) Epoch() uint32

Epoch -

func (*EpochHandlerMock) IsInterfaceNil

func (ehm *EpochHandlerMock) IsInterfaceNil() bool

IsInterfaceNil -

type EpochHandlerStub

type EpochHandlerStub struct {
	EpochCalled func() uint32
}

EpochHandlerStub -

func (*EpochHandlerStub) Epoch

func (ehs *EpochHandlerStub) Epoch() uint32

Epoch -

func (*EpochHandlerStub) IsInterfaceNil

func (ehs *EpochHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

type EpochStartNotifierStub

type EpochStartNotifierStub struct {
	RegisterHandlerCalled   func(handler epochStart.ActionHandler)
	UnregisterHandlerCalled func(handler epochStart.ActionHandler)
	NotifyAllPrepareCalled  func(hdr data.HeaderHandler, body data.BodyHandler, validatorInfoCacher epochStart.ValidatorInfoCacher)
	NotifyAllCalled         func(hdr data.HeaderHandler)
}

EpochStartNotifierStub -

func (*EpochStartNotifierStub) IsInterfaceNil

func (esnm *EpochStartNotifierStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*EpochStartNotifierStub) NotifyAll

func (esnm *EpochStartNotifierStub) NotifyAll(hdr data.HeaderHandler)

NotifyAll -

func (*EpochStartNotifierStub) NotifyAllPrepare

func (esnm *EpochStartNotifierStub) NotifyAllPrepare(metaHdr data.HeaderHandler, body data.BodyHandler, validatorInfoCacher epochStart.ValidatorInfoCacher)

NotifyAllPrepare -

func (*EpochStartNotifierStub) RegisterHandler

func (esnm *EpochStartNotifierStub) RegisterHandler(handler epochStart.ActionHandler)

RegisterHandler -

func (*EpochStartNotifierStub) UnregisterHandler

func (esnm *EpochStartNotifierStub) UnregisterHandler(handler epochStart.ActionHandler)

UnregisterHandler -

type HasherStub

type HasherStub struct {
	ComputeCalled   func(s string) []byte
	EmptyHashCalled func() []byte
	SizeCalled      func() int
}

HasherStub -

func (*HasherStub) Compute

func (hs *HasherStub) Compute(s string) []byte

Compute will output the SHA's equivalent of the input string

func (*HasherStub) EmptyHash

func (hs *HasherStub) EmptyHash() []byte

EmptyHash will return the equivalent of empty string SHA's

func (*HasherStub) IsInterfaceNil

func (hs *HasherStub) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*HasherStub) Size

func (hs *HasherStub) Size() int

Size returns the required size in bytes

type ListIndexUpdaterStub

type ListIndexUpdaterStub struct {
	UpdateListAndIndexCalled func(pubKey string, shardID uint32, list string, index uint32) error
}

ListIndexUpdaterStub -

func (*ListIndexUpdaterStub) IsInterfaceNil

func (lius *ListIndexUpdaterStub) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*ListIndexUpdaterStub) UpdateListAndIndex

func (lius *ListIndexUpdaterStub) UpdateListAndIndex(pubKey string, shardID uint32, list string, index uint32) error

UpdateListAndIndex -

type MarshalizerMock

type MarshalizerMock struct {
	Fail bool
}

MarshalizerMock that will be used for testing

func (*MarshalizerMock) IsInterfaceNil

func (mm *MarshalizerMock) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*MarshalizerMock) Marshal

func (mm *MarshalizerMock) Marshal(obj interface{}) ([]byte, error)

Marshal converts the input object in a slice of bytes

func (*MarshalizerMock) Unmarshal

func (mm *MarshalizerMock) Unmarshal(obj interface{}, buff []byte) error

Unmarshal applies the serialized values over an instantiated object

type NodesCoordinatorCacheMock

type NodesCoordinatorCacheMock struct {
	ClearCalled func()
	PutCalled   func(key []byte, value interface{}, sieInBytes int) (evicted bool)
	GetCalled   func(key []byte) (value interface{}, ok bool)
}

NodesCoordinatorCacheMock -

func (*NodesCoordinatorCacheMock) Clear

func (rm *NodesCoordinatorCacheMock) Clear()

Clear -

func (*NodesCoordinatorCacheMock) Get

func (rm *NodesCoordinatorCacheMock) Get(key []byte) (value interface{}, ok bool)

Get -

func (*NodesCoordinatorCacheMock) Put

func (rm *NodesCoordinatorCacheMock) Put(key []byte, value interface{}, sizeInBytes int) (evicted bool)

Put -

type PubkeyConverterMock

type PubkeyConverterMock struct {
	// contains filtered or unexported fields
}

PubkeyConverterMock -

func NewPubkeyConverterMock

func NewPubkeyConverterMock(addressLen int) *PubkeyConverterMock

NewPubkeyConverterMock -

func (*PubkeyConverterMock) Decode

func (pcm *PubkeyConverterMock) Decode(humanReadable string) ([]byte, error)

Decode -

func (*PubkeyConverterMock) Encode

func (pcm *PubkeyConverterMock) Encode(pkBytes []byte) string

Encode -

func (*PubkeyConverterMock) IsInterfaceNil

func (pcm *PubkeyConverterMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*PubkeyConverterMock) Len

func (pcm *PubkeyConverterMock) Len() int

Len -

type RaterMock

type RaterMock struct {
	ComputeRatingCalled  func(string, uint32) uint32
	GetRatingCalled      func(string) uint32
	GetStartRatingCalled func() uint32
	GetChancesCalled     func(uint32) uint32
}

RaterMock -

func (*RaterMock) ComputeRating

func (rm *RaterMock) ComputeRating(ratingOptionKey string, previousValue uint32) uint32

ComputeRating -

func (*RaterMock) GetChance

func (rm *RaterMock) GetChance(rating uint32) uint32

GetChance -

func (*RaterMock) GetRating

func (rm *RaterMock) GetRating(pk string) uint32

GetRating -

func (*RaterMock) GetStartRating

func (rm *RaterMock) GetStartRating() uint32

GetStartRating -

func (*RaterMock) IsInterfaceNil

func (rm *RaterMock) IsInterfaceNil() bool

IsInterfaceNil -

type ShuffledOutHandlerStub

type ShuffledOutHandlerStub struct {
	ProcessCalled         func(newShardID uint32) error
	RegisterHandlerCalled func(handler func(newShardID uint32))
	CurrentShardIDCalled  func() uint32
}

ShuffledOutHandlerStub -

func (*ShuffledOutHandlerStub) CurrentShardID

func (s *ShuffledOutHandlerStub) CurrentShardID() uint32

CurrentShardID -

func (*ShuffledOutHandlerStub) IsInterfaceNil

func (s *ShuffledOutHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*ShuffledOutHandlerStub) Process

func (s *ShuffledOutHandlerStub) Process(newShardID uint32) error

Process -

func (*ShuffledOutHandlerStub) RegisterHandler

func (s *ShuffledOutHandlerStub) RegisterHandler(handler func(newShardID uint32))

RegisterHandler -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL