Documentation
¶
Index ¶
- Variables
- type BatchQueue
- type Sequencer
- func (c *Sequencer) GetNextBatch(ctx context.Context, lastBatchHash sequencing.Hash) (*sequencing.Batch, time.Time, error)
- func (c *Sequencer) SubmitRollupTransaction(ctx context.Context, rollupId []byte, tx []byte) error
- func (c *Sequencer) VerifyBatch(ctx context.Context, batchHash sequencing.Hash) (bool, error)
- type TransactionQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorRollupIdMismatch = errors.New("rollup id mismatch")
ErrorRollupIdMismatch is returned when the rollup id does not match
Functions ¶
This section is empty.
Types ¶
type BatchQueue ¶
type BatchQueue struct {
// contains filtered or unexported fields
}
BatchQueue ...
func (*BatchQueue) AddBatch ¶
func (bq *BatchQueue) AddBatch(batch sequencing.Batch)
AddBatch adds a new transaction to the queue
type Sequencer ¶
type Sequencer struct {
// contains filtered or unexported fields
}
Sequencer implements go-sequencing interface using celestia backend
func NewSequencer ¶
func NewSequencer(daAddress, daAuthToken string, daNamespace []byte, batchTime time.Duration) (*Sequencer, error)
NewSequencer ...
func (*Sequencer) GetNextBatch ¶
func (c *Sequencer) GetNextBatch(ctx context.Context, lastBatchHash sequencing.Hash) (*sequencing.Batch, time.Time, error)
GetNextBatch implements sequencing.Sequencer.
func (*Sequencer) SubmitRollupTransaction ¶
SubmitRollupTransaction implements sequencing.Sequencer.
func (*Sequencer) VerifyBatch ¶
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(max uint64) sequencing.Batch
GetNextBatch extracts a batch of transactions from the queue
Click to show internal directories.
Click to hide internal directories.