feat(payments): add payment request schema and parser - #208
Open
emirykl wants to merge 1 commit into
Open
Conversation
Contributor
| \nThis PR is currently blocked by merge conflicts.\n\nPlease update the branch with the latest main branch and resolve the conflicts before it can be merged. |
Contributor
| \nGitHub has not finished calculating whether this PR can be merged cleanly.\n\nThe auto-merge automation will skip this PR for now. Re-run the automation later. |
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
Test evidence
pnpm --filter @anchorkit/stellar-kit test -- paymentRequest.test.ts— 10 tests passedpnpm check:examples— 14 examples passedpnpm check:boundariespassedgit diff --check, and secret-pattern scan passedKnown baseline issues: repository-wide lint still reports unrelated findings in
validationEngine.ts,assetRegistry.ts, andreceipt.ts; rootformat:checkattempts to parse Rust without a configured parser and flags unrelated baseline files. Default web Vitest discovery searches above the repository, so its in-repository test was rerun successfully with an explicit safe config.Fixes #84
Verification
PASS: payment request parser tests (10)PASS: TypeScript package suites (330 tests)PASS: web integration tests (2 with explicit in-repository Vitest config)PASS: relevant workspace type checksPASS: focused package lint and full web lintPASS: example consistency check (14 fixtures)PASS: package boundary checkPASS: stellar-kit and Next.js production buildsPASS: focused formatting, git diff --check, and secret-pattern scanBaseline: broad lint has unrelated existing findings; root format:check is broken by missing Rust parser support and unrelated formattingDiagnostics
Recovered command failures:
/bin/zsh -lc "find . -name AGENTS.md -print && rg -n \"parse.*Result|ParseError|safeParse|Date\\(|expires|UNSUPPORTED|PaymentRequest\" packages apps docs tests examples scripts --glob '"'!**/dist/**'"' --glob '"'!**/.next/**'"'"(2),/bin/zsh -lc "test -d node_modules && echo 'node_modules present' || echo 'node_modules missing'; node --version; pnpm --version; pnpm --filter @anchorkit/stellar-kit test -- paymentRequest.test.ts"(127),/bin/zsh -lc 'corepack pnpm --filter @anchorkit/stellar-kit test -- paymentRequest.test.ts'(1),/bin/zsh -lc 'corepack pnpm exec turbo run build --filter=@anchorkit/stellar-kit...'(1),/bin/zsh -lc 'corepack pnpm --filter @anchorkit/anchor-utils build && corepack pnpm --filter @anchorkit/types --filter @anchorkit/config --filter @anchorkit/validators --filter @anchorkit/stellar-kit --filter @anchorkit/anchor-utils --filter @anchorkit/web test'(1),/bin/zsh -lc 'corepack pnpm --filter @anchorkit/types --filter @anchorkit/config --filter @anchorkit/validators --filter @anchorkit/stellar-kit --filter @anchorkit/anchor-utils --filter @anchorkit/web lint'(1),/bin/zsh -lc 'corepack pnpm format:check && git diff --check'(2)