mocks

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconViewRetriever

type BeaconViewRetriever struct {
	mock.Mock
}

BeaconViewRetriever is an autogenerated mock type for the BeaconViewRetriever type

func (*BeaconViewRetriever) CandidateWaitingForNextRandom

func (_m *BeaconViewRetriever) CandidateWaitingForNextRandom() []incognitokey.CommitteePublicKey

CandidateWaitingForNextRandom provides a mock function with given fields:

func (*BeaconViewRetriever) GetAllCommitteeValidatorCandidateFlattenListFromDatabase

func (_m *BeaconViewRetriever) GetAllCommitteeValidatorCandidateFlattenListFromDatabase() ([]string, error)

GetAllCommitteeValidatorCandidateFlattenListFromDatabase provides a mock function with given fields:

func (*BeaconViewRetriever) GetAutoStakingList

func (_m *BeaconViewRetriever) GetAutoStakingList() map[string]bool

GetAutoStakingList provides a mock function with given fields:

func (*BeaconViewRetriever) GetBeaconConsensusStateDB

func (_m *BeaconViewRetriever) GetBeaconConsensusStateDB() *statedb.StateDB

GetBeaconConsensusStateDB provides a mock function with given fields:

func (*BeaconViewRetriever) GetBeaconFeatureStateDB

func (_m *BeaconViewRetriever) GetBeaconFeatureStateDB() *statedb.StateDB

GetBeaconFeatureStateDB provides a mock function with given fields:

func (*BeaconViewRetriever) GetBeaconRewardStateDB

func (_m *BeaconViewRetriever) GetBeaconRewardStateDB() *statedb.StateDB

GetBeaconRewardStateDB provides a mock function with given fields:

func (*BeaconViewRetriever) GetBeaconSlashStateDB

func (_m *BeaconViewRetriever) GetBeaconSlashStateDB() *statedb.StateDB

GetBeaconSlashStateDB provides a mock function with given fields:

func (*BeaconViewRetriever) GetCandidateShardWaitingForCurrentRandom

func (_m *BeaconViewRetriever) GetCandidateShardWaitingForCurrentRandom() []incognitokey.CommitteePublicKey

GetCandidateShardWaitingForCurrentRandom provides a mock function with given fields:

func (*BeaconViewRetriever) GetHeight

func (_m *BeaconViewRetriever) GetHeight() uint64

GetHeight provides a mock function with given fields:

func (*BeaconViewRetriever) GetStakerInfo

func (_m *BeaconViewRetriever) GetStakerInfo(_a0 string) (*statedb.StakerInfo, bool, error)

GetStakerInfo provides a mock function with given fields: _a0

type ChainRetriever

type ChainRetriever struct {
	mock.Mock
}

ChainRetriever is an autogenerated mock type for the ChainRetriever type

func (*ChainRetriever) CheckBlockTimeIsReached

func (_m *ChainRetriever) CheckBlockTimeIsReached(recentBeaconHeight uint64, beaconHeight uint64, recentShardHeight uint64, shardHeight uint64, duration time.Duration) bool

CheckBlockTimeIsReached provides a mock function with given fields: recentBeaconHeight, beaconHeight, recentShardHeight, shardHeight, duration

func (*ChainRetriever) CheckBlockTimeIsReachedByBeaconHeight

func (_m *ChainRetriever) CheckBlockTimeIsReachedByBeaconHeight(recentBeaconHeight uint64, beaconHeight uint64, duration time.Duration) bool

CheckBlockTimeIsReachedByBeaconHeight provides a mock function with given fields: recentBeaconHeight, beaconHeight, duration

func (*ChainRetriever) GetBNBChainID

func (_m *ChainRetriever) GetBNBChainID() string

GetBNBChainID provides a mock function with given fields:

func (*ChainRetriever) GetBNBDataHash

func (_m *ChainRetriever) GetBNBDataHash(blockHeight int64) ([]byte, error)

GetBNBDataHash provides a mock function with given fields: blockHeight

func (*ChainRetriever) GetBTCChainID

func (_m *ChainRetriever) GetBTCChainID() string

GetBTCChainID provides a mock function with given fields:

func (*ChainRetriever) GetBTCChainParams

