Skip to content

op-challenger: Introduce generic Player#18441

Merged
ajsutton merged 2 commits intodevelopfrom
aj/generic-player
Dec 2, 2025
Merged

op-challenger: Introduce generic Player#18441
ajsutton merged 2 commits intodevelopfrom
aj/generic-player

Conversation

@ajsutton
Copy link
Copy Markdown
Contributor

@ajsutton ajsutton commented Dec 1, 2025

Description

Introduces a generic Player implementation to handle checking sync status and prestate validation before delegating to a game specific actor.

Will save duplicating a bunch of boiler plate code for handling ZK games.

Tests

Covered by existing tests. Unit tests moved with production code where appropriate.

Additional context

Builds on #18440

Metadata

#18433

@ajsutton ajsutton requested review from a team and mbaxter and removed request for a team December 1, 2025 00:31
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.31%. Comparing base (8fe89a0) to head (1b9da49).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           aj/zk-share-clients   #18441      +/-   ##
=======================================================
- Coverage                80.21%   75.31%   -4.91%     
=======================================================
  Files                      132      187      +55     
  Lines                     7168    11199    +4031     
=======================================================
+ Hits                      5750     8434    +2684     
- Misses                    1418     2621    +1203     
- Partials                     0      144     +144     
Flag Coverage Δ
cannon-go-tests-64 66.58% <ø> (?)
contracts-bedrock-tests 80.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 55 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ajsutton ajsutton force-pushed the aj/zk-share-clients branch from 8fe89a0 to c46c3dd Compare December 1, 2025 21:29
@ajsutton ajsutton requested review from a team and janjakubnanista and removed request for a team December 1, 2025 21:29
@ajsutton ajsutton force-pushed the aj/zk-share-clients branch from c46c3dd to 1bd89b7 Compare December 2, 2025 00:42
Base automatically changed from aj/zk-share-clients to develop December 2, 2025 01:19
Handles common checks before delegating to an actor to progress the game.
@ajsutton ajsutton enabled auto-merge December 2, 2025 01:33
@ajsutton ajsutton added this pull request to the merge queue Dec 2, 2025
Merged via the queue into develop with commit c329947 Dec 2, 2025
81 checks passed
@ajsutton ajsutton deleted the aj/generic-player branch December 2, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants