Skip to content

Commit ee4d34b

Browse files
committed
Rebase and update SRPs
1 parent 55f0b70 commit ee4d34b

File tree

8 files changed

+35
-28
lines changed

8 files changed

+35
-28
lines changed

cabal.project

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,23 @@ source-repository-package
8484
--sha256: sha256-TDEBINZ3SkhpRNomMdt53bR3gdzgkWR9jIlAr8yrU6o=
8585
subdir:
8686
cardano-crypto-class
87+
cardano-slotting
88+
89+
source-repository-package
90+
type: git
91+
location: https://github.com/input-output-hk/plutus
92+
tag: be9ccfc7f8ecc6ebc577dcf3374a30530ecdb168
93+
--sha256: sha256-R7t5Luc1d9l2tXKg5Jgqye+vQAEONwCrQ9/JDkFCu9M=
94+
subdir:
95+
plutus-core
96+
plutus-ledger-api
97+
plutus-tx
8798

8899
source-repository-package
89100
type: git
90101
location: https://github.com/input-output-hk/cardano-ledger
91-
tag: 0d750d882181b12fad62ff28de056ee85c7e0c0e
92-
--sha256: sha256-LLp+FHSuVG2IsnXDv0aGMRaX19+trs5AT1gql6oji0U=
102+
tag: f5b35692b4d92d664187781a98b7af3fab445bad
103+
--sha256: sha256-krYzn7ct6S52bGLC8vs5/pL421UbP0+jVjxwUhOcbcA=
93104
subdir:
94105
eras/allegra/impl
95106
eras/alonzo/impl
@@ -123,29 +134,19 @@ source-repository-package
123134
source-repository-package
124135
type: git
125136
location: https://github.com/input-output-hk/ouroboros-consensus
126-
tag: c97a657928adaebccf5f38484e910843af8c59e7
127-
--sha256: sha256-LG29k3Ii3+yxkKskTjwlVZ99LJSzuWzUJYjDC5thyiw=
137+
tag: 1e2c0fed8e81c15575bf3cd3aaa9b6efde328d8d
138+
--sha256: sha256-osyNYXxJqg4MS6ISXtEneuYRb0xBIr5ztGmxvMyGTL4=
128139
subdir:
129140
ouroboros-consensus
130141
ouroboros-consensus-cardano
131142
ouroboros-consensus-protocol
132143
ouroboros-consensus-diffusion
133144

134-
source-repository-package
135-
type: git
136-
location: https://github.com/input-output-hk/plutus
137-
tag: be9ccfc7f8ecc6ebc577dcf3374a30530ecdb168
138-
--sha256: sha256-R7t5Luc1d9l2tXKg5Jgqye+vQAEONwCrQ9/JDkFCu9M=
139-
subdir:
140-
plutus-core
141-
plutus-ledger-api
142-
plutus-tx
143-
144145
source-repository-package
145146
type: git
146147
location: https://github.com/input-output-hk/cardano-api
147-
tag: 21c3b09c461659008a93dd0b84aeb50de5b751c0
148-
--sha256: sha256-zvK4qiEQlokkZvleEHEcZGUk5KTLbKL5dV195cJ6IxE=
148+
tag: de211cac855cf7e9e1bcd668a86bc121057efcc1
149+
--sha256: sha256-PX/NITXB65xIIS1enOeHbVZCq0CAksVM1kq24Uco1pg=
149150
subdir:
150151
cardano-api
151152
cardano-api-gen

cardano-cli/cardano-cli.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ library
245245
cardano-git-rev ^>=0.2.2,
246246
cardano-ledger-api,
247247
cardano-ledger-core,
248-
cardano-ping ^>=0.7,
248+
cardano-ping ^>=0.8,
249249
cardano-prelude,
250250
cardano-protocol-tpraos,
251251
cardano-slotting ^>=0.2.0.0,

cardano-cli/src/Cardano/CLI/Compatible/StakePool/Run.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ runStakePoolRegistrationCertificateCmd
110110
createStakePoolRegistrationRequirements
111111
:: ()
112112
=> ShelleyBasedEra era
113-
-> L.PoolParams (L.EraCrypto (ShelleyLedgerEra era))
113+
-> L.PoolParams
114114
-> StakePoolRegistrationRequirements era
115115
createStakePoolRegistrationRequirements sbe pparams =
116116
caseShelleyToBabbageOrConwayEraOnwards