func (_m *ChainRetriever) GetBTCChainParams() *chaincfg.Params

GetBTCChainParams provides a mock function with given fields:

func (*ChainRetriever) GetBTCHeaderChain

func (_m *ChainRetriever) GetBTCHeaderChain() *btcrelaying.BlockChain

GetBTCHeaderChain provides a mock function with given fields:

func (*ChainRetriever) GetBurningAddress

func (_m *ChainRetriever) GetBurningAddress(blockHeight uint64) string

GetBurningAddress provides a mock function with given fields: blockHeight

func (*ChainRetriever) GetCentralizedWebsitePaymentAddress

func (_m *ChainRetriever) GetCentralizedWebsitePaymentAddress(_a0 uint64) string

GetCentralizedWebsitePaymentAddress provides a mock function with given fields: _a0

func (*ChainRetriever) GetFinalBeaconHeight

func (_m *ChainRetriever) GetFinalBeaconHeight() uint64

GetFinalBeaconHeight provides a mock function with given fields:

func (*ChainRetriever) GetLatestBNBBlkHeight

func (_m *ChainRetriever) GetLatestBNBBlkHeight() (int64, error)

GetLatestBNBBlkHeight provides a mock function with given fields:

func (*ChainRetriever) GetMinAmountPortalToken

func (_m *ChainRetriever) GetMinAmountPortalToken(tokenIDStr string, beaconHeight uint64, version uint) (uint64, error)

GetMinAmountPortalToken provides a mock function with given fields: tokenIDStr, beaconHeight, version

func (*ChainRetriever) GetPortalETHContractAddrStr

func (_m *ChainRetriever) GetPortalETHContractAddrStr(beaconHeight uint64) string

GetPortalETHContractAddrStr provides a mock function with given fields: beaconHeight

func (*ChainRetriever) GetPortalFeederAddress

func (_m *ChainRetriever) GetPortalFeederAddress(beaconHeight uint64) string

GetPortalFeederAddress provides a mock function with given fields: beaconHeight

func (*ChainRetriever) GetPortalReplacementAddress

func (_m *ChainRetriever) GetPortalReplacementAddress(beaconHeight uint64) string

GetPortalReplacementAddress provides a mock function with given fields: beaconHeight

func (*ChainRetriever) GetPortalV4GeneralMultiSigAddress

func (_m *ChainRetriever) GetPortalV4GeneralMultiSigAddress(tokenIDStr string, beaconHeight uint64) string

GetPortalV4GeneralMultiSigAddress provides a mock function with given fields: tokenIDStr, beaconHeight

func (*ChainRetriever) GetPortalV4MinUnshieldAmount

func (_m *ChainRetriever) GetPortalV4MinUnshieldAmount(tokenIDStr string, beaconHeight uint64) uint64

GetPortalV4MinUnshieldAmount provides a mock function with given fields: tokenIDStr, beaconHeight

func (*ChainRetriever) GetPortalV4MultipleTokenAmount

func (_m *ChainRetriever) GetPortalV4MultipleTokenAmount(tokenIDStr string, beaconHeight uint64) uint64

GetPortalV4MultipleTokenAmount provides a mock function with given fields: tokenIDStr, beaconHeight

func (*ChainRetriever) GetShardStakingTx

func (_m *ChainRetriever) GetShardStakingTx(shardID byte, beaconHeight uint64) (map[string]string, error)

GetShardStakingTx provides a mock function with given fields: shardID, beaconHeight

func (*ChainRetriever) GetTransactionByHash

func (_m *ChainRetriever) GetTransactionByHash(_a0 common.Hash) (byte, common.Hash, uint64, int, metadata.Transaction, error)

GetTransactionByHash provides a mock function with given fields: _a0

func (*ChainRetriever) IsAfterNewZKPCheckPoint

func (_m *ChainRetriever) IsAfterNewZKPCheckPoint(beaconHeight uint64) bool

IsAfterNewZKPCheckPoint provides a mock function with given fields: beaconHeight

func (*ChainRetriever) IsAfterPrivacyV2CheckPoint

func (_m *ChainRetriever) IsAfterPrivacyV2CheckPoint(beaconHeight uint64) bool

