cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Constrained.Conway.TxBodySpec

Synopsis

Documentation

sumTxOut_ ∷ ∀ era. EraSpecTxOut era ⇒ Term [TxOut era] → Term Coin Source #

adjustTxOutCoinEraTxOut era ⇒ DeltaCoinTxOut era → TxOut era Source #

getDepositRefund ∷ ∀ era. (EraTxCert era, ConwayEraCertState era) ⇒ PParams era → CertState era → [TxCert era] → (DeltaCoin, DeltaCoin) Source #

Extract the total deposits and refunds from a list of TxCerts. This a kind of AdaPot relative to the Certs in a Transaction body It depends on the PParams (deposit ammounts for registering a staking key, a ppol, and registering a Drep) and on the CertState (what deposits were made in the past)

reifyX ∷ (HasSpec a, HasSpec b, IsPred p) ⇒ Term a → (a → b) → (Term b → p) → Pred Source #

This is exactly the same as reify, except it names the existential varaible for better error messages

putPrettyToExpr t ⇒ [Char] → t → IO () Source #