tweag / cooked-validators

MIT License
39 stars 11 forks source link

Babbage / Vasil update #155

Closed j-mueller closed 1 year ago

j-mueller commented 2 years ago

Is your feature request related to a problem? Please describe. I would like to use cooked-validators with plutus V2 and the latest version of cardano-node (v1.35.3).

Describe the solution you'd like cooked-validators should be be updated to support the changes introduced in the Vasil hardfork and Plutus v2.

Describe alternatives you've considered No alternatives

Additional context Work on updating plutus-apps is happening in the next-node branch, which could be used as a starting point for cooked-validators

j-mueller commented 2 years ago

Here are the minimum changes to make cooked-validators compile with node v1.35.3 and the next-node branch from plutus-apps. It doesn't use any of the new features such as reference scripts:

https://github.com/tweag/plutus-libs/commit/658028edbadefd7ec9f19a7e38362ff9bc502013

mmontin commented 1 year ago

We intend to make all the changes necessary once plutus-apps has been updated according to Vasil and embeds the cardano-ledger validation in main as well.

nhenin commented 1 year ago

Hi @mmontin what is the status ? I have also updated the plutus-apps repo last year similar to what @j-mueller did here was my PR, is what you are referring here done ? I have some V2 scripts to implement and tests, can I use the lastest version on main, update the dependencies around plutus-apps and use cooked-validator ?

carlhammann commented 1 year ago

Hi @nhenin! The latest commit on main is still only usable for Plutus V1. We're working intensely on the update, but our goal is not merely to have "something that works with V2"; this is an opportunity for us to tackle a few long-standing design issues. The upshot is that there's currently no Plutus V2-compatible version of cooked-validators that is stable enough to use, but that in a few weeks, there'll be a shiny new version of cooked-validators that, in addition to supporting Plutus V2, will also come with many fundamental improvements.

nhenin commented 1 year ago

@carlhammann, Thanks for the reply :-) I'll try something in the meanwhile then :-)

carlhammann commented 1 year ago

The Plutus V2-compatible version is now on main. All the V2 features are there, but the API might still change here and there in the next few weeks. The documentation will also be updated, expanded, and adapted. We're excited to receive your feedback, should you start using it!

nhenin commented 1 year ago

That's great !