cardano-ledger-mary-1.8.0.0: Cardano ledger with multiasset support.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Mary.UTxO

Synopsis

Documentation

getConsumedMaryValue ∷ (MaryEraTxBody era, Value era ~ MaryValue) ⇒ PParams era → (Credential 'StakingMaybe Coin) → (Credential 'DRepRoleMaybe Coin) → UTxO era → TxBody era → MaryValue 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.

getProducedMaryValue Source #

Arguments

∷ (MaryEraTxBody era, Value era ~ MaryValue) 
PParams era 
→ (KeyHash 'StakePoolBool)

Check whether a pool with a supplied PoolStakeId is already registered.

TxBody era 
MaryValue 

Orphan instances