Copyright | © 2022 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Module containing extra
Api
functionality needed by the wallet.
Synopsis
- withShelleyBasedTx :: InAnyShelleyBasedEra Tx -> ( forall era. IsShelleyBasedEra era => Tx era -> a) -> a
- inAnyCardanoEra :: IsCardanoEra era => Tx era -> InAnyCardanoEra Tx
- asAnyShelleyBasedEra :: InAnyCardanoEra a -> Maybe ( InAnyShelleyBasedEra a)
Documentation
withShelleyBasedTx :: InAnyShelleyBasedEra Tx -> ( forall era. IsShelleyBasedEra era => Tx era -> a) -> a Source #
Apply an era-parameterized function to an existentially-wrapped tx.
inAnyCardanoEra :: IsCardanoEra era => Tx era -> InAnyCardanoEra Tx Source #
Helper function for more easily creating an existential
InAnyCardanoEra Tx
.
asAnyShelleyBasedEra :: InAnyCardanoEra a -> Maybe ( InAnyShelleyBasedEra a) Source #
Downcast an existentially wrapped tx.