Documentation ¶
Index ¶
- type BeaconViewRetriever
- func (_m *BeaconViewRetriever) CandidateWaitingForNextRandom() []incognitokey.CommitteePublicKey
- func (_m *BeaconViewRetriever) GetAllCommitteeValidatorCandidate() (map[byte][]incognitokey.CommitteePublicKey, ...)
- func (_m *BeaconViewRetriever) GetAllCommitteeValidatorCandidateFlattenListFromDatabase() ([]string, error)
- func (_m *BeaconViewRetriever) GetAutoStakingList() map[string]bool
- func (_m *BeaconViewRetriever) GetBeaconConsensusStateDB() *statedb.StateDB
- func (_m *BeaconViewRetriever) GetBeaconFeatureStateDB() *statedb.StateDB
- func (_m *BeaconViewRetriever) GetBeaconRewardStateDB() *statedb.StateDB
- func (_m *BeaconViewRetriever) GetBeaconSlashStateDB() *statedb.StateDB
- func (_m *BeaconViewRetriever) GetCandidateShardWaitingForCurrentRandom() []incognitokey.CommitteePublicKey
- func (_m *BeaconViewRetriever) GetHeight() uint64
- func (_m *BeaconViewRetriever) GetStakerInfo(_a0 string) (*statedb.StakerInfo, bool, error)
- type ChainRetriever
- func (_m *ChainRetriever) CheckBlockTimeIsReached(recentBeaconHeight uint64, beaconHeight uint64, recentShardHeight uint64, ...) bool
- func (_m *ChainRetriever) CheckBlockTimeIsReachedByBeaconHeight(recentBeaconHeight uint64, beaconHeight uint64, duration time.Duration) bool
- func (_m *ChainRetriever) GetBNBChainID() string
- func (_m *ChainRetriever) GetBNBDataHash(blockHeight int64) ([]byte, error)
- func (_m *ChainRetriever) GetBTCChainID() string
- func (_m *ChainRetriever) GetBTCChainParams() *chaincfg.Params
- func (_m *ChainRetriever) GetBTCHeaderChain() *btcrelaying.BlockChain
- func (_m *ChainRetriever) GetBurningAddress(blockHeight uint64) string
- func (_m *ChainRetriever) GetCentralizedWebsitePaymentAddress(_a0 uint64) string
- func (_m *ChainRetriever) GetFinalBeaconHeight() uint64
- func (_m *ChainRetriever) GetLatestBNBBlkHeight() (int64, error)
- func (_m *ChainRetriever) GetMinAmountPortalToken(tokenIDStr string, beaconHeight uint64, version uint) (uint64, error)
- func (_m *ChainRetriever) GetPortalETHContractAddrStr(beaconHeight uint64) string
- func (_m *ChainRetriever) GetPortalFeederAddress(beaconHeight uint64) string
- func (_m *ChainRetriever) GetPortalReplacementAddress(beaconHeight uint64) string
- func (_m *ChainRetriever) GetPortalV4GeneralMultiSigAddress(tokenIDStr string, beaconHeight uint64) string
- func (_m *ChainRetriever) GetPortalV4MinUnshieldAmount(tokenIDStr string, beaconHeight uint64) uint64
- func (_m *ChainRetriever) GetPortalV4MultipleTokenAmount(tokenIDStr string, beaconHeight uint64) uint64
- func (_m *ChainRetriever) GetShardStakingTx(shardID byte, beaconHeight uint64) (map[string]string, error)
- func (_m *ChainRetriever) GetTransactionByHash(_a0 common.Hash) (byte, common.Hash, uint64, int, metadata.Transaction, error)
- func (_m *ChainRetriever) IsAfterNewZKPCheckPoint(beaconHeight uint64) bool
- func (_m *ChainRetriever) IsAfterPrivacyV2CheckPoint(beaconHeight uint64) bool
- func (_m *ChainRetriever) IsEnableFeature(featureFlag string, epoch uint64) bool
- func (_m *ChainRetriever) IsPortalExchangeRateToken(beaconHeight uint64, tokenIDStr string) bool
- func (_m *ChainRetriever) IsPortalToken(beaconHeight uint64, tokenIDStr string, version uint) (bool, error)
- func (_m *ChainRetriever) IsSupportedTokenCollateralV3(beaconHeight uint64, externalTokenID string) bool
- func (_m *ChainRetriever) IsValidPortalRemoteAddress(tokenIDStr string, remoteAddr string, beaconHeight uint64, version uint) (bool, error)
- func (_m *ChainRetriever) ListPrivacyTokenAndBridgeTokenAndPRVByShardID(_a0 byte) ([]common.Hash, error)
- func (_m *ChainRetriever) ValidatePortalRemoteAddresses(remoteAddresses map[string]string, beaconHeight uint64, version uint) (bool, error)
- type ShardViewRetriever
- func (_m *ShardViewRetriever) GetBeaconHeight() uint64
- func (_m *ShardViewRetriever) GetCopiedFeatureStateDB() *statedb.StateDB
- func (_m *ShardViewRetriever) GetCopiedTransactionStateDB() *statedb.StateDB
- func (_m *ShardViewRetriever) GetEpoch() uint64
- func (_m *ShardViewRetriever) GetHeight() uint64
- func (_m *ShardViewRetriever) GetShardID() byte
- func (_m *ShardViewRetriever) GetShardRewardStateDB() *statedb.StateDB
- func (_m *ShardViewRetriever) GetStakingTx() map[string]string
- func (_m *ShardViewRetriever) ListShardPrivacyTokenAndPRV() []common.Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconViewRetriever ¶
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) GetAllCommitteeValidatorCandidate ¶
func (_m *BeaconViewRetriever) GetAllCommitteeValidatorCandidate() (map[byte][]incognitokey.CommitteePublicKey, map[byte][]incognitokey.CommitteePublicKey, map[byte][]incognitokey.CommitteePublicKey, []incognitokey.CommitteePublicKey, []incognitokey.CommitteePublicKey, []incognitokey.CommitteePublicKey, []incognitokey.CommitteePublicKey, []incognitokey.CommitteePublicKey, []incognitokey.CommitteePublicKey, error)
GetAllCommitteeValidatorCandidate 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 ¶
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 ¶
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: