cannon

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CannonTraceProvider

type CannonTraceProvider struct {
	types.PrestateProvider
	// contains filtered or unexported fields
}

func NewTraceProvider

func NewTraceProvider(logger log.Logger, m vm.Metricer, cfg vm.Config, vmCfg vm.OracleServerExecutor, prestateProvider types.PrestateProvider, prestate string, localInputs utils.LocalGameInputs, dir string, gameDepth types.Depth) *CannonTraceProvider

func (*CannonTraceProvider) Get

func (*CannonTraceProvider) GetL2BlockNumberChallenge added in v1.7.6

func (p *CannonTraceProvider) GetL2BlockNumberChallenge(_ context.Context) (*types.InvalidL2BlockNumberChallenge, error)

func (*CannonTraceProvider) GetStepData

type CannonTraceProviderForTest added in v1.5.0

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 added in v1.5.0

func NewTraceProviderForTest(logger log.Logger, m vm.Metricer, cfg *config.Config, localInputs utils.LocalGameInputs, dir string, gameDepth types.Depth) *CannonTraceProviderForTest

func (*CannonTraceProviderForTest) FindStep added in v1.5.1

func (p *CannonTraceProviderForTest) FindStep(ctx context.Context, start uint64, preimage utils.PreimageOpt) (uint64, error)

type StateConverter added in v1.9.3

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

func NewStateConverter added in v1.9.3

func NewStateConverter(vmConfig vm.Config) *StateConverter

func (*StateConverter) ConvertStateToProof added in v1.9.3

func (c *StateConverter) ConvertStateToProof(ctx context.Context, statePath string) (*utils.ProofData, uint64, bool, error)

Jump to

Keyboard shortcuts

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