Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- getConsumedMaryValue ∷ (MaryEraTxBody era, Value era ~ MaryValue (EraCrypto era)) ⇒ PParams era → (Credential 'Staking (EraCrypto era) → Maybe Coin) → (Credential 'DRepRole (EraCrypto era) → Maybe Coin) → UTxO era → TxBody era → MaryValue (EraCrypto era)
- getProducedMaryValue ∷ (MaryEraTxBody era, Value era ~ MaryValue (EraCrypto era)) ⇒ PParams era → (KeyHash 'StakePool (EraCrypto era) → Bool) → TxBody era → MaryValue (EraCrypto era)
Documentation
getConsumedMaryValue ∷ (MaryEraTxBody era, Value era ~ MaryValue (EraCrypto era)) ⇒ PParams era → (Credential 'Staking (EraCrypto era) → Maybe Coin) → (Credential 'DRepRole (EraCrypto era) → Maybe Coin) → UTxO era → TxBody era → MaryValue (EraCrypto era) Source #
Calculate the value consumed by the transation.
This differs from the corresponding Shelley function coinConsumed
since it works on Value and it also considers the "mint" field which
creates or destroys non-Ada tokens.
Note that this is slightly confusing, since it also covers non-Ada assets _created_ by the transaction, depending on the sign of the quantities in the mint field.
Orphan instances
Crypto c ⇒ EraUTxO (MaryEra c) Source # | |
type ScriptsNeeded (MaryEra c) = (r ∷ Type) Source # getConsumedValue ∷ PParams (MaryEra c) → (Credential 'Staking (EraCrypto (MaryEra c)) → Maybe Coin) → (Credential 'DRepRole (EraCrypto (MaryEra c)) → Maybe Coin) → UTxO (MaryEra c) → TxBody (MaryEra c) → Value (MaryEra c) Source # getProducedValue ∷ PParams (MaryEra c) → (KeyHash 'StakePool (EraCrypto (MaryEra c)) → Bool) → TxBody (MaryEra c) → Value (MaryEra c) Source # getScriptsProvided ∷ UTxO (MaryEra c) → Tx (MaryEra c) → ScriptsProvided (MaryEra c) Source # getScriptsNeeded ∷ UTxO (MaryEra c) → TxBody (MaryEra c) → ScriptsNeeded (MaryEra c) Source # getScriptsHashesNeeded ∷ ScriptsNeeded (MaryEra c) → Set (ScriptHash (EraCrypto (MaryEra c))) Source # getWitsVKeyNeeded ∷ CertState (MaryEra c) → UTxO (MaryEra c) → TxBody (MaryEra c) → Set (KeyHash 'Witness (EraCrypto (MaryEra c))) Source # getMinFeeTxUtxo ∷ PParams (MaryEra c) → Tx (MaryEra c) → UTxO (MaryEra c) → Coin Source # |