Documentation ¶
Index ¶
- type CannonMetricer
- type CannonPrestateProvider
- type CannonTraceProvider
- func (p *CannonTraceProvider) AbsolutePreStateCommitment(_ context.Context) (common.Hash, error)
- func (p *CannonTraceProvider) Get(ctx context.Context, pos types.Position) (common.Hash, error)
- func (p *CannonTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
- func (p *CannonTraceProvider) SetMaxDepth(gameDepth uint64)
- type Executor
- type GameInputsSource
- type L1HeadSource
- type L2HeaderSource
- type LocalGameInputs
- type ProofGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CannonMetricer ¶
type CannonMetricer interface {
RecordCannonExecutionTime(t float64)
}
type CannonPrestateProvider ¶ added in v1.4.2
type CannonPrestateProvider struct {
// contains filtered or unexported fields
}
func NewPrestateProvider ¶ added in v1.4.2
func NewPrestateProvider(prestate string) *CannonPrestateProvider
func (*CannonPrestateProvider) AbsolutePreStateCommitment ¶ added in v1.4.2
type CannonTraceProvider ¶
type CannonTraceProvider struct {
// contains filtered or unexported fields
}
func NewTraceProvider ¶
func NewTraceProvider(logger log.Logger, m CannonMetricer, cfg *config.Config, localContext common.Hash, localInputs LocalGameInputs, dir string, gameDepth uint64) *CannonTraceProvider
func (*CannonTraceProvider) AbsolutePreStateCommitment ¶
func (*CannonTraceProvider) GetStepData ¶
func (p *CannonTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
func (*CannonTraceProvider) SetMaxDepth ¶ added in v1.2.0
func (p *CannonTraceProvider) SetMaxDepth(gameDepth uint64)
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(logger log.Logger, m CannonMetricer, cfg *config.Config, inputs LocalGameInputs) *Executor
type GameInputsSource ¶
type L1HeadSource ¶ added in v1.4.2
type L2HeaderSource ¶ added in v1.4.2
type LocalGameInputs ¶
type LocalGameInputs struct { L1Head common.Hash L2Head common.Hash L2OutputRoot common.Hash L2Claim common.Hash L2BlockNumber *big.Int }
func FetchLocalInputs ¶ added in v1.4.2
func FetchLocalInputs(ctx context.Context, caller GameInputsSource, l2Client L2HeaderSource) (LocalGameInputs, error)
func FetchLocalInputsFromProposals ¶ added in v1.4.2
func FetchLocalInputsFromProposals(ctx context.Context, caller L1HeadSource, l2Client L2HeaderSource, agreedOutput contracts.Proposal, claimedOutput contracts.Proposal) (LocalGameInputs, error)
Click to show internal directories.
Click to hide internal directories.