evm

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: LGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestTimeout = time.Second * 600

Functions

func WaitForProposalExecuted

func WaitForProposalExecuted(client TestClient, bridge common.Address) error

Types

type IntegrationTestSuite

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

func SetupEVM2EVMTestSuite

func SetupEVM2EVMTestSuite(fabric1, fabric2 calls.TxFabric, client1, client2 TestClient, relayerAddresses1, relayerAddresses2 []common.Address) *IntegrationTestSuite

func (*IntegrationTestSuite) SetupSuite

func (s *IntegrationTestSuite) SetupSuite()

func (*IntegrationTestSuite) SetupTest

func (s *IntegrationTestSuite) SetupTest()

func (*IntegrationTestSuite) TearDownSuite

func (s *IntegrationTestSuite) TearDownSuite()

func (*IntegrationTestSuite) TearDownTest

func (s *IntegrationTestSuite) TearDownTest()

func (*IntegrationTestSuite) TestErc20Deposit

func (s *IntegrationTestSuite) TestErc20Deposit()

func (*IntegrationTestSuite) TestErc721Deposit

func (s *IntegrationTestSuite) TestErc721Deposit()

func (*IntegrationTestSuite) TestGenericDeposit

func (s *IntegrationTestSuite) TestGenericDeposit()

type TestClient

type TestClient interface {
	local.E2EClient
	LatestBlock() (*big.Int, error)
	FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, startBlock *big.Int, endBlock *big.Int) ([]types.Log, error)
	SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
}

Jump to

Keyboard shortcuts

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