Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Tx era = Tx { }
- translateTxOut :: Crypto c => TxOut ( AlonzoEra c) -> TxOut ( BabbageEra c)
- coinsPerUTxOWordToCoinsPerUTxOByte :: Coin -> Coin
- translatePParams :: forall f c. HKDFunctor f => PParams' f ( AlonzoEra c) -> PParams' f ( BabbageEra c)
Documentation
Instances
( Crypto c, Tx ( BabbageEra c) ~ ValidatedTx ( BabbageEra c)) => TranslateEra ( BabbageEra c) Tx Source # | |
Defined in Cardano.Ledger.Babbage.Translation type TranslationError ( BabbageEra c) Tx Source # translateEra :: TranslationContext ( BabbageEra c) -> Tx ( PreviousEra ( BabbageEra c)) -> Except ( TranslationError ( BabbageEra c) Tx ) ( Tx ( BabbageEra c)) Source # |
|
type TranslationError ( BabbageEra c) Tx Source # | |
Defined in Cardano.Ledger.Babbage.Translation |
translateTxOut :: Crypto c => TxOut ( AlonzoEra c) -> TxOut ( BabbageEra c) Source #
coinsPerUTxOWordToCoinsPerUTxOByte :: Coin -> Coin Source #
A word is 8 bytes, so to convert from coinsPerUTxOWord to coinsPerUTxOByte, rounding down.
translatePParams :: forall f c. HKDFunctor f => PParams' f ( AlonzoEra c) -> PParams' f ( BabbageEra c) Source #