Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ErrNilL1View = errors.New("every supervisor node L1 block view is nil")
    Functions ¶
This section is empty.
Types ¶
type LegacyProposalData ¶
type LegacyProposalData struct {
	HeadL1      eth.L1BlockRef
	SafeL2      eth.L2BlockRef
	FinalizedL2 eth.L2BlockRef
	// Support legacy metrics when possible
	BlockRef eth.L2BlockRef
}
    type Proposal ¶
type Proposal struct {
	// Root is the proposal hash
	Root common.Hash
	// SequenceNum identifies the position in the overall state transition.
	// For output roots this is the L2 block number.
	// For super roots this is the timestamp.
	SequenceNum uint64
	CurrentL1   eth.BlockID
	// Legacy provides data that is only available when retrieving data from a single rollup node.
	// It should only be used for L2OO proposals.
	Legacy LegacyProposalData
}
    type ProposalSource ¶
type RollupProposalSource ¶
type RollupProposalSource struct {
	// contains filtered or unexported fields
}
    func NewRollupProposalSource ¶
func NewRollupProposalSource(provider dial.RollupProvider) *RollupProposalSource
func (*RollupProposalSource) Close ¶
func (r *RollupProposalSource) Close()
func (*RollupProposalSource) ProposalAtSequenceNum ¶
func (*RollupProposalSource) SyncStatus ¶
func (r *RollupProposalSource) SyncStatus(ctx context.Context) (SyncStatus, error)
type SupervisorClient ¶
type SupervisorProposalSource ¶
type SupervisorProposalSource struct {
	// contains filtered or unexported fields
}
    func NewSupervisorProposalSource ¶
func NewSupervisorProposalSource(logger log.Logger, clients ...SupervisorClient) *SupervisorProposalSource
func (*SupervisorProposalSource) Close ¶
func (s *SupervisorProposalSource) Close()
func (*SupervisorProposalSource) ProposalAtSequenceNum ¶
func (*SupervisorProposalSource) SyncStatus ¶
func (s *SupervisorProposalSource) SyncStatus(ctx context.Context) (SyncStatus, error)
type SyncStatus ¶
type SyncStatus struct {
	CurrentL1   eth.L1BlockRef
	SafeL2      uint64
	FinalizedL2 uint64
}
     Click to show internal directories. 
   Click to hide internal directories.