Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AdaPots = AdaPots {}
- totalAdaES ∷ (EraTxOut era, EraGov era) ⇒ EpochState era → Coin
- totalAdaPotsES ∷ (EraTxOut era, EraGov era) ⇒ EpochState era → AdaPots
- data Produced = Produced {
- proOutputs ∷ !Coin
- proFees ∷ !Coin
- proDeposits ∷ !Coin
- data Consumed = Consumed {
- conInputs ∷ !Coin
- conRefunds ∷ !Coin
- conWithdrawals ∷ !Coin
- consumedTxBody ∷ EraTxBody era ⇒ TxBody era → PParams era → CertState era → UTxO era → Consumed
- producedTxBody ∷ EraTxBody era ⇒ TxBody era → PParams era → CertState era → Produced
- sumAdaPots ∷ AdaPots → Coin
Documentation
Instances
Generic AdaPots Source # | |
Show AdaPots Source # | |
NFData AdaPots Source # | |
Defined in Cardano.Ledger.Shelley.AdaPots | |
Eq AdaPots Source # | |
type Rep AdaPots Source # | |
Defined in Cardano.Ledger.Shelley.AdaPots type Rep AdaPots = D1 ('MetaData "AdaPots" "Cardano.Ledger.Shelley.AdaPots" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "AdaPots" 'PrefixI 'True) ((S1 ('MetaSel ('Just "treasuryAdaPot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin) :*: (S1 ('MetaSel ('Just "reservesAdaPot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin) :*: S1 ('MetaSel ('Just "rewardsAdaPot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin))) :*: (S1 ('MetaSel ('Just "utxoAdaPot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin) :*: (S1 ('MetaSel ('Just "feesAdaPot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin) :*: S1 ('MetaSel ('Just "obligationsPot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Obligations))))) |
totalAdaES ∷ (EraTxOut era, EraGov era) ⇒ EpochState era → Coin Source #
Calculate the total ada in the epoch state
totalAdaPotsES ∷ (EraTxOut era, EraGov era) ⇒ EpochState era → AdaPots Source #
Calculate the total ada pots in the epoch state
Itemizing what is Produced by a transaction
Produced | |
|
Itemizing what is consumed by a transaction
Consumed | |
|
consumedTxBody ∷ EraTxBody era ⇒ TxBody era → PParams era → CertState era → UTxO era → Consumed Source #
Compute the Coin part of what is consumed by a TxBody, itemized as a Consume
producedTxBody ∷ EraTxBody era ⇒ TxBody era → PParams era → CertState era → Produced Source #
Compute the Coin part of what is produced by a TxBody, itemized as a Produced
sumAdaPots ∷ AdaPots → Coin Source #