sequencer

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeqBatch

type SeqBatch struct {
	Number       types.ArgUint64 `json:"number"`
	AccInputHash common.Hash     `json:"accInputHash"`
	BatchL2Data  types.ArgBytes  `json:"batchL2Data"`
}

SeqBatch structure

func GetData

func GetData(url string, batchNum uint64) (*SeqBatch, error)

GetData returns batch data from the trusted sequencer

type Tracker added in v0.0.4

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

Tracker watches the contract for relevant changes to the sequencer

func NewTracker added in v0.0.4

func NewTracker(cfg config.L1Config, ethClient etherman.Etherman) (*Tracker, error)

NewTracker creates a new Tracker

func (*Tracker) GetAddr added in v0.0.4

func (st *Tracker) GetAddr() common.Address

GetAddr returns the last known address of the Sequencer

func (*Tracker) GetSequenceBatch added in v0.0.4

func (st *Tracker) GetSequenceBatch(batchNum uint64) (*SeqBatch, error)

GetSequenceBatch returns sequence batch for given batch number

func (*Tracker) GetUrl added in v0.0.4

func (st *Tracker) GetUrl() string

GetUrl returns the last known URL of the Sequencer

func (*Tracker) Start added in v0.0.4

func (st *Tracker) Start(ctx context.Context)

Start starts the SequencerTracker

func (*Tracker) Stop added in v0.0.4

func (st *Tracker) Stop()

Stop stops the SequencerTracker

Jump to

Keyboard shortcuts

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