IsAfterPrivacyV2CheckPoint provides a mock function with given fields: beaconHeight

func (*ChainRetriever) IsEnableFeature

func (_m *ChainRetriever) IsEnableFeature(featureFlag string, epoch uint64) bool

IsEnableFeature provides a mock function with given fields: featureFlag, epoch

func (*ChainRetriever) IsPortalExchangeRateToken

func (_m *ChainRetriever) IsPortalExchangeRateToken(beaconHeight uint64, tokenIDStr string) bool

IsPortalExchangeRateToken provides a mock function with given fields: beaconHeight, tokenIDStr

func (*ChainRetriever) IsPortalToken

func (_m *ChainRetriever) IsPortalToken(beaconHeight uint64, tokenIDStr string, version uint) (bool, error)

IsPortalToken provides a mock function with given fields: beaconHeight, tokenIDStr, version

func (*ChainRetriever) IsSupportedTokenCollateralV3

func (_m *ChainRetriever) IsSupportedTokenCollateralV3(beaconHeight uint64, externalTokenID string) bool

IsSupportedTokenCollateralV3 provides a mock function with given fields: beaconHeight, externalTokenID

func (*ChainRetriever) IsValidPortalRemoteAddress

func (_m *ChainRetriever) IsValidPortalRemoteAddress(tokenIDStr string, remoteAddr string, beaconHeight uint64, version uint) (bool, error)

IsValidPortalRemoteAddress provides a mock function with given fields: tokenIDStr, remoteAddr, beaconHeight, version

func (*ChainRetriever) ListPrivacyTokenAndBridgeTokenAndPRVByShardID

func (_m *ChainRetriever) ListPrivacyTokenAndBridgeTokenAndPRVByShardID(_a0 byte) ([]common.Hash, error)

ListPrivacyTokenAndBridgeTokenAndPRVByShardID provides a mock function with given fields: _a0

func (*ChainRetriever) ValidatePortalRemoteAddresses

func (_m *ChainRetriever) ValidatePortalRemoteAddresses(remoteAddresses map[string]string, beaconHeight uint64, version uint) (bool, error)

ValidatePortalRemoteAddresses provides a mock function with given fields: remoteAddresses, beaconHeight, version

type ShardViewRetriever

type ShardViewRetriever struct {
	mock.Mock
}

ShardViewRetriever is an autogenerated mock type for the ShardViewRetriever type

func (*ShardViewRetriever) GetBeaconHeight

func (_m *ShardViewRetriever) GetBeaconHeight() uint64

GetBeaconHeight provides a mock function with given fields:

func (*ShardViewRetriever) GetCopiedFeatureStateDB

func (_m *ShardViewRetriever) GetCopiedFeatureStateDB() *statedb.StateDB

GetCopiedFeatureStateDB provides a mock function with given fields:

func (*ShardViewRetriever) GetCopiedTransactionStateDB

func (_m *ShardViewRetriever) GetCopiedTransactionStateDB() *statedb.StateDB

GetCopiedTransactionStateDB provides a mock function with given fields:

func (*ShardViewRetriever) GetEpoch

func (_m *ShardViewRetriever) GetEpoch() uint64

GetEpoch provides a mock function with given fields:

func (*ShardViewRetriever) GetHeight

func (_m *ShardViewRetriever) GetHeight() uint64

GetHeight provides a mock function with given fields:

func (*ShardViewRetriever) GetShardID

func (_m *ShardViewRetriever) GetShardID() byte

GetShardID provides a mock function with given fields:

func (*ShardViewRetriever) GetShardRewardStateDB

func (_m *ShardViewRetriever) GetShardRewardStateDB() *statedb.StateDB

GetShardRewardStateDB provides a mock function with given fields:

func (*ShardViewRetriever) GetStakingTx

func (_m *ShardViewRetriever) GetStakingTx() map[string]string

GetStakingTx provides a mock function with given fields:

func (*ShardViewRetriever) ListShardPrivacyTokenAndPRV

func (_m *ShardViewRetriever) ListShardPrivacyTokenAndPRV() []common.Hash

ListShardPrivacyTokenAndPRV provides a mock function with given fields:

Jump to

Keyboard shortcuts

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