etherman

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCommittee

type DataCommittee struct {
	AddressesHash      common.Hash
	Members            []DataCommitteeMember
	RequiredSignatures uint64
}

DataCommittee represents a specific committee

type DataCommitteeMember

type DataCommitteeMember struct {
	Addr common.Address
	URL  string
}

DataCommitteeMember represents a member of the Data Committee

type Etherman

type Etherman interface {
	GetCurrentDataCommittee() (*DataCommittee, error)
	GetCurrentDataCommitteeMembers() ([]DataCommitteeMember, error)
	GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
	TrustedSequencer() (common.Address, error)
	WatchSetTrustedSequencer(
		ctx context.Context,
		events chan *polygonvalidium.PolygonvalidiumSetTrustedSequencer,
	) (event.Subscription, error)
	TrustedSequencerURL() (string, error)
	WatchSetTrustedSequencerURL(
		ctx context.Context,
		events chan *polygonvalidium.PolygonvalidiumSetTrustedSequencerURL,
	) (event.Subscription, error)
	HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
	FilterSequenceBatches(
		opts *bind.FilterOpts,
		numBatch []uint64,
	) (*polygonvalidium.PolygonvalidiumSequenceBatchesIterator, error)
}

Etherman defines functions that should be implemented by Etherman

func New

func New(ctx context.Context, cfg config.L1Config) (Etherman, error)

New creates a new etherman

Directories

Path Synopsis
smartcontracts

Jump to

Keyboard shortcuts

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