-
Notifications
You must be signed in to change notification settings - Fork 156
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
Add PlutusV3 CostModel to UpgradeConwayPParams #4252
Conversation
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.
I reckon this requires the conway version to become 1.14.0.0.
And the Changelog for both the updated conway version and core 1.11.1.0 to be updated.
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.
Couple of things need adjustment, but otherwise looks good.
8f39ad0
to
25219f8
Compare
25219f8
to
81f11d9
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.
You where able to remove the Default
instance. That's good.
Few changes are still necessary
eras/conway/test-suite/src/Test/Cardano/Ledger/Conway/Examples/Consensus.hs
Show resolved
Hide resolved
81f11d9
to
aaf6707
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.
Once you address @teodanciu's comments this PR is ready to go.
aaf6707
to
09b817e
Compare
Use `updateCostModels` to add them to Conway PParams during tranlation/upgrade from Babbage
09b817e
to
c236b69
Compare
`exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`.
`exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`.
`exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`.
`exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`.
`exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`.
`exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`.
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit)
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit)
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit)
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit)
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit) * Utilize new PParams prediction functionality for HFC * Accept new cbor format for golden tests
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit)
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit)
* Update `index-state` and affected `cardano-ledger` version bounds: `cardano-ledger` requires `plutus-ledger-api ^>=1.26.0`, hence the `index-state` update * Use `StandardCrypto` in protocol info tests: `exampleConwayGenesis` was made monomorphic here: IntersectMBO/cardano-ledger#4252 The `Crypto c` constraint was removed and now it uses `StandardCrypto`. * Add `plutusV3CostModel` to `Conway` genesis file * Update `SupportsTwoPhaseValidation` instance for `Conway`: `ConwayUtxowFailure` was fixed to get rid of the possibility of injecting `UtxoFailure` in two separate ways (as seen in the code removed by this commit)
Description
Resolves #4224
Checklist
.cabal
andCHANGELOG.md
files according to theversioning process.
.cabal
files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)CHANGELOG.md
for the affected packages. New section is never added with the code changes. (See RELEASING.md)fourmolu
(usescripts/fourmolize.sh
)scripts/cabal-format.sh
)hie.yaml
has been updated (usescripts/gen-hie.sh
)