Skip to content

Commit

Permalink
Import StandardCrypto from Cardano.Ledger.Api
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Aug 5, 2024
1 parent 0e6a163 commit 7774faa
Show file tree
Hide file tree
Showing 22 changed files with 49 additions and 53 deletions.
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Block/HeaderHash.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ where

import Prelude

import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Binary
( EncCBOR
, EncCBORGroup
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Ledger.Era
( EraSegWits (..)
)
Expand Down
6 changes: 2 additions & 4 deletions lib/read/lib/Cardano/Read/Ledger/Tx/Certificates.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ module Cardano.Read.Ledger.Tx.Certificates
import Prelude

import Cardano.Ledger.Api
( bodyTxL
( StandardCrypto
, bodyTxL
, certsTxBodyL
)
import Cardano.Ledger.Conway.TxCert
( ConwayTxCert
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Ledger.Shelley.TxCert
( ShelleyTxCert
)
Expand Down
6 changes: 2 additions & 4 deletions lib/read/lib/Cardano/Read/Ledger/Tx/CollateralInputs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ module Cardano.Read.Ledger.Tx.CollateralInputs
import Prelude

import Cardano.Ledger.Api
( collateralInputsTxBodyL
( StandardCrypto
, collateralInputsTxBodyL
)
import Cardano.Ledger.Core
( bodyTxL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Read.Ledger.Tx.Eras
( onTx
)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/CollateralOutputs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module Cardano.Read.Ledger.Tx.CollateralOutputs

import Prelude

import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Babbage.Collateral
()
import Cardano.Ledger.Babbage.Rules
Expand All @@ -36,9 +39,6 @@ import Cardano.Ledger.Babbage.TxBody
import Cardano.Ledger.Core
( bodyTxL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Read.Ledger.Tx.Eras
( onTx
)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/ExtraSigs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import Prelude
import Cardano.Ledger.Alonzo.TxBody
( reqSignerHashesTxBodyL
)
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Core
( bodyTxL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Ledger.Keys
( KeyHash
, KeyRole (..)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/Inputs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ module Cardano.Read.Ledger.Tx.Inputs

import Prelude

import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Core
( bodyTxL
, inputsTxBodyL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Read.Ledger.Tx.Eras
( onTx
)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/Integrity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ import Cardano.Ledger.Alonzo.Tx
import Cardano.Ledger.Alonzo.TxBody
( scriptIntegrityHashTxBodyL
)
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Core
( bodyTxL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Read.Ledger.Tx.Eras
( onTx
)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/Mint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ module Cardano.Read.Ledger.Tx.Mint

import Prelude

import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Core
( bodyTxL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Ledger.Mary.Core
( mintTxBodyL
)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/ReferenceInputs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ module Cardano.Read.Ledger.Tx.ReferenceInputs

import Prelude

import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Babbage.TxBody
( referenceInputsTxBodyL
)
import Cardano.Ledger.Core
( bodyTxL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Read.Ledger.Tx.Eras
( onTx
)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/TxId.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import Cardano.Chain.UTxO
import Cardano.Crypto.Hashing
( serializeCborHash
)
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Core
( bodyTxL
, txIdTxBody
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Read.Ledger.Tx.Eras
( onTx
)
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Read/Ledger/Tx/Withdrawals.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ import Cardano.Ledger.Address
( RewardAccount
, unWithdrawals
)
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Coin
( Coin
)
import Cardano.Ledger.Core
( bodyTxL
, withdrawalsTxBodyL
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Read.Ledger.Tx.Eras
( onTx
)
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Read/Ledger/Value.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Cardano.Read.Ledger.Value

import Prelude

import Cardano.Ledger.Crypto
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Wallet.Read.Eras
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Wallet/Read/Block/Gen/Babbage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import Cardano.Crypto.VRF
( CertifiedVRF (CertifiedVRF)
, VRFAlgorithm (..)
)
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.BaseTypes
( ProtVer (..)
)
Expand Down Expand Up @@ -63,9 +66,6 @@ import Ouroboros.Consensus.Protocol.Praos.Header
( Header (..)
, HeaderBody (..)
)
import Ouroboros.Consensus.Protocol.TPraos
( StandardCrypto
)

import qualified Cardano.Ledger.Core as L
import qualified Cardano.Ledger.Slot as L
Expand Down
6 changes: 4 additions & 2 deletions lib/read/lib/Cardano/Wallet/Read/Block/Gen/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ import Cardano.Crypto.VRF
import Cardano.Crypto.VRF.Praos
( PraosVRF
)
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.BaseTypes
( ProtVer (..)
, Version
Expand Down Expand Up @@ -94,8 +97,7 @@ import Ouroboros.Consensus.Protocol.Praos.Header
( Header (..)
)
import Ouroboros.Consensus.Protocol.TPraos
( StandardCrypto
, TPraos
( TPraos
)

import qualified Cardano.Crypto.DSIGN as Crypto
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Wallet/Read/Tx/Gen/Allegra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Cardano.Ledger.Allegra.TxBody
, StrictMaybe (..)
, ValidityInterval (..)
)
import Cardano.Ledger.Api.Era
import Cardano.Ledger.Api
( AllegraEra
, StandardCrypto
)
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Wallet/Read/Tx/Gen/Alonzo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Cardano.Ledger.Alonzo.TxBody
import Cardano.Ledger.Alonzo.TxWits
( AlonzoTxWits
)
import Cardano.Ledger.Api.Era
import Cardano.Ledger.Api
( AlonzoEra
, StandardCrypto
)
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Wallet/Read/Tx/Gen/Babbage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import Cardano.Ledger.Alonzo.TxAuxData
)
import Cardano.Ledger.Api
( Datum (NoDatum)
, StandardCrypto
)
import Cardano.Ledger.Api.Era
( BabbageEra
, StandardCrypto
)
import Cardano.Ledger.Babbage.Tx
( AlonzoTx (AlonzoTx)
Expand Down
4 changes: 1 addition & 3 deletions lib/read/lib/Cardano/Wallet/Read/Tx/Gen/Conway.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ import Cardano.Ledger.Alonzo.TxAuxData
( AuxiliaryDataHash
)
import Cardano.Ledger.Api
( Datum (NoDatum)
)
import Cardano.Ledger.Api.Era
( ConwayEra
, Datum (NoDatum)
, StandardCrypto
)
import Cardano.Ledger.Api.Tx.In
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Wallet/Read/Tx/Gen/Mary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Cardano.Ledger.Allegra.Core
import Cardano.Ledger.Allegra.TxAuxData
( AllegraTxAuxData
)
import Cardano.Ledger.Api.Era
import Cardano.Ledger.Api
( MaryEra
, StandardCrypto
)
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Wallet/Read/Tx/Gen/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Cardano.Crypto.Hash
import Cardano.Ledger.Address
( Addr (..)
)
import Cardano.Ledger.Api.Era
import Cardano.Ledger.Api
( Era
, ShelleyEra
, StandardCrypto
Expand Down
2 changes: 1 addition & 1 deletion lib/read/lib/Cardano/Wallet/Read/Tx/TxIn.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Cardano.Wallet.Read.Tx.TxIn

import Prelude

import Cardano.Ledger.Crypto
import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Wallet.Read.Tx.TxId
Expand Down
6 changes: 3 additions & 3 deletions lib/read/lib/Cardano/Wallet/Read/Value.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ import Prelude hiding
( subtract
)

import Cardano.Ledger.Api
( StandardCrypto
)
import Cardano.Ledger.Coin
( Coin (unCoin)
)
import Cardano.Ledger.Crypto
( StandardCrypto
)
import Cardano.Ledger.Val
( pointwise
, (<->)
Expand Down

0 comments on commit 7774faa

Please sign in to comment.