[FR] - Better documentation for cardano-cli outputs
I maintainer di solito rispondono entro 1 giorno
@CarlosLopezDeLara ci sta già lavorando.
Dal 18/9/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
If you're deep in the code and involved in every new feature/change about cardano-cli, than this might not be an issue. But, for developers that are not that involved or that are new to cardano, its sometimes a bit of a pain to do a proper interpretation of certain cardano-cli query outputs.
I am not talking about the basic outputs like a utxo query or a stake-address-info query, those json outputs are well documented with there key naming schema alone imo.
When it comes to outputs like governance action queries, than its going to be more difficult. Let me give you an example:
[
null,
[],
{
"keyHash-5f1b4429fe3bda963a7b70ab81135112a785afcf55ccd695b122e794": 379,
"keyHash-9393c87a66b1f7dd4f9b486a49232de92e39e18b3b20ac4a539b4df2": 379
},
{
"denominator": 7,
"numerator": 4
}
]
If you are new to such an output you may wonder "whats the null entry?" or "whats the empty array" or "whats the number behind the keyHash entries"... etc. Btw, that object with denominator and numerator can also change to just a decimal number, if it has a finite number of decimals 😱 So, two different outputs for the same thing. Its not an issue, if documented!
Or for example:
[
[
[
{
"credential": {
"keyHash": "c13582aec9a44fcc6d984be003c5058c660e1d2ff1370fd8b49ba73f"
},
"network": "Testnet"
},
1234567890
]
],
null
]
Yes you can read out some basic infos, but there are 3 cascaded arrays. So, which one can actually hold more than one treasury withdrawal request? Can there even be more entries in an array or is it always just one?
As you can see, there are many of those.
This issue is not about changing the output! That is currently out of scope imo, because it would be too many breaking changes for 3rd party tools.
Its ok that the data output looks like it does, saving space and not having key/value pairs on every entry. But it lacks documentation. 😞
So, the intention of this gh issue is to raise awareness to somehow provide better documentation for existing and new developers and users in general.
It would be nice to have such a documentation on a website in a normal text form, or PDF, or similar.
Also it would be nice to have such a documentation like those familiar REST API documentation sites, where you can see all available commands and there outputs (maybe driven by goldentest sources?) via a TRY button or so. Developers are very familiar with such sites and they like them.
The documentation should of course cover every cardano-cli output, not just governance related ones like use in the examples.
Ok, this was just a quick first entry to raise this issue. Looking forwards to the discussions. 😃
- Lingua principale
- Haskell
- Stelle
- 72
- Fork
- 25
- Merge medio
- 2g 11h
- PR unite (30g)
- 10
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di IntersectMBO/cardano-cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
IntersectMBO/cardano-cli#1306 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Ensure Plutus V4 scripts can be deserialised by cardano-cliForse già presa @carbolymer l’ha presa 16 giorni fa. Apertaenhancement
IntersectMBO/cardano-cli#1448 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Upstream non-Leios commits from the Leios integration branch to masterForse di nuovo libera @palas l’ha presa 58 giorni fa e non c’è nessuna pull request aperta. Apertarefactor
IntersectMBO/cardano-cli#1414 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Add `transaction validate` command (online phase 1 + phase 2)Forse già presa @palas l’ha presa 144 giorni fa. Apertaenhancement epic
IntersectMBO/cardano-cli#1380 · 4 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Investigate incorporating cquisitor-style local tx validation (phase 1 + phase 2) into cardano-cliForse di nuovo libera @palas l’ha presa 165 giorni fa e non c’è nessuna pull request aperta. Aperta
IntersectMBO/cardano-cli#1367 · 6 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di IntersectMBO/cardano-cli
Issue simili
-
New-pipeline: update TracyAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AccelerateHS/accelerate#583 · 2 commenti ·
-
component: hls-refactor-plugin status: needs triage type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
haskell/haskell-language-server#5111 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alunduil/network-arbitrary#193 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
alunduil/siren-json.hs#245 ·
I maintainer di solito rispondono entro 1 giorno
-
infrastructure
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
alunduil/collection-json.hs#393 ·
I maintainer di solito rispondono entro 1 giorno