-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import cardano-ledger-conway and add ToAlonzoScript typeclass #1339
Conversation
1913102
to
030cd7a
Compare
Transactions CostsSizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using
Script summary
Cost of Init Transaction
Cost of Commit TransactionThis is using ada-only outputs for better comparability.
Cost of CollectCom Transaction
Cost of Close Transaction
Cost of Contest Transaction
Cost of Abort TransactionSome variation because of random mixture of still initial and already committed outputs.
Cost of FanOut TransactionInvolves spending head output and burning head tokens. Uses ada-only UTxO for better comparability.
End-To-End Benchmark ResultsThis page is intended to collect the latest end-to-end benchmarks results produced by Hydra's Continuous Integration system from the latest Please take those results with a grain of salt as they are currently produced from very limited cloud VMs and not controlled hardware. Instead of focusing on the absolute results, the emphasis should be on relative results, eg. how the timings for a scenario evolve as the code changes. Generated at 2024-03-07 08:08:45.03131775 UTC Baseline Scenario
Baseline Scenario
|
030cd7a
to
3e6edb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice solution. An observation I made: We actually only do convert PlutusScriptV2
scripts and we could also constrain the era
to AlonzoEraScript
to make the implementation possible for a variable era
(but maybe partial still). Using a type class, however, is a lot less "fancy haskell" and I like the elegance of it.
class ToAlonzoScript lang era where | ||
toLedgerScript :: | ||
IsPlutusScriptLanguage lang => | ||
PlutusScript lang -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these constraints needed?
3e6edb7
to
0ab20a1
Compare
What happened? |
We merged #1342 |
Adds ToAlonzoScript typeclass for Babbage and Conway.