mempool

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxGas = 21000
)

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationTestSuite

type IntegrationTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

MempoolIntegrationTestSuite is the base test suite for mempool integration tests. It provides the infrastructure to test mempool behavior without mocks.

func NewMempoolIntegrationTestSuite

func NewMempoolIntegrationTestSuite(create network.CreateEvmApp, options ...network.ConfigOption) *IntegrationTestSuite

NewMempoolIntegrationTestSuite creates a new instance of the test suite.

func (*IntegrationTestSuite) FundAccount

func (s *IntegrationTestSuite) FundAccount(addr sdk.AccAddress, amount sdkmath.Int, denom string)

FundAccount funds an account with a specific amount of a given denomination.

func (*IntegrationTestSuite) GetAllBalances

func (s *IntegrationTestSuite) GetAllBalances(addr sdk.AccAddress) sdk.Coins

GetAllBalances returns all balances for the given account address.

func (*IntegrationTestSuite) SetupTest

func (s *IntegrationTestSuite) SetupTest()

SetupTest initializes the test environment with default settings.

func (*IntegrationTestSuite) SetupTestWithChainID

func (s *IntegrationTestSuite) SetupTestWithChainID(chainID testconstants.ChainID)

SetupTestWithChainID initializes the test environment with a specific chain ID.

func (*IntegrationTestSuite) TestBasicSetupAndReadiness

func (s *IntegrationTestSuite) TestBasicSetupAndReadiness()

TestBasicSetupAndReadiness tests comprehensive mempool initialization and readiness

func (*IntegrationTestSuite) TestEVMTransactionComprehensive

func (s *IntegrationTestSuite) TestEVMTransactionComprehensive()

TestEVMTransactionComprehensive tests comprehensive EVM transaction functionality

func (*IntegrationTestSuite) TestMempoolHeightRequirement

func (s *IntegrationTestSuite) TestMempoolHeightRequirement()

TestMempoolHeightRequirement tests that mempool operations fail before block 2

func (*IntegrationTestSuite) TestMempoolInsert

func (s *IntegrationTestSuite) TestMempoolInsert()

TestMempoolInsert tests transaction insertion into the mempool

func (*IntegrationTestSuite) TestMempoolIterator

func (s *IntegrationTestSuite) TestMempoolIterator()

TestMempoolIterator tests iterator functionality

func (*IntegrationTestSuite) TestMempoolRemove

func (s *IntegrationTestSuite) TestMempoolRemove()

TestMempoolRemove tests transaction removal from the mempool

func (*IntegrationTestSuite) TestMempoolSelect

func (s *IntegrationTestSuite) TestMempoolSelect()

TestMempoolSelect tests transaction selection from the mempool

func (*IntegrationTestSuite) TestNonceGappedEVMTransactions

func (s *IntegrationTestSuite) TestNonceGappedEVMTransactions()

TestNonceGappedEVMTransactions tests the behavior of nonce-gapped EVM transactions and the transition from queued to pending when gaps are filled

func (*IntegrationTestSuite) TestSelectBy

func (s *IntegrationTestSuite) TestSelectBy()

TestSelectBy tests the SelectBy functionality with filters

func (*IntegrationTestSuite) TestTransactionOrdering

func (s *IntegrationTestSuite) TestTransactionOrdering()

TestTransactionOrdering tests transaction ordering based on fees

Jump to

Keyboard shortcuts

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