Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Provides Shelley Tx internals
Warning
This module is considered internal.
The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.
Synopsis
- newtype ShelleyTx era where
- TxConstr (MemoBytes ShelleyTxRaw era)
- pattern ShelleyTx ∷ EraTx era ⇒ TxBody era → TxWits era → StrictMaybe (TxAuxData era) → ShelleyTx era
- data ShelleyTxRaw era = ShelleyTxRaw {
- strBody ∷ !(TxBody era)
- strWits ∷ !(TxWits era)
- strAuxiliaryData ∷ !(StrictMaybe (TxAuxData era))
- bodyShelleyTxL ∷ EraTx era ⇒ Lens' (ShelleyTx era) (TxBody era)
- witsShelleyTxL ∷ EraTx era ⇒ Lens' (ShelleyTx era) (TxWits era)
- auxDataShelleyTxL ∷ EraTx era ⇒ Lens' (ShelleyTx era) (StrictMaybe (TxAuxData era))
- sizeShelleyTxF ∷ Era era ⇒ SimpleGetter (ShelleyTx era) Integer
- wireSizeShelleyTxF ∷ Era era ⇒ SimpleGetter (ShelleyTx era) Word32
- segwitTx ∷ ∀ era. EraTx era ⇒ Annotator (TxBody era) → Annotator (TxWits era) → Maybe (Annotator (TxAuxData era)) → Annotator (ShelleyTx era)
- mkBasicShelleyTx ∷ EraTx era ⇒ TxBody era → ShelleyTx era
- shelleyMinFeeTx ∷ EraTx era ⇒ PParams era → Tx era → Coin
- witsFromTxWitnesses ∷ EraTx era ⇒ Tx era → Set (KeyHash 'Witness)
- shelleyEqTxRaw ∷ EraTx era ⇒ Tx era → Tx era → Bool
Transaction
newtype ShelleyTx era Source #
TxConstr (MemoBytes ShelleyTxRaw era) |
pattern ShelleyTx ∷ EraTx era ⇒ TxBody era → TxWits era → StrictMaybe (TxAuxData era) → ShelleyTx era |
Instances
data ShelleyTxRaw era Source #
ShelleyTxRaw | |
|
Instances
auxDataShelleyTxL ∷ EraTx era ⇒ Lens' (ShelleyTx era) (StrictMaybe (TxAuxData era)) Source #
sizeShelleyTxF ∷ Era era ⇒ SimpleGetter (ShelleyTx era) Integer Source #
Size getter for ShelleyTx
.
wireSizeShelleyTxF ∷ Era era ⇒ SimpleGetter (ShelleyTx era) Word32 Source #
segwitTx ∷ ∀ era. EraTx era ⇒ Annotator (TxBody era) → Annotator (TxWits era) → Maybe (Annotator (TxAuxData era)) → Annotator (ShelleyTx era) Source #
witsFromTxWitnesses ∷ EraTx era ⇒ Tx era → Set (KeyHash 'Witness) Source #
Extract the witness hashes from the Transaction.
Orphan instances
EraTx ShelleyEra Source # | |
type Tx ShelleyEra = (r ∷ Type) Source # type TxUpgradeError ShelleyEra Source # mkBasicTx ∷ TxBody ShelleyEra → Tx ShelleyEra Source # bodyTxL ∷ Lens' (Tx ShelleyEra) (TxBody ShelleyEra) Source # witsTxL ∷ Lens' (Tx ShelleyEra) (TxWits ShelleyEra) Source # auxDataTxL ∷ Lens' (Tx ShelleyEra) (StrictMaybe (TxAuxData ShelleyEra)) Source # sizeTxF ∷ SimpleGetter (Tx ShelleyEra) Integer Source # wireSizeTxF ∷ SimpleGetter (Tx ShelleyEra) Word32 Source # validateNativeScript ∷ Tx ShelleyEra → NativeScript ShelleyEra → Bool Source # getMinFeeTx ∷ PParams ShelleyEra → Tx ShelleyEra → Int → Coin Source # upgradeTx ∷ Tx (PreviousEra ShelleyEra) → Either (TxUpgradeError ShelleyEra) (Tx ShelleyEra) Source # |