tweag / cooked-validators

MIT License
39 stars 11 forks source link

Rework and simplify module structure #218

Closed florentc closed 1 year ago

florentc commented 1 year ago

This pull request refactors the module structure in order to get rid of some meta-named modules (Types, Optics, Monad), anti patterns that lead to crowded modules (Misc, Types), legacy unused code (e.g. Balance) or terminology (e.g. Constraints).

The following changes are introduced:

├── Cooked
│   ├── Attack
│   │   ├── AddToken.hs
│   │   ├── DatumHijacking.hs
│   │   ├── DoubleSat.hs
│   │   └── DupToken.hs
│   ├── Attack.hs
│   ├── Currencies.hs
│   ├── Ltl.hs
│   ├── MockChain
│   │   ├── BlockChain.hs
│   │   ├── Direct.hs
│   │   ├── GenerateTx.hs
│   │   ├── Staged.hs
│   │   ├── Testing.hs
│   │   └── UtxoState.hs
│   ├── MockChain.hs
│   ├── Output.hs
│   ├── Pretty.hs
│   ├── RawUPLC.hs
│   ├── Skeleton.hs
│   ├── Tweak
│   │   ├── AddInputsAndOutputs.hs
│   │   ├── Common.hs
│   │   ├── OutPermutations.hs
│   │   └── TamperDatum.hs
│   ├── Tweak.hs
│   └── Wallet.hs
└── Cooked.hs