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.Scripts

Synopsis

Documentation

allPlutusScriptsReflect era ⇒ Proof era → Map ScriptHash (IsValid, Script era) Source #

For any given Era, there are only a finite number of Plutus scripts. This function computes all of them. There will be two failing scripts One for the Spend Tag, and another for all other Tags (Mint, Cert, Rewrd). The non-failing Spend scripts have varying number of arguments (0, 1, 2, 3) The non-failing (Mint Cert Rewrd) scripts are identical. Any Plutus script generated by genCoreScript will be in this Map.

genCoreScript ∷ ∀ era. Proof era → PlutusPurposeTag → KeyMap era → ValidityIntervalGen (Script era) Source #

spendPlutusScriptsReflect era ⇒ Proof era → Map ScriptHash (IsValid, Script era) Source #

There are only 5 plutus scripts that can be used in a Spend context