cardano-cli/src/Cardano/CLI/EraBased/Common/Option.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import Cardano.CLI.EraBased.Script.Withdrawal.Type (CliWithdrawalScriptRequireme
3232
import Cardano.CLI.EraBased.Script.Withdrawal.Type qualified as Withdrawal
3333
import Cardano.CLI.Parser
3434
import Cardano.CLI.Read
35-
import Cardano.CLI.Types.Common
36-
import Cardano.CLI.Types.Governance
37-
import Cardano.CLI.Types.Key
38-
import Cardano.CLI.Types.Key.VerificationKey
35+
import Cardano.CLI.Type.Common
36+
import Cardano.CLI.Type.Governance
37+
import Cardano.CLI.Type.Key
38+
import Cardano.CLI.Type.Key.VerificationKey
3939
import Cardano.Ledger.BaseTypes (NonZero, nonZero)
4040

4141
import Control.Monad (void, when)

cardano-cli/src/Cardano/CLI/EraBased/Governance/Actions/Run.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ import Cardano.CLI.EraBased.Governance.Actions.Command qualified as Cmd
2323
import Cardano.CLI.EraIndependent.Hash.Internal.Common (getByteStringFromURL, httpsAndIpfsSchemes)
2424
import Cardano.CLI.Json.Friendly
2525
import Cardano.CLI.Read
26-
import Cardano.CLI.Run.Hash (getByteStringFromURL, httpsAndIpfsSchemes)
2726
import Cardano.CLI.Type.Common
28-
import Cardano.CLI.Type.Errors.GovernanceActionsError
29-
import Cardano.CLI.Type.Errors.HashCmdError (FetchURLError)
27+
import Cardano.CLI.Type.Error.GovernanceActionsError
28+
import Cardano.CLI.Type.Error.HashCmdError (FetchURLError)
3029
import Cardano.CLI.Type.Key
3130
import Cardano.Ledger.Hashes qualified as L
3231

cardano-cli/src/Cardano/CLI/EraIndependent/Hash/Internal/Common.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import Cardano.CLI.Type.Common
2424
, SupportedSchemes
2525
)
2626
import Cardano.CLI.Type.Error.HashCmdError
27+
import Cardano.Ledger.Hashes qualified as L (hashAnnotated)
2728
import Cardano.Prelude (first)
2829

2930
import Control.Exception (throw)

cardano-cli/src/Cardano/CLI/EraIndependent/Hash/Run.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Cardano.CLI.Type.Common
2323
import Cardano.CLI.Type.Error.HashCmdError
2424
import Cardano.Crypto.Hash (hashToTextAsHex)
2525
import Cardano.Crypto.Hash qualified as Crypto
26+
import Cardano.Ledger.Hashes qualified as L
2627
import Cardano.Prelude (ByteString)
2728

2829
import Data.ByteString qualified as BS
@@ -57,7 +58,7 @@ runHashAnchorDataCmd Cmd.HashAnchorDataCmdArgs{toHash, hashGoal} = do
5758
Cmd.AnchorDataHashSourceText text -> return $ Text.encodeUtf8 text
5859
Cmd.AnchorDataHashSourceURL urlText ->
5960
fetchURLToHashCmdError $ getByteStringFromURL allSchemes $ L.urlToText urlText
60-
let hash = L.hashAnchorData anchorData
61+
let hash = L.hashAnnotated anchorData
6162
case hashGoal of
6263
Cmd.CheckHash expectedHash
6364
| hash /= expectedHash ->
@@ -67,7 +68,7 @@ runHashAnchorDataCmd Cmd.HashAnchorDataCmdArgs{toHash, hashGoal} = do
6768
Cmd.HashToFile outFile -> writeHash (Just outFile) hash
6869
Cmd.HashToStdout -> writeHash Nothing hash
6970
where
70-
writeHash :: Maybe (File () Out) -> L.SafeHash L.StandardCrypto i -> ExceptT HashCmdError IO ()
71+
writeHash :: Maybe (File () Out) -> L.SafeHash i -> ExceptT HashCmdError IO ()
7172
writeHash mOutFile hash = do
7273
firstExceptT HashWriteFileError $
7374
newExceptT $

cardano-cli/src/Cardano/CLI/Orphan.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ import Cardano.Api
1212
import Cardano.Api.Ledger qualified as L
1313
import Cardano.Api.Shelley (VotesMergingConflict, scriptDataToJsonDetailedSchema)
1414

15+
import Cardano.Ledger.CertState qualified as L
16+
1517
import Data.Aeson
1618

1719
instance Error (VotesMergingConflict era) where
1820
prettyError = pretty . show
1921

2022
-- TODO upstream this orphaned instance to the ledger
21-
instance (L.EraTxOut ledgerera, L.EraGov ledgerera) => ToJSON (L.NewEpochState ledgerera) where
23+
instance
24+
(L.EraTxOut ledgerera, L.EraGov ledgerera, L.EraCertState ledgerera)
25+
=> ToJSON (L.NewEpochState ledgerera)
26+
where
2227
toJSON (L.NewEpochState nesEL nesBprev nesBCur nesEs nesRu nesPd _stashedAvvm) =
2328
object
2429
[ "currentEpoch" .= nesEL

0 commit comments

Comments
 (0)