Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
Batch is a collection of transactions
type BatchVerifier ¶
type BatchVerifier interface { // VerifyBatch verifies a batch of transactions received from the sequencer VerifyBatch(ctx context.Context, batch *Batch) (bool, error) }
BatchVerifier provides a method for verifying a batch of transactions received from the sequencer
type Sequencer ¶
type Sequencer interface { SequencerInput SequencerOutput BatchVerifier }
Sequencer is a generic interface for a rollup sequencer
type SequencerInput ¶
type SequencerInput interface { // SubmitRollupTransaction submits a transaction from rollup to sequencer SubmitRollupTransaction(ctx context.Context, rollupId RollupId, tx Tx) error }
SequencerInput provides a method for submitting a transaction from rollup to sequencer
type SequencerOutput ¶
type SequencerOutput interface { // GetNextBatch returns the next batch of transactions from sequencer to rollup // lastBatch is the last batch of transactions received from the sequencer // returns the next batch of transactions and an error if any from the sequencer GetNextBatch(ctx context.Context, lastBatch *Batch) (*Batch, error) }
SequencerOutput provides a method for getting the next batch of transactions from sequencer to rollup
Click to show internal directories.
Click to hide internal directories.