Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- convertConwayTx :: Tx ConwayEra -> Tx BabbageEra
- signTx :: IsShelleyBasedEra era => SigningKey PaymentKey -> Tx era -> Tx era
- utxoProducedByTx :: Tx Era -> UTxO
- txFee' :: Tx era -> Coin
- toLedgerTx :: forall era. (EraCrypto (ShelleyLedgerEra era) ~ StandardCrypto, AlonzoEraTx (ShelleyLedgerEra era)) => Tx era -> Tx (ShelleyLedgerEra era)
- fromLedgerTx :: Tx (ShelleyLedgerEra Era) -> Tx Era
Extras
convertConwayTx :: Tx ConwayEra -> Tx BabbageEra Source #
Explicit downgrade from Conway to Babbage era.
NOTE: This is not a complete mapping and does silently drop things like protocol updates, certificates and voting procedures.
signTx :: IsShelleyBasedEra era => SigningKey PaymentKey -> Tx era -> Tx era Source #
Sign transaction using the provided secret key It only works for tx not containing scripts. You can't sign a script utxo with this.
utxoProducedByTx :: Tx Era -> UTxO Source #
Get the UTxO that are produced by some transaction. XXX: Defined here to avoid cyclic module dependency
Type Conversions
toLedgerTx :: forall era. (EraCrypto (ShelleyLedgerEra era) ~ StandardCrypto, AlonzoEraTx (ShelleyLedgerEra era)) => Tx era -> Tx (ShelleyLedgerEra era) Source #
fromLedgerTx :: Tx (ShelleyLedgerEra Era) -> Tx Era Source #