pingpong

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	From uint64 // From chain ID
	To   uint64 // To chain ID
}

Edge defines a unique edge between two ping pong contracts.

type XDapp

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

XDapp defines the deployed pingpong contract xdapp. The XDapp is graph of ping pong pairs that connects all chains to all chains. So given a network of N chains (vertexes), there will be N! pairs (edges).

func Deploy

func Deploy(ctx context.Context, netMgr netman.Manager, backends ethbackend.Backends) (XDapp, error)

func (*XDapp) ExportDeployInfo

func (d *XDapp) ExportDeployInfo(resp types.DeployInfos)

func (*XDapp) LogBalances

func (d *XDapp) LogBalances(ctx context.Context) error

func (*XDapp) StartAllEdges

func (d *XDapp) StartAllEdges(ctx context.Context, count uint64) error

func (*XDapp) WaitDone

func (d *XDapp) WaitDone(ctx context.Context) error

WaitDone waits for all ping pongs to be done. Note this doesn't work on anvil since it doesn't support subscriptions.

Jump to

Keyboard shortcuts

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