Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher handles the creation and submission of L2 batches to L1
func NewBatcher ¶
func NewBatcher(rollupCfg *rollup.Config, batcherKey *ecdsa.PrivateKey, chain fakel1.L1Chain) *Batcher
NewBatcher creates a new batcher instance
func (*Batcher) CreateAndSendBatch ¶
func (b *Batcher) CreateAndSendBatch(payloads []engine.ExecutableData, parentHash common.Hash) error
CreateAndSendBatch creates a batch and prepares it for sending to L1
func (*Batcher) CreateSpanBatches ¶
func (b *Batcher) CreateSpanBatches(payloads []engine.ExecutableData) ([][]byte, error)
CreateSpanBatch creates a span batch from the given payloads
Click to show internal directories.
Click to hide internal directories.