Repository navigation
test(wallet): cover wallet auth flows and add Stellar ecosystem puzzles - #1066
Open
peaceshallom37-rgb wants to merge 2 commits into
Open
peaceshallom37-rgb wants to merge 2 commits into
peaceshallom37-rgb wants to merge 2 commits into
Conversation
Add a Jest integration suite that wires the backend wallet services to in-memory repositories and real ed25519 keypairs. It verifies challenge generation, signature acceptance and rejection, single-use replay protection, wallet-session creation and expiry, activity refresh, and logout/revocation handling without a database or live network.
Add ten medium puzzles covering anchors and SEP-24, path payments and multi-hop conversion, SEP-10 challenge authentication, SEP-38 quotes, and Soroban integration through RPC and the Stellar Asset Contract. Each puzzle includes documentation-linked hints, a points reward, and 3-5 test cases validated by the extension content validator.
|
@peaceshallom37-rgb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
Resolves both issues assigned to this contributor, with all changes confined to
stellar-extensions/as required by the isolation statements.Closes #976
Closes #1014
Wallet authentication tests (#976)
Adds
stellar-extensions/tests/wallet/wallet-auth.integration.test.ts, which wires the realWalletServiceandWalletAuthServiceto in-memory repositories and real ed25519 keypairs. It covers:lastSeenAtrefreshwallet-auth.service.tsreaches 100% statement, line and function coverage. A JestmoduleNameMapperpoints the backend-only ESM@nestjs/typeormpackage at the decorator stub intests/stubs/nestjs-typeorm.js, because the tests construct the services directly.Stellar ecosystem puzzles (#1014)
Adds
stellar-extensions/frontend/puzzles/stellar-ecosystem/with ten medium-difficulty puzzles:Every puzzle follows the extended puzzle schema, includes a documentation-linked hint, a points reward, and 3–5 test cases. Each puzzle set keeps its own schema extension so
schemas/puzzle-template.schema.jsonis untouched.Verification
npx jest --config stellar-extensions/tests/jest.config.js— 55 tests pass (wallet and existing referral suites)node stellar-extensions/scripts/validate-puzzle-content.js --dir stellar-extensions/frontend/puzzles/stellar-ecosystem --schema stellar-extensions/frontend/puzzles/stellar-ecosystem/puzzle-template.schema.json— all 10 puzzles passnpx tsc -p stellar-extensions/tests/tsconfig.json --noEmit— no errors in the new wallet suite (pre-existing referral spec errors remain untouched)vitest --config stellar-extensions/vitest.config.mjs— 25 existing store tests pass