Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- addressOfTxOut :: TxOut ctx Era -> AddressAny
- valueOfTxOut :: TxOut ctx Era -> Value
- datumOfTxOut :: TxOut ctx Era -> TxOutDatum ctx Era
- redeemerOfTxIn :: Tx Era -> TxIn -> Maybe ScriptData
- paymentCredentialToAddressAny :: PaymentCredential -> AddressAny
- scriptAddressAny :: ScriptHash -> AddressAny
- keyAddressAny :: Hash PaymentKey -> AddressAny
- isKeyAddressAny :: AddressAny -> Bool
- recomputeScriptData :: Maybe Word64 -> (Word64 -> Word64) -> TxBodyScriptData Era -> TxBodyScriptData Era
- emptyTxBodyScriptData :: TxBodyScriptData Era
- addScriptData :: Word64 -> Data (ShelleyLedgerEra Era) -> (Data (ShelleyLedgerEra Era), ExUnits) -> TxBodyScriptData Era -> TxBodyScriptData Era
- addDatum :: Data (ShelleyLedgerEra Era) -> TxBodyScriptData Era -> TxBodyScriptData Era
- toCtxUTxODatum :: TxOutDatum CtxTx Era -> TxOutDatum CtxUTxO Era
- txOutDatum :: ScriptData -> TxOutDatum CtxTx Era
- toScriptData :: ToData a => a -> ScriptData
- dummyTxId :: TxId
- makeTxOut :: AddressAny -> Value -> TxOutDatum CtxTx Era -> ReferenceScript Era -> TxOut CtxUTxO Era
- txSigners :: Tx Era -> [Hash PaymentKey]
- txInputs :: Tx Era -> [TxIn]
- txOutputs :: Tx Era -> [TxOut CtxTx Era]
- leqValue :: Value -> Value -> Bool
- projectAda :: Value -> Value
- data ValidityReport = ValidityReport {}
- validateTx :: ProtocolParameters -> Tx Era -> UTxO Era -> ValidityReport
- restrictUTxO :: Tx Era -> UTxO Era -> UTxO Era
- convValidityInterval :: (TxValidityLowerBound era, TxValidityUpperBound era) -> ValidityInterval
Documentation
addressOfTxOut :: TxOut ctx Era -> AddressAny Source #
valueOfTxOut :: TxOut ctx Era -> Value Source #
datumOfTxOut :: TxOut ctx Era -> TxOutDatum ctx Era Source #
Get the datum from a transaction output.
redeemerOfTxIn :: Tx Era -> TxIn -> Maybe ScriptData Source #
paymentCredentialToAddressAny :: PaymentCredential -> AddressAny Source #
scriptAddressAny :: ScriptHash -> AddressAny Source #
Construct a script address.
keyAddressAny :: Hash PaymentKey -> AddressAny Source #
Construct a public key address.
isKeyAddressAny :: AddressAny -> Bool Source #
Check if an address is a public key address.
recomputeScriptData :: Maybe Word64 -> (Word64 -> Word64) -> TxBodyScriptData Era -> TxBodyScriptData Era Source #
emptyTxBodyScriptData :: TxBodyScriptData Era Source #
addScriptData :: Word64 -> Data (ShelleyLedgerEra Era) -> (Data (ShelleyLedgerEra Era), ExUnits) -> TxBodyScriptData Era -> TxBodyScriptData Era Source #
toCtxUTxODatum :: TxOutDatum CtxTx Era -> TxOutDatum CtxUTxO Era Source #
txOutDatum :: ScriptData -> TxOutDatum CtxTx Era Source #
Convert ScriptData to a Datum
.
toScriptData :: ToData a => a -> ScriptData Source #
Convert a Haskell value to ScriptData for use as a
Redeemer
or convert to a
Datum
with txOutDatum
.
makeTxOut :: AddressAny -> Value -> TxOutDatum CtxTx Era -> ReferenceScript Era -> TxOut CtxUTxO Era Source #
projectAda :: Value -> Value Source #
Keep only the Ada part of a value.
data ValidityReport Source #
The result of validating a transaction. In case of failure, it includes a list of reasons.
Instances
Eq ValidityReport Source # | |
Defined in Test.QuickCheck.ContractModel.ThreatModel.Cardano.Api (==) :: ValidityReport -> ValidityReport -> Bool Source # (/=) :: ValidityReport -> ValidityReport -> Bool Source # | |
Ord ValidityReport Source # | |
Defined in Test.QuickCheck.ContractModel.ThreatModel.Cardano.Api compare :: ValidityReport -> ValidityReport -> Ordering Source # (<) :: ValidityReport -> ValidityReport -> Bool Source # (<=) :: ValidityReport -> ValidityReport -> Bool Source # (>) :: ValidityReport -> ValidityReport -> Bool Source # (>=) :: ValidityReport -> ValidityReport -> Bool Source # max :: ValidityReport -> ValidityReport -> ValidityReport Source # min :: ValidityReport -> ValidityReport -> ValidityReport Source # | |
Show ValidityReport Source # | |
validateTx :: ProtocolParameters -> Tx Era -> UTxO Era -> ValidityReport Source #
restrictUTxO :: Tx Era -> UTxO Era -> UTxO Era Source #
Keep only UTxOs mentioned in the given transaction.
convValidityInterval :: (TxValidityLowerBound era, TxValidityUpperBound era) -> ValidityInterval Source #