plutus-pab-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.PAB.Arbitrary

Description

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

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 # 
Instance details

Arbitrary Value Source # 
Instance details

Arbitrary TokenName Source # 
Instance details

Arbitrary ValidatorHash Source # 
Instance details

Arbitrary Tx Source # 
Instance details

Methods

arbitrary :: Gen Tx Source #

shrink :: Tx -> [Tx] Source #

Arbitrary TxOutRef Source # 
Instance details

Arbitrary Slot Source # 
Instance details

Arbitrary ToCardanoError Source # 
Instance details

Arbitrary Validator Source # 
Instance details

Arbitrary TxId Source # 
Instance details

Arbitrary Datum Source # 
Instance details

Arbitrary MkTxError Source # 
Instance details

Arbitrary PABReq Source # 
Instance details

Arbitrary ActiveEndpoint Source # 
Instance details

Arbitrary EndpointDescription Source # 
Instance details

Arbitrary WalletAPIError Source # 
Instance details

Arbitrary ThreadToken Source # 
Instance details

Arbitrary PubKeyHash Source # 
Instance details

Arbitrary PubKey Source # 
Instance details

Arbitrary Data Source # 
Instance details

Arbitrary BuiltinData Source # 
Instance details

Arbitrary WrongOutTypeError Source # 
Instance details

Arbitrary ConnectionError Source # 
Instance details

Arbitrary ValidationError Source # 
Instance details

Arbitrary StakePubKeyHash Source # 
Instance details

Arbitrary StakePubKey Source # 
Instance details

Arbitrary PaymentPubKeyHash Source # 
Instance details

Arbitrary PaymentPubKey Source # 
Instance details

Arbitrary MintingPolicyHash Source # 
Instance details

Arbitrary DatumHash Source # 
Instance details

Arbitrary MintingPolicy Source # 
Instance details

Arbitrary Redeemer Source # 
Instance details

Arbitrary ScriptError Source # 
Instance details

Arbitrary CurrencySymbol Source # 
Instance details

Arbitrary Signature Source # 
Instance details

Arbitrary Address Source # 
Instance details

Arbitrary TxOut Source # 
Instance details

Arbitrary TxIn Source # 
Instance details

Arbitrary TxInType Source # 
Instance details

Arbitrary RedeemerPtr Source # 
Instance details

Arbitrary ScriptTag Source # 
Instance details

Arbitrary Ada Source # 
Instance details

Arbitrary LedgerBytes Source # 
Instance details

Arbitrary BuiltinByteString Source # 
Instance details

Arbitrary a => Arbitrary (Interval a) Source # 
Instance details

Arbitrary a => Arbitrary (LowerBound a) Source # 
Instance details

Arbitrary a => Arbitrary (UpperBound a) Source # 
Instance details

Arbitrary a => Arbitrary (Extended a) Source # 
Instance details

(Arbitrary k, Arbitrary v) => Arbitrary (Map k v) Source # 
Instance details

Methods

arbitrary :: Gen (Map k v) Source #

shrink :: Map k v -> [Map k v] Source #