Unify bets playback, market parity, and keeper recovery#130
Draft
Unify bets playback, market parity, and keeper recovery#130
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Table of Contents
Summary
This PR brings the unified bets playback, market-parity, and keeper recovery work from
enoomian/stagingintomainreview scope.The branch consolidates the bets experience around a single stream session model, aligns public market state with chain-confirmed parity state, and hardens the keeper paths that prepare, lock, resolve, and recover multi-chain duel bundles. It also carries the contract and program updates required for those flows to settle against the same canonical lifecycle.
Problems Addressed
Approach
1. Unify the bets playback surface
2. Make public market state follow canonical parity state
3. Harden keeper recovery and replay
4. Align settlement contracts and generated interfaces
Methodology
This branch was prepared by diffing
enoomian/stagingagainstmain, then removing deployment-specific and environment-specific work so the review scope stays on reusable repository behavior:origin/main.The result is a review surface that keeps the substantive betting, parity, and settlement changes intact while avoiding unrelated staging-only operations work.
Impact
Product impact
Engineering impact
mainhas today.Validation
Validated locally in
/tmp/hyperbet-main-pr-prep:/Users/mac/.bun/bin/bun installbunx turbo run typecheck11/11tasks successful)bun test packages/hyperbet-ui/tests/streamSession.test.ts packages/hyperbet-ui/tests/streamPlayer.test.ts packages/hyperbet-ui/tests/hlsPlayerLoader.test.ts55tests)bun test packages/hyperbet-evm/keeper/src/marketParity.test.ts packages/hyperbet-evm/keeper/src/predictionMarketsSurface.test.ts packages/hyperbet-evm/keeper/src/streamPhaseUnmask.test.ts26tests)Acceptance Checklist
Repository Checks
These branch boundaries were re-checked before opening review:
.github/workflows: unchangedAssociated Pull Requests