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 (*BuilderID) UnmarshalText ¶
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
Click to show internal directories.
Click to hide internal directories.