Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- genFeaturedInEra :: Alternative f => eon era -> f a -> f (Featured eon era a)
- genMaybeFeaturedInEra :: (Eon eon, Alternative f) => (eon era -> f a) -> CardanoEra era -> f (Maybe (Featured eon era a))
- genAddressInEraByron :: Gen (AddressInEra ByronEra)
- genAddressByron :: Gen (Address ByronAddr)
- genTxBodyByron :: HasCallStack => Gen (Annotated Tx ByteString)
- genTxByron :: Gen (ATxAux ByteString)
- genWitnessesByron :: Gen [KeyWitness ByronEra]
- genAddressInEra :: ShelleyBasedEra era -> Gen (AddressInEra era)
- genAddressShelley :: Gen (Address ShelleyAddr)
- genCertificate :: ShelleyBasedEra era -> Gen (Certificate era)
- genCostModel :: MonadGen m => m CostModel
- genCostModels :: MonadGen m => m CostModels
- genMaybePraosNonce :: Gen (Maybe PraosNonce)
- genPraosNonce :: Gen PraosNonce
- genValidProtocolParameters :: ShelleyBasedEra era -> Gen (LedgerProtocolParameters era)
- genProtocolParameters :: CardanoEra era -> Gen ProtocolParameters
- genValueNestedRep :: Gen ValueNestedRep
- genValueNestedBundle :: Gen ValueNestedBundle
- genByronKeyWitness :: Gen (KeyWitness ByronEra)
- genCardanoKeyWitness :: ShelleyBasedEra era -> Gen (KeyWitness era)
- genShelleyKeyWitness :: ShelleyBasedEra era -> Gen (KeyWitness era)
- genTxId :: Gen TxId
- genTxIn :: Gen TxIn
- genTxOutTxContext :: ShelleyBasedEra era -> Gen (TxOut CtxTx era)
- genTxOutUTxOContext :: ShelleyBasedEra era -> Gen (TxOut CtxUTxO era)
- genUTxO :: ShelleyBasedEra era -> Gen (UTxO era)
- genHashableScriptData :: HasCallStack => Gen HashableScriptData
- genReferenceScript :: ShelleyBasedEra era -> Gen (ReferenceScript era)
- genScript :: ScriptLanguage lang -> Gen (Script lang)
- genSimpleScript :: Gen SimpleScript
- genPlutusScript :: PlutusScriptVersion lang -> Gen (PlutusScript lang)
- genScriptInAnyLang :: Gen ScriptInAnyLang
- genScriptInEra :: ShelleyBasedEra era -> Gen (ScriptInEra era)
- genScriptHash :: Gen ScriptHash
- genScriptData :: Gen ScriptData
- genScriptDataSchema :: Gen ScriptDataJsonSchema
- genScriptValidity :: Gen ScriptValidity
- genAssetName :: Gen AssetName
- genAssetId :: Gen AssetId
- genEpochNo :: Gen EpochNo
- genExecutionUnitPrices :: Gen ExecutionUnitPrices
- genExecutionUnits :: Gen ExecutionUnits
- genHashScriptData :: Gen (Hash ScriptData)
- genKESPeriod :: Gen KESPeriod
- genNat :: Gen Natural
- genNetworkId :: Gen NetworkId
- genNetworkMagic :: Gen NetworkMagic
- genOperationalCertificate :: Gen OperationalCertificate
- genOperationalCertificateIssueCounter :: Gen OperationalCertificateIssueCounter
- genOperationalCertificateWithCounter :: HasCallStack => Gen (OperationalCertificate, OperationalCertificateIssueCounter)
- genPaymentCredential :: Gen PaymentCredential
- genPolicyId :: Gen PolicyId
- genQuantity :: Range Integer -> Gen Quantity
- genRationalInt64 :: Gen Rational
- genSeed :: Int -> Gen Seed
- genShelleyBootstrapWitness :: ShelleyBasedEra era -> Gen (KeyWitness era)
- genShelleyHash :: Gen (Hash Blake2b_256 EraIndependentTxBody)
- genShelleyWitness :: ShelleyBasedEra era -> Gen (KeyWitness era)
- genShelleyWitnessSigningKey :: Gen ShelleyWitnessSigningKey
- genSignedQuantity :: Gen Quantity
- genSignedNonZeroQuantity :: Gen Quantity
- genSigningKey :: Key keyrole => AsType keyrole -> Gen (SigningKey keyrole)
- genSlotNo :: Gen SlotNo
- genStakeAddress :: Gen StakeAddress
- genStakeAddressReference :: Gen StakeAddressReference
- genStakeCredential :: Gen StakeCredential
- genTtl :: Gen SlotNo
- genTx :: ShelleyBasedEra era -> Gen (Tx era)
- genTxAuxScripts :: ShelleyBasedEra era -> Gen (TxAuxScripts era)
- genTxBody :: HasCallStack => ShelleyBasedEra era -> Gen (TxBody era)
- genTxBodyContent :: ShelleyBasedEra era -> Gen (TxBodyContent BuildTx era)
- genValidTxBody :: ShelleyBasedEra era -> Gen (TxBody era, TxBodyContent BuildTx era)
- genTxCertificates :: CardanoEra era -> Gen (TxCertificates BuildTx era)
- genTxFee :: ShelleyBasedEra era -> Gen (TxFee era)
- genTxIndex :: Gen TxIx
- genTxInsCollateral :: CardanoEra era -> Gen (TxInsCollateral era)
- genTxInsReference :: CardanoEra era -> Gen (TxInsReference era)
- genTxMetadataInEra :: CardanoEra era -> Gen (TxMetadataInEra era)
- genTxMintValue :: CardanoEra era -> Gen (TxMintValue BuildTx era)
- genLovelace :: Gen Coin
- genPositiveLovelace :: Gen Coin
- genValue :: Gen AssetId -> Gen Quantity -> Gen Value
- genValueDefault :: MaryEraOnwards era -> Gen (Value (ShelleyLedgerEra era))
- genValueForRole :: MaryEraOnwards era -> ParserValueRole -> Gen Value
- genVerificationKey :: (HasTypeProxy keyrole, Key keyrole) => AsType keyrole -> Gen (VerificationKey keyrole)
- genVerificationKeyHash :: (HasTypeProxy keyrole, Key keyrole) => AsType keyrole -> Gen (Hash keyrole)
- genUpdateProposal :: CardanoEra era -> Gen UpdateProposal
- genProtocolParametersUpdate :: CardanoEra era -> Gen ProtocolParametersUpdate
- genTxOutDatumHashTxContext :: ShelleyBasedEra era -> Gen (TxOutDatum CtxTx era)
- genTxOutDatumHashUTxOContext :: ShelleyBasedEra era -> Gen (TxOutDatum CtxUTxO era)
- genTxOutValue :: ShelleyBasedEra era -> Gen (TxOutValue era)
- genTxReturnCollateral :: ShelleyBasedEra era -> Gen (TxReturnCollateral CtxTx era)
- genTxScriptValidity :: CardanoEra era -> Gen (TxScriptValidity era)
- genTxTotalCollateral :: CardanoEra era -> Gen (TxTotalCollateral era)
- genTxUpdateProposal :: CardanoEra era -> Gen (TxUpdateProposal era)
- genTxValidityLowerBound :: CardanoEra era -> Gen (TxValidityLowerBound era)
- genTxValidityUpperBound :: ShelleyBasedEra era -> Gen (TxValidityUpperBound era)
- genTxWithdrawals :: CardanoEra era -> Gen (TxWithdrawals build era)
- genUnsignedQuantity :: Gen Quantity
- genPositiveQuantity :: Gen Quantity
- genValueForMinting :: Gen Value
- genValueForTxOut :: ShelleyBasedEra era -> Gen (Value (ShelleyLedgerEra era))
- genWitnesses :: ShelleyBasedEra era -> Gen [KeyWitness era]
- genWitnessNetworkIdOrByronAddress :: Gen WitnessNetworkIdOrByronAddress
- genRational :: Gen Rational
- genGovernancePoll :: Gen GovernancePoll
- genGovernancePollAnswer :: Gen GovernancePollAnswer
- genProposals :: Applicative (BuildTxWith build) => ConwayEraOnwards era -> Gen (TxProposalProcedures build era)
- genProposal :: ConwayEraOnwards era -> Gen (ProposalProcedure (ShelleyLedgerEra era))
- genVotingProcedures :: Applicative (BuildTxWith build) => ConwayEraOnwards era -> Gen (TxVotingProcedures build era)
Documentation
genFeaturedInEra :: Alternative f => eon era -> f a -> f (Featured eon era a) Source #
Generate a Featured
for the given CardanoEra
with the provided generator.
genMaybeFeaturedInEra :: (Eon eon, Alternative f) => (eon era -> f a) -> CardanoEra era -> f (Maybe (Featured eon era a)) Source #
Generate a Featured
for the given CardanoEra
with the provided generator.
Byron
genAddressInEraByron :: Gen (AddressInEra ByronEra) Source #
genAddressByron :: Gen (Address ByronAddr) Source #
genTxBodyByron :: HasCallStack => Gen (Annotated Tx ByteString) Source #
Partial! It will throw if the generated transaction body is invalid.
genTxByron :: Gen (ATxAux ByteString) Source #
genWitnessesByron :: Gen [KeyWitness ByronEra] Source #
genAddressInEra :: ShelleyBasedEra era -> Gen (AddressInEra era) Source #
genAddressShelley :: Gen (Address ShelleyAddr) Source #
genCertificate :: ShelleyBasedEra era -> Gen (Certificate era) Source #
genCostModel :: MonadGen m => m CostModel Source #
genCostModels :: MonadGen m => m CostModels Source #
genMaybePraosNonce :: Gen (Maybe PraosNonce) Source #
genPraosNonce :: Gen PraosNonce Source #
genValidProtocolParameters :: ShelleyBasedEra era -> Gen (LedgerProtocolParameters era) Source #
Generate valid protocol parameters which pass validations in Cardano.Api.ProtocolParameters
genProtocolParameters :: CardanoEra era -> Gen ProtocolParameters Source #
genValueNestedRep :: Gen ValueNestedRep Source #
genByronKeyWitness :: Gen (KeyWitness ByronEra) Source #
genCardanoKeyWitness :: ShelleyBasedEra era -> Gen (KeyWitness era) Source #
genShelleyKeyWitness :: ShelleyBasedEra era -> Gen (KeyWitness era) Source #
genTxOutTxContext :: ShelleyBasedEra era -> Gen (TxOut CtxTx era) Source #
genTxOutUTxOContext :: ShelleyBasedEra era -> Gen (TxOut CtxUTxO era) Source #
genUTxO :: ShelleyBasedEra era -> Gen (UTxO era) Source #
Scripts
genReferenceScript :: ShelleyBasedEra era -> Gen (ReferenceScript era) Source #
genScript :: ScriptLanguage lang -> Gen (Script lang) Source #
genSimpleScript :: Gen SimpleScript Source #
genPlutusScript :: PlutusScriptVersion lang -> Gen (PlutusScript lang) Source #
genScriptInAnyLang :: Gen ScriptInAnyLang Source #
genScriptInEra :: ShelleyBasedEra era -> Gen (ScriptInEra era) Source #
genScriptHash :: Gen ScriptHash Source #
genScriptData :: Gen ScriptData Source #
Deprecated: Use genHashableScriptData
genScriptValidity :: Gen ScriptValidity Source #
genAssetName :: Gen AssetName Source #
genAssetId :: Gen AssetId Source #
genEpochNo :: Gen EpochNo Source #
genExecutionUnits :: Gen ExecutionUnits Source #
genHashScriptData :: Gen (Hash ScriptData) Source #
genKESPeriod :: Gen KESPeriod Source #
genNetworkId :: Gen NetworkId Source #
genNetworkMagic :: Gen NetworkMagic Source #
genOperationalCertificateWithCounter :: HasCallStack => Gen (OperationalCertificate, OperationalCertificateIssueCounter) Source #
genPolicyId :: Gen PolicyId Source #
genQuantity :: Range Integer -> Gen Quantity Source #
genRationalInt64 :: Gen Rational Source #
genShelleyBootstrapWitness :: ShelleyBasedEra era -> Gen (KeyWitness era) Source #
genShelleyHash :: Gen (Hash Blake2b_256 EraIndependentTxBody) Source #
genShelleyWitness :: ShelleyBasedEra era -> Gen (KeyWitness era) Source #
genSignedQuantity :: Gen Quantity Source #
Generate a positive or negative quantity.
genSignedNonZeroQuantity :: Gen Quantity Source #
Generate a positive or negative, but not zero quantity.
genSigningKey :: Key keyrole => AsType keyrole -> Gen (SigningKey keyrole) Source #
genStakeAddress :: Gen StakeAddress Source #
genStakeCredential :: Gen StakeCredential Source #
genTx :: ShelleyBasedEra era -> Gen (Tx era) Source #
genTxAuxScripts :: ShelleyBasedEra era -> Gen (TxAuxScripts era) Source #
genTxBody :: HasCallStack => ShelleyBasedEra era -> Gen (TxBody era) Source #
Partial! This function will throw an error when the generated transaction is invalid.
genTxBodyContent :: ShelleyBasedEra era -> Gen (TxBodyContent BuildTx era) Source #
:: ShelleyBasedEra era | |
-> Gen (TxBody era, TxBodyContent BuildTx era) | validated |
This generator validates generated TxBodyContent
and backtracks when the generated body
fails the validation. That also means that it is quite slow.
genTxCertificates :: CardanoEra era -> Gen (TxCertificates BuildTx era) Source #
genTxFee :: ShelleyBasedEra era -> Gen (TxFee era) Source #
genTxIndex :: Gen TxIx Source #
genTxInsCollateral :: CardanoEra era -> Gen (TxInsCollateral era) Source #
genTxInsReference :: CardanoEra era -> Gen (TxInsReference era) Source #
genTxMetadataInEra :: CardanoEra era -> Gen (TxMetadataInEra era) Source #
genTxMintValue :: CardanoEra era -> Gen (TxMintValue BuildTx era) Source #
genLovelace :: Gen Coin Source #
genPositiveLovelace :: Gen Coin Source #
genValueDefault :: MaryEraOnwards era -> Gen (Value (ShelleyLedgerEra era)) Source #
Generate a Value
with any asset ID and a positive or negative quantity.
genValueForRole :: MaryEraOnwards era -> ParserValueRole -> Gen Value Source #
genVerificationKey :: (HasTypeProxy keyrole, Key keyrole) => AsType keyrole -> Gen (VerificationKey keyrole) Source #
genVerificationKeyHash :: (HasTypeProxy keyrole, Key keyrole) => AsType keyrole -> Gen (Hash keyrole) Source #
genUpdateProposal :: CardanoEra era -> Gen UpdateProposal Source #
genProtocolParametersUpdate :: CardanoEra era -> Gen ProtocolParametersUpdate Source #
genTxOutDatumHashTxContext :: ShelleyBasedEra era -> Gen (TxOutDatum CtxTx era) Source #
genTxOutDatumHashUTxOContext :: ShelleyBasedEra era -> Gen (TxOutDatum CtxUTxO era) Source #
genTxOutValue :: ShelleyBasedEra era -> Gen (TxOutValue era) Source #
genTxReturnCollateral :: ShelleyBasedEra era -> Gen (TxReturnCollateral CtxTx era) Source #
genTxScriptValidity :: CardanoEra era -> Gen (TxScriptValidity era) Source #
genTxTotalCollateral :: CardanoEra era -> Gen (TxTotalCollateral era) Source #
genTxUpdateProposal :: CardanoEra era -> Gen (TxUpdateProposal era) Source #
genTxValidityLowerBound :: CardanoEra era -> Gen (TxValidityLowerBound era) Source #
genTxValidityUpperBound :: ShelleyBasedEra era -> Gen (TxValidityUpperBound era) Source #
genTxWithdrawals :: CardanoEra era -> Gen (TxWithdrawals build era) Source #
genUnsignedQuantity :: Gen Quantity Source #
genPositiveQuantity :: Gen Quantity Source #
genValueForMinting :: Gen Value Source #
Generate a Value
suitable for minting, i.e. non-ADA asset ID and a
positive or negative quantity.
genValueForTxOut :: ShelleyBasedEra era -> Gen (Value (ShelleyLedgerEra era)) Source #
Generate a Value
suitable for usage in a transaction output, i.e. any
asset ID and a positive quantity.
genWitnesses :: ShelleyBasedEra era -> Gen [KeyWitness era] Source #
genRational :: Gen Rational Source #
genGovernancePoll :: Gen GovernancePoll Source #
genProposals :: Applicative (BuildTxWith build) => ConwayEraOnwards era -> Gen (TxProposalProcedures build era) Source #
genProposal :: ConwayEraOnwards era -> Gen (ProposalProcedure (ShelleyLedgerEra era)) Source #
genVotingProcedures :: Applicative (BuildTxWith build) => ConwayEraOnwards era -> Gen (TxVotingProcedures build era) Source #