state

package
v0.0.0-...-3966bb1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedState

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

SharedState represents the internal state of a prover.

func New

func New() *SharedState

New creates a new prover shared state instance.

func (*SharedState) GetL1Current

func (s *SharedState) GetL1Current() *types.Header

GetL1Current returns the current L1 header cursor.

func (*SharedState) GetLastHandledBlockID

func (s *SharedState) GetLastHandledBlockID() uint64

GetLastHandledBlockID returns the last handled block ID.

func (*SharedState) GetTiers

func (s *SharedState) GetTiers() []*rpc.TierProviderTierWithID

GetTiers returns the current proof tiers.

func (*SharedState) SetL1Current

func (s *SharedState) SetL1Current(header *types.Header)

SetL1Current sets the current L1 header cursor.

func (*SharedState) SetLastHandledBlockID

func (s *SharedState) SetLastHandledBlockID(blockID uint64)

SetLastHandledBlockID sets the last handled block ID.

func (*SharedState) SetTiers

func (s *SharedState) SetTiers(tiers []*rpc.TierProviderTierWithID)

SetTiers sets the current proof tiers.

Jump to

Keyboard shortcuts

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