Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestPrecompileIntegrationTestSuite ¶
func TestPrecompileIntegrationTestSuite(t *testing.T, create network.CreateEvmApp, options ...network.ConfigOption)
Types ¶
type CallsData ¶
type CallsData struct {
// contains filtered or unexported fields
}
CallsData is a helper struct to hold the addresses and ABIs for the different contract instances that are subject to testing here.
type PrecompileIntegrationTestSuite ¶
type PrecompileIntegrationTestSuite struct {
// contains filtered or unexported fields
}
type PrecompileUnitTestSuite ¶
func NewPrecompileUnitTestSuite ¶
func NewPrecompileUnitTestSuite( create network.CreateEvmApp, options ...network.ConfigOption, ) *PrecompileUnitTestSuite
func (*PrecompileUnitTestSuite) SetupTest ¶
func (s *PrecompileUnitTestSuite) SetupTest(chainID testconstants.ChainID)
SetupTest allows to configure the testing suite embedding a network with a custom chainID. This is important to check that the correct address is used for the precompile.
func (*PrecompileUnitTestSuite) TestEmitDepositEvent ¶
func (s *PrecompileUnitTestSuite) TestEmitDepositEvent()
func (*PrecompileUnitTestSuite) TestEmitWithdrawalEvent ¶
func (s *PrecompileUnitTestSuite) TestEmitWithdrawalEvent()
Click to show internal directories.
Click to hide internal directories.