Documentation ¶
Index ¶
- type FeeEstimator
- type TxVerifier
- func (_m *TxVerifier) FullValidateTransactions(chainRetriever metadata.ChainRetriever, ...) (bool, error)
- func (_m *TxVerifier) LoadCommitment(tx metadata.Transaction, shardViewRetriever metadata.ShardViewRetriever) (bool, error)
- func (_m *TxVerifier) LoadCommitmentForTxs(txs []metadata.Transaction, shardViewRetriever metadata.ShardViewRetriever) (bool, error)
- func (_m *TxVerifier) UpdateFeeEstimator(estimator txpool.FeeEstimator)
- func (_m *TxVerifier) UpdateTransactionStateDB(newSDB *statedb.StateDB)
- func (_m *TxVerifier) ValidateWithChainState(tx metadata.Transaction, chainRetriever metadata.ChainRetriever, ...) (bool, error)
- func (_m *TxVerifier) ValidateWithoutChainstate(_a0 metadata.Transaction) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeeEstimator ¶
FeeEstimator is an autogenerated mock type for the FeeEstimator type
func (*FeeEstimator) EstimateFee ¶
EstimateFee provides a mock function with given fields: numBlocks, tokenId
func (*FeeEstimator) GetLimitFeeForNativeToken ¶
func (_m *FeeEstimator) GetLimitFeeForNativeToken() uint64
GetLimitFeeForNativeToken provides a mock function with given fields:
func (*FeeEstimator) RegisterBlock ¶
func (_m *FeeEstimator) RegisterBlock(block *types.ShardBlock) error
RegisterBlock provides a mock function with given fields: block
type TxVerifier ¶
TxVerifier is an autogenerated mock type for the TxVerifier type
func (*TxVerifier) FullValidateTransactions ¶
func (_m *TxVerifier) FullValidateTransactions(chainRetriever metadata.ChainRetriever, shardViewRetriever metadata.ShardViewRetriever, beaconViewRetriever metadata.BeaconViewRetriever, txs []metadata.Transaction) (bool, error)
FullValidateTransactions provides a mock function with given fields: chainRetriever, shardViewRetriever, beaconViewRetriever, txs
func (*TxVerifier) LoadCommitment ¶
func (_m *TxVerifier) LoadCommitment(tx metadata.Transaction, shardViewRetriever metadata.ShardViewRetriever) (bool, error)
LoadCommitment provides a mock function with given fields: tx, shardViewRetriever
func (*TxVerifier) LoadCommitmentForTxs ¶
func (_m *TxVerifier) LoadCommitmentForTxs(txs []metadata.Transaction, shardViewRetriever metadata.ShardViewRetriever) (bool, error)
LoadCommitmentForTxs provides a mock function with given fields: txs, shardViewRetriever
func (*TxVerifier) UpdateFeeEstimator ¶
func (_m *TxVerifier) UpdateFeeEstimator(estimator txpool.FeeEstimator)
UpdateFeeEstimator provides a mock function with given fields: estimator
func (*TxVerifier) UpdateTransactionStateDB ¶
func (_m *TxVerifier) UpdateTransactionStateDB(newSDB *statedb.StateDB)
UpdateTransactionStateDB provides a mock function with given fields: newSDB
func (*TxVerifier) ValidateWithChainState ¶
func (_m *TxVerifier) ValidateWithChainState(tx metadata.Transaction, chainRetriever metadata.ChainRetriever, shardViewRetriever metadata.ShardViewRetriever, beaconViewRetriever metadata.BeaconViewRetriever, beaconHeight uint64) (bool, error)
ValidateWithChainState provides a mock function with given fields: tx, chainRetriever, shardViewRetriever, beaconViewRetriever, beaconHeight
func (*TxVerifier) ValidateWithoutChainstate ¶
func (_m *TxVerifier) ValidateWithoutChainstate(_a0 metadata.Transaction) (bool, error)
ValidateWithoutChainstate provides a mock function with given fields: _a0