@@ -382,8 +382,8 @@ runGenesisCreateTestNetDataCmd
382382 addDRepsToConwayGenesis dRepKeys (map snd delegatorKeys) conwayGenesis
383383 <&> addCommitteeToConwayGenesis ccColdKeys
384384
385- let stake = second L. ppId . mkDelegationMapEntry <$> delegations
386- stakePools = [(L. ppId poolParams', poolParams') | poolParams' <- snd . mkDelegationMapEntry <$> delegations]
385+ let stake = second L. sppId . mkDelegationMapEntry <$> delegations
386+ stakePools = [(L. sppId poolParams', poolParams') | poolParams' <- snd . mkDelegationMapEntry <$> delegations]
387387 delegAddrs = dInitialUtxoAddr <$> delegations
388388 ! shelleyGenesis' <-
389389 fromExceptTCli $
@@ -447,7 +447,7 @@ runGenesisCreateTestNetDataCmd
447447 mkPoolDir idx = poolsDir </> (" pool" <> show idx)
448448
449449 mkDelegationMapEntry
450- :: Delegation -> (L. KeyHash L. Staking , L. PoolParams )
450+ :: Delegation -> (L. KeyHash L. Staking , L. StakePoolParams )
451451 mkDelegationMapEntry d = (dDelegStaking d, dPoolParams d)
452452
453453 addCommitteeToConwayGenesis
@@ -751,7 +751,7 @@ createPoolCredentials fmt dir = do
751751data Delegation = Delegation
752752 { dInitialUtxoAddr :: ! (AddressInEra ShelleyEra )
753753 , dDelegStaking :: ! (L. KeyHash L. Staking )
754- , dPoolParams :: ! L. PoolParams
754+ , dPoolParams :: ! L. StakePoolParams
755755 }
756756 deriving (Generic , NFData )
757757
@@ -763,7 +763,7 @@ buildPoolParams
763763 -- ^ The index of the pool being built. Starts at 0.
764764 -> Map Word [L. StakePoolRelay ]
765765 -- ^ User submitted stake pool relay map. Starts at 0
766- -> ExceptT GenesisCmdError IO L. PoolParams
766+ -> ExceptT GenesisCmdError IO L. StakePoolParams
767767buildPoolParams nw dir index specifiedRelays = do
768768 StakePoolVerificationKey poolColdVK <-
769769 firstExceptT (GenesisCmdStakePoolCmdError . StakePoolCmdReadFileError )
@@ -780,17 +780,17 @@ buildPoolParams nw dir index specifiedRelays = do
780780 $ readFileTextEnvelope poolRewardVKF
781781
782782 pure
783- L. PoolParams
784- { L. ppId = L. hashKey poolColdVK
785- , L. ppVrf = C. hashVerKeyVRF @ StandardCrypto poolVrfVK
786- , L. ppPledge = L. Coin 0
787- , L. ppCost = L. Coin 0
788- , L. ppMargin = minBound
789- , L. ppRewardAccount =
783+ L. StakePoolParams
784+ { L. sppId = L. hashKey poolColdVK
785+ , L. sppVrf = C. hashVerKeyVRF @ StandardCrypto poolVrfVK
786+ , L. sppPledge = L. Coin 0
787+ , L. sppCost = L. Coin 0
788+ , L. sppMargin = minBound
789+ , L. sppAccountAddress =
790790 toShelleyStakeAddr $ makeStakeAddress nw $ StakeCredentialByKey (verificationKeyHash rewardsSVK)
791- , L. ppOwners = mempty
792- , L. ppRelays = lookupPoolRelay specifiedRelays
793- , L. ppMetadata = L. SNothing
791+ , L. sppOwners = mempty
792+ , L. sppRelays = lookupPoolRelay specifiedRelays
793+ , L. sppMetadata = L. SNothing
794794 }
795795 where
796796 lookupPoolRelay :: Map Word [L. StakePoolRelay ] -> Seq. StrictSeq L. StakePoolRelay
@@ -812,7 +812,7 @@ computeInsecureStakeKeyAddr g0 = do
812812computeDelegation
813813 :: NetworkId
814814 -> (VerificationKey PaymentKey , VerificationKey StakeKey )
815- -> L. PoolParams
815+ -> L. StakePoolParams
816816 -> Delegation
817817computeDelegation nw (paymentVK, stakeVK) dPoolParams = do
818818 let paymentCredential = PaymentCredentialByKey (verificationKeyHash paymentVK)
@@ -835,9 +835,9 @@ updateOutputTemplate
835835 -- ^ Total amount of lovelace
836836 -> [AddressInEra ShelleyEra ]
837837 -- ^ UTxO addresses that are not delegating
838- -> [(L. KeyHash ' L.StakePool , L. PoolParams )]
838+ -> [(L. KeyHash L. StakePool , L. StakePoolParams )]
839839 -- ^ Pool map
840- -> [(L. KeyHash ' L.Staking , L. KeyHash ' L.StakePool )]
840+ -> [(L. KeyHash L. Staking , L. KeyHash L. StakePool )]
841841 -- ^ Delegaton map
842842 -> Maybe Lovelace
843843 -- ^ Amount of lovelace to delegate
0 commit comments