proposer

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NumTxnsToBatchExecute = 10 // TODO: Make this configurable

Variables

This section is empty.

Functions

This section is empty.

Types

type Proposer

type Proposer interface {
	ProposalInit() (types.ProposalInit, error)

	// Blocks until BlockInfo is ready, then returns it.
	BlockInfo(ctx context.Context) (types.BlockInfo, bool)

	// Returns a channel that emits transaction batches (can emit multiple times).
	Txns(ctx context.Context) <-chan []types.Transaction

	// Blocks until the proposal commitment is ready or context is cancelled.
	ProposalCommitment() (types.ProposalCommitment, error)

	ProposalFin() (types.ProposalFin, error)
}

func New

func New(
	builder *builder.Builder,
	mempool *mempool.Pool,
	sequencerAddress *felt.Felt,
	log utils.Logger,
) Proposer

Jump to

Keyboard shortcuts

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