etherman

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEvent

func ParseEvent(event *cdkvalidium.CdkvalidiumSequenceBatches, txData []byte) (uint64, []common.Hash, error)

ParseEvent unpacks the keys in a SequenceBatches event

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 struct {
	EthClient     ethereumClient
	CDKValidium   *cdkvalidium.Cdkvalidium
	DataCommittee *cdkdatacommittee.Cdkdatacommittee
}

Etherman is the implementation of EtherMan.

func New

func New(cfg config.L1Config) (*Etherman, error)

New creaters a enw etherman

func (*Etherman) GetCurrentDataCommittee

func (e *Etherman) GetCurrentDataCommittee() (*DataCommittee, error)

GetCurrentDataCommittee return the currently registered data committee

func (*Etherman) GetCurrentDataCommitteeMembers

func (e *Etherman) GetCurrentDataCommitteeMembers() ([]DataCommitteeMember, error)

GetCurrentDataCommitteeMembers return the currently registered data committee members

func (*Etherman) GetTx

func (e *Etherman) GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)

GetTx function get ethereum tx

func (*Etherman) TrustedSequencer

func (e *Etherman) TrustedSequencer() (common.Address, error)

TrustedSequencer gets trusted sequencer address

Directories

Path Synopsis
smartcontracts

Jump to

Keyboard shortcuts

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