IntersectMBO / IntersectMBO/cardano-cli
[FR] - More consistent options for giving redeemers
- Dominant language
- Haskell
- Stars
- 71
- Forks
- 24
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 14
Description
**Internal/External**
*External*
**Area**
*Plutus*
**Describe the feature you'd like**
Redeemers can be given as JSON directly on the command line (`*-redeemer-value`) or as JSON files (`*-redeemer-file`).
However, these are two different flavours of JSON: The one in the file has to follow the detailed schema for script data and leads to the familiar structure with constructors, while the one on the command line can be any free form JSON.
So, it is not possible to give constructor-type redeemers on the command line (even if they are ridiculously simple) and it is not possible to give free form JSON as a file (even if it is very complex).
I'd propose to have all combinations – `*-redeemer-schema-value`, `*-redeemer-schemaless-value`, `*-redeemer-schema-file`, `*-redeemer-schemaless-file` – available and the current ones as aliases for backwards compatibility.
The same should probably be done for all the variants of datums.
**Describe alternatives you've considered**
We could leave it as it is. We can work around it. It was just a point that was confusing to me when I encountered it.
We could also remove one of the two variants entirely. But I guess both have use cases. So that is not really an option.
Contributor guide
Assessment
This issue has not been assessed yet.