feat: Soroban contract authorization tree visualization (#850) - #1113
Open
legend-esc wants to merge 2 commits into
Open
legend-esc wants to merge 2 commits into
legend-esc wants to merge 2 commits into
Conversation
Add nested authorization entry visualization to the Soroban invocation UI so developers can verify required signers and their authorized invocation trees before signing. Changes: - stellar.ts: extend ContractSimulationResult with authEntries field; add serializeAuthEntry/serializeAuthInvocation helpers that convert XDR SorobanAuthorizationEntry values to plain JSON-safe objects - AuthorizationTree.tsx: new component rendering the auth entry tree — credentials badge (source account vs address), nonce/expiry ledger for address credentials, collapsible invocation nodes with sub-invocation counts, security notice, ARIA tree roles - ContractInteraction.tsx: import and render AuthorizationTree after simulation result; falls back silently when authEntries is empty - tests/unit/components/AuthorizationTree.test.tsx: 21 tests covering primary flow, boundary cases (empty, nested, multi-signer, unknown function types), and failure cases (null/undefined/non-array input, malformed entries) - docs/features/soroban-auth-tree.md: feature guide with usage, security notes, compatibility table, data model reference, and component API - README.md: add feature guide entry Closes Nanle-code#850
|
@legend-esc is attempting to deploy a commit to the nanle-code's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@legend-esc 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! 🚀 |
Collaborator
|
@legend-esc Please resolve conflicts. |
Author
Done |
This branch has not been deployed
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.
Add nested authorization entry visualization to the Soroban invocation UI so developers can verify required signers and their authorized invocation trees before signing.
Changes:
Closes #850
How was this tested?
Merge requirements
A PR is merged only when every box below is true. See
Merge requirements for the full policy.
masterif GitHub shows "This branch has conflicts").