Safe Haskell | None |
---|---|
Language | Haskell2010 |
Temporary code that'll make it easy for us to generate arbitrary events. This should either be deleted when we can get real events, or at least moved across to the test suite.
Synopsis
- acceptingValidator :: Validator
- acceptingMintingPolicy :: MintingPolicy
- genResponse :: PABReq -> Maybe (Gen PABResp)
Documentation
acceptingValidator :: Validator Source #
A validator that always succeeds.
acceptingMintingPolicy :: MintingPolicy Source #
A minting policy that always succeeds.
genResponse :: PABReq -> Maybe (Gen PABResp) Source #
Generate responses for mock requests. This function returns a
Maybe
because we can't (yet) create a generator for every request
type.
Orphan instances
Arbitrary Value Source # | |
Arbitrary Slot Source # | |
Arbitrary DatumHash Source # | |
Arbitrary Datum Source # | |
Arbitrary Value Source # | |
Arbitrary TxIx Source # | |
Arbitrary AssetId Source # | |
Arbitrary AssetName Source # | |
Arbitrary Lovelace Source # | |
Arbitrary PolicyId Source # | |
Arbitrary Language Source # | |
Arbitrary PaymentPubKey Source # | |
Arbitrary PaymentPubKeyHash Source # | |
Arbitrary StakePubKey Source # | |
Arbitrary StakePubKeyHash Source # | |
Arbitrary PubKey Source # | |
Arbitrary Signature Source # | |
Arbitrary ToCardanoError Source # | |
Arbitrary Certificate Source # | |
Arbitrary TxOut Source # | |
Arbitrary Withdrawal Source # | |
Arbitrary Address Source # | |
Arbitrary Credential Source # | |
Arbitrary StakingCredential Source # | |
Arbitrary PubKeyHash Source # | |
Arbitrary DCert Source # | |
Arbitrary MintingPolicy Source # | |
Arbitrary MintingPolicyHash Source # | |
Arbitrary Redeemer Source # | |
Arbitrary Script Source # | |
Arbitrary ScriptError Source # | |
Arbitrary ScriptHash Source # | |
Arbitrary Validator Source # | |
Arbitrary ValidatorHash Source # | |
Arbitrary RedeemerPtr Source # | |
Arbitrary ScriptTag Source # | |
Arbitrary TxOutRef Source # | |
Arbitrary ConnectionError Source # | |
Arbitrary WrongOutTypeError Source # | |
Arbitrary BuiltinData Source # | |
Arbitrary Data Source # | |
Arbitrary BuiltinByteString Source # | |
Arbitrary TxId Source # | |
Arbitrary OutputDatum Source # | |
Arbitrary CurrencySymbol Source # | |
Arbitrary TokenName Source # | |
Arbitrary Value Source # | |
Arbitrary Quantity Source # | |
Arbitrary Ada Source # | |
Arbitrary LedgerBytes Source # | |
Arbitrary MkTxError Source # | |
Arbitrary ActiveEndpoint Source # | |
Arbitrary PABReq Source # | |
Arbitrary EndpointDescription Source # | |
Arbitrary ThreadToken Source # | |
(Arg (Extended a) a, Arbitrary a) => Arbitrary (Extended a) Source # | |
(Arg (Extended a) a, Arg (LowerBound a) a, Arg (UpperBound a) a, Arg (Interval a) a, Arbitrary a) => Arbitrary (Interval a) Source # | |
(Arg (Extended a) a, Arg (LowerBound a) a, Arbitrary a) => Arbitrary (LowerBound a) Source # | |
(Arg (Extended a) a, Arg (UpperBound a) a, Arbitrary a) => Arbitrary (UpperBound a) Source # | |
(Arg (Versioned script) script, Arbitrary script) => Arbitrary (Versioned script) Source # | |
Arbitrary (AddressInEra BabbageEra) Source # | |
(Arbitrary k, Arbitrary v) => Arbitrary (Map k v) Source # | |