standardbuilder

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func (*Builder) Close

func (b *Builder) Close() error

func (*Builder) ID

func (b *Builder) ID() seqtypes.BuilderID

func (*Builder) NewJob

func (b *Builder) NewJob(ctx context.Context, opts seqtypes.BuildOpts) (work.BuildJob, error)

func (*Builder) String

func (b *Builder) String() string

type Config

type Config struct {
	// L1 execution-layer RPC endpoint
	L1EL endpoint.MustRPC `yaml:"l1EL"`

	// L2 execution-layer RPC endpoint
	L2EL endpoint.MustRPC `yaml:"l2EL"`
	// L2 consensus-layer RPC endpoint
	L2CL endpoint.MustRPC `yaml:"l2CL"`
}

func (*Config) Start

func (c *Config) Start(ctx context.Context, id seqtypes.BuilderID, opts *work.ServiceOpts) (work.Builder, error)

type Job

type Job struct {
	// contains filtered or unexported fields
}

func (*Job) Cancel

func (job *Job) Cancel(ctx context.Context) error

func (*Job) Close

func (job *Job) Close()

func (*Job) ID

func (job *Job) ID() seqtypes.BuildJobID

func (*Job) IncludeTx

func (job *Job) IncludeTx(ctx context.Context, tx hexutil.Bytes) error

func (*Job) Open

func (job *Job) Open(ctx context.Context) error

func (*Job) Seal

func (job *Job) Seal(ctx context.Context) (work.Block, error)

func (*Job) String

func (job *Job) String() string

type L1BlockRefByHash

type L1BlockRefByHash interface {
	L1BlockRefByHash(ctx context.Context, h common.Hash) (eth.L1BlockRef, error)
}

type L2BlockRefByHash

type L2BlockRefByHash interface {
	L2BlockRefByHash(ctx context.Context, h common.Hash) (eth.L2BlockRef, error)
}

Jump to

Keyboard shortcuts

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