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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeEstimator

type FeeEstimator struct {
	mock.Mock
}

FeeEstimator is an autogenerated mock type for the FeeEstimator type

func (*FeeEstimator) EstimateFee

func (_m *FeeEstimator) EstimateFee(numBlocks uint64, tokenId *common.Hash) (uint64, error)

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

type TxVerifier struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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