Documentation
¶
Index ¶
- Variables
- type DummySequencer
- func (d *DummySequencer) GetNextBatch(ctx context.Context, req sequencing.GetNextBatchRequest) (*sequencing.GetNextBatchResponse, error)
- func (d *DummySequencer) SubmitRollupTransaction(ctx context.Context, req sequencing.SubmitRollupTransactionRequest) (*sequencing.SubmitRollupTransactionResponse, error)
- func (d *DummySequencer) VerifyBatch(ctx context.Context, req sequencing.VerifyBatchRequest) (*sequencing.VerifyBatchResponse, error)
- type TransactionQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRollupId = errors.New("invalid rollup id")
ErrInvalidRollupId is returned when the rollup id is invalid
Functions ¶
This section is empty.
Types ¶
type DummySequencer ¶
type DummySequencer struct {
// contains filtered or unexported fields
}
DummySequencer is a dummy sequencer for testing that serves a single rollup
func NewDummySequencer ¶
func NewDummySequencer(rollupId []byte) *DummySequencer
NewDummySequencer creates a new DummySequencer
func (*DummySequencer) GetNextBatch ¶
func (d *DummySequencer) GetNextBatch(ctx context.Context, req sequencing.GetNextBatchRequest) (*sequencing.GetNextBatchResponse, error)
GetNextBatch implements sequencing.Sequencer.
func (*DummySequencer) SubmitRollupTransaction ¶
func (d *DummySequencer) SubmitRollupTransaction(ctx context.Context, req sequencing.SubmitRollupTransactionRequest) (*sequencing.SubmitRollupTransactionResponse, error)
SubmitRollupTransaction implements sequencing.Sequencer.
func (*DummySequencer) VerifyBatch ¶
func (d *DummySequencer) VerifyBatch(ctx context.Context, req sequencing.VerifyBatchRequest) (*sequencing.VerifyBatchResponse, error)
VerifyBatch implements sequencing.Sequencer.
type TransactionQueue ¶
type TransactionQueue struct {
// contains filtered or unexported fields
}
TransactionQueue is a queue of transactions
func NewTransactionQueue ¶
func NewTransactionQueue() *TransactionQueue
NewTransactionQueue creates a new TransactionQueue
func (*TransactionQueue) AddTransaction ¶
func (tq *TransactionQueue) AddTransaction(tx sequencing.Tx)
AddTransaction adds a new transaction to the queue
func (*TransactionQueue) GetNextBatch ¶
func (tq *TransactionQueue) GetNextBatch(maxBytes uint64) *sequencing.Batch
GetNextBatch extracts a batch of transactions from the queue
Click to show internal directories.
Click to hide internal directories.