Documentation ¶
Index ¶
- type CannonMetricer
- type CannonPrestateProvider
- type CannonTraceProvider
- func (p *CannonTraceProvider) Get(ctx context.Context, pos types.Position) (common.Hash, error)
- func (p *CannonTraceProvider) GetL2BlockNumberChallenge(_ context.Context) (*types.InvalidL2BlockNumberChallenge, error)
- func (p *CannonTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
- type CannonTraceProviderForTest
- type Executor
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 ¶
type CannonPrestateProvider struct {
// contains filtered or unexported fields
}
func NewPrestateProvider ¶
func NewPrestateProvider(prestate string) *CannonPrestateProvider
func (*CannonPrestateProvider) AbsolutePreStateCommitment ¶
type CannonTraceProvider ¶
type CannonTraceProvider struct { types.PrestateProvider // contains filtered or unexported fields }
func NewTraceProvider ¶
func NewTraceProvider(logger log.Logger, m CannonMetricer, cfg *config.Config, prestateProvider types.PrestateProvider, prestate string, localInputs utils.LocalGameInputs, dir string, gameDepth types.Depth) *CannonTraceProvider
func (*CannonTraceProvider) GetL2BlockNumberChallenge ¶
func (p *CannonTraceProvider) GetL2BlockNumberChallenge(_ context.Context) (*types.InvalidL2BlockNumberChallenge, error)
func (*CannonTraceProvider) GetStepData ¶
func (p *CannonTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
type CannonTraceProviderForTest ¶
type CannonTraceProviderForTest struct {
*CannonTraceProvider
}
CannonTraceProviderForTest is a CannonTraceProvider that can find the step referencing the preimage read Only to be used for testing
func NewTraceProviderForTest ¶
func NewTraceProviderForTest(logger log.Logger, m CannonMetricer, cfg *config.Config, localInputs utils.LocalGameInputs, dir string, gameDepth types.Depth) *CannonTraceProviderForTest
func (*CannonTraceProviderForTest) FindStep ¶
func (p *CannonTraceProviderForTest) FindStep(ctx context.Context, start uint64, preimage utils.PreimageOpt) (uint64, error)
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(logger log.Logger, m CannonMetricer, cfg *config.Config, prestate string, inputs utils.LocalGameInputs) *Executor
Click to show internal directories.
Click to hide internal directories.