Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Translating between cardano-api/cardano-ledger and plutus representations
Synopsis
- transScriptHash ∷ ScriptHash → ScriptHash
- unTransScriptHash ∷ ScriptHash → Either SerialiseAsRawBytesError ScriptHash
- unTransScriptDataHash ∷ DatumHash → Either SerialiseAsRawBytesError (Hash ScriptData)
- unTransTxOutDatumHash ∷ DatumHash → Either SerialiseAsRawBytesError (TxOutDatum ctx BabbageEra)
- transPubKeyHash ∷ Hash PaymentKey → PubKeyHash
- unTransPubKeyHash ∷ PubKeyHash → Either SerialiseAsRawBytesError (Hash PaymentKey)
- transStakeKeyHash ∷ Hash StakeKey → PubKeyHash
- unTransStakeKeyHash ∷ PubKeyHash → Either SerialiseAsRawBytesError (Hash StakeKey)
- transAssetName ∷ AssetName → TokenName
- toMaryAssetName ∷ AssetName → AssetName
- unTransAssetName ∷ TokenName → AssetName
- transPolicyId ∷ PolicyId → CurrencySymbol
- unTransPolicyId ∷ CurrencySymbol → Either SerialiseAsRawBytesError PolicyId
- transAssetId ∷ AssetId → AssetClass
- unTransAssetId ∷ AssetClass → Either SerialiseAsRawBytesError AssetId
- transCredential ∷ PaymentCredential → Credential
- unTransCredential ∷ Credential → Either SerialiseAsRawBytesError PaymentCredential
- transStakeCredential ∷ StakeCredential → Credential
- unTransStakeCredential ∷ Credential → Either SerialiseAsRawBytesError StakeCredential
- transStakeAddressReference ∷ StakeAddressReference → Maybe StakingCredential
- unTransStakeAddressReference ∷ Maybe StakingCredential → Either SerialiseAsRawBytesError StakeAddressReference
- unTransAddressInEra ∷ NetworkId → Address → Either SerialiseAsRawBytesError (AddressInEra BabbageEra)
- transAddressInEra ∷ AddressInEra BabbageEra → Maybe Address
- unTransTxOutRef ∷ TxOutRef → Either SerialiseAsRawBytesError TxIn
- transTxOutRef ∷ TxIn → TxOutRef
- unTransPOSIXTime ∷ POSIXTime → POSIXTime
- transPOSIXTime ∷ POSIXTime → POSIXTime
- unTransTxOutValue ∷ Value → Either SerialiseAsRawBytesError (TxOutValue BabbageEra)
- transValue ∷ Value → Value
- unTransValue ∷ Value → Either SerialiseAsRawBytesError Value
- unTransPlutusScript ∷ SerialiseAsRawBytes plutusScript ⇒ AsType plutusScript → SerialisedScript → Either SerialiseAsRawBytesError plutusScript
- _Interval ∷ Iso' (Interval a) (LowerBound a, UpperBound a)
- _UpperBound ∷ Iso' (UpperBound a) (Extended a, Closure)
- _LowerBound ∷ Iso' (LowerBound a) (Extended a, Closure)
- _NegInf ∷ Prism' (Extended a) ()
- _PosInf ∷ Prism' (Extended a) ()
- _Finite ∷ Prism' (Extended a) a
- _FiniteInterval ∷ Prism' (Interval a) ((a, a), (Closure, Closure))
Script hashes
unTransTxOutDatumHash ∷ DatumHash → Either SerialiseAsRawBytesError (TxOutDatum ctx BabbageEra) Source #
Key hashes
Asset names
Credentials and addresses
unTransStakeAddressReference ∷ Maybe StakingCredential → Either SerialiseAsRawBytesError StakeAddressReference Source #
unTransAddressInEra ∷ NetworkId → Address → Either SerialiseAsRawBytesError (AddressInEra BabbageEra) Source #
transAddressInEra ∷ AddressInEra BabbageEra → Maybe Address Source #
cardano-api
address to plutus
address. Returns Nothing
for
| byron addresses.
Tx IDs
transTxOutRef ∷ TxIn → TxOutRef Source #
POSIX Time
Value
transValue ∷ Value → Value Source #
Scripts
unTransPlutusScript ∷ SerialiseAsRawBytes plutusScript ⇒ AsType plutusScript → SerialisedScript → Either SerialiseAsRawBytesError plutusScript Source #
Intervals
_Interval ∷ Iso' (Interval a) (LowerBound a, UpperBound a) Source #
_UpperBound ∷ Iso' (UpperBound a) (Extended a, Closure) Source #
_LowerBound ∷ Iso' (LowerBound a) (Extended a, Closure) Source #