seqtypes

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGeneric                = &rpc.JsonError{Code: -38500, Message: "sequencer error"}
	ErrUnknownKind            = &rpc.JsonError{Code: -38501, Message: "unknown kind"}
	ErrUnknownBuilder         = &rpc.JsonError{Code: -38502, Message: "unknown builder"}
	ErrNotImplemented         = &rpc.JsonError{Code: -38503, Message: "not implemented"}
	ErrUnknownJob             = &rpc.JsonError{Code: -38510, Message: "unknown job"}
	ErrConflictingJob         = &rpc.JsonError{Code: -38511, Message: "conflicting job"}
	ErrNotSealed              = &rpc.JsonError{Code: -38520, Message: "block not yet sealed"}
	ErrAlreadySealed          = &rpc.JsonError{Code: -38521, Message: "block already sealed"}
	ErrUnsigned               = &rpc.JsonError{Code: -38530, Message: "block not yet signed"}
	ErrAlreadySigned          = &rpc.JsonError{Code: -38531, Message: "block already signed"}
	ErrUncommitted            = &rpc.JsonError{Code: -38540, Message: "block not yet committed"}
	ErrAlreadyCommitted       = &rpc.JsonError{Code: -38541, Message: "block already committed"}
	ErrSequencerInactive      = &rpc.JsonError{Code: -38550, Message: "sequencer inactive"}
	ErrSequencerAlreadyActive = &rpc.JsonError{Code: -38551, Message: "sequencer already active"}
	ErrBackendInactive        = &rpc.JsonError{Code: -38560, Message: "backend inactive"}
	ErrBackendAlreadyStarted  = &rpc.JsonError{Code: -38561, Message: "backend already started"}
)
View Source
var ErrInvalidID = errors.New("invalid ID")

Functions

This section is empty.

Types

type BuildJobID

type BuildJobID genericID

BuildJobID identifies a block-building job. Multiple alternative blocks may be built in parallel.

func RandomJobID

func RandomJobID() BuildJobID

func (BuildJobID) MarshalText

func (id BuildJobID) MarshalText() ([]byte, error)

func (BuildJobID) String

func (id BuildJobID) String() string

func (*BuildJobID) UnmarshalText

func (id *BuildJobID) UnmarshalText(data []byte) error

type BuildOpts

type BuildOpts struct {
	// Parent block to build on top of
	Parent common.Hash `json:"parent"`

	// L1Origin overrides the L1 origin of the block.
	// Optional, by default the L1 origin of the parent block
	// is progressed when first allowed (respecting time invariants).
	L1Origin *common.Hash `json:"l1Origin,omitempty"`
}

type BuilderID

type BuilderID genericID

func (BuilderID) MarshalText

func (id BuilderID) MarshalText() ([]byte, error)

func (BuilderID) String

func (id BuilderID) String() string

func (*BuilderID) UnmarshalText

func (id *BuilderID) UnmarshalText(data []byte) error

type CommitterID

type CommitterID genericID

func (CommitterID) MarshalText

func (id CommitterID) MarshalText() ([]byte, error)

func (CommitterID) String

func (id CommitterID) String() string

func (*CommitterID) UnmarshalText

func (id *CommitterID) UnmarshalText(data []byte) error

type PublisherID

type PublisherID genericID

func (PublisherID) MarshalText

func (id PublisherID) MarshalText() ([]byte, error)

func (PublisherID) String

func (id PublisherID) String() string

func (*PublisherID) UnmarshalText

func (id *PublisherID) UnmarshalText(data []byte) error

type SequencerID

type SequencerID genericID

func (SequencerID) MarshalText

func (id SequencerID) MarshalText() ([]byte, error)

func (SequencerID) String

func (id SequencerID) String() string

func (*SequencerID) UnmarshalText

func (id *SequencerID) UnmarshalText(data []byte) error

type SignerID

type SignerID genericID

func (SignerID) MarshalText

func (id SignerID) MarshalText() ([]byte, error)

func (SignerID) String

func (id SignerID) String() string

func (*SignerID) UnmarshalText

func (id *SignerID) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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