Skip to content

Commit

Permalink
cardano-ledger upgrade: StakePoolTargetNum change to Word16
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmayhew authored and carbolymer committed Dec 30, 2024
1 parent 0ad8d68 commit fdd2b4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ genProtocolParameters era = do
protocolParamStakePoolDeposit <- genLovelace
protocolParamMinPoolCost <- genLovelace
protocolParamPoolRetireMaxEpoch <- genEpochInterval
protocolParamStakePoolTargetNum <- genNat
protocolParamStakePoolTargetNum <- genWord16
protocolParamPoolPledgeInfluence <- genRationalInt64
protocolParamMonetaryExpansion <- genRational
protocolParamTreasuryCut <- genRational
Expand Down Expand Up @@ -1042,7 +1042,7 @@ genProtocolParametersUpdate era = do
protocolUpdateStakePoolDeposit <- Gen.maybe genLovelace
protocolUpdateMinPoolCost <- Gen.maybe genLovelace
protocolUpdatePoolRetireMaxEpoch <- Gen.maybe genEpochInterval
protocolUpdateStakePoolTargetNum <- Gen.maybe genNat
protocolUpdateStakePoolTargetNum <- Gen.maybe genWord16
protocolUpdatePoolPledgeInfluence <- Gen.maybe genRationalInt64
protocolUpdateMonetaryExpansion <- Gen.maybe genRational
protocolUpdateTreasuryCut <- Gen.maybe genRational
Expand Down
6 changes: 3 additions & 3 deletions cardano-api/internal/Cardano/Api/ProtocolParameters.hs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ data CommonProtocolParametersUpdate
, cppKeyDeposit :: StrictMaybe Ledger.Coin
, cppPoolDeposit :: StrictMaybe Ledger.Coin
, cppPoolRetireMaxEpoch :: StrictMaybe Ledger.EpochInterval
, cppStakePoolTargetNum :: StrictMaybe Natural
, cppStakePoolTargetNum :: StrictMaybe Word16
, cppPoolPledgeInfluence :: StrictMaybe Ledger.NonNegativeInterval
, cppTreasuryExpansion :: StrictMaybe Ledger.UnitInterval
, cppMonetaryExpansion :: StrictMaybe Ledger.UnitInterval
Expand Down Expand Up @@ -526,7 +526,7 @@ data ProtocolParameters
, protocolParamPoolRetireMaxEpoch :: Ledger.EpochInterval
-- ^ The maximum number of epochs into the future that stake pools
-- are permitted to schedule a retirement.
, protocolParamStakePoolTargetNum :: Natural
, protocolParamStakePoolTargetNum :: Word16
-- ^ The equilibrium target number of stake pools.
--
-- This is the \"k\" incentives parameter from the design document.
Expand Down Expand Up @@ -710,7 +710,7 @@ data ProtocolParametersUpdate
, protocolUpdatePoolRetireMaxEpoch :: Maybe Ledger.EpochInterval
-- ^ The maximum number of epochs into the future that stake pools
-- are permitted to schedule a retirement.
, protocolUpdateStakePoolTargetNum :: Maybe Natural
, protocolUpdateStakePoolTargetNum :: Maybe Word16
-- ^ The equilibrium target number of stake pools.
--
-- This is the \"k\" incentives parameter from the design document.
Expand Down

0 comments on commit fdd2b4f

Please sign in to comment.