@@ -55,7 +55,7 @@ import qualified Cardano.Ledger.Conway.Governance as CG
5555import qualified Cardano.Ledger.Conway.State as CG
5656import qualified Cardano.Ledger.Core as SL
5757import Cardano.Ledger.Credential (StakeCredential )
58- import Cardano.Ledger.Keys (KeyHash , KeyRole ( .. ) )
58+ import Cardano.Ledger.Keys (KeyHash )
5959import qualified Cardano.Ledger.Shelley.API as SL
6060import qualified Cardano.Ledger.Shelley.Core as LC
6161import qualified Cardano.Ledger.Shelley.RewardProvenance as SL
@@ -127,15 +127,15 @@ import Ouroboros.Network.PeerSelection.LedgerPeers.Utils
127127newtype NonMyopicMemberRewards = NonMyopicMemberRewards
128128 { unNonMyopicMemberRewards ::
129129 Map
130- (Either SL. Coin (SL. Credential ' SL.Staking ))
131- (Map (SL. KeyHash ' SL.StakePool ) SL. Coin )
130+ (Either SL. Coin (SL. Credential SL. Staking ))
131+ (Map (SL. KeyHash SL. StakePool ) SL. Coin )
132132 }
133133 deriving stock Show
134134 deriving newtype (Eq , ToCBOR , FromCBOR )
135135
136- type Delegations = Map (SL. Credential ' SL.Staking ) (SL. KeyHash ' SL.StakePool )
136+ type Delegations = Map (SL. Credential SL. Staking ) (SL. KeyHash SL. StakePool )
137137
138- type VoteDelegatees = Map (SL. Credential ' SL.Staking ) SL. DRep
138+ type VoteDelegatees = Map (SL. Credential SL. Staking ) SL. DRep
139139
140140{-# DEPRECATED GetProposedPParamsUpdates "Deprecated in ShelleyNodeToClientVersion12" #-}
141141{-# DEPRECATED
@@ -153,7 +153,7 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
153153 -- | Calculate the Non-Myopic Pool Member Rewards for a set of
154154 -- credentials. See 'SL.getNonMyopicMemberRewards'
155155 GetNonMyopicMemberRewards ::
156- Set (Either SL. Coin (SL. Credential ' SL.Staking )) ->
156+ Set (Either SL. Coin (SL. Credential SL. Staking )) ->
157157 BlockQuery (ShelleyBlock proto era ) QFNoTables NonMyopicMemberRewards
158158 GetCurrentPParams ::
159159 BlockQuery (ShelleyBlock proto era ) QFNoTables (LC. PParams era )
@@ -200,11 +200,11 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
200200 BlockQuery (ShelleyBlock proto era ) fp result ->
201201 BlockQuery (ShelleyBlock proto era ) fp (Serialised result )
202202 GetFilteredDelegationsAndRewardAccounts ::
203- Set (SL. Credential ' SL.Staking ) ->
203+ Set (SL. Credential SL. Staking ) ->
204204 BlockQuery
205205 (ShelleyBlock proto era )
206206 QFNoTables
207- (Delegations , Map (SL. Credential ' Staking) Coin )
207+ (Delegations , Map (SL. Credential SL. Staking ) Coin )
208208 GetGenesisConfig ::
209209 BlockQuery (ShelleyBlock proto era ) QFNoTables CompactGenesis
210210 -- | Only for debugging purposes, we make no effort to ensure binary
@@ -226,36 +226,36 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
226226 BlockQuery
227227 (ShelleyBlock proto era )
228228 QFNoTables
229- (Set (SL. KeyHash ' SL.StakePool ))
229+ (Set (SL. KeyHash SL. StakePool ))
230230 GetStakePoolParams ::
231- Set (SL. KeyHash ' SL.StakePool ) ->
231+ Set (SL. KeyHash SL. StakePool ) ->
232232 BlockQuery
233233 (ShelleyBlock proto era )
234234 QFNoTables
235- (Map (SL. KeyHash ' SL.StakePool ) SL. StakePoolParams )
235+ (Map (SL. KeyHash SL. StakePool ) SL. StakePoolParams )
236236 GetRewardInfoPools ::
237237 BlockQuery
238238 (ShelleyBlock proto era )
239239 QFNoTables
240240 ( SL. RewardParams
241241 , Map
242- (SL. KeyHash ' SL.StakePool )
242+ (SL. KeyHash SL. StakePool )
243243 (SL. RewardInfoPool )
244244 )
245245 GetPoolState ::
246- Maybe (Set (SL. KeyHash ' SL.StakePool )) ->
246+ Maybe (Set (SL. KeyHash SL. StakePool )) ->
247247 BlockQuery
248248 (ShelleyBlock proto era )
249249 QFNoTables
250250 SL. QueryPoolStateResult
251251 GetStakeSnapshots ::
252- Maybe (Set (SL. KeyHash ' SL.StakePool )) ->
252+ Maybe (Set (SL. KeyHash SL. StakePool )) ->
253253 BlockQuery
254254 (ShelleyBlock proto era )
255255 QFNoTables
256256 StakeSnapshots
257257 GetPoolDistr ::
258- Maybe (Set (SL. KeyHash ' SL.StakePool )) ->
258+ Maybe (Set (SL. KeyHash SL. StakePool )) ->
259259 BlockQuery
260260 (ShelleyBlock proto era )
261261 QFNoTables
@@ -280,12 +280,12 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
280280 -- Not supported in eras before Conway.
281281 GetDRepState ::
282282 (CG. ConwayEraGov era , CG. ConwayEraCertState era ) =>
283- Set (SL. Credential ' DRepRole) ->
283+ Set (SL. Credential SL. DRepRole ) ->
284284 BlockQuery
285285 (ShelleyBlock proto era )
286286 QFNoTables
287287 ( Map
288- (SL. Credential ' DRepRole)
288+ (SL. Credential SL. DRepRole )
289289 SL. DRepState
290290 )
291291 -- | Query the 'DRep' stake distribution. Note that this can be an expensive
@@ -305,8 +305,8 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
305305 -- Not supported in eras before Conway.
306306 GetCommitteeMembersState ::
307307 (CG. ConwayEraGov era , CG. ConwayEraCertState era ) =>
308- Set (SL. Credential ' ColdCommitteeRole) ->
309- Set (SL. Credential ' HotCommitteeRole) ->
308+ Set (SL. Credential SL. ColdCommitteeRole ) ->
309+ Set (SL. Credential SL. HotCommitteeRole ) ->
310310 Set SL. MemberStatus ->
311311 BlockQuery (ShelleyBlock proto era ) QFNoTables SL. CommitteeMembersState
312312 -- | The argument specifies the credential of each account whose delegatee
@@ -316,7 +316,7 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
316316 -- Not supported in eras before Conway.
317317 GetFilteredVoteDelegatees ::
318318 CG. ConwayEraGov era =>
319- Set (SL. Credential ' SL.Staking ) ->
319+ Set (SL. Credential SL. Staking ) ->
320320 BlockQuery (ShelleyBlock proto era ) QFNoTables VoteDelegatees
321321 GetAccountState ::
322322 BlockQuery (ShelleyBlock proto era ) QFNoTables SL. ChainAccountState
@@ -328,8 +328,8 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
328328 -- Not supported in eras before Conway.
329329 GetSPOStakeDistr ::
330330 CG. ConwayEraGov era =>
331- Set (KeyHash ' StakePool) ->
332- BlockQuery (ShelleyBlock proto era ) QFNoTables (Map (KeyHash ' StakePool) Coin )
331+ Set (KeyHash SL. StakePool ) ->
332+ BlockQuery (ShelleyBlock proto era ) QFNoTables (Map (KeyHash SL. StakePool ) Coin )
333333 GetProposals ::
334334 CG. ConwayEraGov era =>
335335 Set CG. GovActionId ->
@@ -347,10 +347,10 @@ data instance BlockQuery (ShelleyBlock proto era) fp result where
347347 BlockQuery (ShelleyBlock proto era ) QFNoTables LedgerPeerSnapshot
348348 QueryStakePoolDefaultVote ::
349349 CG. ConwayEraGov era =>
350- KeyHash ' StakePool ->
350+ KeyHash SL. StakePool ->
351351 BlockQuery (ShelleyBlock proto era ) QFNoTables CG. DefaultVote
352352 GetPoolDistr2 ::
353- Maybe (Set (SL. KeyHash ' SL.StakePool )) ->
353+ Maybe (Set (SL. KeyHash SL. StakePool )) ->
354354 BlockQuery
355355 (ShelleyBlock proto era )
356356 QFNoTables
@@ -441,16 +441,16 @@ instance
441441 , SL. ssStakeGo
442442 } = SL. esSnapshots . SL. nesEs $ st
443443
444- totalMarkByPoolId :: Map (KeyHash ' StakePool) Coin
444+ totalMarkByPoolId :: Map (KeyHash SL. StakePool ) Coin
445445 totalMarkByPoolId = SL. sumStakePerPool (SL. ssDelegations ssStakeMark) (SL. ssStake ssStakeMark)
446446
447- totalSetByPoolId :: Map (KeyHash ' StakePool) Coin
447+ totalSetByPoolId :: Map (KeyHash SL. StakePool ) Coin
448448 totalSetByPoolId = SL. sumStakePerPool (SL. ssDelegations ssStakeSet) (SL. ssStake ssStakeSet)
449449
450- totalGoByPoolId :: Map (KeyHash ' StakePool) Coin
450+ totalGoByPoolId :: Map (KeyHash SL. StakePool ) Coin
451451 totalGoByPoolId = SL. sumStakePerPool (SL. ssDelegations ssStakeGo) (SL. ssStake ssStakeGo)
452452
453- getPoolStakes :: Set (KeyHash ' StakePool) -> Map (KeyHash ' StakePool) StakeSnapshot
453+ getPoolStakes :: Set (KeyHash SL. StakePool ) -> Map (KeyHash SL. StakePool ) StakeSnapshot
454454 getPoolStakes poolIds = Map. fromSet mkStakeSnapshot poolIds
455455 where
456456 mkStakeSnapshot poolId =
@@ -821,14 +821,14 @@ getDState = view SL.certDStateL . SL.lsCertState . SL.esLState . SL.nesEs
821821getFilteredDelegationsAndRewardAccounts ::
822822 SL. EraCertState era =>
823823 SL. NewEpochState era ->
824- Set (SL. Credential ' SL.Staking ) ->
825- (Delegations , Map (SL. Credential ' Staking) Coin )
824+ Set (SL. Credential SL. Staking ) ->
825+ (Delegations , Map (SL. Credential SL. Staking ) Coin )
826826getFilteredDelegationsAndRewardAccounts = SL. queryStakePoolDelegsAndRewards
827827
828828getFilteredVoteDelegatees ::
829829 (SL. EraCertState era , CG. ConwayEraAccounts era ) =>
830830 SL. NewEpochState era ->
831- Set (SL. Credential ' SL.Staking ) ->
831+ Set (SL. Credential SL. Staking ) ->
832832 VoteDelegatees
833833getFilteredVoteDelegatees ss creds
834834 | Set. null creds =
@@ -1163,7 +1163,7 @@ instance FromCBOR StakeSnapshot where
11631163 <*> fromCBOR
11641164
11651165data StakeSnapshots = StakeSnapshots
1166- { ssStakeSnapshots :: ! (Map (SL. KeyHash ' SL.StakePool ) StakeSnapshot )
1166+ { ssStakeSnapshots :: ! (Map (SL. KeyHash SL. StakePool ) StakeSnapshot )
11671167 , ssMarkTotal :: ! SL. Coin
11681168 , ssSetTotal :: ! SL. Coin
11691169 , ssGoTotal :: ! SL. Coin
0 commit comments