Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AlonzoTx era = AlonzoTx {
- body ∷ !(TxBody era)
- wits ∷ !(TxWits era)
- isValid ∷ !IsValid
- auxiliaryData ∷ !(StrictMaybe (TxAuxData era))
- class (EraTx era, AlonzoEraTxBody era, AlonzoEraTxWits era, AlonzoEraScript era) ⇒ AlonzoEraTx era where
- isValidTxL ∷ Lens' (Tx era) IsValid
- tierRefScriptFee ∷ HasCallStack ⇒ Rational → Int → Rational → Int → Coin
- refScriptCostStride ∷ Int
- refScriptCostMultiplier ∷ Rational
Documentation
AlonzoTx | |
|
Instances
class (EraTx era, AlonzoEraTxBody era, AlonzoEraTxWits era, AlonzoEraScript era) ⇒ AlonzoEraTx era where Source #
Instances
Crypto c ⇒ AlonzoEraTx (AlonzoEra c) | |
Defined in Cardano.Ledger.Alonzo.Tx | |
Crypto c ⇒ AlonzoEraTx (ConwayEra c) Source # | |
Defined in Cardano.Ledger.Conway.Tx |
∷ HasCallStack | |
⇒ Rational | Growth factor or step multiplier |
→ Int | Increment size in which price grows linearly according to the price |
→ Rational | Base fee. Currently this is customizable by |
→ Int | Total RefScript size in bytes |
→ Coin |
Calculate the fee for reference scripts using an expoential growth of the price per byte with linear increments
refScriptCostStride ∷ Int Source #
25 KiB
Orphan instances
Crypto c ⇒ AlonzoEraTx (ConwayEra c) Source # | |
Crypto c ⇒ EraSegWits (ConwayEra c) Source # | |
Crypto c ⇒ EraTx (ConwayEra c) Source # | |
mkBasicTx ∷ TxBody (ConwayEra c) → Tx (ConwayEra c) Source # bodyTxL ∷ Lens' (Tx (ConwayEra c)) (TxBody (ConwayEra c)) Source # witsTxL ∷ Lens' (Tx (ConwayEra c)) (TxWits (ConwayEra c)) Source # auxDataTxL ∷ Lens' (Tx (ConwayEra c)) (StrictMaybe (TxAuxData (ConwayEra c))) Source # sizeTxF ∷ SimpleGetter (Tx (ConwayEra c)) Integer Source # wireSizeTxF ∷ SimpleGetter (Tx (ConwayEra c)) Word32 Source # validateNativeScript ∷ Tx (ConwayEra c) → NativeScript (ConwayEra c) → Bool Source # getMinFeeTx ∷ PParams (ConwayEra c) → Tx (ConwayEra c) → Int → Coin Source # upgradeTx ∷ Tx (PreviousEra (ConwayEra c)) → Either (TxUpgradeError (ConwayEra c)) (Tx (ConwayEra c)) Source # |