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 burn` command by fnando · Pull Request #2744 · stellar/stellar-cli

Conversation

@fnando

@fnando fnando commented Sep 22, 2026

Copy link
Copy Markdown
Member

What

Adds a stellar token burn command that destroys amount of a token from an account, implementing SEP-41's burn(from, amount). The signing account is passed with --from, which also authorizes the call. Mirrors the existing transfer command minus the destination.

Why

The CLI already exposes most of the SEP-41 token interface under stellar token … (transfer, transfer-from, approve, allowance, balance, name, symbol, decimals) but had no way to burn tokens. This adds it.

Known limitations

  • Muxed (M…) source accounts are rejected up front, since the invoke pipeline can't yet source from them (Support muxed (M…) source accounts in the contract invoke pipeline #2645).

Sorry, something went wrong.

Uh oh!

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

All reactions
Copilot AI lite review requested due to automatic review settings September 22, 2026 17:02
@github-project-automation github-project-automation Bot added this to DevX Sep 22, 2026
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Sep 22, 2026
@fnando
fnando added this pull request to stack #2745 September 22, 2026 17:03
Copilot started reviewing on behalf of fnando September 22, 2026 17:03
View session
Copilot AI reviewed Sep 22, 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

No unresolved blocking issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds stellar token burn for SEP-41-compatible contracts, including validation, JSON errors, documentation, and integration tests.

Changes:

  • Implements burn(from, amount) with muxed-account and negative-amount validation.
  • Registers the command and structured JSON error handling.
  • Adds help documentation and integration coverage.
File Description
FULL_HELP_DOCS.md Documents the new command.
cmd/​soroban-cli/​src/​commands/​token/​mod.rs Registers the burn command and errors.
cmd/​soroban-cli/​src/​commands/​token/​burn.rs Implements token burning.
cmd/​soroban-cli/​src/​cli.rs Adds JSON error-output support.
cmd/​crates/​soroban-test/​tests/​it/​integration/​token/​mod.rs Registers burn tests.
cmd/​crates/​soroban-test/​tests/​it/​integration/​token/​burn.rs Tests successful burns and validation behavior.

💡 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
@fnando
fnando force-pushed the token-burn branch from a157dac to aa880f7 Compare September 22, 2026 17:12
Copilot AI review requested due to automatic review settings September 22, 2026 17:12
Copilot started reviewing on behalf of fnando September 22, 2026 17:12
View session
Copilot AI reviewed Sep 22, 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

Direct-contract burn coverage is still missing for a supported path.

Review effort: Lite
Findings: None

Sorry, something went wrong.

Uh oh!

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

All reactions
@fnando
fnando force-pushed the token-burn branch from aa880f7 to 3333eac Compare September 22, 2026 23:21
Copilot AI review requested due to automatic review settings September 22, 2026 23:21
Copilot started reviewing on behalf of fnando September 22, 2026 23:22
View session
Copilot AI reviewed Sep 22, 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

No unresolved blocking issues were identified.

Review effort: Lite
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 22, 2026 23:27
@fnando
fnando force-pushed the token-burn branch from 3333eac to 6be9db3 Compare September 22, 2026 23:27
Copilot started reviewing on behalf of fnando September 22, 2026 23:27
View session
Copilot AI reviewed Sep 22, 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

No unresolved review comments remain, and integration coverage is included.

Review effort: Lite
Findings: None

Sorry, something went wrong.

Uh oh!

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

All reactions
Base automatically changed from token-transfer-from to main September 23, 2026 00:10
@fnando
Add stellar token burn command.
e19ee6a
@fnando
fnando force-pushed the token-burn branch from 6be9db3 to e19ee6a Compare September 23, 2026 00:10
@fnando fnando self-assigned this Sep 23, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Sep 23, 2026
@fnando
fnando requested review from a team and leighmcculloch September 23, 2026 00:11
leighmcculloch
leighmcculloch approved these changes Sep 23, 2026
View reviewed changes
@fnando
fnando merged commit 5a20214 into main Sep 23, 2026
243 of 244 checks passed

Uh oh!

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

@fnando
fnando deleted the token-burn branch September 23, 2026 19:34
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX Sep 23, 2026
@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.