Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TxOutSource c
- = TxOutFromInput !(TxIn c)
- | TxOutFromOutput !TxIx
- txOutSourceToText ∷ TxOutSource c → Text
- transAddr ∷ Addr c → Maybe Address
- transRewardAccount ∷ RewardAccount c → Credential
- transDataHash ∷ DataHash c → DatumHash
- transKeyHash ∷ KeyHash d c → PubKeyHash
- transSafeHash ∷ SafeHash c i → BuiltinByteString
- transScriptHash ∷ ScriptHash c → ScriptHash
- transTxId ∷ TxId c → TxId
- transStakeReference ∷ StakeReference c → Maybe StakingCredential
- transCred ∷ Credential kr c → Credential
- slotToPOSIXTime ∷ EpochInfo (Either Text) → SystemStart → SlotNo → Either Text POSIXTime
- transTxIn ∷ TxIn c → TxOutRef
- transCoinToValue ∷ Coin → Value
- transCoinToLovelace ∷ Coin → Lovelace
- transDataPair ∷ (DataHash c, Data era) → (DatumHash, Datum)
- transExUnits ∷ ExUnits → ExBudget
- exBudgetToExUnits ∷ ExBudget → Maybe ExUnits
- transBoundedRational ∷ BoundedRational r ⇒ r → Rational
- transEpochNo ∷ EpochNo → Integer
- transEpochInterval ∷ EpochInterval → Integer
- transDatum ∷ Data era → Datum
Documentation
data TxOutSource c Source #
A transaction output can be translated because it is a newly created output, or because it is the output which is connected to a transaction input being spent.
Instances
txOutSourceToText ∷ TxOutSource c → Text Source #
transAddr ∷ Addr c → Maybe Address Source #
Translate an address. NetworkId
is discarded and Byron
Addresses will result in Nothing.
transRewardAccount ∷ RewardAccount c → Credential Source #
Translate reward account by discarding NetowrkId
and only translating the staking credential.
Note - This function is the right one to use starting with PlutusV3, prior to that an
extra StakingHash
wrapper is needed.
transDataHash ∷ DataHash c → DatumHash Source #
transKeyHash ∷ KeyHash d c → PubKeyHash Source #
transSafeHash ∷ SafeHash c i → BuiltinByteString Source #
transCred ∷ Credential kr c → Credential Source #
transCoinToValue ∷ Coin → Value Source #
transBoundedRational ∷ BoundedRational r ⇒ r → Rational Source #
transDatum ∷ Data era → Datum Source #