Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
data
TxOut
era
where
- TxOutCompactDatum !( CompactAddr ( Crypto era)) !( CompactForm ( Value era)) !( BinaryData era)
- TxOutCompactRefScript !( CompactAddr ( Crypto era)) !( CompactForm ( Value era)) !( Datum era) !( Script era)
- pattern TxOut :: forall era. ( Era era, Compactible ( Value era), Val ( Value era), HasCallStack ) => Addr ( Crypto era) -> Value era -> Datum era -> StrictMaybe ( Script era) -> TxOut era
- pattern TxOutCompact :: ( Era era, HasCallStack ) => CompactAddr ( Crypto era) -> CompactForm ( Value era) -> TxOut era
- pattern TxOutCompactDH :: ( Era era, HasCallStack ) => CompactAddr ( Crypto era) -> CompactForm ( Value era) -> DataHash ( Crypto era) -> TxOut era
-
data
TxBody
era
where
- pattern TxBody :: BabbageBody era => Set ( TxIn ( Crypto era)) -> Set ( TxIn ( Crypto era)) -> Set ( TxIn ( Crypto era)) -> StrictSeq ( Sized ( TxOut era)) -> StrictMaybe ( Sized ( TxOut era)) -> StrictMaybe Coin -> StrictSeq ( DCert ( Crypto era)) -> Wdrl ( Crypto era) -> Coin -> ValidityInterval -> StrictMaybe ( Update era) -> Set ( KeyHash ' Witness ( Crypto era)) -> Value ( Crypto era) -> StrictMaybe ( ScriptIntegrityHash ( Crypto era)) -> StrictMaybe ( AuxiliaryDataHash ( Crypto era)) -> StrictMaybe Network -> TxBody era
- data Datum era
- spendInputs' :: TxBody era -> Set ( TxIn ( Crypto era))
- collateralInputs' :: TxBody era -> Set ( TxIn ( Crypto era))
- referenceInputs' :: TxBody era -> Set ( TxIn ( Crypto era))
- outputs' :: TxBody era -> StrictSeq ( TxOut era)
- collateralReturn' :: TxBody era -> StrictMaybe ( TxOut era)
- totalCollateral' :: TxBody era -> StrictMaybe Coin
- certs' :: TxBody era -> StrictSeq ( DCert ( Crypto era))
- wdrls' :: TxBody era -> Wdrl ( Crypto era)
- txfee' :: TxBody era -> Coin
- vldt' :: TxBody era -> ValidityInterval
- update' :: TxBody era -> StrictMaybe ( Update era)
- reqSignerHashes' :: TxBody era -> Set ( KeyHash ' Witness ( Crypto era))
- mint' :: TxBody era -> Value ( Crypto era)
- scriptIntegrityHash' :: TxBody era -> StrictMaybe ( ScriptIntegrityHash ( Crypto era))
- adHash' :: TxBody era -> StrictMaybe ( AuxiliaryDataHash ( Crypto era))
- txnetworkid' :: TxBody era -> StrictMaybe Network
- getBabbageTxOutEitherAddr :: HashAlgorithm ( ADDRHASH ( Crypto era)) => TxOut era -> Either ( Addr ( Crypto era)) ( CompactAddr ( Crypto era))
- type BabbageBody era = ( Era era, ToCBOR ( Value era), ToCBOR ( Script era), SerialisableData ( PParamsDelta era))
- data EraIndependentScriptIntegrity
- type ScriptIntegrityHash crypto = SafeHash crypto EraIndependentScriptIntegrity
- txOutData :: TxOut era -> Maybe ( Data era)
- txOutDataHash :: Era era => TxOut era -> Maybe ( DataHash ( Crypto era))
- txOutScript :: TxOut era -> Maybe ( Script era)
Documentation
TxOutCompactDatum !( CompactAddr ( Crypto era)) !( CompactForm ( Value era)) !( BinaryData era) | |
TxOutCompactRefScript !( CompactAddr ( Crypto era)) !( CompactForm ( Value era)) !( Datum era) !( Script era) |
pattern TxOut :: forall era. ( Era era, Compactible ( Value era), Val ( Value era), HasCallStack ) => Addr ( Crypto era) -> Value era -> Datum era -> StrictMaybe ( Script era) -> TxOut era | |
pattern TxOutCompact :: ( Era era, HasCallStack ) => CompactAddr ( Crypto era) -> CompactForm ( Value era) -> TxOut era | |
pattern TxOutCompactDH :: ( Era era, HasCallStack ) => CompactAddr ( Crypto era) -> CompactForm ( Value era) -> DataHash ( Crypto era) -> TxOut era |
Instances
data TxBody era where Source #
pattern TxBody :: BabbageBody era => Set ( TxIn ( Crypto era)) -> Set ( TxIn ( Crypto era)) -> Set ( TxIn ( Crypto era)) -> StrictSeq ( Sized ( TxOut era)) -> StrictMaybe ( Sized ( TxOut era)) -> StrictMaybe Coin -> StrictSeq ( DCert ( Crypto era)) -> Wdrl ( Crypto era) -> Coin -> ValidityInterval -> StrictMaybe ( Update era) -> Set ( KeyHash ' Witness ( Crypto era)) -> Value ( Crypto era) -> StrictMaybe ( ScriptIntegrityHash ( Crypto era)) -> StrictMaybe ( AuxiliaryDataHash ( Crypto era)) -> StrictMaybe Network -> TxBody era |
Instances
Datum can be described by a either a data hash or binary data, but not both. It can also be neither one of them.
Instances
Eq ( Datum era) | |
Ord ( Datum era) | |
Defined in Cardano.Ledger.Alonzo.Data |
|
Show ( Datum era) | |
Era era => ToCBOR ( Datum era) | |
Era era => FromCBOR ( Datum era) | |
collateralReturn' :: TxBody era -> StrictMaybe ( TxOut era) Source #
totalCollateral' :: TxBody era -> StrictMaybe Coin Source #
vldt' :: TxBody era -> ValidityInterval Source #
scriptIntegrityHash' :: TxBody era -> StrictMaybe ( ScriptIntegrityHash ( Crypto era)) Source #
adHash' :: TxBody era -> StrictMaybe ( AuxiliaryDataHash ( Crypto era)) Source #
txnetworkid' :: TxBody era -> StrictMaybe Network Source #
getBabbageTxOutEitherAddr :: HashAlgorithm ( ADDRHASH ( Crypto era)) => TxOut era -> Either ( Addr ( Crypto era)) ( CompactAddr ( Crypto era)) Source #
type BabbageBody era = ( Era era, ToCBOR ( Value era), ToCBOR ( Script era), SerialisableData ( PParamsDelta era)) Source #
data EraIndependentScriptIntegrity Source #
Instances
c ~ Crypto era => HasField "scriptIntegrityHash" ( TxBody era) ( StrictMaybe ( ScriptIntegrityHash c)) | |
Defined in Cardano.Ledger.Alonzo.TxBody getField :: TxBody era -> StrictMaybe ( ScriptIntegrityHash c) Source # |
|
c ~ Crypto era => HasField "scriptIntegrityHash" ( TxBody era) ( StrictMaybe ( ScriptIntegrityHash c)) Source # | |
Defined in Cardano.Ledger.Babbage.TxBody getField :: TxBody era -> StrictMaybe ( ScriptIntegrityHash c) Source # |
|
( Era era, c ~ Crypto era) => HashAnnotated ( ScriptIntegrity era) EraIndependentScriptIntegrity c | |
Defined in Cardano.Ledger.Alonzo.Tx |
type ScriptIntegrityHash crypto = SafeHash crypto EraIndependentScriptIntegrity Source #