@@ -681,8 +681,8 @@ runGenesisCreateStakedCmd
681681 stuffedUtxoAddrs <-
682682 liftIO $ Lazy. replicateM (fromIntegral numStuffedUtxo) $ genStuffedAddress network
683683
684- let stake = second L. ppId . mkDelegationMapEntry <$> delegations
685- stakePools = [(L. ppId poolParams', poolParams') | poolParams' <- snd . mkDelegationMapEntry <$> delegations]
684+ let stake = second L. sppId . mkDelegationMapEntry <$> delegations
685+ stakePools = [(L. sppId poolParams', poolParams') | poolParams' <- snd . mkDelegationMapEntry <$> delegations]
686686 delegAddrs = dInitialUtxoAddr <$> delegations
687687 ! shelleyGenesis =
688688 updateOutputTemplate
@@ -740,7 +740,7 @@ runGenesisCreateStakedCmd
740740 where
741741 adjustTemplate t = t{sgNetworkMagic = unNetworkMagic (toNetworkMagic networkId)}
742742 mkDelegationMapEntry
743- :: Delegation -> (L. KeyHash L. Staking , L. PoolParams )
743+ :: Delegation -> (L. KeyHash L. Staking , L. StakePoolParams )
744744 mkDelegationMapEntry d = (dDelegStaking d, dPoolParams d)
745745
746746-- -------------------------------------------------------------------------------------------------
@@ -756,9 +756,9 @@ updateOutputTemplate
756756 -- ^ Number of UTxO addresses that are delegating
757757 -> [AddressInEra ShelleyEra ]
758758 -- ^ UTxO addresses that are not delegating
759- -> [(L. KeyHash ' L.StakePool , L. PoolParams )]
759+ -> [(L. KeyHash L. StakePool , L. StakePoolParams )]
760760 -- ^ Pool map
761- -> [(L. KeyHash ' L.Staking , L. KeyHash ' L.StakePool )]
761+ -> [(L. KeyHash L. Staking , L. KeyHash L. StakePool )]
762762 -- ^ Delegaton map
763763 -> Maybe Lovelace
764764 -- ^ Amount of lovelace to delegate
@@ -939,7 +939,7 @@ createPoolCredentials fmt dir index = do
939939data Delegation = Delegation
940940 { dInitialUtxoAddr :: ! (AddressInEra ShelleyEra )
941941 , dDelegStaking :: ! (L. KeyHash L. Staking )
942- , dPoolParams :: ! L. PoolParams
942+ , dPoolParams :: ! L. StakePoolParams
943943 }
944944 deriving (Generic , NFData )
945945
@@ -950,7 +950,7 @@ buildPoolParams
950950 -> Maybe Word
951951 -> Map Word [L. StakePoolRelay ]
952952 -- ^ User submitted stake pool relay map
953- -> ExceptT GenesisCmdError IO L. PoolParams
953+ -> ExceptT GenesisCmdError IO L. StakePoolParams
954954buildPoolParams nw dir index specifiedRelays = do
955955 StakePoolVerificationKey poolColdVK <-
956956 firstExceptT (GenesisCmdStakePoolCmdError . StakePoolCmdReadFileError )
@@ -967,17 +967,17 @@ buildPoolParams nw dir index specifiedRelays = do
967967 $ readFileTextEnvelope @ (VerificationKey StakeKey ) poolRewardVKF
968968
969969 pure
970- L. PoolParams
971- { L. ppId = L. hashKey poolColdVK
972- , L. ppVrf = C. hashVerKeyVRF @ C. StandardCrypto poolVrfVK
973- , L. ppPledge = L. Coin 0
974- , L. ppCost = L. Coin 0
975- , L. ppMargin = minBound
976- , L. ppRewardAccount =
970+ L. StakePoolParams
971+ { L. sppId = L. hashKey poolColdVK
972+ , L. sppVrf = C. hashVerKeyVRF @ C. StandardCrypto poolVrfVK
973+ , L. sppPledge = L. Coin 0
974+ , L. sppCost = L. Coin 0
975+ , L. sppMargin = minBound
976+ , L. sppAccountAddress =
977977 toShelleyStakeAddr $ makeStakeAddress nw $ StakeCredentialByKey (verificationKeyHash rewardsSVK)
978- , L. ppOwners = mempty
979- , L. ppRelays = lookupPoolRelay specifiedRelays
980- , L. ppMetadata = L. SNothing
978+ , L. sppOwners = mempty
979+ , L. sppRelays = lookupPoolRelay specifiedRelays
980+ , L. sppMetadata = L. SNothing
981981 }
982982 where
983983 lookupPoolRelay
@@ -1030,7 +1030,7 @@ writeBulkPoolCredentials dir bulkIx poolIxs = do
10301030computeInsecureDelegation
10311031 :: StdGen
10321032 -> NetworkId
1033- -> L. PoolParams
1033+ -> L. StakePoolParams
10341034 -> IO (StdGen , Delegation )
10351035computeInsecureDelegation g0 nw pool = do
10361036 (paymentVK, g1) <- first getVerificationKey <$> generateInsecureSigningKey g0 AsPaymentKey
@@ -1080,7 +1080,7 @@ updateTemplate
10801080 -- ^ Amount of lovelace not delegated
10811081 -> [AddressInEra ShelleyEra ]
10821082 -- ^ UTxO addresses that are not delegating
1083- -> Map (L. KeyHash ' L.Staking ) L. PoolParams
1083+ -> Map (L. KeyHash L. Staking ) L. StakePoolParams
10841084 -- ^ Genesis staking: pools/delegation map & delegated initial UTxO spec
10851085 -> Lovelace
10861086 -- ^ Number of UTxO Addresses for delegation
@@ -1120,10 +1120,10 @@ updateTemplate
11201120 ShelleyGenesisStaking
11211121 { sgsPools =
11221122 fromList
1123- [ (L. ppId poolParams, poolParams)
1123+ [ (L. sppId poolParams, poolParams)
11241124 | poolParams <- Map. elems poolSpecs
11251125 ]
1126- , sgsStake = ListMap. fromMap $ L. ppId <$> poolSpecs
1126+ , sgsStake = ListMap. fromMap $ L. sppId <$> poolSpecs
11271127 }
11281128 , sgProtocolParams = pparamsFromTemplate
11291129 }
0 commit comments