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

Cardano.Ledger.Conway.TxBody

Synopsis

Documentation

class (BabbageEraTxBody era, ConwayEraTxCert era, ConwayEraPParams era, ConwayEraScript era) ⇒ ConwayEraTxBody era where Source #

Methods

currentTreasuryValueTxBodyLLens' (TxBody era) (StrictMaybe Coin) Source #

Lens for getting and setting number of Coin that is expected to be in the Treasury at the current Epoch

votingProceduresTxBodyLLens' (TxBody era) (VotingProcedures era) Source #

Lens for getting and setting VotingProcedures.

proposalProceduresTxBodyLLens' (TxBody era) (OSet (ProposalProcedure era)) Source #

Lens for getting and setting ProposalProcedures.

treasuryDonationTxBodyLLens' (TxBody era) Coin Source #

data ConwayTxBody era where Source #

Instances

Instances details
Memoized ConwayTxBody Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

Associated Types

type RawType ConwayTxBody = (r ∷ TypeType) Source #

Generic (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

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

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

Defined in Cardano.Ledger.Conway.TxBody

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

Era era ⇒ EncCBOR (ConwayTxBody era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Conway.TxBody

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 #

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

Defined in Cardano.Ledger.Conway.TxBody

Methods

eqRawConwayTxBody era → ConwayTxBody era → Bool Source #

SafeToHash (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

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

Defined in Cardano.Ledger.Conway.TxBody

Methods

rnfConwayTxBody era → () Source #

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

Defined in Cardano.Ledger.Conway.TxBody

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

c ~ EraCrypto era ⇒ HashAnnotated (ConwayTxBody era) EraIndependentTxBody c Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

type RawType ConwayTxBody Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

type Rep (ConwayTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

type Rep (ConwayTxBody era) = D1 ('MetaData "ConwayTxBody" "Cardano.Ledger.Conway.TxBody" "cardano-ledger-conway-1.16.0.1-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

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

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

Defined in Cardano.Ledger.Conway.TxBody

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

Defined in Cardano.Ledger.Conway.TxBody

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

Defined in Cardano.Ledger.Conway.TxBody

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

Methods

rnfConwayTxBodyRaw era → () Source #

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

Defined in Cardano.Ledger.Conway.TxBody

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

Defined in Cardano.Ledger.Conway.TxBody

type MemoHashIndex ConwayTxBodyRaw Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

type Rep (ConwayTxBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Conway.TxBody

type Rep (ConwayTxBodyRaw era) = D1 ('MetaData "ConwayTxBodyRaw" "Cardano.Ledger.Conway.TxBody" "cardano-ledger-conway-1.16.0.1-inplace" 'False) (C1 ('MetaCons "ConwayTxBodyRaw" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "ctbrSpendInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (TxIn (EraCrypto era)))) :*: S1 ('MetaSel ('Just "ctbrCollateralInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (TxIn (EraCrypto era))))) :*: (S1 ('MetaSel ('Just "ctbrReferenceInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (TxIn (EraCrypto era)))) :*: 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 (EraCrypto era))) :*: 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 (EraCrypto era))))) :*: (S1 ('MetaSel ('Just "ctbrMint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MultiAsset (EraCrypto era))) :*: (S1 ('MetaSel ('Just "ctbrScriptIntegrityHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (ScriptIntegrityHash (EraCrypto era)))) :*: S1 ('MetaSel ('Just "ctbrAuxDataHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (AuxiliaryDataHash (EraCrypto era))))))) :*: ((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 'StakePool (EraCrypto era) → Bool) → 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

Crypto c ⇒ AllegraEraTxBody (ConwayEra c) Source # 
Instance details

Crypto c ⇒ AlonzoEraTxBody (ConwayEra c) Source # 
Instance details

Crypto c ⇒ BabbageEraTxBody (ConwayEra c) Source # 
Instance details

Crypto c ⇒ EraTxBody (ConwayEra c) Source # 
Instance details

Associated Types

type TxBody (ConwayEra c) = (r ∷ Type) Source #

type TxBodyUpgradeError (ConwayEra c) Source #

Crypto c ⇒ MaryEraTxBody (ConwayEra c) Source # 
Instance details