Documentation ¶
Index ¶
- type BlockchainRetriever
- func (_m *BlockchainRetriever) GetAllCommitteeValidatorCandidate() (map[byte][]incognitokey.CommitteePublicKey, ...)
- func (_m *BlockchainRetriever) GetAllCommitteeValidatorCandidateFlattenListFromDatabase() ([]string, error)
- func (_m *BlockchainRetriever) GetAutoStakingList() map[string]bool
- func (_m *BlockchainRetriever) GetBeaconFeatureStateDB() *statedb.StateDB
- func (_m *BlockchainRetriever) GetBeaconHeight() uint64
- func (_m *BlockchainRetriever) GetBeaconHeightBreakPointBurnAddr() uint64
- func (_m *BlockchainRetriever) GetBeaconRewardStateDB() *statedb.StateDB
- func (_m *BlockchainRetriever) GetBeaconSlashStateDB() *statedb.StateDB
- func (_m *BlockchainRetriever) GetBurningAddress(blockHeight uint64) string
- func (_m *BlockchainRetriever) GetCentralizedWebsitePaymentAddress() string
- func (_m *BlockchainRetriever) GetChainHeight(_a0 byte) uint64
- func (_m *BlockchainRetriever) GetCurrentBeaconBlockHeight(_a0 byte) uint64
- func (_m *BlockchainRetriever) GetShardFeatureStateDB(shardID byte) *statedb.StateDB
- func (_m *BlockchainRetriever) GetShardIDFromTx(txid string) (byte, error)
- func (_m *BlockchainRetriever) GetShardRewardStateDB(shardID byte) *statedb.StateDB
- func (_m *BlockchainRetriever) GetStakingAmountShard() uint64
- func (_m *BlockchainRetriever) GetStakingTx(_a0 byte) map[string]string
- func (_m *BlockchainRetriever) GetTransactionByHash(_a0 common.Hash) (byte, common.Hash, int, metadata.Transaction, error)
- func (_m *BlockchainRetriever) GetTxChainHeight(tx metadata.Transaction) (uint64, error)
- func (_m *BlockchainRetriever) GetTxValue(txid string) (uint64, error)
- func (_m *BlockchainRetriever) ListPrivacyTokenAndBridgeTokenAndPRVByShardID(_a0 byte) ([]common.Hash, 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 incognito_chaincommon.Hash) (byte, incognito_chaincommon.Hash, uint64, int, common.Transaction, error)
- func (_m *ChainRetriever) IsAfterNewZKPCheckPoint(beaconHeight uint64) bool
- func (_m *ChainRetriever) IsAfterPdexv3CheckPoint(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) ([]incognito_chaincommon.Hash, error)
- func (_m *ChainRetriever) ValidatePortalRemoteAddresses(remoteAddresses map[string]string, beaconHeight uint64, version uint) (bool, error)
- type Database
- func (_m *Database) Close() error
- func (_m *Database) Compact(start []byte, limit []byte) error
- func (_m *Database) Delete(key []byte) error
- func (_m *Database) Get(key []byte) ([]byte, error)
- func (_m *Database) Has(key []byte) (bool, error)
- func (_m *Database) NewBatch() incdb.Batch
- func (_m *Database) NewIterator() incdb.Iterator
- func (_m *Database) NewIteratorWithPrefix(prefix []byte) incdb.Iterator
- func (_m *Database) NewIteratorWithStart(start []byte) incdb.Iterator
- func (_m *Database) Put(key []byte, value []byte) error
- func (_m *Database) PutBatch(data []incdb.BatchData) error
- func (_m *Database) Stat(property string) (string, error)
- type DatabaseAccessWarper
- type StateObject
- func (_m *StateObject) Exist() bool
- func (_m *StateObject) GetHash() common.Hash
- func (_m *StateObject) GetTrie(_a0 statedb.DatabaseAccessWarper) statedb.Trie
- func (_m *StateObject) GetType() int
- func (_m *StateObject) GetValue() interface{}
- func (_m *StateObject) GetValueBytes() []byte
- func (_m *StateObject) IsDeleted() bool
- func (_m *StateObject) IsEmpty() bool
- func (_m *StateObject) MarkDelete()
- func (_m *StateObject) Reset() bool
- func (_m *StateObject) SetError(_a0 error)
- func (_m *StateObject) SetValue(_a0 interface{})
- type Trie
- func (_m *Trie) Commit(onleaf trie.LeafCallback) (common.Hash, error)
- func (_m *Trie) GetKey(_a0 []byte) []byte
- func (_m *Trie) Hash() common.Hash
- func (_m *Trie) NodeIterator(startKey []byte) trie.NodeIterator
- func (_m *Trie) Prove(key []byte, fromLevel uint, proofDb incdb.Database) error
- func (_m *Trie) TryDelete(key []byte) error
- func (_m *Trie) TryGet(key []byte) ([]byte, error)
- func (_m *Trie) TryUpdate(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainRetriever ¶
BlockchainRetriever is an autogenerated mock type for the BlockchainRetriever type
func (*BlockchainRetriever) GetAllCommitteeValidatorCandidate ¶
func (_m *BlockchainRetriever) GetAllCommitteeValidatorCandidate() (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 (*BlockchainRetriever) GetAllCommitteeValidatorCandidateFlattenListFromDatabase ¶
func (_m *BlockchainRetriever) GetAllCommitteeValidatorCandidateFlattenListFromDatabase() ([]string, error)
GetAllCommitteeValidatorCandidateFlattenListFromDatabase provides a mock function with given fields:
func (*BlockchainRetriever) GetAutoStakingList ¶
func (_m *BlockchainRetriever) GetAutoStakingList() map[string]bool
GetAutoStakingList provides a mock function with given fields:
func (*BlockchainRetriever) GetBeaconFeatureStateDB ¶
func (_m *BlockchainRetriever) GetBeaconFeatureStateDB() *statedb.StateDB
GetBeaconFeatureStateDB provides a mock function with given fields:
func (*BlockchainRetriever) GetBeaconHeight ¶
func (_m *BlockchainRetriever) GetBeaconHeight() uint64
GetBeaconHeight provides a mock function with given fields:
func (*BlockchainRetriever) GetBeaconHeightBreakPointBurnAddr ¶
func (_m *BlockchainRetriever) GetBeaconHeightBreakPointBurnAddr() uint64
GetBeaconHeightBreakPointBurnAddr provides a mock function with given fields:
func (*BlockchainRetriever) GetBeaconRewardStateDB ¶
func (_m *BlockchainRetriever) GetBeaconRewardStateDB() *statedb.StateDB
GetBeaconRewardStateDB provides a mock function with given fields:
func (*BlockchainRetriever) GetBeaconSlashStateDB ¶
func (_m *BlockchainRetriever) GetBeaconSlashStateDB() *statedb.StateDB
GetBeaconSlashStateDB provides a mock function with given fields:
func (*BlockchainRetriever) GetBurningAddress ¶
func (_m *BlockchainRetriever) GetBurningAddress(blockHeight uint64) string
GetBurningAddress provides a mock function with given fields: blockHeight
func (*BlockchainRetriever) GetCentralizedWebsitePaymentAddress ¶
func (_m *BlockchainRetriever) GetCentralizedWebsitePaymentAddress() string
GetCentralizedWebsitePaymentAddress provides a mock function with given fields:
func (*BlockchainRetriever) GetChainHeight ¶
func (_m *BlockchainRetriever) GetChainHeight(_a0 byte) uint64
GetChainHeight provides a mock function with given fields: _a0
func (*BlockchainRetriever) GetCurrentBeaconBlockHeight ¶
func (_m *BlockchainRetriever) GetCurrentBeaconBlockHeight(_a0 byte) uint64
GetCurrentBeaconBlockHeight provides a mock function with given fields: _a0
func (*BlockchainRetriever) GetShardFeatureStateDB ¶
func (_m *BlockchainRetriever) GetShardFeatureStateDB(shardID byte) *statedb.StateDB
GetShardFeatureStateDB provides a mock function with given fields: shardID
func (*BlockchainRetriever) GetShardIDFromTx ¶
func (_m *BlockchainRetriever) GetShardIDFromTx(txid string) (byte, error)
GetShardIDFromTx provides a mock function with given fields: txid
func (*BlockchainRetriever) GetShardRewardStateDB ¶
func (_m *BlockchainRetriever) GetShardRewardStateDB(shardID byte) *statedb.StateDB
GetShardRewardStateDB provides a mock function with given fields: shardID
func (*BlockchainRetriever) GetStakingAmountShard ¶
func (_m *BlockchainRetriever) GetStakingAmountShard() uint64
GetStakingAmountShard provides a mock function with given fields:
func (*BlockchainRetriever) GetStakingTx ¶
func (_m *BlockchainRetriever) GetStakingTx(_a0 byte) map[string]string
GetStakingTx provides a mock function with given fields: _a0
func (*BlockchainRetriever) GetTransactionByHash ¶
func (_m *BlockchainRetriever) GetTransactionByHash(_a0 common.Hash) (byte, common.Hash, int, metadata.Transaction, error)
GetTransactionByHash provides a mock function with given fields: _a0
func (*BlockchainRetriever) GetTxChainHeight ¶
func (_m *BlockchainRetriever) GetTxChainHeight(tx metadata.Transaction) (uint64, error)
GetTxChainHeight provides a mock function with given fields: tx
func (*BlockchainRetriever) GetTxValue ¶
func (_m *BlockchainRetriever) GetTxValue(txid string) (uint64, error)
GetTxValue provides a mock function with given fields: txid
func (*BlockchainRetriever) ListPrivacyTokenAndBridgeTokenAndPRVByShardID ¶
func (_m *BlockchainRetriever) ListPrivacyTokenAndBridgeTokenAndPRVByShardID(_a0 byte) ([]common.Hash, error)
ListPrivacyTokenAndBridgeTokenAndPRVByShardID 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 incognito_chaincommon.Hash) (byte, incognito_chaincommon.Hash, uint64, int, common.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) IsAfterPdexv3CheckPoint ¶
func (_m *ChainRetriever) IsAfterPdexv3CheckPoint(beaconHeight uint64) bool
IsAfterPdexv3CheckPoint 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) ([]incognito_chaincommon.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 Database ¶
Database is an autogenerated mock type for the Database type
func (*Database) NewIterator ¶
NewIterator provides a mock function with given fields:
func (*Database) NewIteratorWithPrefix ¶
NewIteratorWithPrefix provides a mock function with given fields: prefix
func (*Database) NewIteratorWithStart ¶
NewIteratorWithStart provides a mock function with given fields: start
type DatabaseAccessWarper ¶
DatabaseAccessWarper is an autogenerated mock type for the DatabaseAccessWarper type
func (*DatabaseAccessWarper) CopyTrie ¶
func (_m *DatabaseAccessWarper) CopyTrie(_a0 statedb.Trie) statedb.Trie
CopyTrie provides a mock function with given fields: _a0
func (*DatabaseAccessWarper) OpenPrefixTrie ¶
OpenPrefixTrie provides a mock function with given fields: root
func (*DatabaseAccessWarper) TrieDB ¶
func (_m *DatabaseAccessWarper) TrieDB() *trie.IntermediateWriter
TrieDB provides a mock function with given fields:
type StateObject ¶
StateObject is an autogenerated mock type for the StateObject type
func (*StateObject) Exist ¶
func (_m *StateObject) Exist() bool
Exist provides a mock function with given fields:
func (*StateObject) GetHash ¶
func (_m *StateObject) GetHash() common.Hash
GetHash provides a mock function with given fields:
func (*StateObject) GetTrie ¶
func (_m *StateObject) GetTrie(_a0 statedb.DatabaseAccessWarper) statedb.Trie
GetTrie provides a mock function with given fields: _a0
func (*StateObject) GetType ¶
func (_m *StateObject) GetType() int
GetType provides a mock function with given fields:
func (*StateObject) GetValue ¶
func (_m *StateObject) GetValue() interface{}
GetValue provides a mock function with given fields:
func (*StateObject) GetValueBytes ¶
func (_m *StateObject) GetValueBytes() []byte
GetValueBytes provides a mock function with given fields:
func (*StateObject) IsDeleted ¶
func (_m *StateObject) IsDeleted() bool
IsDeleted provides a mock function with given fields:
func (*StateObject) IsEmpty ¶
func (_m *StateObject) IsEmpty() bool
IsEmpty provides a mock function with given fields:
func (*StateObject) MarkDelete ¶
func (_m *StateObject) MarkDelete()
MarkDelete provides a mock function with given fields:
func (*StateObject) Reset ¶
func (_m *StateObject) Reset() bool
Reset provides a mock function with given fields:
func (*StateObject) SetError ¶
func (_m *StateObject) SetError(_a0 error)
SetError provides a mock function with given fields: _a0
func (*StateObject) SetValue ¶
func (_m *StateObject) SetValue(_a0 interface{})
SetValue provides a mock function with given fields: _a0
type Trie ¶
Trie is an autogenerated mock type for the Trie type
func (*Trie) NodeIterator ¶
func (_m *Trie) NodeIterator(startKey []byte) trie.NodeIterator
NodeIterator provides a mock function with given fields: startKey