Documentation ¶
Index ¶
- func Translate(provider types.TraceProvider, rootDepth types.Depth) types.TraceProvider
- type Accessor
- func (t *Accessor) Get(ctx context.Context, game types.Game, ref types.Claim, pos types.Position) (common.Hash, error)
- func (t *Accessor) GetL2BlockNumberChallenge(ctx context.Context, game types.Game) (*types.InvalidL2BlockNumberChallenge, error)
- func (t *Accessor) GetStepData(ctx context.Context, game types.Game, ref types.Claim, pos types.Position) (prestate []byte, proofData []byte, preimageData *types.PreimageOracleData, ...)
- type ProviderSelector
- type TranslatingProvider
- func (p *TranslatingProvider) AbsolutePreStateCommitment(ctx context.Context) (hash common.Hash, err error)
- func (p *TranslatingProvider) Get(ctx context.Context, pos types.Position) (common.Hash, error)
- func (p *TranslatingProvider) GetL2BlockNumberChallenge(ctx context.Context) (*types.InvalidL2BlockNumberChallenge, error)
- func (p *TranslatingProvider) GetStepData(ctx context.Context, pos types.Position) (prestate []byte, proofData []byte, preimageData *types.PreimageOracleData, ...)
- func (p *TranslatingProvider) Original() types.TraceProvider
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) GetL2BlockNumberChallenge ¶ added in v1.7.6
type ProviderSelector ¶
type TranslatingProvider ¶
type TranslatingProvider struct {
// contains filtered or unexported fields
}
func (*TranslatingProvider) AbsolutePreStateCommitment ¶
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
Click to show internal directories.
Click to hide internal directories.