convex-base-0.2.0.0: Base classes and types for working with cardano-api transactions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Lenses

Description

Lenses for cardano-api types

Synopsis

Tx body content lenses

emptyTxTxBodyContent BuildTx BabbageEra Source #

TxBodyContent with all fields set to empty, none, default values

emptyTxOutAddressInEra BabbageEraTxOut CtxTx BabbageEra Source #

A transaction output with no value

Prisms and Isos

_TxOutIso' (TxOut ctx era) (AddressInEra era, TxOutValue era, TxOutDatum ctx era, ReferenceScript era) Source #

Validity intervals

Witnesses

_KeyWitnessPrism' (Witness witctx era) (KeyWitnessInCtx witctx) Source #

_ScriptWitnessPrism' (Witness witctx era) (ScriptWitnessInCtx witctx, ScriptWitness witctx era) Source #

Build tx

Ledger API types

_UTxOState ∷ ∀ era. EraTxOut era ⇒ PParams era → Iso' (UTxOState era) (UTxO era, Coin, Coin, GovernanceState era) Source #

UTxOState iso. Note that this doesn't touch the _stakeDistro field. This is because the stake distro is a function of utxo :: UTxO era and can be computed by updateStakeDistribution mempty mempty utxo.

Addresses

Hashes

Datums