CLI: add new --show option for miden-client tx
- Vorherrschende Sprache
- Rust
- Sterne
- 78
- Forks
- 129
- Ø Merge
- 4 T. 11 Std.
- Gemergte PRs (30 T.)
- 52
Beschreibung
miden-client txis the only place where you can look at a transaction after it has been submitted, and it is only where you can track transaction from the CLI. It looks like:
ID | Status | Account ID | Script Root | Input Notes | Output Notes
-- | -- | -- | -- | -- | --
0x0c97... | Committed (Block: 52) | 0xb753... | 0x09e1... | 0 | 1
0xbdd8... | Pending | 0xb753... | 0x09e1... | 0 | 1
New tx --show <id> should print metadata about single transaction: transaction ID, status, account ID, script root, notes IDs, block number, block height, transaction status with the expiration block in case of "Pending" status, creation time, and the account state commitment before and after. A private note that isn't yours can't be resolved at all, instead of the ID we mark it as private.
Beitragsleitfaden
Rechercherichtung
Untersuchen Sie die bestehende Implementierung des Befehls `miden-client tx`, um zu verstehen, wie Transaktionsdaten abgerufen und angezeigt werden. Die neue Option `--show ` soll dies erweitern, um detaillierte Metadaten für eine einzelne Transaktion auszugeben. Beginnen Sie mit der Untersuchung der CLI-Befehlsstruktur und des Transaktionsdatenmodells, und implementieren Sie dann die Formatierung für die angegebenen Felder. Testen Sie durch Ausführen des Befehls mit einer bekannten Transaktions-ID.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 65/100