etherman

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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 {
	GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
	HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
	BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
	CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

	GetCurrentDataCommittee() (*DataCommittee, error)
	GetCurrentDataCommitteeMembers() ([]DataCommitteeMember, error)
	TrustedSequencer(ctx context.Context) (common.Address, error)
	WatchSetTrustedSequencer(
		ctx context.Context,
		events chan *polygonvalidiumetrog.PolygonvalidiumetrogSetTrustedSequencer,
	) (event.Subscription, error)
	TrustedSequencerURL(ctx context.Context) (string, error)
	WatchSetTrustedSequencerURL(
		ctx context.Context,
		events chan *polygonvalidiumetrog.PolygonvalidiumetrogSetTrustedSequencerURL,
	) (event.Subscription, error)
	FilterSequenceBatches(
		opts *bind.FilterOpts,
		numBatch []uint64,
	) (*polygonvalidiumetrog.PolygonvalidiumetrogSequenceBatchesIterator, 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

Jump to

Keyboard shortcuts

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