cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Safe Haskell None
Language Haskell2010

Cardano.Wallet.Primitive.Types.TokenBundle.Gen

Synopsis

Documentation

genTokenBundlePartition :: TokenBundle -> Int -> Gen ( NonEmpty TokenBundle ) Source #

Partitions a token bundle randomly into a given number of parts.

Satisfies the following properties:

forAll (genTokenBundlePartition b i) $ (==       b) . fold
forAll (genTokenBundlePartition b i) $ (== max 1 i) . length