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 decimals` subcommand by fnando · Pull Request #2713 · stellar/stellar-cli

Conversation

@fnando

@fnando fnando commented Sep 4, 2026

Copy link
Copy Markdown
Member

What

Adds stellar token decimals, a read-only subcommand returning a token's SEP-41 decimals() metadata as a u32. Resolves a token by --id (contract id, alias, native, or CODE:ISSUER) and prints the value as text or JSON.

Why

Part of #2620 (typed SEP-41 + SAC client), completing the read-metadata group after name and symbol. Stacked on the token-symbol branch; a thin wrapper over contract invoke reusing args::invoke_by_position and args::not_deployed_error.

Known limitations

N/A

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 16:13
@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 16:13
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 stellar token decimals for querying SEP-41 decimal metadata from tokens and SACs.

Changes:

  • Implements text and JSON decimal output.
  • Integrates command routing and structured errors.
  • Adds help documentation and integration coverage.

Reviewed changes

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

Show a summary per file
File Description
FULL_HELP_DOCS.md Documents the new subcommand.
cmd/soroban-cli/src/commands/token/mod.rs Registers and dispatches decimals.
cmd/soroban-cli/src/commands/token/decimals.rs Implements decimal metadata queries.
cmd/soroban-cli/src/cli.rs Enables structured JSON errors.
cmd/crates/soroban-test/tests/it/integration/token/mod.rs Registers integration tests.
cmd/crates/soroban-test/tests/it/integration/token/decimals.rs Tests native, issued-asset, and error cases.

💡 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 self-assigned this Sep 4, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Sep 4, 2026
leighmcculloch
leighmcculloch approved these changes Sep 5, 2026
View reviewed changes
@fnando
fnando force-pushed the token-decimals branch from ae18189 to 0112f66 Compare September 8, 2026 13:34
@fnando
fnando force-pushed the token-decimals branch from 0112f66 to 3f94971 Compare September 8, 2026 15:17
Base automatically changed from token-symbol to main September 8, 2026 16:05
@fnando
Add stellar token decimals subcommand.
9bef38f
@fnando
fnando force-pushed the token-decimals branch from 3f94971 to 9bef38f Compare September 8, 2026 16:05
@fnando
fnando merged commit 65f3fa5 into main Sep 8, 2026
233 checks passed

Uh oh!

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

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