Skip to content

Add scriptable output to contract alias ls - #2901

Open
im-xiangda-li wants to merge 1 commit into
stellar:mainfrom
im-xiangda-li:fix/2879-scriptable-contract-aliases
Open

im-xiangda-li wants to merge 1 commit into
stellar:mainfrom
im-xiangda-li:fix/2879-scriptable-contract-aliases

Conversation

@im-xiangda-li

Copy link
Copy Markdown

What

Add --network and --output to stellar contract alias ls. JSON is keyed by network passphrase and includes the alias, contract ID, and built-in and disabled status. Network groups and aliases have a stable order. The default is the existing text listing.

Why

Build scripts need to look up the aliases for one network without parsing display text or depending on the iteration order of a hash map.

stellar contract alias ls --network testnet --output json

Closes #2879.

Known limitations

The three alias-list integration tests passed in Linux after building the stellar executable. Formatting and generated help were checked. The full workspace test suite was outside this validation run.

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog (Not Ready)

Development

Successfully merging this pull request may close these issues.

contract alias ls can't be used from a script

1 participant