Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosLopezDeLara committed Feb 1, 2025
1 parent ce5b01a commit 3827250
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cardano-api/internal/Cardano/Api/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ data QueryInShelleyBasedEra era result where
:: QueryInShelleyBasedEra era (Ledger.PParams (ShelleyLedgerEra era))
QueryProtocolParametersUpdate
:: QueryInShelleyBasedEra
era
(Map (Hash GenesisKey) ProtocolParametersUpdate)
era
(Map (Hash GenesisKey) ProtocolParametersUpdate)
QueryStakeDistribution
:: QueryInShelleyBasedEra era (Map (Hash StakePoolKey) Rational)
QueryUTxO
Expand Down Expand Up @@ -287,8 +287,8 @@ data QueryInShelleyBasedEra era result where
QueryDRepState
:: Set (Shelley.Credential Shelley.DRepRole StandardCrypto)
-> QueryInShelleyBasedEra
era
(Map (Shelley.Credential Shelley.DRepRole StandardCrypto) (L.DRepState StandardCrypto))
era
(Map (Shelley.Credential Shelley.DRepRole StandardCrypto) (L.DRepState StandardCrypto))
QueryDRepStakeDistr
:: Set (Ledger.DRep StandardCrypto)
-> QueryInShelleyBasedEra era (Map (Ledger.DRep StandardCrypto) L.Coin)
Expand Down Expand Up @@ -541,8 +541,8 @@ fromShelleyPoolDistr =

fromShelleyDelegations
:: Map
(Shelley.Credential Shelley.Staking StandardCrypto)
(Shelley.KeyHash Shelley.StakePool StandardCrypto)
(Shelley.Credential Shelley.Staking StandardCrypto)
(Shelley.KeyHash Shelley.StakePool StandardCrypto)
-> Map StakeCredential PoolId
fromShelleyDelegations =
-- TODO: write an appropriate property to show it is safe to use
Expand Down Expand Up @@ -686,7 +686,9 @@ toConsensusQueryShelleyBased sbe = \case
sbe
QueryFuturePParams ->
caseShelleyToBabbageOrConwayEraOnwards
(const $ error "toConsensusQueryShelleyBased: QueryFuturePParams is only available in the Conway era onwards")
( const $
error "toConsensusQueryShelleyBased: QueryFuturePParams is only available in the Conway era onwards"
)
(const $ Some (consensusQueryInEraInMode era Consensus.GetFuturePParams))
sbe
QueryDRepState creds ->
Expand Down

0 comments on commit 3827250

Please sign in to comment.