GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add `stellar token set-authorized` subcommand by fnando · Pull Request #2719 · stellar/stellar-cli

Conversation

@fnando

@fnando fnando commented Sep 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

What

Adds stellar token set-authorized, a SAC-admin write subcommand that authorizes or deauthorizes an account to hold and transact a token. --source signs and authorizes the change, --account is the target, and --authorize <true|false> sets the state. Returns a JSON receipt with the tx hash.

Why

Part of #2620 (typed SEP-41 + SAC client), completing the SAC-admin group (mint/set-admin/clawback/set-authorized). A thin wrapper over contract invoke reusing args::invoke_by_position and args::not_deployed_error. Like the other transaction commands it flattens config::Args, so the signer comes from the standard --source (env STELLAR_ACCOUNT, optional with stellar keys use); the signer only authorizes and is not a set_authorized argument, so only [account, authorize] are passed positionally. set_authorized is part of the SAC StellarAssetInterface, not SEP-41. The happy-path test verifies the change behaviorally via the SAC's authorized getter.

Known limitations

Muxed (M…) source accounts are rejected with a clear error (same constraint as transfer, see #2645). Deauthorizing an existing trustline requires the issuer to have AUTH_REVOCABLE set — an asset-configuration prerequisite, not enforced by the command.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI balanced review requested due to automatic review settings September 4, 2026 20:07
@github-project-automation github-project-automation Bot added this to DevX Sep 4, 2026
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Sep 4, 2026
Copilot started reviewing on behalf of fnando September 4, 2026 20:07
View session
Copilot AI reviewed Sep 4, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Adds the SAC-admin token set-authorized command.

Changes:

  • Implements authorization updates with structured receipts and errors.
  • Registers CLI routing, help documentation, and JSON handling.
  • Adds integration coverage for success and error paths.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
FULL_HELP_DOCS.md Documents the command and options.
cmd/soroban-cli/src/commands/token/set_authorized.rs Implements the command.
cmd/soroban-cli/src/commands/token/mod.rs Registers and dispatches the subcommand.
cmd/soroban-cli/src/cli.rs Enables structured JSON errors.
cmd/crates/soroban-test/tests/it/integration/token/set_authorized.rs Tests behavior and failures.
cmd/crates/soroban-test/tests/it/integration/token/mod.rs Registers the integration tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread cmd/soroban-cli/src/commands/token/set_authorized.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

leighmcculloch
leighmcculloch approved these changes Sep 5, 2026
View reviewed changes
@fnando
fnando force-pushed the token-set-authorized branch from 48a8677 to 237bb06 Compare September 8, 2026 13:34
@fnando
fnando force-pushed the token-set-authorized branch from 237bb06 to 6088135 Compare September 8, 2026 15:17
@fnando
fnando force-pushed the token-set-authorized branch from 6088135 to 547fff9 Compare September 8, 2026 16:05
@fnando
fnando force-pushed the token-set-authorized branch from 547fff9 to e8d7195 Compare September 8, 2026 17:14
@fnando
fnando force-pushed the token-set-authorized branch from e8d7195 to 0f48d67 Compare September 8, 2026 18:01
Copilot AI review requested due to automatic review settings September 8, 2026 19:43
@fnando
fnando force-pushed the token-set-authorized branch from 0f48d67 to 8c5d73e Compare September 8, 2026 19:43
Copilot started reviewing on behalf of fnando September 8, 2026 19:43
View session
Copilot AI reviewed Sep 8, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI review requested due to automatic review settings September 28, 2026 21:51
@fnando
fnando force-pushed the token-set-authorized branch from 8c5d73e to 2bf8aab Compare September 28, 2026 21:51
Copilot started reviewing on behalf of fnando September 28, 2026 21:52
View session
Copilot AI reviewed Sep 28, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation follows existing token-admin patterns and includes appropriate behavioral and failure-path coverage.

Review effort: Balanced
Findings: None

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI review requested due to automatic review settings September 28, 2026 22:23
@fnando
fnando force-pushed the token-set-authorized branch from 2bf8aab to 4295e30 Compare September 28, 2026 22:23
Copilot started reviewing on behalf of fnando September 28, 2026 22:23
View session
@fnando
fnando force-pushed the token-set-authorized branch from 4295e30 to 5091095 Compare September 28, 2026 23:50
Copilot started reviewing on behalf of fnando September 28, 2026 23:51
View session
Copilot AI reviewed Sep 28, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The core reauthorization transition is not behaviorally tested.

Review effort: Balanced
Findings: 1 High severity · 1 Low severity

Open (2)
  • High severity Reject muxed accounts for SAC set_authorized
  • Low severity Test missing verification of true authorization transition · New

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread cmd/crates/soroban-test/tests/it/integration/token/set_authorized.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@fnando
fnando force-pushed the token-set-authorized branch from 5091095 to 5518d57 Compare September 28, 2026 23:57
Copilot AI review requested due to automatic review settings September 29, 2026 00:21
@fnando
fnando force-pushed the token-set-authorized branch from 5518d57 to 13c09f4 Compare September 29, 2026 00:21
Copilot started reviewing on behalf of fnando September 29, 2026 00:21
View session
Copilot AI reviewed Sep 29, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The help advertises muxed source accounts even though the command always rejects them.

Review effort: Balanced
Findings: 1 High severity · 2 Low severity

Open (3)
  • High severity Reject muxed accounts for SAC set_authorized
  • Low severity Clarify help that muxed sources are unsupported · New
  • Low severity Test missing verification of true authorization transition

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread FULL_HELP_DOCS.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@fnando
fnando force-pushed the token-set-authorized branch from 13c09f4 to 27fe146 Compare September 29, 2026 00:24
Base automatically changed from token-set-admin to main September 29, 2026 08:02
@fnando
fnando force-pushed the token-set-authorized branch from 27fe146 to ffdd315 Compare September 29, 2026 23:47
Copilot AI balanced review requested due to automatic review settings September 29, 2026 23:47
Copilot started reviewing on behalf of fnando September 29, 2026 23:47
View session
Copilot AI reviewed Sep 29, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Muxed target accounts are advertised and forwarded despite being incompatible with the SAC Address parameter.

Review effort: Balanced
Findings: 1 High severity · 2 Low severity

Open (3)
  • High severity Reject muxed accounts for SAC set_authorized
  • Low severity Clarify help that muxed sources are unsupported
  • Low severity Test missing verification of true authorization transition

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI balanced review requested due to automatic review settings October 6, 2026 20:58
@fnando
fnando force-pushed the token-set-authorized branch from ffdd315 to fc7de17 Compare October 6, 2026 20:58
Copilot started reviewing on behalf of fnando October 6, 2026 20:59
View session
Copilot AI reviewed Oct 6, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Muxed target accounts are advertised but rejected by the SAC host during argument conversion.

Review effort: Balanced
Findings: 1 High severity · 2 Low severity

Open (3)
  • High severity Reject muxed accounts for SAC set_authorized
  • Low severity Clarify help that muxed sources are unsupported
  • Low severity Test missing verification of true authorization transition

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
fnando added 2 commits October 7, 2026 10:18
@fnando
Add stellar token set-authorized subcommand.
e5d40ff
@fnando
Reject muxed accounts in token set-authorized.
2ea5987
Copilot AI balanced review requested due to automatic review settings October 7, 2026 17:18
@fnando
fnando force-pushed the token-set-authorized branch from fc7de17 to 2ea5987 Compare October 7, 2026 17:18
Copilot started reviewing on behalf of fnando October 7, 2026 17:19
View session
Copilot AI reviewed Oct 7, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementation follows established token-command patterns and comprehensively tests its success and error paths.

0 open findings

3 resolved since last review
  • High severity Reject muxed accounts for SAC set_authorized
  • Low severity Clarify help that muxed sources are unsupported
  • Low severity Test missing verification of true authorization transition

🧠 Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fnando
fnando merged commit ccf8d1e into main Oct 7, 2026
147 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fnando
fnando deleted the token-set-authorized branch October 7, 2026 17:46
@fnando fnando mentioned this pull request Oct 7, 2026
stellar token: typed SEP-41 + SAC client #2620
Closed
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@leighmcculloch leighmcculloch leighmcculloch approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

DevX
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@fnando @leighmcculloch
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.