Skip to content

Stellar: smart accounts and access control update#139

Open
brozorec wants to merge 9 commits intomainfrom
v0.7.0-smart-acounts
Open

Stellar: smart accounts and access control update#139
brozorec wants to merge 9 commits intomainfrom
v0.7.0-smart-acounts

Conversation

@brozorec
Copy link
Copy Markdown
Collaborator

@brozorec brozorec commented Apr 2, 2026

Documentation Pull Request

Summary

Updates Stellar smart accounts documentation to reflect the new authorization model based on explicit context rule selection (context_rule_ids) and the new AuthPayload shape, plus related updates to policies and access control examples. Also clarifies and corrects code examples for consistency with the updated model across multiple pages.

Type of Change

  • New documentation
  • Documentation update/revision
  • Fix typos or grammar
  • Restructure/reorganize content
  • Add examples or tutorials
  • Update API documentation
  • Other: ___________

Related Issues

Relates to #

Checklist

Additional Notes

  • The signAndSendTx TypeScript example in signers-and-verifiers.mdx now includes ruleId: number as an explicit function parameter (with a comment explaining it is obtained from context rule creation/lookup), resolving the previously undefined variable.
  • The Rust __check_auth example in signers-and-verifiers.mdx renames the parameter from signatures to auth_payload (with matching usage update) to accurately reflect that it carries the full AuthPayload struct, not just signatures.
  • Removed the "Maximum context rules per smart account: 15" limit from authorization-flow.mdx, as this limit no longer exists in the framework.
  • Updated grant_role_no_auth call signatures in sac-admin-wrapper.mdx and rwa.mdx to use the correct argument order (env, account, role, granting_admin), matching the updated signature documented in access-control.mdx.

@brozorec brozorec requested a review from Copilot April 2, 2026 10:48
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2026

Deploy Preview for openzeppelin-docs-v2 ready!

Name Link
🔨 Latest commit 555b3d4
🔍 Latest deploy log https://app.netlify.com/projects/openzeppelin-docs-v2/deploys/69cf96ed2d21e80008bf6c49
😎 Deploy Preview https://deploy-preview-139--openzeppelin-docs-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Stellar smart accounts documentation to reflect the new authorization model based on explicit context rule selection (context_rule_ids) and the new AuthPayload shape, plus related updates to policies and access control examples.

Changes:

  • Replace “rule iteration / precedence” narrative with explicit rule lookup via context_rule_ids across multiple docs.
  • Update signer/verifier docs and examples to use AuthPayload { signers, context_rule_ids } and describe off-chain encoding/digest considerations.
  • Refresh policy and access control documentation to match updated interfaces/behavior (panic-based enforcement, ID-based removal, updated helper signatures).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
content/stellar-contracts/accounts/smart-account.mdx Updates the high-level authorization flow summary to explicit rule lookup.
content/stellar-contracts/accounts/signers-and-verifiers.mdx Introduces AuthPayload, updates Rust/TS examples, and adds off-chain client guidance.
content/stellar-contracts/accounts/policies.mdx Updates the policy model to a single enforce() method that validates + mutates and panics on failure.
content/stellar-contracts/accounts/context-rules.mdx Updates context rule semantics/limits and matching description for explicit rule selection.
content/stellar-contracts/accounts/authorization-flow.mdx Updates the detailed flow and examples to the explicit rule ID model.
content/stellar-contracts/access/access-control.mdx Updates access control example calls to revised helper signatures / argument ordering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
brozorec and others added 2 commits April 2, 2026 15:08
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…count context rule limit

Agent-Logs-Url: https://github.com/OpenZeppelin/docs/sessions/91349b50-f0e5-4db1-9cf8-d9eb2cb1fca1

Co-authored-by: brozorec <9572072+brozorec@users.noreply.github.com>
@brozorec brozorec mentioned this pull request Apr 3, 2026
10 tasks
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.

3 participants