Documentation ¶
Index ¶
- Constants
- Variables
- func BuildAlphabetPreimage(traceIndex *big.Int, claim *big.Int) []byte
- type AlphabetTraceProvider
- func (ap *AlphabetTraceProvider) AbsolutePreStateCommitment(_ context.Context) (common.Hash, error)
- func (ap *AlphabetTraceProvider) Get(ctx context.Context, i types.Position) (common.Hash, error)
- func (ap *AlphabetTraceProvider) GetL2BlockNumberChallenge(_ context.Context) (*types.InvalidL2BlockNumberChallenge, error)
- func (ap *AlphabetTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
Constants ¶
View Source
const (
L2ClaimBlockNumberLocalIndex = 4
)
Variables ¶
View Source
var (
ErrIndexTooLarge = errors.New("index is larger than the maximum index")
)
View Source
var PrestateProvider = &alphabetPrestateProvider{}
PrestateProvider provides the alphabet VM prestate
Functions ¶
Types ¶
type AlphabetTraceProvider ¶
type AlphabetTraceProvider struct {
// contains filtered or unexported fields
}
AlphabetTraceProvider is a [TraceProvider] that monotonically increments the starting l2 block number as the claim value.
func NewTraceProvider ¶
func NewTraceProvider(startingBlockNumber *big.Int, depth types.Depth) *AlphabetTraceProvider
NewTraceProvider returns a new [AlphabetProvider].
func (*AlphabetTraceProvider) AbsolutePreStateCommitment ¶
func (*AlphabetTraceProvider) GetL2BlockNumberChallenge ¶ added in v1.7.6
func (ap *AlphabetTraceProvider) GetL2BlockNumberChallenge(_ context.Context) (*types.InvalidL2BlockNumberChallenge, error)
func (*AlphabetTraceProvider) GetStepData ¶
func (ap *AlphabetTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
Click to show internal directories.
Click to hide internal directories.