Skip to content

feat(examples): migrate tap_battle session lifecycle to SessionManager#235

Open
madisonsc52-del wants to merge 4 commits into
salazarsebas:mainfrom
madisonsc52-del:feat/session-manager-fresh
Open

feat(examples): migrate tap_battle session lifecycle to SessionManager#235
madisonsc52-del wants to merge 4 commits into
salazarsebas:mainfrom
madisonsc52-del:feat/session-manager-fresh

Conversation

@madisonsc52-del

@madisonsc52-del madisonsc52-del commented Jun 27, 2026

Copy link
Copy Markdown

🚀 Summary
This PR refactors the tap_battle example contract to migrate its local session lifecycle management over to the centralized SessionManager. This cleans up redundant code, establishes a standard implementation pattern for session limits, and ensures the example aligns with upstream architectural patterns.

🛠️ Changes
src/auth.rs & src/lib.rs: Replaced standalone session validation handlers with native SessionManager hooks.

src/test.rs: Implemented an robust suite of 17 passing unit tests verifying player registration, combo streak logic, multiplier caps, and session expiration panics.

Toolchain Optimization: Verified clean WebAssembly target builds (wasm32v1-none) without altering or corrupting the project's root Cargo.toml.

🧪 Testing Checklist
All 17 local unit tests passing cleanly (cargo test)

Contract compiles to target natively (stellar contract build)

CLOSE #224

@madisonsc52-del

Copy link
Copy Markdown
Author

@salazarsebas
Please Review and Ping Back

@madisonsc52-del

Copy link
Copy Markdown
Author

@salazarsebas
PLEASE REVIEW AND PING BACK 🙏🏽🙏🏽🙏🏽🙏🏽

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.

feat(examples): migrate tap_battle session lifecycle to SessionManager

1 participant