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

Cardano.Api.Gen

Synopsis

Documentation

genSignedQuantity :: Gen Quantity Source #

Generate a positive or negative quantity.

genSignedValue :: Gen Value Source #

Generate a Value which could represent the balance of a partial transaction, where both ada and other assets can be included, and quantities can be both positive and negative.

genTxBodyForBalancing :: IsCardanoEra era => CardanoEra era -> Gen ( TxBody era) Source #

Similar to genTxBody , but with a distribution better suitable for testing balancing.

genValueForMinting :: Gen Value Source #

Generate a Value suitable for minting, i.e. non-ADA asset ID and a positive or negative quantity.

genValueForTxOut :: Gen Value Source #

Generate a Value suitable for usage in a transaction output, i.e. any asset ID and a positive quantity.

Orphan instances