-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From (plutus-apps, Babbage era, GHC 8 10 4) to (cardano-node-emulator…
…, Conway era, GHC 9 6 3) (#388) ### Added - File [IMPORTS](doc/IMPORTS.md) to specify how modules should be imported and prefixed - Instaured a standard for naming imports, homogenized all modules accordingly - Default language extensions in package.yaml - A new set of tests `Cooked.BasicUsageSpec` to cover basic use cases - A new validate function `validateTxSkel'` that directly returns a list of utxos - A new typeclass `HasPubKeyHash` to allow payments to wallets directly instead of PKH - An actual content to `hie.yaml` (automatically generated by `gen-hie`) - Support for collaterals in skeleton options, with three options: auto from first signer, auto from given wallet, or given set of utxos. - Top-level comments to all modules - `currencySymbolFromLanguageAndMP` to get the right Currency symbol based on a plutus version and a minting policy - `setParams` in `MonadBlockChainWithoutValidation` to account for future changes of parameters following votes. - `txOptCollateralUtxos` to control which utxos should be used as collaterals - Missing `Eq` instance for `MockChainError` - Full support in `ShowBS` for printing into bytestring the whole transaction context within on-chain code - `validatorToTypedValidator` which does what its name indicates - Adding support for `PrettyCooked` for `TxLbl` ### Removed - Extraneous dependencies in package.yaml - File `Cooked.TestUtils`, its content has been added to `Cooked.MockChain.Testing` - Support for importing scripts from bytestring in module Cooked.RawUPLC, to be added back later on - Deprecated skeleton option: `txOptAwaitTxConfirmed` - Deprecated use of `*` instead of `Type` - Many unused pragmas - Orphan default instance for `Ledger.Slot` - `txOptBalancingUtxos` which was unused and mostly irrelevant ### Changed - Default era from Babbage to Conway - No longer rely on deprecated plutus-apps, but instead [cardano-node-emulator](https://github.com/IntersectMBO/cardano-node-emulator) - From GHC 8.10.4 to 9.6.3 - Rely mostly on [CHaP](https://github.com/IntersectMBO/cardano-haskell-packages?tab=readme-ov-file) instead of direct git sources - Update the cheatsheet to account for various small changes + collaterals - `ImportQualifiedPost` by default - `MockChainEnv` is gone, replaced by the new mcstParams field in `MockChainSt` - The structure of the various steps around transaction validation (fee generation, ensuring min ada...) - Regrouped all important validation steps, including modifications requested in skeleton options in the direct implementation of `validateTxSkel`. - Homogenized and simplified the functions to generate transaction parts from a `TxSkel` by using a reader monad over various parameters. ### Fixed - A bug where the ledger state would not be updated by consumed collaterals - A curious choice where parameter changes for single transactions would be applied several times instead of one - Various warnings around incomplete pattern matches when selecting utxos for balancing, with more suitable algorithms
- Loading branch information
Showing
69 changed files
with
3,373 additions
and
3,432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.