tweag / cooked-validators

MIT License
39 stars 11 forks source link

Bring back the attacks #192

Closed carlhammann closed 1 year ago

carlhammann commented 1 year ago

This builds on top of PR #191 and brings back the attack language and its tests. Most changes are mechanical, with the following exceptions:

If you cabal test examples, you will see that all of the tests for the auction contract that we have on main now work again. With cabal test cooked-validators, you'll run all of the tests of the attack language, which exercises practically all of cooked.

carlhammann commented 1 year ago

I left a few comments to make it easier to evaluate the changes in this module. I did not comment anything on the tests, since they're literal translations of the test on main. I have also moved some of the tests to different places in the module hierarchy, which is one of the main sources of the inflated line count on this PR's diff.