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

Cardano.Wallet.Primitive.Types.TokenMap.Gen

Synopsis

Documentation

newtype AssetIdF Source #

Instances

Instances details
Eq AssetIdF Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen

Read AssetIdF Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen

Show AssetIdF Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen

Generic AssetIdF Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen

Function AssetIdF Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen

CoArbitrary AssetIdF Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen

type Rep AssetIdF Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen

type Rep AssetIdF = D1 (' MetaData "AssetIdF" "Cardano.Wallet.Primitive.Types.TokenMap.Gen" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "AssetIdF" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 AssetId )))

genTokenMapPartition :: TokenMap -> Int -> Gen ( NonEmpty TokenMap ) Source #

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

Satisfies the following properties:

forAll (genTokenMapPartition m i) $ (== m      ) . fold
forAll (genTokenMapPartition m i) $ (== max 1 i) . length