Plutus cost model: validate sizes in genesis files#724
Conversation
e7abb54 to
82c6d28
Compare
82c6d28 to
6632c4c
Compare
| , protocolUpdateUTxOCostPerByte = Nothing | ||
| } | ||
| where | ||
| mCostModels :: Maybe (Plutus.CostModels) |
Check warning
Code scanning / HLint
Redundant bracket Warning
| costModels :: Either | ||
| CostModelNotEnoughParametersError | ||
| (Maybe (Map AnyPlutusScriptVersion CostModel)) | ||
| costModels = sequence $ fromAlonzoCostModels <$> mCostModels |
Check warning
Code scanning / HLint
Use mapM Warning
| (\(Ledger.ProtVer a b) -> (Ledger.getVersion a, b)) | ||
| <$> strictMaybeToMaybe (ppu ^. ppuProtocolVersionL) | ||
| } | ||
| (fromAlonzoCommonPParamsUpdate ppu) <&> \ppu' -> |
Check notice
Code scanning / HLint
Redundant bracket Note
| (fromAlonzoCommonPParamsUpdate ppu) | ||
| { protocolUpdateUTxOCostPerByte = unCoinPerByte <$> strictMaybeToMaybe (ppu ^. ppuCoinsPerUTxOByteL) | ||
| } | ||
| (fromAlonzoCommonPParamsUpdate ppu) <&> \ppu' -> |
Check notice
Code scanning / HLint
Redundant bracket Note
| (\(Ledger.ProtVer a b) -> (Ledger.getVersion a, b)) | ||
| <$> strictMaybeToMaybe (ppu ^. ppuProtocolVersionL) | ||
| } | ||
| (fromBabbageCommonPParamsUpdate ppu) <&> \ppu' -> |
Check notice
Code scanning / HLint
Redundant bracket Note
| (fromAlonzoPParams pp) | ||
| { protocolParamUTxOCostPerByte = Just . unCoinPerWord $ pp ^. ppCoinsPerUTxOWordL | ||
| } | ||
| (fromAlonzoPParams pp) <&> \pp' -> |
Check notice
Code scanning / HLint
Redundant bracket Note
| { protocolParamUTxOCostPerByte = Just . unCoinPerByte $ pp ^. ppCoinsPerUTxOByteL | ||
| , protocolParamDecentralization = Nothing | ||
| } | ||
| (fromAlonzoPParams pp) <&> \pp' -> |
Check notice
Code scanning / HLint
Redundant bracket Note
3d6de33 to
dc0d52b
Compare
dc0d52b to
bb8f66f
Compare
bb8f66f to
2a1154b
Compare
| fromAlonzoCostModel :: Alonzo.CostModel -> CostModel | ||
| fromAlonzoCostModel m = CostModel $ Alonzo.getCostModelParams m | ||
|
|
||
| validateCostModelSize |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
Changelog
Context
API part of IntersectMBO/cardano-cli#928
How to trust this PR
TBD
Checklist