Documentation
¶
Index ¶
- type BasedSequencer
- func (b *BasedSequencer) GetNextBatch(ctx context.Context, lastBatchHash sequencing.Hash) (*sequencing.Batch, time.Time, error)
- func (b *BasedSequencer) SubmitRollupTransaction(ctx context.Context, rollupId sequencing.RollupId, tx sequencing.Tx) error
- func (b *BasedSequencer) VerifyBatch(ctx context.Context, batchHash sequencing.Hash) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasedSequencer ¶
type BasedSequencer struct {
// contains filtered or unexported fields
}
BasedSequencer implements go-sequencing API with based sequencing logic.
All transactions are passed directly to DA to be saved in a namespace. Each transaction is submitted as separate blob. When batch is requested DA blocks are scanned to read all blobs from given namespace at given height.
func NewSequencer ¶
func NewSequencer(da da.DA) *BasedSequencer
NewSequencer initializes a BasedSequencer with the provided DA implementation.
func (*BasedSequencer) GetNextBatch ¶
func (b *BasedSequencer) GetNextBatch(ctx context.Context, lastBatchHash sequencing.Hash) (*sequencing.Batch, time.Time, error)
GetNextBatch reads data from namespace in DA and builds transactions batches.
func (*BasedSequencer) SubmitRollupTransaction ¶
func (b *BasedSequencer) SubmitRollupTransaction(ctx context.Context, rollupId sequencing.RollupId, tx sequencing.Tx) error
SubmitRollupTransaction submits a transaction directly to DA, as a single blob.
func (*BasedSequencer) VerifyBatch ¶
func (b *BasedSequencer) VerifyBatch(ctx context.Context, batchHash sequencing.Hash) (bool, error)
VerifyBatch ensures data-availability of a batch in DA.
Click to show internal directories.
Click to hide internal directories.