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-admin` subcommand by fnando · Pull Request #2718 · 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-admin, a SAC-admin write subcommand that transfers administration of a token. --source (the current admin) signs and authorizes the change, and --new-admin is the successor. Returns a JSON receipt with the tx hash.

Why

Part of #2620 (typed SEP-41 + SAC client), a SAC-admin command alongside mint/clawback. 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); like the other admin commands, the signer only authorizes and is not a set_admin argument, so only [new_admin] is passed positionally. The happy-path test verifies control transferred behaviorally — after set-admin, the new admin can mint.

Known limitations

Muxed (M…) source accounts are rejected with a clear error (same constraint as transfer, see #2645).

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 19:30
@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 19:30
View session
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Sep 4, 2026
@fnando fnando self-assigned this Sep 4, 2026
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 stellar token set-admin for transferring SAC administration through the existing contract invocation pipeline.

Changes:

  • Adds command routing, typed errors, receipts, and help documentation.
  • Adds integration coverage for transfer, undeployed SACs, and muxed sources.

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 subcommand.
cmd/soroban-cli/src/commands/token/set_admin.rs Implements administration transfer.
cmd/soroban-cli/src/commands/token/mod.rs Registers and dispatches the command.
cmd/soroban-cli/src/cli.rs Enables JSON error formatting.
cmd/crates/soroban-test/tests/it/integration/token/set_admin.rs Adds integration tests.
cmd/crates/soroban-test/tests/it/integration/token/mod.rs Registers the test module.

💡 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_admin.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-admin branch from 0b373b0 to f8ba62a Compare September 8, 2026 13:34
@fnando
fnando force-pushed the token-set-admin branch from f8ba62a to f33eb70 Compare September 8, 2026 15:17
@fnando
fnando force-pushed the token-set-admin branch from f33eb70 to 8ca4c47 Compare September 8, 2026 16:05
@fnando
fnando force-pushed the token-set-admin branch from 8ca4c47 to 7264b1a Compare September 8, 2026 17:14
@fnando
fnando force-pushed the token-set-admin branch from 7264b1a to eca4411 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-admin branch from eca4411 to 903d339 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 2 comments.

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.

Comment thread cmd/soroban-cli/src/commands/token/set_admin.rs Resolved

Uh oh!

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

Copilot AI review requested due to automatic review settings September 28, 2026 21:50
@fnando
fnando force-pushed the token-set-admin branch from 903d339 to b5298c8 Compare September 28, 2026 21:50
Copilot started reviewing on behalf of fnando September 28, 2026 21: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

Accepting a muxed successor can leave administration unusable through the current CLI, and the administrator documentation is inaccurate.

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

Open (5)
  • High severity Reject muxed successor addresses until admin signing is supported · New
  • Low severity Clarify help text that issuer is only the initial admin · New
  • Low severity Clarify issuer is only the initial SAC administrator · New
  • Low severity The accepted native token reference is missing from this help text. UnresolvedToken parses…
  • Low severity This generated help entry omits the supported native reference, unlike every other token command.…

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_admin.rs Resolved

Uh oh!

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

Comment thread FULL_HELP_DOCS.md Resolved

Uh oh!

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

Comment thread cmd/soroban-cli/src/commands/token/set_admin.rs Resolved

Uh oh!

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

Copilot AI review requested due to automatic review settings September 28, 2026 22:20
@fnando
fnando force-pushed the token-set-admin branch from b5298c8 to 3246d87 Compare September 28, 2026 22:20
Copilot started reviewing on behalf of fnando September 28, 2026 22:21
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

Muxed successor addresses are advertised and forwarded even though the SAC set_admin parameter rejects them.

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

Open (6)
  • High severity Reject muxed successor addresses until admin signing is supported
  • Medium severity Remove unsupported muxed successor from help text · New
  • Low severity Clarify issuer is only the initial SAC administrator
  • Low severity Clarify help text that issuer is only the initial admin
  • Low severity The accepted native token reference is missing from this help text. UnresolvedToken parses…
  • Low severity This generated help entry omits the supported native reference, unlike every other token command.…

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.

Copilot AI review requested due to automatic review settings September 28, 2026 23:47
@fnando
fnando force-pushed the token-set-admin branch from 3246d87 to 8029cce Compare September 28, 2026 23:47
Copilot started reviewing on behalf of fnando September 28, 2026 23:48
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 established token-admin patterns and includes comprehensive integration coverage.

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

Open (4)
  • High severity Reject muxed successor addresses until admin signing is supported
  • Medium severity Remove unsupported muxed successor from help text
  • Low severity The accepted native token reference is missing from this help text. UnresolvedToken parses…
  • Low severity This generated help entry omits the supported native reference, unlike every other token command.…
Resolved since last review (2)
  • Low severity Clarify issuer is only the initial SAC administrator
  • Low severity Clarify help text that issuer is only the initial admin

Sorry, something went wrong.

Uh oh!

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

All reactions
@fnando
fnando force-pushed the token-set-admin branch from 8029cce to b73d46d Compare September 28, 2026 23:57
Copilot AI review requested due to automatic review settings September 29, 2026 00:20
@fnando
fnando force-pushed the token-set-admin branch from b73d46d to d7091b9 Compare September 29, 2026 00:20
Copilot started reviewing on behalf of fnando September 29, 2026 00:20
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

The help text omits the accepted native token target.

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

Open (4)
  • High severity Reject muxed successor addresses until admin signing is supported
  • Medium severity Remove unsupported muxed successor from help text
  • Low severity The accepted native token reference is missing from this help text. UnresolvedToken parses…
  • Low severity This generated help entry omits the supported native reference, unlike every other token command.…

Sorry, something went wrong.

Uh oh!

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

All reactions
Base automatically changed from token-clawback to main September 29, 2026 00:24
@fnando
fnando force-pushed the token-set-admin branch from d7091b9 to d47073b Compare September 29, 2026 00:24
@fnando
Add stellar token set-admin subcommand.
239fb87
Copilot AI review requested due to automatic review settings September 29, 2026 00:53
@fnando
fnando force-pushed the token-set-admin branch from d47073b to 239fb87 Compare September 29, 2026 00:53
Copilot started reviewing on behalf of fnando September 29, 2026 00:53
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

🟢 Approval recommended

The command is consistently integrated, validates current limitations, and has comprehensive integration coverage.

Review effort: Balanced
Findings: None

Resolved since last review (4)
  • High severity Reject muxed successor addresses until admin signing is supported
  • Medium severity Remove unsupported muxed successor from help text
  • Low severity The accepted native token reference is missing from this help text. UnresolvedToken parses…
  • Low severity This generated help entry omits the supported native reference, unlike every other token command.…

Sorry, something went wrong.

Uh oh!

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

All reactions
@fnando
fnando merged commit 9381772 into main Sep 29, 2026
146 checks passed

Uh oh!

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

@fnando
fnando deleted the token-set-admin branch September 29, 2026 08:02
@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

@fnando fnando

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.