werc20

package
v0.4.2 Latest Latest
Warning

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

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

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 DepositEvent

type DepositEvent struct {
	Dst common.Address
	Wad *big.Int
}

type PrecompileIntegrationTestSuite

type PrecompileIntegrationTestSuite struct {
	// contains filtered or unexported fields
}

type PrecompileUnitTestSuite

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

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()

type WithdrawalEvent

type WithdrawalEvent struct {
	Src common.Address
	Wad *big.Int
}

Jump to

Keyboard shortcuts

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