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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainRetriever

type BlockchainRetriever struct {
	mock.Mock
}

BlockchainRetriever is an autogenerated mock type for the BlockchainRetriever type

func (*BlockchainRetriever) GetAllCommitteeValidatorCandidate

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

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

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

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func (*Database) Close

func (_m *Database) Close() error

Close provides a mock function with given fields:

func (*Database) Compact

func (_m *Database) Compact(start []byte, limit []byte) error

Compact provides a mock function with given fields: start, limit

func (*Database) Delete

func (_m *Database) Delete(key []byte) error

Delete provides a mock function with given fields: key

func (*Database) Get

func (_m *Database) Get(key []byte) ([]byte, error)

Get provides a mock function with given fields: key

func (*Database) Has

func (_m *Database) Has(key []byte) (bool, error)

Has provides a mock function with given fields: key

func (*Database) NewBatch

func (_m *Database) NewBatch() incdb.Batch

NewBatch provides a mock function with given fields:

func (*Database) NewIterator

func (_m *Database) NewIterator() incdb.Iterator

NewIterator provides a mock function with given fields:

func (*Database) NewIteratorWithPrefix

func (_m *Database) NewIteratorWithPrefix(prefix []byte) incdb.Iterator

NewIteratorWithPrefix provides a mock function with given fields: prefix

func (*Database) NewIteratorWithStart

func (_m *Database) NewIteratorWithStart(start []byte) incdb.Iterator

NewIteratorWithStart provides a mock function with given fields: start

func (*Database) Put

func (_m *Database) Put(key []byte, value []byte) error

Put provides a mock function with given fields: key, value

func (*Database) PutBatch

func (_m *Database) PutBatch(data []incdb.BatchData) error

PutBatch provides a mock function with given fields: data

func (*Database) Stat

func (_m *Database) Stat(property string) (string, error)

Stat provides a mock function with given fields: property

type DatabaseAccessWarper

type DatabaseAccessWarper struct {
	mock.Mock
}

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

func (_m *DatabaseAccessWarper) OpenPrefixTrie(root common.Hash) (statedb.Trie, error)

OpenPrefixTrie provides a mock function with given fields: root

func (*DatabaseAccessWarper) TrieDB

TrieDB provides a mock function with given fields:

type StateObject

type StateObject struct {
	mock.Mock
}

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

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

type Trie struct {
	mock.Mock
}

Trie is an autogenerated mock type for the Trie type

func (*Trie) Commit

func (_m *Trie) Commit(onleaf trie.LeafCallback) (common.Hash, error)

Commit provides a mock function with given fields: onleaf

func (*Trie) GetKey

func (_m *Trie) GetKey(_a0 []byte) []byte

GetKey provides a mock function with given fields: _a0

func (*Trie) Hash

func (_m *Trie) Hash() common.Hash

Hash provides a mock function with given fields:

func (*Trie) NodeIterator

func (_m *Trie) NodeIterator(startKey []byte) trie.NodeIterator

NodeIterator provides a mock function with given fields: startKey

func (*Trie) Prove

func (_m *Trie) Prove(key []byte, fromLevel uint, proofDb incdb.Database) error

Prove provides a mock function with given fields: key, fromLevel, proofDb

func (*Trie) TryDelete

func (_m *Trie) TryDelete(key []byte) error

TryDelete provides a mock function with given fields: key

func (*Trie) TryGet

func (_m *Trie) TryGet(key []byte) ([]byte, error)

TryGet provides a mock function with given fields: key

func (*Trie) TryUpdate

func (_m *Trie) TryUpdate(key []byte, value []byte) error

TryUpdate provides a mock function with given fields: key, value

Jump to

Keyboard shortcuts

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