Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
TxOutCompact' !( CompactAddr ( Crypto era)) !( CompactForm ( Value era)) | |
TxOutCompactDH' !( CompactAddr ( Crypto era)) !( CompactForm ( Value era)) !( DataHash ( Crypto era)) | |
TxOut_AddrHash28_AdaOnly !( Credential ' Staking ( Crypto era)) ! Addr28Extra !( CompactForm Coin ) | |
TxOut_AddrHash28_AdaOnly_DataHash32 !( Credential ' Staking ( Crypto era)) ! Addr28Extra !( CompactForm Coin ) ! DataHash32 |
pattern TxOut :: forall era. ( Era era, Compactible ( Value era), Val ( Value era), HasCallStack ) => Addr ( Crypto era) -> Value era -> StrictMaybe ( DataHash ( Crypto era)) -> TxOut era | |
pattern TxOutCompact :: ( Era era, Val ( Value era), HasCallStack ) => CompactAddr ( Crypto era) -> CompactForm ( Value era) -> TxOut era | |
pattern TxOutCompactDH :: forall era. ( Era era, HasCallStack ) => CompactAddr ( Crypto era) -> CompactForm ( Value era) -> DataHash ( Crypto era) -> TxOut era |
Instances
data Addr28Extra Source #
Instances
Eq Addr28Extra Source # | |
Defined in Cardano.Ledger.Alonzo.TxBody (==) :: Addr28Extra -> Addr28Extra -> Bool Source # (/=) :: Addr28Extra -> Addr28Extra -> Bool Source # |
data DataHash32 Source #
Instances
Eq DataHash32 Source # | |
Defined in Cardano.Ledger.Alonzo.TxBody (==) :: DataHash32 -> DataHash32 -> Bool Source # (/=) :: DataHash32 -> DataHash32 -> Bool Source # |
data TxBody era where Source #
pattern TxBody :: AlonzoBody era => Set ( TxIn ( Crypto era)) -> Set ( TxIn ( Crypto era)) -> StrictSeq ( TxOut era) -> 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
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 #
getAdaOnly :: forall era. Val ( Value era) => Proxy era -> Value era -> Maybe ( CompactForm Coin ) Source #
decodeDataHash32 :: forall crypto. HashAlgorithm ( HASH crypto) => DataHash32 -> Maybe ( DataHash crypto) Source #
encodeDataHash32 :: forall crypto. HashAlgorithm ( HASH crypto) => DataHash crypto -> Maybe ( SizeHash ( HASH crypto) :~: 32, DataHash32 ) Source #
encodeAddress28 :: forall crypto. HashAlgorithm ( ADDRHASH crypto) => Network -> PaymentCredential crypto -> Maybe ( SizeHash ( ADDRHASH crypto) :~: 28, Addr28Extra ) Source #
decodeAddress28 :: forall crypto. HashAlgorithm ( ADDRHASH crypto) => Credential ' Staking crypto -> Addr28Extra -> Maybe ( Addr crypto) Source #
viewCompactTxOut :: forall era. Era era => TxOut era -> ( CompactAddr ( Crypto era), CompactForm ( Value era), StrictMaybe ( DataHash ( Crypto era))) Source #
viewTxOut :: forall era. Era era => TxOut era -> ( Addr ( Crypto era), Value era, StrictMaybe ( DataHash ( Crypto era))) Source #
type AlonzoBody era = ( Era era, Compactible ( Value era), ToCBOR ( Script era), SerialisableData ( PParamsDelta era)) Source #
data EraIndependentScriptIntegrity Source #
Instances
c ~ Crypto era => HasField "scriptIntegrityHash" ( TxBody era) ( StrictMaybe ( ScriptIntegrityHash c)) Source # | |
Defined in Cardano.Ledger.Alonzo.TxBody getField :: TxBody era -> StrictMaybe ( ScriptIntegrityHash c) Source # |
|
( Era era, c ~ Crypto era) => HashAnnotated ( ScriptIntegrity era) EraIndependentScriptIntegrity c Source # | |
Defined in Cardano.Ledger.Alonzo.Tx |
type ScriptIntegrityHash crypto = SafeHash crypto EraIndependentScriptIntegrity Source #
getAlonzoTxOutEitherAddr :: HashAlgorithm ( ADDRHASH ( Crypto era)) => TxOut era -> Either ( Addr ( Crypto era)) ( CompactAddr ( Crypto era)) Source #