Repository navigation
feat(sep): add sponsorship reconciliation, asset compatibility, data entry and memo context audits - #264
Open
onlywiseone wants to merge 1 commit into
Conversation
…entry and memo context audits Adds four read-only inspection commands: - sponsorship-reconciliation (ISSUE-162) - operation-asset-audit (ISSUE-163) - account-data-entry-audit (ISSUE-164) - memo-context-audit (ISSUE-165) Closes Dantama022#204 Closes Dantama022#205 Closes Dantama022#206 Closes Dantama022#207
|
@onlywiseone 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
Adds four read-only inspection commands (SEP compliance pack 5):
sponsorship-reconciliation <account>: reconciles entries sponsored by and on behalf of an account againstnum_sponsoring/num_sponsored. Handles pagination and reports completeness as complete, partial or inconclusive (ISSUE-162).operation-asset-audit: checks asset references per operation for protocol rules, with optional Horizon trustline checks. Missing trustlines are warnings, never confirmed failures (ISSUE-163).account-data-entry-audit: diffs two data-entry snapshots and validates key/value encoding against protocol limits. Raw and decoded changes are reported separately (ISSUE-164).memo-context-audit: validates memo presence, type and value, expected destinations and operation count against user rules. Protocol findings are kept separate from policy findings (ISSUE-165).Each command supports human-readable and
--jsonoutput and is documented indocs/.Closes #204
Closes #205
Closes #206
Closes #207
Validation
jest: 4 new suites, 24 tests passingeslint+prettier: clean on all new filestsc: new files typecheck cleanly in isolation. A fulltsc --noEmitfails on pre-existing syntax errors infederation-response-report.ts,sep10-challenge-audit.ts,sponsorship-lifecycle-audit.tsandtrustline-exposure.ts(unchanged onmain).src/cli/index.tsalso has 34 pre-existing prettier errors; this PR only adds 2 lines there.)