Documentation ¶
Index ¶
- type AsteriscFactoryHelper
- func (h *AsteriscFactoryHelper) CreateBisectionGameExtraData(l2Node string, l2BlockNumber uint64, cfg *op_e2e_disputegame.GameCfg) []byte
- func (h *AsteriscFactoryHelper) GetL1Head(ctx context.Context, game contracts.FaultDisputeGameContract) eth.BlockID
- func (h *AsteriscFactoryHelper) PreimageHelper(ctx context.Context) *preimage.Helper
- func (h *AsteriscFactoryHelper) StartChallenger(ctx context.Context, name string, options ...op_e2e_challenger.Option) *op_e2e_challenger.Helper
- func (h *AsteriscFactoryHelper) StartOutputAsteriscGame(ctx context.Context, l2Node string, l2BlockNumber uint64, ...) *OutputAsteriscGameHelper
- func (h *AsteriscFactoryHelper) StartOutputAsteriscGameWithCorrectRoot(ctx context.Context, l2Node string, l2BlockNumber uint64, ...) *OutputAsteriscGameHelper
- func (h *AsteriscFactoryHelper) WaitForBlock(l2Node string, l2BlockNumber uint64, cfg *op_e2e_disputegame.GameCfg)
- type OutputAsteriscGameHelper
- func (g *OutputAsteriscGameHelper) ChallengeToPreimageLoad(ctx context.Context, outputRootClaim *op_e2e_disputegame.ClaimHelper, ...)
- func (g *OutputAsteriscGameHelper) CreateHonestActor(ctx context.Context, l2Node string, ...) *op_e2e_disputegame.OutputHonestHelper
- func (g *OutputAsteriscGameHelper) CreateStepLargePreimageLoadCheck(ctx context.Context, sender common.Address) op_e2e_disputegame.PreimageLoadCheck
- func (g *OutputAsteriscGameHelper) CreateStepPreimageLoadCheck(ctx context.Context) op_e2e_disputegame.PreimageLoadCheck
- func (g *OutputAsteriscGameHelper) StartChallenger(ctx context.Context, name string, options ...op_e2e_challenger.Option) *op_e2e_challenger.Helper
- func (g *OutputAsteriscGameHelper) VerifyPreimage(ctx context.Context, outputRootClaim *op_e2e_disputegame.ClaimHelper, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsteriscFactoryHelper ¶
type AsteriscFactoryHelper struct {
op_e2e_disputegame.FactoryHelper
}
func NewAsteriscFactoryHelper ¶
func NewAsteriscFactoryHelper(t *testing.T, ctx context.Context, system op_e2e_disputegame.DisputeSystem) *AsteriscFactoryHelper
func (*AsteriscFactoryHelper) CreateBisectionGameExtraData ¶
func (h *AsteriscFactoryHelper) CreateBisectionGameExtraData(l2Node string, l2BlockNumber uint64, cfg *op_e2e_disputegame.GameCfg) []byte
CreateBisectionGameExtraData overrides op_e2e_disputegame.FactoryHelper CreateBisectionGameExtraData method Identical to FactoryHelper implementation
func (*AsteriscFactoryHelper) GetL1Head ¶
func (h *AsteriscFactoryHelper) GetL1Head(ctx context.Context, game contracts.FaultDisputeGameContract) eth.BlockID
GetL1Head overrides op_e2e_disputegame.FactoryHelper GetL1Head method Identical to FactoryHelper implementation
func (*AsteriscFactoryHelper) PreimageHelper ¶
func (h *AsteriscFactoryHelper) PreimageHelper(ctx context.Context) *preimage.Helper
PreimageHelper overrides op_e2e_disputegame.FactoryHelper PreimageHelper method
func (*AsteriscFactoryHelper) StartChallenger ¶
func (h *AsteriscFactoryHelper) StartChallenger(ctx context.Context, name string, options ...op_e2e_challenger.Option) *op_e2e_challenger.Helper
StartChallenger overrides op_e2e_disputegame.FactoryHelper StartChallenger method
func (*AsteriscFactoryHelper) StartOutputAsteriscGame ¶
func (h *AsteriscFactoryHelper) StartOutputAsteriscGame(ctx context.Context, l2Node string, l2BlockNumber uint64, rootClaim common.Hash, opts ...op_e2e_disputegame.GameOpt) *OutputAsteriscGameHelper
func (*AsteriscFactoryHelper) StartOutputAsteriscGameWithCorrectRoot ¶
func (h *AsteriscFactoryHelper) StartOutputAsteriscGameWithCorrectRoot(ctx context.Context, l2Node string, l2BlockNumber uint64, opts ...op_e2e_disputegame.GameOpt) *OutputAsteriscGameHelper
func (*AsteriscFactoryHelper) WaitForBlock ¶
func (h *AsteriscFactoryHelper) WaitForBlock(l2Node string, l2BlockNumber uint64, cfg *op_e2e_disputegame.GameCfg)
WaitForBlock overrides op_e2e_disputegame.FactoryHelper WaitForBlock method Identical to FactoryHelper implementation
type OutputAsteriscGameHelper ¶
type OutputAsteriscGameHelper struct {
op_e2e_disputegame.OutputCannonGameHelper
}
func (*OutputAsteriscGameHelper) ChallengeToPreimageLoad ¶
func (g *OutputAsteriscGameHelper) ChallengeToPreimageLoad(ctx context.Context, outputRootClaim *op_e2e_disputegame.ClaimHelper, challengerKey *ecdsa.PrivateKey, preimage utils.PreimageOpt, preimageCheck op_e2e_disputegame.PreimageLoadCheck, preloadPreimage bool)
ChallengeToPreimageLoad overrides op_e2e_disputegame.OutputCannonGameHelper ChallengeToPreimageLoad method ChallengeToPreimageLoad challenges the supplied execution root claim by inducing a step that requires a preimage to be loaded It does this by: 1. Identifying the first state transition that loads a global preimage 2. Descending the execution game tree to reach the step that loads the preimage 3. Asserting that the preimage was indeed loaded by an honest challenger (assuming the preimage is not preloaded) This expects an odd execution game depth in order for the honest challenger to step on our leaf claim
func (*OutputAsteriscGameHelper) CreateHonestActor ¶
func (g *OutputAsteriscGameHelper) CreateHonestActor(ctx context.Context, l2Node string, options ...op_e2e_disputegame.HonestActorOpt) *op_e2e_disputegame.OutputHonestHelper
CreateHonestActor overrides op_e2e_disputegame.OutputCannonGameHelper CreateHonestActor method
func (*OutputAsteriscGameHelper) CreateStepLargePreimageLoadCheck ¶
func (g *OutputAsteriscGameHelper) CreateStepLargePreimageLoadCheck(ctx context.Context, sender common.Address) op_e2e_disputegame.PreimageLoadCheck
CreateStepLargePreimageLoadCheck overrides op_e2e_disputegame.OutputCannonGameHelper CreateStepLargePreimageLoadCheck method Identical to OutputCannonGameHelper implementation
func (*OutputAsteriscGameHelper) CreateStepPreimageLoadCheck ¶
func (g *OutputAsteriscGameHelper) CreateStepPreimageLoadCheck(ctx context.Context) op_e2e_disputegame.PreimageLoadCheck
CreateStepPreimageLoadCheck overrides op_e2e_disputegame.OutputCannonGameHelper CreateStepPreimageLoadCheck method Identical to OutputCannonGameHelper implementation
func (*OutputAsteriscGameHelper) StartChallenger ¶
func (g *OutputAsteriscGameHelper) StartChallenger( ctx context.Context, name string, options ...op_e2e_challenger.Option, ) *op_e2e_challenger.Helper
StartChallenger overrides op_e2e_disputegame.OutputCannonGameHelper StartChallenger method
func (*OutputAsteriscGameHelper) VerifyPreimage ¶
func (g *OutputAsteriscGameHelper) VerifyPreimage(ctx context.Context, outputRootClaim *op_e2e_disputegame.ClaimHelper, preimageKey preimage.Key)
VerifyPreimage overrides op_e2e_disputegame.OutputCannonGameHelper VerifyPreimage method