trace

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translate

func Translate(provider types.TraceProvider, rootDepth types.Depth) types.TraceProvider

Translate returns a new TraceProvider that translates any requested positions before passing them on to the specified provider. The translation is done such that the root node for provider is at rootDepth.

Types

type Accessor

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

func NewAccessor

func NewAccessor(selector ProviderSelector) *Accessor

func NewSimpleTraceAccessor

func NewSimpleTraceAccessor(trace types.TraceProvider) *Accessor

func (*Accessor) Get

func (t *Accessor) Get(ctx context.Context, game types.Game, ref types.Claim, pos types.Position) (common.Hash, error)

func (*Accessor) GetL2BlockNumberChallenge added in v1.7.6

func (t *Accessor) GetL2BlockNumberChallenge(ctx context.Context, game types.Game) (*types.InvalidL2BlockNumberChallenge, error)

func (*Accessor) GetStepData

func (t *Accessor) GetStepData(ctx context.Context, game types.Game, ref types.Claim, pos types.Position) (prestate []byte, proofData []byte, preimageData *types.PreimageOracleData, err error)

type ProviderSelector

type ProviderSelector func(ctx context.Context, game types.Game, ref types.Claim, pos types.Position) (types.TraceProvider, error)

type TranslatingProvider

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

func (*TranslatingProvider) AbsolutePreStateCommitment

func (p *TranslatingProvider) AbsolutePreStateCommitment(ctx context.Context) (hash common.Hash, err error)

func (*TranslatingProvider) Get

func (*TranslatingProvider) GetL2BlockNumberChallenge added in v1.7.6

func (p *TranslatingProvider) GetL2BlockNumberChallenge(ctx context.Context) (*types.InvalidL2BlockNumberChallenge, error)

func (*TranslatingProvider) GetStepData

func (p *TranslatingProvider) GetStepData(ctx context.Context, pos types.Position) (prestate []byte, proofData []byte, preimageData *types.PreimageOracleData, err error)

func (*TranslatingProvider) Original

func (p *TranslatingProvider) Original() types.TraceProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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