contract alias ls can't be used from a script
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
The work is in cmd/soroban-cli/src/commands/contract/alias/ls.rs: the networks are collected into a HashMap around lines 56-58 and printed with headers around lines 114-128. Read that file alongside alias show, and check how the Output system (#2635) is used by other commands. Done when one network's aliases can be requested as data, two runs give identical output, and the default listing still reads well.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What's wrong:
stellar contract alias ls lists every configured network at once, prints an "ℹ️ Aliases available for network '...'" header on stdout for each (also with -q), and has no way to pick a network or get the result as data (v28.1.0 alias/ls.rs#L114-L128). The networks also come out in a different order on every run, because they're collected in a HashMap (v28.1.0 alias/ls.rs#L56-L58); four runs with the 28.1.0 binary gave four different orders. contract alias show <name> --network <net> already returns a single ID.
Impact:
Anything that needs the list of contracts deployed on a network (a frontend build, CI, an agent, or the JS SDK's bindings plugin, which can't take aliases today, stellar/js-stellar-sdk#1755) has to parse text meant for people, and can't diff two runs.
How we found it:
HackMeridian 2026 tooling research (147 public hackathon repos): 18 of the 66 repos with CLI scripts used aliases, and several still copied contract IDs into env files by hand because their app needed them at build time. Reproduced with the 28.1.0 release binary on 1 November 2026. In #1971, maintainers suggested structured output for this command and chose to wait until someone asked for it; this is that ask.
Outcome we're after:
A script can get one network's aliases as data, the same way on every run. How to get there is up to the implementer.
Compatibility: People reading the default output keep a readable listing.
How to check:
- Two runs in a row give identical output.
- A script can get the aliases for one network without stripping headers or other networks' entries.
- The default output still reads well for a person.
Related: #1971 (closed; the same command's output on stdout), #2622 (structured output), #2635 (the Output system), stellar/js-stellar-sdk#1755.
- Vorherrschende Sprache
- Rust
- Sterne
- 129
- Forks
- 153
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus stellar/stellar-cli
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
stellar/stellar-cli#2887 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
stellar/stellar-cli#2880 ·
Maintainer antworten meist innerhalb von 1 Tag
-
arg_value_union panics on zero-arity union tuple case (unchecked type_[0] index)Evtl. vergeben @hvoi hat das vor 22 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
stellar/stellar-cli#2806 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
contract extend panics on single-change resultMetaXdr (index out of bounds at extend.rs:306)Evtl. wieder frei @duongynhi000005-oss hat das vor 18 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
stellar/stellar-cli#2796 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Document stellar-cli's RPC trust boundaryEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
stellar/stellar-cli#2781 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in stellar/stellar-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
stellar/rs-stellar-xdr#621 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Pin `scope.options.variant` on the `status-light` "Semantic (Dot)" / "Non-semantic (Dot)" relationshipsEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offendesign-data-spec
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
adobe/spectrum-design-data#1755 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag