Documentation ¶
Index ¶
- type BeaconViewRetriever
- func (_m *BeaconViewRetriever) BlockHash() common.Hash
- 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)
- func (_m *BeaconViewRetriever) IsValidMintNftRequireAmount(_a0 incdb.Database, _a1 interface{}, _a2 uint64) error
- func (_m *BeaconViewRetriever) IsValidNftID(_a0 incdb.Database, _a1 interface{}, _a2 string) error
- func (_m *BeaconViewRetriever) IsValidPdexv3ShareAmount(_a0 incdb.Database, _a1 interface{}, _a2 string, _a3 string, _a4 uint64) error
- func (_m *BeaconViewRetriever) IsValidPdexv3StakingPool(_a0 incdb.Database, _a1 interface{}, _a2 string) error
- func (_m *BeaconViewRetriever) IsValidPdexv3UnstakingAmount(_a0 incdb.Database, _a1 interface{}, _a2 string, _a3 string, _a4 uint64) error
- func (_m *BeaconViewRetriever) IsValidPoolPairID(_a0 incdb.Database, _a1 interface{}, _a2 string) 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) GetBeaconChainDatabase() incdb.Database
- 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) GetPdexv3Cached(_a0 incognito_chaincommon.Hash) interface{}
- 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 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() []incognito_chaincommon.Hash
- type Transaction
- func (_m *Transaction) CalculateTxValue() uint64
- func (_m *Transaction) CheckData(db *statedb.StateDB) error
- func (_m *Transaction) CheckTxVersion(_a0 int8) bool
- func (_m *Transaction) GetInfo() []byte
- func (_m *Transaction) GetLockTime() int64
- func (_m *Transaction) GetMetadata() common.Metadata
- func (_m *Transaction) GetMetadataType() int
- func (_m *Transaction) GetProof() proof.Proof
- func (_m *Transaction) GetReceiverData() ([]coin.Coin, error)
- func (_m *Transaction) GetReceivers() ([][]byte, []uint64)
- func (_m *Transaction) GetSenderAddrLastByte() byte
- func (_m *Transaction) GetSig() []byte
- func (_m *Transaction) GetSigPubKey() []byte
- func (_m *Transaction) GetTokenID() *incognito_chaincommon.Hash
- func (_m *Transaction) GetTransferData() (bool, []byte, uint64, *incognito_chaincommon.Hash)
- func (_m *Transaction) GetTxActualSize() uint64
- func (_m *Transaction) GetTxBurnData() (bool, coin.Coin, *incognito_chaincommon.Hash, error)
- func (_m *Transaction) GetTxFee() uint64
- func (_m *Transaction) GetTxFeeToken() uint64
- func (_m *Transaction) GetTxFullBurnData() (bool, coin.Coin, coin.Coin, *incognito_chaincommon.Hash, error)
- func (_m *Transaction) GetTxMintData() (bool, coin.Coin, *incognito_chaincommon.Hash, error)
- func (_m *Transaction) GetType() string
- func (_m *Transaction) GetValidationEnv() common.ValidationEnviroment
- func (_m *Transaction) GetVersion() int8
- func (_m *Transaction) Hash() *incognito_chaincommon.Hash
- func (_m *Transaction) HashWithoutMetadataSig() *incognito_chaincommon.Hash
- func (_m *Transaction) Init(_a0 interface{}) error
- func (_m *Transaction) IsCoinsBurning(_a0 common.ChainRetriever, _a1 common.ShardViewRetriever, ...) bool
- func (_m *Transaction) IsPrivacy() bool
- func (_m *Transaction) IsSalaryTx() bool
- func (_m *Transaction) ListOTAHashH() []incognito_chaincommon.Hash
- func (_m *Transaction) ListSerialNumbersHashH() []incognito_chaincommon.Hash
- func (_m *Transaction) LoadData(db *statedb.StateDB) error
- func (_m *Transaction) SetGetSenderAddrLastByte(_a0 byte)
- func (_m *Transaction) SetInfo(_a0 []byte)
- func (_m *Transaction) SetLockTime(_a0 int64)
- func (_m *Transaction) SetMetadata(_a0 common.Metadata)
- func (_m *Transaction) SetProof(_a0 proof.Proof)
- func (_m *Transaction) SetSig(_a0 []byte)
- func (_m *Transaction) SetSigPubKey(_a0 []byte)
- func (_m *Transaction) SetTxFee(_a0 uint64)
- func (_m *Transaction) SetType(_a0 string)
- func (_m *Transaction) SetValidationEnv(_a0 common.ValidationEnviroment)
- func (_m *Transaction) SetVersion(_a0 int8)
- func (_m *Transaction) String() string
- func (_m *Transaction) UnmarshalJSON(data []byte) error
- func (_m *Transaction) ValidateDoubleSpendWithBlockchain(_a0 byte, _a1 *statedb.StateDB, _a2 *incognito_chaincommon.Hash) error
- func (_m *Transaction) ValidateSanityData(_a0 common.ChainRetriever, _a1 common.ShardViewRetriever, ...) (bool, error)
- func (_m *Transaction) ValidateSanityDataByItSelf() (bool, error)
- func (_m *Transaction) ValidateSanityDataWithBlockchain(chainRetriever common.ChainRetriever, ...) (bool, error)
- func (_m *Transaction) ValidateTransaction(_a0 map[string]bool, _a1 *statedb.StateDB, _a2 *statedb.StateDB, _a3 byte, ...) (bool, []proof.Proof, error)
- func (_m *Transaction) ValidateTxByItself(_a0 map[string]bool, _a1 *statedb.StateDB, _a2 *statedb.StateDB, ...) (bool, error)
- func (_m *Transaction) ValidateTxCorrectness(db *statedb.StateDB) (bool, error)
- func (_m *Transaction) ValidateTxSalary(_a0 *statedb.StateDB) (bool, error)
- func (_m *Transaction) ValidateTxWithBlockChain(chainRetriever common.ChainRetriever, ...) error
- func (_m *Transaction) ValidateTxWithCurrentMempool(_a0 common.MempoolRetriever) error
- func (_m *Transaction) ValidateType() bool
- func (_m *Transaction) Verify(_a0 map[string]bool, _a1 *statedb.StateDB, _a2 *statedb.StateDB, _a3 byte, ...) (bool, error)
- func (_m *Transaction) VerifyMinerCreatedTxBeforeGettingInBlock(_a0 *common.MintData, _a1 byte, _a2 common.ChainRetriever, ...) (bool, error)
- type ValidationEnviroment
- func (_m *ValidationEnviroment) BeaconHeight() uint64
- func (_m *ValidationEnviroment) ConfirmedTime() int64
- func (_m *ValidationEnviroment) DBData() [][]byte
- func (_m *ValidationEnviroment) HasCA() bool
- func (_m *ValidationEnviroment) IsConfimed() bool
- func (_m *ValidationEnviroment) IsPrivacy() bool
- func (_m *ValidationEnviroment) ShardHeight() uint64
- func (_m *ValidationEnviroment) ShardID() int
- func (_m *ValidationEnviroment) SigPubKey() []byte
- func (_m *ValidationEnviroment) TokenID() incognito_chaincommon.Hash
- func (_m *ValidationEnviroment) TxAction() int
- func (_m *ValidationEnviroment) TxType() string
- func (_m *ValidationEnviroment) Version() int
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 NewBeaconViewRetriever ¶
func NewBeaconViewRetriever(t testing.TB) *BeaconViewRetriever
NewBeaconViewRetriever creates a new instance of BeaconViewRetriever. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*BeaconViewRetriever) BlockHash ¶
func (_m *BeaconViewRetriever) BlockHash() common.Hash
BlockHash provides a mock function with given fields:
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
func (*BeaconViewRetriever) IsValidMintNftRequireAmount ¶
func (_m *BeaconViewRetriever) IsValidMintNftRequireAmount(_a0 incdb.Database, _a1 interface{}, _a2 uint64) error
IsValidMintNftRequireAmount provides a mock function with given fields: _a0, _a1, _a2
func (*BeaconViewRetriever) IsValidNftID ¶
func (_m *BeaconViewRetriever) IsValidNftID(_a0 incdb.Database, _a1 interface{}, _a2 string) error
IsValidNftID provides a mock function with given fields: _a0, _a1, _a2
func (*BeaconViewRetriever) IsValidPdexv3ShareAmount ¶
func (_m *BeaconViewRetriever) IsValidPdexv3ShareAmount(_a0 incdb.Database, _a1 interface{}, _a2 string, _a3 string, _a4 uint64) error
IsValidPdexv3ShareAmount provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*BeaconViewRetriever) IsValidPdexv3StakingPool ¶
func (_m *BeaconViewRetriever) IsValidPdexv3StakingPool(_a0 incdb.Database, _a1 interface{}, _a2 string) error
IsValidPdexv3StakingPool provides a mock function with given fields: _a0, _a1, _a2
func (*BeaconViewRetriever) IsValidPdexv3UnstakingAmount ¶
func (_m *BeaconViewRetriever) IsValidPdexv3UnstakingAmount(_a0 incdb.Database, _a1 interface{}, _a2 string, _a3 string, _a4 uint64) error
IsValidPdexv3UnstakingAmount provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*BeaconViewRetriever) IsValidPoolPairID ¶
func (_m *BeaconViewRetriever) IsValidPoolPairID(_a0 incdb.Database, _a1 interface{}, _a2 string) error
IsValidPoolPairID provides a mock function with given fields: _a0, _a1, _a2
type ChainRetriever ¶
ChainRetriever is an autogenerated mock type for the ChainRetriever type
func NewChainRetriever ¶
func NewChainRetriever(t testing.TB) *ChainRetriever
NewChainRetriever creates a new instance of ChainRetriever. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
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) GetBeaconChainDatabase ¶
func (_m *ChainRetriever) GetBeaconChainDatabase() incdb.Database
GetBeaconChainDatabase 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) GetPdexv3Cached ¶
func (_m *ChainRetriever) GetPdexv3Cached(_a0 incognito_chaincommon.Hash) interface{}
GetPdexv3Cached provides a mock function with given fields: _a0
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 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() []incognito_chaincommon.Hash
ListShardPrivacyTokenAndPRV provides a mock function with given fields:
type Transaction ¶
Transaction is an autogenerated mock type for the Transaction type
func (*Transaction) CalculateTxValue ¶
func (_m *Transaction) CalculateTxValue() uint64
CalculateTxValue provides a mock function with given fields:
func (*Transaction) CheckData ¶
func (_m *Transaction) CheckData(db *statedb.StateDB) error
CheckData provides a mock function with given fields: db
func (*Transaction) CheckTxVersion ¶
func (_m *Transaction) CheckTxVersion(_a0 int8) bool
CheckTxVersion provides a mock function with given fields: _a0
func (*Transaction) GetInfo ¶
func (_m *Transaction) GetInfo() []byte
GetInfo provides a mock function with given fields:
func (*Transaction) GetLockTime ¶
func (_m *Transaction) GetLockTime() int64
GetLockTime provides a mock function with given fields:
func (*Transaction) GetMetadata ¶
func (_m *Transaction) GetMetadata() common.Metadata
GetMetadata provides a mock function with given fields:
func (*Transaction) GetMetadataType ¶
func (_m *Transaction) GetMetadataType() int
GetMetadataType provides a mock function with given fields:
func (*Transaction) GetProof ¶
func (_m *Transaction) GetProof() proof.Proof
GetProof provides a mock function with given fields:
func (*Transaction) GetReceiverData ¶
func (_m *Transaction) GetReceiverData() ([]coin.Coin, error)
GetReceiverData provides a mock function with given fields:
func (*Transaction) GetReceivers ¶
func (_m *Transaction) GetReceivers() ([][]byte, []uint64)
GetReceivers provides a mock function with given fields:
func (*Transaction) GetSenderAddrLastByte ¶
func (_m *Transaction) GetSenderAddrLastByte() byte
GetSenderAddrLastByte provides a mock function with given fields:
func (*Transaction) GetSig ¶
func (_m *Transaction) GetSig() []byte
GetSig provides a mock function with given fields:
func (*Transaction) GetSigPubKey ¶
func (_m *Transaction) GetSigPubKey() []byte
GetSigPubKey provides a mock function with given fields:
func (*Transaction) GetTokenID ¶
func (_m *Transaction) GetTokenID() *incognito_chaincommon.Hash
GetTokenID provides a mock function with given fields:
func (*Transaction) GetTransferData ¶
func (_m *Transaction) GetTransferData() (bool, []byte, uint64, *incognito_chaincommon.Hash)
GetTransferData provides a mock function with given fields:
func (*Transaction) GetTxActualSize ¶
func (_m *Transaction) GetTxActualSize() uint64
GetTxActualSize provides a mock function with given fields:
func (*Transaction) GetTxBurnData ¶
func (_m *Transaction) GetTxBurnData() (bool, coin.Coin, *incognito_chaincommon.Hash, error)
GetTxBurnData provides a mock function with given fields:
func (*Transaction) GetTxFee ¶
func (_m *Transaction) GetTxFee() uint64
GetTxFee provides a mock function with given fields:
func (*Transaction) GetTxFeeToken ¶
func (_m *Transaction) GetTxFeeToken() uint64
GetTxFeeToken provides a mock function with given fields:
func (*Transaction) GetTxFullBurnData ¶
func (_m *Transaction) GetTxFullBurnData() (bool, coin.Coin, coin.Coin, *incognito_chaincommon.Hash, error)
GetTxFullBurnData provides a mock function with given fields:
func (*Transaction) GetTxMintData ¶
func (_m *Transaction) GetTxMintData() (bool, coin.Coin, *incognito_chaincommon.Hash, error)
GetTxMintData provides a mock function with given fields:
func (*Transaction) GetType ¶
func (_m *Transaction) GetType() string
GetType provides a mock function with given fields:
func (*Transaction) GetValidationEnv ¶
func (_m *Transaction) GetValidationEnv() common.ValidationEnviroment
GetValidationEnv provides a mock function with given fields:
func (*Transaction) GetVersion ¶
func (_m *Transaction) GetVersion() int8
GetVersion provides a mock function with given fields:
func (*Transaction) Hash ¶
func (_m *Transaction) Hash() *incognito_chaincommon.Hash
Hash provides a mock function with given fields:
func (*Transaction) HashWithoutMetadataSig ¶
func (_m *Transaction) HashWithoutMetadataSig() *incognito_chaincommon.Hash
HashWithoutMetadataSig provides a mock function with given fields:
func (*Transaction) Init ¶
func (_m *Transaction) Init(_a0 interface{}) error
Init provides a mock function with given fields: _a0
func (*Transaction) IsCoinsBurning ¶
func (_m *Transaction) IsCoinsBurning(_a0 common.ChainRetriever, _a1 common.ShardViewRetriever, _a2 common.BeaconViewRetriever, _a3 uint64) bool
IsCoinsBurning provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Transaction) IsPrivacy ¶
func (_m *Transaction) IsPrivacy() bool
IsPrivacy provides a mock function with given fields:
func (*Transaction) IsSalaryTx ¶
func (_m *Transaction) IsSalaryTx() bool
IsSalaryTx provides a mock function with given fields:
func (*Transaction) ListOTAHashH ¶
func (_m *Transaction) ListOTAHashH() []incognito_chaincommon.Hash
ListOTAHashH provides a mock function with given fields:
func (*Transaction) ListSerialNumbersHashH ¶
func (_m *Transaction) ListSerialNumbersHashH() []incognito_chaincommon.Hash
ListSerialNumbersHashH provides a mock function with given fields:
func (*Transaction) LoadData ¶
func (_m *Transaction) LoadData(db *statedb.StateDB) error
LoadData provides a mock function with given fields: db
func (*Transaction) SetGetSenderAddrLastByte ¶
func (_m *Transaction) SetGetSenderAddrLastByte(_a0 byte)
SetGetSenderAddrLastByte provides a mock function with given fields: _a0
func (*Transaction) SetInfo ¶
func (_m *Transaction) SetInfo(_a0 []byte)
SetInfo provides a mock function with given fields: _a0
func (*Transaction) SetLockTime ¶
func (_m *Transaction) SetLockTime(_a0 int64)
SetLockTime provides a mock function with given fields: _a0
func (*Transaction) SetMetadata ¶
func (_m *Transaction) SetMetadata(_a0 common.Metadata)
SetMetadata provides a mock function with given fields: _a0
func (*Transaction) SetProof ¶
func (_m *Transaction) SetProof(_a0 proof.Proof)
SetProof provides a mock function with given fields: _a0
func (*Transaction) SetSig ¶
func (_m *Transaction) SetSig(_a0 []byte)
SetSig provides a mock function with given fields: _a0
func (*Transaction) SetSigPubKey ¶
func (_m *Transaction) SetSigPubKey(_a0 []byte)
SetSigPubKey provides a mock function with given fields: _a0
func (*Transaction) SetTxFee ¶
func (_m *Transaction) SetTxFee(_a0 uint64)
SetTxFee provides a mock function with given fields: _a0
func (*Transaction) SetType ¶
func (_m *Transaction) SetType(_a0 string)
SetType provides a mock function with given fields: _a0
func (*Transaction) SetValidationEnv ¶
func (_m *Transaction) SetValidationEnv(_a0 common.ValidationEnviroment)
SetValidationEnv provides a mock function with given fields: _a0
func (*Transaction) SetVersion ¶
func (_m *Transaction) SetVersion(_a0 int8)
SetVersion provides a mock function with given fields: _a0
func (*Transaction) String ¶
func (_m *Transaction) String() string
String provides a mock function with given fields:
func (*Transaction) UnmarshalJSON ¶
func (_m *Transaction) UnmarshalJSON(data []byte) error
UnmarshalJSON provides a mock function with given fields: data
func (*Transaction) ValidateDoubleSpendWithBlockchain ¶
func (_m *Transaction) ValidateDoubleSpendWithBlockchain(_a0 byte, _a1 *statedb.StateDB, _a2 *incognito_chaincommon.Hash) error
ValidateDoubleSpendWithBlockchain provides a mock function with given fields: _a0, _a1, _a2
func (*Transaction) ValidateSanityData ¶
func (_m *Transaction) ValidateSanityData(_a0 common.ChainRetriever, _a1 common.ShardViewRetriever, _a2 common.BeaconViewRetriever, _a3 uint64) (bool, error)
ValidateSanityData provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Transaction) ValidateSanityDataByItSelf ¶
func (_m *Transaction) ValidateSanityDataByItSelf() (bool, error)
ValidateSanityDataByItSelf provides a mock function with given fields:
func (*Transaction) ValidateSanityDataWithBlockchain ¶
func (_m *Transaction) ValidateSanityDataWithBlockchain(chainRetriever common.ChainRetriever, shardViewRetriever common.ShardViewRetriever, beaconViewRetriever common.BeaconViewRetriever, beaconHeight uint64) (bool, error)
ValidateSanityDataWithBlockchain provides a mock function with given fields: chainRetriever, shardViewRetriever, beaconViewRetriever, beaconHeight
func (*Transaction) ValidateTransaction ¶
func (_m *Transaction) ValidateTransaction(_a0 map[string]bool, _a1 *statedb.StateDB, _a2 *statedb.StateDB, _a3 byte, _a4 *incognito_chaincommon.Hash) (bool, []proof.Proof, error)
ValidateTransaction provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*Transaction) ValidateTxByItself ¶
func (_m *Transaction) ValidateTxByItself(_a0 map[string]bool, _a1 *statedb.StateDB, _a2 *statedb.StateDB, _a3 common.ChainRetriever, _a4 byte, _a5 common.ShardViewRetriever, _a6 common.BeaconViewRetriever) (bool, error)
ValidateTxByItself provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6
func (*Transaction) ValidateTxCorrectness ¶
func (_m *Transaction) ValidateTxCorrectness(db *statedb.StateDB) (bool, error)
ValidateTxCorrectness provides a mock function with given fields: db
func (*Transaction) ValidateTxSalary ¶
func (_m *Transaction) ValidateTxSalary(_a0 *statedb.StateDB) (bool, error)
ValidateTxSalary provides a mock function with given fields: _a0
func (*Transaction) ValidateTxWithBlockChain ¶
func (_m *Transaction) ValidateTxWithBlockChain(chainRetriever common.ChainRetriever, shardViewRetriever common.ShardViewRetriever, beaconViewRetriever common.BeaconViewRetriever, shardID byte, stateDB *statedb.StateDB) error
ValidateTxWithBlockChain provides a mock function with given fields: chainRetriever, shardViewRetriever, beaconViewRetriever, shardID, stateDB
func (*Transaction) ValidateTxWithCurrentMempool ¶
func (_m *Transaction) ValidateTxWithCurrentMempool(_a0 common.MempoolRetriever) error
ValidateTxWithCurrentMempool provides a mock function with given fields: _a0
func (*Transaction) ValidateType ¶
func (_m *Transaction) ValidateType() bool
ValidateType provides a mock function with given fields:
func (*Transaction) Verify ¶
func (_m *Transaction) Verify(_a0 map[string]bool, _a1 *statedb.StateDB, _a2 *statedb.StateDB, _a3 byte, _a4 *incognito_chaincommon.Hash) (bool, error)
Verify provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*Transaction) VerifyMinerCreatedTxBeforeGettingInBlock ¶
func (_m *Transaction) VerifyMinerCreatedTxBeforeGettingInBlock(_a0 *common.MintData, _a1 byte, _a2 common.ChainRetriever, _a3 *common.AccumulatedValues, _a4 common.ShardViewRetriever, _a5 common.BeaconViewRetriever) (bool, error)
VerifyMinerCreatedTxBeforeGettingInBlock provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5
type ValidationEnviroment ¶
ValidationEnviroment is an autogenerated mock type for the ValidationEnviroment type
func (*ValidationEnviroment) BeaconHeight ¶
func (_m *ValidationEnviroment) BeaconHeight() uint64
BeaconHeight provides a mock function with given fields:
func (*ValidationEnviroment) ConfirmedTime ¶
func (_m *ValidationEnviroment) ConfirmedTime() int64
ConfirmedTime provides a mock function with given fields:
func (*ValidationEnviroment) DBData ¶
func (_m *ValidationEnviroment) DBData() [][]byte
DBData provides a mock function with given fields:
func (*ValidationEnviroment) HasCA ¶
func (_m *ValidationEnviroment) HasCA() bool
HasCA provides a mock function with given fields:
func (*ValidationEnviroment) IsConfimed ¶
func (_m *ValidationEnviroment) IsConfimed() bool
IsConfimed provides a mock function with given fields:
func (*ValidationEnviroment) IsPrivacy ¶
func (_m *ValidationEnviroment) IsPrivacy() bool
IsPrivacy provides a mock function with given fields:
func (*ValidationEnviroment) ShardHeight ¶
func (_m *ValidationEnviroment) ShardHeight() uint64
ShardHeight provides a mock function with given fields:
func (*ValidationEnviroment) ShardID ¶
func (_m *ValidationEnviroment) ShardID() int
ShardID provides a mock function with given fields:
func (*ValidationEnviroment) SigPubKey ¶
func (_m *ValidationEnviroment) SigPubKey() []byte
SigPubKey provides a mock function with given fields:
func (*ValidationEnviroment) TokenID ¶
func (_m *ValidationEnviroment) TokenID() incognito_chaincommon.Hash
TokenID provides a mock function with given fields:
func (*ValidationEnviroment) TxAction ¶
func (_m *ValidationEnviroment) TxAction() int
TxAction provides a mock function with given fields:
func (*ValidationEnviroment) TxType ¶
func (_m *ValidationEnviroment) TxType() string
TxType provides a mock function with given fields:
func (*ValidationEnviroment) Version ¶
func (_m *ValidationEnviroment) Version() int
Version provides a mock function with given fields: