Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- coarbitraryTxIn :: TxIn -> Gen a -> Gen a
- genTx :: Gen Tx
- genTxHash :: Gen ( Hash "Tx")
- genTxIndex :: Gen Word32
- genTxIn :: Gen TxIn
- genTxInFunction :: Gen a -> Gen ( TxIn -> a)
- genTxInLargeRange :: Gen TxIn
- genTxOut :: Gen TxOut
- genTxOutCoin :: Gen Coin
- genTxOutTokenBundle :: Int -> Gen TokenBundle
- genTxScriptValidity :: Gen TxScriptValidity
- shrinkTx :: Tx -> [ Tx ]
- shrinkTxHash :: Hash "Tx" -> [ Hash "Tx"]
- shrinkTxIndex :: Word32 -> [ Word32 ]
- shrinkTxIn :: TxIn -> [ TxIn ]
- shrinkTxOut :: TxOut -> [ TxOut ]
- shrinkTxOutCoin :: Coin -> [ Coin ]
- shrinkTxScriptValidity :: TxScriptValidity -> [ TxScriptValidity ]
Documentation
genTxIndex :: Gen Word32 Source #
genTxOutCoin :: Gen Coin Source #
Generates coins across the full range allowed in a transaction output.
This generator has a slight bias towards the limits of the range, but otherwise generates values uniformly across the whole range.
This can be useful when testing roundtrip conversions between different types.
genTxOutTokenBundle :: Int -> Gen TokenBundle Source #
shrinkTxHash :: Hash "Tx" -> [ Hash "Tx"] Source #
shrinkTxIndex :: Word32 -> [ Word32 ] Source #
shrinkTxIn :: TxIn -> [ TxIn ] Source #
shrinkTxOut :: TxOut -> [ TxOut ] Source #
shrinkTxOutCoin :: Coin -> [ Coin ] Source #