Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hydra.Chain.Direct.Contract.Gen
Contents
Description
Generators used in mutation testing framework
Synopsis
- genForParty :: Gen a -> Party -> a
- genBytes :: Gen ByteString
- genHash :: Gen ByteString
- genMintedOrBurnedValue :: Gen Value
Party / key utilities
genForParty :: Gen a -> Party -> a Source #
Generate some a
given the Party as a seed. NOTE: While this is useful to
generate party-specific values, it DOES depend on the generator used. For
example, `genForParty genVerificationKey` and `genForParty (fst $
genKeyPair)` do not yield the same verification keys!
genMintedOrBurnedValue :: Gen Value Source #
Generates value such that:
- alters between policy id we use in test fixtures with a random one.
- mixing arbitrary token names with hydraHeadV1
- excluding 0 for quantity to mimic minting/burning