cardano-ledger-conway-1.19.0.0: Cardano ledger with an updated on-chain governance system.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Conway.TxBody.Internal

Description

Provides Conway TxBody 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

Documentation

newtype ConwayTxBody era Source #

Instances

Instances details
Memoized ConwayTxBody Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Associated Types

type RawType ConwayTxBody = (r ∷ TypeType) Source #

Generic (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Associated Types

type Rep (ConwayTxBody era) ∷ TypeType Source #

Methods

fromConwayTxBody era → Rep (ConwayTxBody era) x Source #

toRep (ConwayTxBody era) x → ConwayTxBody era Source #

(EraPParams era, Show (TxOut era)) ⇒ Show (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Typeable era ⇒ ToCBOR (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Methods

toCBORConwayTxBody era → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (ConwayTxBody era) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ConwayTxBody era] → Size Source #

(DecCBOR (TxOut era), EraPParams era, ShelleyEraTxCert era, TxCert era ~ ConwayTxCert era) ⇒ DecCBOR (Annotator (ConwayTxBody era)) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Era era ⇒ EncCBOR (ConwayTxBody era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Methods

encCBORConwayTxBody era → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (ConwayTxBody era) → Size Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [ConwayTxBody era] → Size Source #

SafeToHash (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

(EraPParams era, Eq (TxOut era), Eq (TxCert era)) ⇒ EqRaw (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Methods

eqRawConwayTxBody era → ConwayTxBody era → Bool Source #

(EraPParams era, NFData (TxOut era)) ⇒ NFData (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Methods

rnfConwayTxBody era → () Source #

(EraPParams era, Eq (TxOut era)) ⇒ Eq (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Methods

(==)ConwayTxBody era → ConwayTxBody era → Bool Source #

(/=)ConwayTxBody era → ConwayTxBody era → Bool Source #

(EraPParams era, NoThunks (TxOut era)) ⇒ NoThunks (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

HashAnnotated (ConwayTxBody era) EraIndependentTxBody Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

type RawType ConwayTxBody Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

type Rep (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

type Rep (ConwayTxBody era) = D1 ('MetaData "ConwayTxBody" "Cardano.Ledger.Conway.TxBody.Internal" "cardano-ledger-conway-1.19.0.0-inplace" 'True) (C1 ('MetaCons "TxBodyConstr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes ConwayTxBodyRaw era))))

data ConwayTxBodyRaw era Source #

Instances

Instances details
Generic (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Associated Types

type Rep (ConwayTxBodyRaw era) ∷ TypeType Source #

(EraPParams era, Show (TxOut era)) ⇒ Show (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

(DecCBOR (TxOut era), EraPParams era, ShelleyEraTxCert era, TxCert era ~ ConwayTxCert era) ⇒ DecCBOR (Annotator (ConwayTxBodyRaw era)) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

(EraPParams era, DecCBOR (TxOut era), ShelleyEraTxCert era, TxCert era ~ ConwayTxCert era) ⇒ DecCBOR (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

ConwayEraTxBody era ⇒ EncCBOR (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Methods

encCBORConwayTxBodyRaw era → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (ConwayTxBodyRaw era) → Size Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [ConwayTxBodyRaw era] → Size Source #

(EraPParams era, NFData (TxOut era)) ⇒ NFData (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

Methods

rnfConwayTxBodyRaw era → () Source #

(EraPParams era, Eq (TxOut era)) ⇒ Eq (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

(EraPParams era, NoThunks (TxOut era)) ⇒ NoThunks (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

type MemoHashIndex ConwayTxBodyRaw Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

type Rep (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody.Internal

type Rep (ConwayTxBodyRaw era) = D1 ('MetaData "ConwayTxBodyRaw" "Cardano.Ledger.Conway.TxBody.Internal" "cardano-ledger-conway-1.19.0.0-inplace" 'False) (C1 ('MetaCons "ConwayTxBodyRaw" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "ctbrSpendInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set TxIn)) :*: S1 ('MetaSel ('Just "ctbrCollateralInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set TxIn))) :*: (S1 ('MetaSel ('Just "ctbrReferenceInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set TxIn)) :*: S1 ('MetaSel ('Just "ctbrOutputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Sized (TxOut era)))))) :*: ((S1 ('MetaSel ('Just "ctbrCollateralReturn") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Sized (TxOut era)))) :*: S1 ('MetaSel ('Just "ctbrTotalCollateral") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe Coin))) :*: (S1 ('MetaSel ('Just "ctbrCerts") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (OSet (ConwayTxCert era))) :*: (S1 ('MetaSel ('Just "ctbrWithdrawals") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Withdrawals) :*: S1 ('MetaSel ('Just "ctbrTxfee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))))) :*: (((S1 ('MetaSel ('Just "ctbrVldt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ValidityInterval) :*: S1 ('MetaSel ('Just "ctbrReqSignerHashes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (KeyHash 'Witness)))) :*: (S1 ('MetaSel ('Just "ctbrMint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MultiAsset) :*: (S1 ('MetaSel ('Just "ctbrScriptIntegrityHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe ScriptIntegrityHash)) :*: S1 ('MetaSel ('Just "ctbrAuxDataHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe TxAuxDataHash))))) :*: ((S1 ('MetaSel ('Just "ctbrTxNetworkId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe Network)) :*: S1 ('MetaSel ('Just "ctbrVotingProcedures") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VotingProcedures era))) :*: (S1 ('MetaSel ('Just "ctbrProposalProcedures") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (OSet (ProposalProcedure era))) :*: (S1 ('MetaSel ('Just "ctbrCurrentTreasuryValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe Coin)) :*: S1 ('MetaSel ('Just "ctbrTreasuryDonation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))))))

conwayTotalDepositsTxBodyConwayEraTxBody era ⇒ PParams era → (KeyHash 'StakePoolBool) → TxBody era → Coin Source #

Compute all the deposits in a TxBody. This includes deposits for:

  1. registering Stake
  2. registering a StakePool
  3. registering a DRep
  4. submitting a Proposal

This is the contribution of a TxBody towards the total Obligations

conwayProposalsDepositsConwayEraTxBody era ⇒ PParams era → TxBody era → Coin Source #

Total number of deposits in the proposals in TxBody

Orphan instances

AllegraEraTxBody ConwayEra Source # 
Instance details

AlonzoEraTxBody ConwayEra Source # 
Instance details

BabbageEraTxBody ConwayEra Source # 
Instance details

EraTxBody ConwayEra Source # 
Instance details

Associated Types

type TxBody ConwayEra = (r ∷ Type) Source #

type TxBodyUpgradeError ConwayEra Source #

MaryEraTxBody ConwayEra Source # 
Instance details