[FR] - More consistent options for giving redeemers
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
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.
- Dominant language
- Haskell
- Stars
- 71
- Forks
- 24
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 9
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IntersectMBO/cardano-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
IntersectMBO/cardano-cli#1306 · 2 comments ·
Maintainers usually reply within 1 day
-
Ensure Plutus V4 scripts can be deserialised by cardano-cliPossibly taken @carbolymer claimed this 6 days ago. Open
IntersectMBO/cardano-cli#1448 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Upstream non-Leios commits from the Leios integration branch to masterMay be free again @palas claimed this 48 days ago, and no pull request is open. Openrefactor
IntersectMBO/cardano-cli#1414 · 1 assignee ·
Maintainers usually reply within 1 day
-
Add `transaction validate` command (online phase 1 + phase 2)May be free again @palas claimed this 134 days ago, and no pull request is open. Openenhancement epic
IntersectMBO/cardano-cli#1380 · 4 comments · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Investigate incorporating cquisitor-style local tx validation (phase 1 + phase 2) into cardano-cliMay be free again @palas claimed this 155 days ago, and no pull request is open. OpenStale
IntersectMBO/cardano-cli#1367 · 6 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in IntersectMBO/cardano-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
objectionary/phino#1600 ·
Maintainers usually reply within 1 day