Documentation ¶
Index ¶
- func NewMultipleShardsCoordinatorFake(numOfShards uint32, currentShard uint32) *multipleShardsCoordinatorFake
- type EnableEpochsHandlerMock
- func (mock *EnableEpochsHandlerMock) BalanceWaitingListsEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) BlockGasAndFeesReCheckEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) CheckExecuteReadOnlyEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) CreateNFTThroughExecByCallerEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) DisableExecByCallerEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) FixFailExecutionOnErrorEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) FixOOGReturnCodeEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) IsAddFailedRelayedTxToInvalidMBsFlag() bool
- func (mock *EnableEpochsHandlerMock) IsAddTokensToDelegationFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsAheadOfTimeGasUsageFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsAlwaysSaveTokenMetaDataEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsBackwardCompSaveKeyValueFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsBalanceWaitingListsFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsBelowSignedThresholdFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsBuiltInFunctionOnMetaFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsBuiltInFunctionsFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsChangeDelegationOwnerFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCheckCorrectTokenIDForTransferRoleFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCheckExecuteOnReadOnlyFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCheckFrozenCollectionFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCheckFunctionArgumentFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCheckTransferFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCleanUpInformativeSCRsFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsComputeRewardCheckpointFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCorrectFirstQueuedFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCorrectJailedNotUnStakedEmptyQueueFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCorrectLastUnJailedFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsCorrectLastUnJailedFlagEnabledForCurrentEpoch() bool
- func (mock *EnableEpochsHandlerMock) IsCreateNFTThroughExecByCallerFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsDelegationManagerFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsDelegationSmartContractFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsDelegationSmartContractFlagEnabledForCurrentEpoch() bool
- func (mock *EnableEpochsHandlerMock) IsDeleteDelegatorAfterClaimRewardsFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsDeterministicSortOnValidatorsInfoFixEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsDisableExecByCallerFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsDoNotReturnOldBlockInBlockchainHookFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsDoubleKeyProtectionFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsESDTFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsESDTFlagEnabledForCurrentEpoch() bool
- func (mock *EnableEpochsHandlerMock) IsESDTMetadataContinuousCleanupFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsESDTMultiTransferFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsESDTNFTCreateOnMultiShardFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsESDTNFTImprovementV1FlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsESDTRegisterAndSetAllRolesFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsESDTTransferRoleFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsFailExecutionOnEveryAPIErrorFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsFixAsyncCallBackArgsListFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsFixAsyncCallbackCheckFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsFixOOGReturnCodeFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsFixOldTokenLiquidityEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsFrontRunningProtectionFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsGasPriceModifierFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsGlobalMintBurnFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsGovernanceFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsGovernanceFlagEnabledForCurrentEpoch() bool
- func (mock *EnableEpochsHandlerMock) IsIncrementSCRNonceInMultiTransferFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsInterfaceNil() bool
- func (mock *EnableEpochsHandlerMock) IsManagedCryptoAPIsFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsMaxBlockchainHookCountersFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsMetaESDTSetFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsMetaProtectionFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsMiniBlockPartialExecutionFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsMultiESDTTransferFixOnCallBackFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsOptimizeGasUsedInCrossMiniBlocksFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsOptimizeNFTStoreFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsPayableBySCFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsPenalizedTooMuchGasFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsReDelegateBelowMinCheckFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRefactorContextFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRefactorPeersMiniBlocksFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRelayedNonceFixEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRelayedTransactionsFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRelayedTransactionsV2FlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRemoveNonUpdatedStorageFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRepairCallbackFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsReturnDataToLastTransferFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRuntimeCodeSizeFixEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsRuntimeMemStoreLimitEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSCDeployFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSCRSizeInvariantCheckFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSCRSizeInvariantOnBuiltInResultFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSaveJailedAlwaysFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSaveToSystemAccountFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsScheduledMiniBlocksFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSendAlwaysFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSenderInOutTransferFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSetGuardianEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSetSenderInEeiOutputTransferFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsStakeFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsStakingV2FlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsStakingV2FlagEnabledForActivationEpochCompleted() bool
- func (mock *EnableEpochsHandlerMock) IsStakingV2OwnerFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsStopDecreasingValidatorRatingWhenStuckFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsStorageAPICostOptimizationFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSwitchHysteresisForMinNodesFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsSwitchHysteresisForMinNodesFlagEnabledForCurrentEpoch() bool
- func (mock *EnableEpochsHandlerMock) IsSwitchJailWaitingFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsTransactionSignedWithTxHashFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsTransferToMetaFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsUnBondTokensV2FlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsValidatorToDelegationFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsValueLengthCheckFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsWaitingListFixFlagEnabled() bool
- func (mock *EnableEpochsHandlerMock) IsWipeSingleNFTLiquidityDecreaseEnabled() bool
- func (mock *EnableEpochsHandlerMock) ManagedCryptoAPIEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) MiniBlockPartialExecutionEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) MultiESDTTransferAsyncCallBackEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) RefactorContextEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) RefactorPeersMiniBlocksEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) RemoveNonUpdatedStorageEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) ResetPenalizedTooMuchGasFlag()
- func (mock *EnableEpochsHandlerMock) ScheduledMiniBlocksEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) StakingV2EnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) StorageAPICostOptimizationEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) SwitchJailWaitingEnableEpoch() uint32
- func (mock *EnableEpochsHandlerMock) WaitingListFixEnableEpoch() uint32
- type EpochHandlerMock
- type EpochHandlerStub
- type EpochStartNotifierStub
- func (esnm *EpochStartNotifierStub) IsInterfaceNil() bool
- func (esnm *EpochStartNotifierStub) NotifyAll(hdr data.HeaderHandler)
- func (esnm *EpochStartNotifierStub) NotifyAllPrepare(metaHdr data.HeaderHandler, body data.BodyHandler, ...)
- func (esnm *EpochStartNotifierStub) RegisterHandler(handler epochStart.ActionHandler)
- func (esnm *EpochStartNotifierStub) UnregisterHandler(handler epochStart.ActionHandler)
- type HasherStub
- type ListIndexUpdaterStub
- type MarshalizerMock
- type NodesCoordinatorCacheMock
- type PubkeyConverterMock
- type RaterMock
- type ShuffledOutHandlerStub
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) IsDeterministicSortOnValidatorsInfoFixEnabled ¶ added in v1.5.10
func (mock *EnableEpochsHandlerMock) IsDeterministicSortOnValidatorsInfoFixEnabled() bool
IsDeterministicSortOnValidatorsInfoFixEnabled -
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) IsRelayedNonceFixEnabled ¶ added in v1.4.17
func (mock *EnableEpochsHandlerMock) IsRelayedNonceFixEnabled() bool
IsRelayedNonceFixEnabled -
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) IsRuntimeCodeSizeFixEnabled ¶ added in v1.4.9
func (mock *EnableEpochsHandlerMock) IsRuntimeCodeSizeFixEnabled() bool
IsRuntimeCodeSizeFixEnabled -
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) IsSetGuardianEnabled ¶ added in v1.5.0
func (mock *EnableEpochsHandlerMock) IsSetGuardianEnabled() bool
IsSetGuardianEnabled 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) IsInterfaceNil ¶
func (ehm *EpochHandlerMock) IsInterfaceNil() bool
IsInterfaceNil -
type EpochHandlerStub ¶
type EpochHandlerStub struct {
EpochCalled func() uint32
}
EpochHandlerStub -
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
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) Get ¶
func (rm *NodesCoordinatorCacheMock) Get(key []byte) (value interface{}, ok bool)
Get -
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 -
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 ¶
ComputeRating -
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 -