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 (EraCrypto era))
- 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 (EraCrypto era)) Source #
Extract the witness hashes from the Transaction.
Orphan instances
Crypto c ⇒ EraTx (ShelleyEra c) Source # | |
type Tx (ShelleyEra c) = (r ∷ Type) Source # type TxUpgradeError (ShelleyEra c) Source # mkBasicTx ∷ TxBody (ShelleyEra c) → Tx (ShelleyEra c) Source # bodyTxL ∷ Lens' (Tx (ShelleyEra c)) (TxBody (ShelleyEra c)) Source # witsTxL ∷ Lens' (Tx (ShelleyEra c)) (TxWits (ShelleyEra c)) Source # auxDataTxL ∷ Lens' (Tx (ShelleyEra c)) (StrictMaybe (TxAuxData (ShelleyEra c))) Source # sizeTxF ∷ SimpleGetter (Tx (ShelleyEra c)) Integer Source # wireSizeTxF ∷ SimpleGetter (Tx (ShelleyEra c)) Word32 Source # validateNativeScript ∷ Tx (ShelleyEra c) → NativeScript (ShelleyEra c) → Bool Source # getMinFeeTx ∷ PParams (ShelleyEra c) → Tx (ShelleyEra c) → Int → Coin Source # upgradeTx ∷ Tx (PreviousEra (ShelleyEra c)) → Either (TxUpgradeError (ShelleyEra c)) (Tx (ShelleyEra c)) Source # |