sequencer

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log  log.Logger
	Name string

	// API to submit txs to
	L1Client *ethclient.Client

	// API to hit for batch data
	L2Client *ethclient.Client

	RollupNode *sources.RollupClient

	// Limit the size of txs
	MinL1TxSize uint64
	MaxL1TxSize uint64

	// Where to send the batch txs to.
	BatchInboxAddress common.Address

	// The batcher can decide to set it shorter than the actual timeout,
	//  since submitting continued channel data to L1 is not instantaneous.
	//  It's not worth it to work with nearly timed-out channels.
	ChannelTimeout uint64

	// Chain ID of the L1 chain to submit txs to.
	ChainID *big.Int

	// Private key to sign batch txs with
	PrivKey *ecdsa.PrivateKey

	PollInterval time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL