HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulecardano-ledger-shelley-test-1.9.0.0Haskell2010

Test.Cardano.Ledger.Shelley.Generator.ScriptClass

  • 1 type
  • 1 class
  • 15 values
classclass EraScript era => ScriptClass era where
#

Methods

Instances1ScriptClass
  • ScriptClass ShelleyEraDefined in cardano-ledger-shelley-test-1.9.0.0 · Test.Cardano.Ledger.Shelley.Generator.ShelleyEraGen · orphan
valuekeyPairs :: Constants -> KeyPairs
#

Constant list of KeyPairs intended to be used in the generators.

valuemkScriptCombinations
  1. :: ScriptClass era
  2. => [(Script era, Script era)]
  3. -> [(Script era, Script era)]
#

Combine a list of script pairs into hierarchically structured multi-sig scripts, list must have at least length 3. Be careful not to call with too many pairs in order not to create too many of the possible combinations.

valuecombinedScripts
  1. :: ScriptClass era
  2. => Constants
  3. -> [(Script era, Script era)]
#

Make a list of script pairs (payment,staking). Each of these are combined scripts. I.e. All, Any, MofN, etc. These come from combining the the first N (numBaseScripts) baseScripts When N==3, we get about 150 combined scripts.

valuebaseScripts :: ScriptClass era => Constants -> [(Script era, Script era)]
#

Make list of script pairs (payment,staking). These are non-combined scripts Ie NO quantifer like All, Any, MofN, etc.) scripts. In post Shelley Eras, either Keylock or Require Start-Finish scripts.

valuescriptKeyCombination
  1. :: ScriptClass era
  2. => Proxy era
  3. -> Script era
  4. -> [KeyHash Witness]
#

Produce a valid list of key hashes that appear in a Script. Note: in the case of AnyOf, we just take the first script in the expression. This only works if we generate AnyOf scripts such that all script options are valid scripts (that is, valid in the context of a transaction, at generation time and execution/spend time).