Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.Ledger.Conway.TxBody.Internal
Contents
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
- class (BabbageEraTxBody era, ConwayEraTxCert era, ConwayEraPParams era, ConwayEraScript era) ⇒ ConwayEraTxBody era where
- currentTreasuryValueTxBodyL ∷ Lens' (TxBody era) (StrictMaybe Coin)
- votingProceduresTxBodyL ∷ Lens' (TxBody era) (VotingProcedures era)
- proposalProceduresTxBodyL ∷ Lens' (TxBody era) (OSet (ProposalProcedure era))
- treasuryDonationTxBodyL ∷ Lens' (TxBody era) Coin
- newtype ConwayTxBody era where
- TxBodyConstr (MemoBytes (ConwayTxBodyRaw era))
- pattern ConwayTxBody ∷ ∀ era. ConwayEraTxBody era ⇒ Set TxIn → Set TxIn → Set TxIn → StrictSeq (Sized (TxOut era)) → StrictMaybe (Sized (TxOut era)) → StrictMaybe Coin → OSet (TxCert era) → Withdrawals → Coin → ValidityInterval → Set (KeyHash 'Witness) → MultiAsset → StrictMaybe ScriptIntegrityHash → StrictMaybe TxAuxDataHash → StrictMaybe Network → VotingProcedures era → OSet (ProposalProcedure era) → StrictMaybe Coin → Coin → ConwayTxBody era
- data ConwayTxBodyRaw era = ConwayTxBodyRaw {
- ctbrSpendInputs ∷ !(Set TxIn)
- ctbrCollateralInputs ∷ !(Set TxIn)
- ctbrReferenceInputs ∷ !(Set TxIn)
- ctbrOutputs ∷ !(StrictSeq (Sized (TxOut era)))
- ctbrCollateralReturn ∷ !(StrictMaybe (Sized (TxOut era)))
- ctbrTotalCollateral ∷ !(StrictMaybe Coin)
- ctbrCerts ∷ !(OSet (TxCert era))
- ctbrWithdrawals ∷ !Withdrawals
- ctbrTxfee ∷ !Coin
- ctbrVldt ∷ !ValidityInterval
- ctbrReqSignerHashes ∷ !(Set (KeyHash 'Witness))
- ctbrMint ∷ !MultiAsset
- ctbrScriptIntegrityHash ∷ !(StrictMaybe ScriptIntegrityHash)
- ctbrAuxDataHash ∷ !(StrictMaybe TxAuxDataHash)
- ctbrTxNetworkId ∷ !(StrictMaybe Network)
- ctbrVotingProcedures ∷ !(VotingProcedures era)
- ctbrProposalProcedures ∷ !(OSet (ProposalProcedure era))
- ctbrCurrentTreasuryValue ∷ !(StrictMaybe Coin)
- ctbrTreasuryDonation ∷ !Coin
- conwayTotalDepositsTxBody ∷ ConwayEraTxBody era ⇒ PParams era → (KeyHash 'StakePool → Bool) → TxBody era → Coin
- conwayProposalsDeposits ∷ ConwayEraTxBody era ⇒ PParams era → TxBody era → Coin
Documentation
class (BabbageEraTxBody era, ConwayEraTxCert era, ConwayEraPParams era, ConwayEraScript era) ⇒ ConwayEraTxBody era where Source #
Methods
currentTreasuryValueTxBodyL ∷ Lens' (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
votingProceduresTxBodyL ∷ Lens' (TxBody era) (VotingProcedures era) Source #
Lens for getting and setting VotingProcedures
.
proposalProceduresTxBodyL ∷ Lens' (TxBody era) (OSet (ProposalProcedure era)) Source #
Lens for getting and setting ProposalProcedures
.
Instances
newtype ConwayTxBody era Source #
Constructors
TxBodyConstr (MemoBytes (ConwayTxBodyRaw era)) |
Bundled Patterns
pattern ConwayTxBody ∷ ∀ era. ConwayEraTxBody era ⇒ Set TxIn → Set TxIn → Set TxIn → StrictSeq (Sized (TxOut era)) → StrictMaybe (Sized (TxOut era)) → StrictMaybe Coin → OSet (TxCert era) → Withdrawals → Coin → ValidityInterval → Set (KeyHash 'Witness) → MultiAsset → StrictMaybe ScriptIntegrityHash → StrictMaybe TxAuxDataHash → StrictMaybe Network → VotingProcedures era → OSet (ProposalProcedure era) → StrictMaybe Coin → Coin → ConwayTxBody era |
Instances
data ConwayTxBodyRaw era Source #
Constructors
ConwayTxBodyRaw | |
Fields
|
Instances
Generic (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal Associated Types type Rep (ConwayTxBodyRaw era) ∷ Type → Type # Methods from ∷ ConwayTxBodyRaw era → Rep (ConwayTxBodyRaw era) x # to ∷ Rep (ConwayTxBodyRaw era) x → ConwayTxBodyRaw era # | |
(EraPParams era, Show (TxCert era), Show (TxOut era)) ⇒ Show (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal Methods showsPrec ∷ Int → ConwayTxBodyRaw era → ShowS # show ∷ ConwayTxBodyRaw era → String # showList ∷ [ConwayTxBodyRaw era] → ShowS # | |
(DecCBOR (TxOut era), EraTxCert era, EraPParams era) ⇒ DecCBOR (Annotator (ConwayTxBodyRaw era)) Source # | |
(EraPParams era, EraTxCert era, DecCBOR (TxOut era)) ⇒ DecCBOR (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal | |
ConwayEraTxBody era ⇒ EncCBOR (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal Methods encCBOR ∷ ConwayTxBodyRaw 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 (TxCert era), NFData (TxOut era)) ⇒ NFData (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal Methods rnf ∷ ConwayTxBodyRaw era → () # | |
(EraPParams era, Eq (TxCert era), Eq (TxOut era)) ⇒ Eq (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal Methods (==) ∷ ConwayTxBodyRaw era → ConwayTxBodyRaw era → Bool # (/=) ∷ ConwayTxBodyRaw era → ConwayTxBodyRaw era → Bool # | |
(EraPParams era, NoThunks (TxCert era), NoThunks (TxOut era)) ⇒ NoThunks (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal | |
type Rep (ConwayTxBodyRaw era) Source # | |
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 (TxCert 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))))))) | |
type MemoHashIndex (ConwayTxBodyRaw era) Source # | |
Defined in Cardano.Ledger.Conway.TxBody.Internal |
conwayTotalDepositsTxBody ∷ ConwayEraTxBody era ⇒ PParams era → (KeyHash 'StakePool → Bool) → TxBody era → Coin Source #
Compute all the deposits in a TxBody. This includes deposits for:
- registering Stake
- registering a StakePool
- registering a DRep
- submitting a Proposal
This is the contribution of a TxBody towards the total
Obligations
conwayProposalsDeposits ∷ ConwayEraTxBody era ⇒ PParams era → TxBody era → Coin Source #
Total number of deposits in the proposals in TxBody