sequencer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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       rpc.ArgUint64 `json:"number"`
	AccInputHash common.Hash   `json:"accInputHash"`
	BatchL2Data  rpc.ArgBytes  `json:"batchL2Data"`
}

SeqBatch structure

func GetData

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

GetData returns batch data from the trusted sequencer

type SequencerTracker

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

SequencerTracker watches the contract for relevant changes to the sequencer

func NewSequencerTracker

func NewSequencerTracker(cfg config.L1Config, ethClient *etherman.Etherman) (*SequencerTracker, error)

NewSequencerTracker creates a new SequencerTracker

func (*SequencerTracker) GetAddr

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

GetAddr returns the last known address of the Sequencer

func (*SequencerTracker) GetUrl

func (st *SequencerTracker) GetUrl() string

GetUrl returns the last known URL of the Sequencer

func (*SequencerTracker) Start

func (st *SequencerTracker) Start()

Start starts the SequencerTracker

func (*SequencerTracker) Stop

func (st *SequencerTracker) Stop()

Stop stops the SequencerTracker

Jump to

Keyboard shortcuts

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