@@ -30,7 +30,6 @@ module Test.Gen.Cardano.Api.Typed
3030 , genMaybePraosNonce
3131 , genPraosNonce
3232 , genValidProtocolParameters
33- , genProtocolParameters
3433 , genValueNestedRep
3534 , genValueNestedBundle
3635 , genByronKeyWitness
@@ -1194,40 +1193,7 @@ genPraosNonce = makePraosNonce <$> Gen.bytes (Range.linear 0 32)
11941193genMaybePraosNonce :: Gen (Maybe PraosNonce )
11951194genMaybePraosNonce = Gen. maybe genPraosNonce
11961195
1197- genProtocolParameters :: CardanoEra era -> Gen ProtocolParameters
1198- genProtocolParameters era = do
1199- protocolParamProtocolVersion <- (,) <$> genNat <*> genNat
1200- protocolParamDecentralization <- Gen. maybe genRational
1201- protocolParamExtraPraosEntropy <- genMaybePraosNonce
1202- protocolParamMaxBlockHeaderSize <- genNat
1203- protocolParamMaxBlockBodySize <- genNat
1204- protocolParamMaxTxSize <- genNat
1205- protocolParamTxFeeFixed <- genLovelace
1206- protocolParamTxFeePerByte <- genLovelace
1207- protocolParamMinUTxOValue <- Gen. maybe genLovelace
1208- protocolParamStakeAddressDeposit <- genLovelace
1209- protocolParamStakePoolDeposit <- genLovelace
1210- protocolParamMinPoolCost <- genLovelace
1211- protocolParamPoolRetireMaxEpoch <- genEpochInterval
1212- protocolParamStakePoolTargetNum <- genWord16
1213- protocolParamPoolPledgeInfluence <- genRationalInt64
1214- protocolParamMonetaryExpansion <- genRational
1215- protocolParamTreasuryCut <- genRational
1216- let protocolParamCostModels = mempty
1217- -- TODO: Babbage figure out how to deal with
1218- -- asymmetric cost model JSON instances
1219- protocolParamPrices <- Gen. maybe genExecutionUnitPrices
1220- protocolParamMaxTxExUnits <- Gen. maybe genExecutionUnits
1221- protocolParamMaxBlockExUnits <- Gen. maybe genExecutionUnits
1222- protocolParamMaxValueSize <- Gen. maybe genNat
1223- protocolParamCollateralPercent <- Gen. maybe genNat
1224- protocolParamMaxCollateralInputs <- Gen. maybe genNat
1225- protocolParamUTxOCostPerByte <-
1226- inEonForEra @ BabbageEraOnwards (pure Nothing ) (const (Just <$> genLovelace)) era
1227-
1228- pure ProtocolParameters {.. }
1229-
1230- -- | Generate valid protocol parameters which pass validations in Cardano.Api.Internal.ProtocolParameters
1196+ -- | Generate valid protocol parameters which pass validations in Cardano.Api.ProtocolParameters
12311197genValidProtocolParameters :: ShelleyBasedEra era -> Gen (LedgerProtocolParameters era )
12321198genValidProtocolParameters sbe = shelleyBasedEraTestConstraints sbe $ LedgerProtocolParameters <$> Q. arbitrary
12331199
0 commit comments