cardano-ledger-shelley-1.16.0.0: Shelley Ledger Executable Model
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Shelley.API.Types

Synopsis

Documentation

data StrictMaybe a Source #

Constructors

SNothing 
SJust !a 

Instances

Instances details
MonadFail StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

failStringStrictMaybe a Source #

Foldable StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

foldMonoid m ⇒ StrictMaybe m → m Source #

foldMapMonoid m ⇒ (a → m) → StrictMaybe a → m Source #

foldMap'Monoid m ⇒ (a → m) → StrictMaybe a → m Source #

foldr ∷ (a → b → b) → b → StrictMaybe a → b Source #

foldr' ∷ (a → b → b) → b → StrictMaybe a → b Source #

foldl ∷ (b → a → b) → b → StrictMaybe a → b Source #

foldl' ∷ (b → a → b) → b → StrictMaybe a → b Source #

foldr1 ∷ (a → a → a) → StrictMaybe a → a Source #

foldl1 ∷ (a → a → a) → StrictMaybe a → a Source #

toListStrictMaybe a → [a] Source #

nullStrictMaybe a → Bool Source #

lengthStrictMaybe a → Int Source #

elemEq a ⇒ a → StrictMaybe a → Bool Source #

maximumOrd a ⇒ StrictMaybe a → a Source #

minimumOrd a ⇒ StrictMaybe a → a Source #

sumNum a ⇒ StrictMaybe a → a Source #

productNum a ⇒ StrictMaybe a → a Source #

Traversable StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

traverseApplicative f ⇒ (a → f b) → StrictMaybe a → f (StrictMaybe b) Source #

sequenceAApplicative f ⇒ StrictMaybe (f a) → f (StrictMaybe a) Source #

mapMMonad m ⇒ (a → m b) → StrictMaybe a → m (StrictMaybe b) Source #

sequenceMonad m ⇒ StrictMaybe (m a) → m (StrictMaybe a) Source #

Alternative StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Applicative StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

pure ∷ a → StrictMaybe a Source #

(<*>)StrictMaybe (a → b) → StrictMaybe a → StrictMaybe b Source #

liftA2 ∷ (a → b → c) → StrictMaybe a → StrictMaybe b → StrictMaybe c Source #

(*>)StrictMaybe a → StrictMaybe b → StrictMaybe b Source #

(<*)StrictMaybe a → StrictMaybe b → StrictMaybe a Source #

Functor StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

fmap ∷ (a → b) → StrictMaybe a → StrictMaybe b Source #

(<$) ∷ a → StrictMaybe b → StrictMaybe a Source #

Monad StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

(>>=)StrictMaybe a → (a → StrictMaybe b) → StrictMaybe b Source #

(>>)StrictMaybe a → StrictMaybe b → StrictMaybe b Source #

return ∷ a → StrictMaybe a Source #

HKDApplicative StrictMaybe 
Instance details

Defined in Cardano.Ledger.HKD

Methods

hkdPure ∷ a → HKD StrictMaybe a Source #

hkdLiftA2 ∷ (a → b → c) → HKD StrictMaybe a → HKD StrictMaybe b → HKD StrictMaybe c Source #

HKDFunctor StrictMaybe 
Instance details

Defined in Cardano.Ledger.HKD

FromJSON a ⇒ FromJSON (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

ToJSON a ⇒ ToJSON (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Semigroup a ⇒ Monoid (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Semigroup a ⇒ Semigroup (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Generic (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Associated Types

type Rep (StrictMaybe a) ∷ TypeType Source #

Methods

fromStrictMaybe a → Rep (StrictMaybe a) x Source #

toRep (StrictMaybe a) x → StrictMaybe a Source #

Show a ⇒ Show (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

FromCBOR a ⇒ FromCBOR (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

ToCBOR a ⇒ ToCBOR (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

toCBORStrictMaybe a → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (StrictMaybe a) → Size Source #

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

DecCBOR a ⇒ DecCBOR (StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR a ⇒ EncCBOR (StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBORStrictMaybe a → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (StrictMaybe a) → Size Source #

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

Default (StrictMaybe t) 
Instance details

Defined in Data.Maybe.Strict

Methods

defStrictMaybe t Source #

NFData a ⇒ NFData (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

rnfStrictMaybe a → () Source #

Eq a ⇒ Eq (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Ord a ⇒ Ord (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

NoThunks a ⇒ NoThunks (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

(EraPParams era, PParamsHKD StrictMaybe era ~ ShelleyPParams StrictMaybe era, ProtVerAtMost era 4, ProtVerAtMost era 6, ProtVerAtMost era 8) ⇒ ToJSON (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Show (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era ⇒ FromCBOR (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era ⇒ ToCBOR (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era ⇒ DecCBOR (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era ⇒ EncCBOR (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NFData (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnfShelleyPParams StrictMaybe era → () Source #

Eq (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Ord (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NoThunks (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Updatable (K1 t x a) (K1 t (StrictMaybe x) u) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

applyUpdateK1 t x a → K1 t (StrictMaybe x) u → K1 t x a

type Rep (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

type Rep (StrictMaybe a) = D1 ('MetaData "StrictMaybe" "Data.Maybe.Strict" "cardano-strict-containers-0.1.3.0-f97dd809d2af1cb0da9343af9b1178690bb1d9887b569bd36fda0e84c3b7b93e" 'False) (C1 ('MetaCons "SNothing" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "SJust" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))

bbodyBlock h era → TxSeq era Source #

bheaderBlock h era → h Source #

data Block h era Source #

Constructors

Block' !h !(TxSeq era) ByteString 

Bundled Patterns

pattern UnserialisedBlock ∷ h → TxSeq era → Block h era

Access a block without its serialised bytes. This is often useful when we're using a BHeaderView in place of the concrete header.

pattern UnsafeUnserialisedBlock ∷ h → TxSeq era → Block h era

Unsafely construct a block without the ability to serialise its bytes.

Anyone calling this pattern must ensure that the resulting block is never serialised. Any uses of this pattern outside of testing code should be regarded with suspicion.

pattern Block ∷ (Era era, EncCBORGroup (TxSeq era), EncCBOR h) ⇒ h → TxSeq era → Block h era 

Instances

Instances details
(EraSegWits era, DecCBOR (Annotator h), Typeable h) ⇒ DecCBOR (Annotator (Block h era)) 
Instance details

Defined in Cardano.Ledger.Block

Methods

decCBORDecoder s (Annotator (Block h era)) Source #

dropCBORProxy (Annotator (Block h era)) → Decoder s () Source #

labelProxy (Annotator (Block h era)) → Text Source #

Generic (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Associated Types

type Rep (Block h era) ∷ TypeType Source #

Methods

fromBlock h era → Rep (Block h era) x Source #

toRep (Block h era) x → Block h era Source #

(Era era, Show (TxSeq era), Show h) ⇒ Show (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Methods

showsPrecIntBlock h era → ShowS Source #

showBlock h era → String Source #

showList ∷ [Block h era] → ShowS Source #

(EraTx era, Typeable h) ⇒ ToCBOR (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Methods

toCBORBlock h era → Encoding Source #

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

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

(EraTx era, Typeable h) ⇒ EncCBOR (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Methods

encCBORBlock h era → Encoding Source #

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

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

(Era era, Eq (TxSeq era), Eq h) ⇒ Eq (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Methods

(==)Block h era → Block h era → Bool Source #

(/=)Block h era → Block h era → Bool Source #

(Era era, NoThunks (TxSeq era), NoThunks h) ⇒ NoThunks (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Methods

noThunksContextBlock h era → IO (Maybe ThunkInfo) Source #

wNoThunksContextBlock h era → IO (Maybe ThunkInfo) Source #

showTypeOfProxy (Block h era) → String Source #

type Rep (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

type Rep (Block h era) = D1 ('MetaData "Block" "Cardano.Ledger.Block" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "Block'" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 h) :*: (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxSeq era)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))))

balanceEraTxOut era ⇒ UTxO era → Value era Source #

Determine the total balance contained in the UTxO.

newtype UTxO era Source #

The unspent transaction outputs.

Constructors

UTxO 

Fields

Instances

Instances details
ToJSON (TxOut era) ⇒ ToJSON (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

toJSONUTxO era → Value Source #

toEncodingUTxO era → Encoding Source #

toJSONList ∷ [UTxO era] → Value Source #

toEncodingList ∷ [UTxO era] → Encoding Source #

omitFieldUTxO era → Bool Source #

Era era ⇒ Monoid (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

memptyUTxO era Source #

mappendUTxO era → UTxO era → UTxO era Source #

mconcat ∷ [UTxO era] → UTxO era Source #

Semigroup (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

(<>)UTxO era → UTxO era → UTxO era Source #

sconcatNonEmpty (UTxO era) → UTxO era Source #

stimesIntegral b ⇒ b → UTxO era → UTxO era Source #

Generic (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Associated Types

type Rep (UTxO era) ∷ TypeType Source #

Methods

fromUTxO era → Rep (UTxO era) x Source #

toRep (UTxO era) x → UTxO era Source #

Show (TxOut era) ⇒ Show (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

showsPrecIntUTxO era → ShowS Source #

showUTxO era → String Source #

showList ∷ [UTxO era] → ShowS Source #

(DecCBOR (TxOut era), Era era) ⇒ FromCBOR (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

fromCBORDecoder s (UTxO era) Source #

labelProxy (UTxO era) → Text Source #

(EncCBOR (TxOut era), Era era) ⇒ ToCBOR (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

toCBORUTxO era → Encoding Source #

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

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

(Era era, DecCBOR (TxOut era)) ⇒ DecCBOR (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

decCBORDecoder s (UTxO era) Source #

dropCBORProxy (UTxO era) → Decoder s () Source #

labelProxy (UTxO era) → Text Source #

(DecShareCBOR (TxOut era), Share (TxOut era) ~ Interns (Credential 'Staking)) ⇒ DecShareCBOR (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Associated Types

type Share (UTxO era) Source #

Methods

getShareUTxO era → Share (UTxO era) Source #

decShareCBORShare (UTxO era) → Decoder s (UTxO era) Source #

decSharePlusCBORStateT (Share (UTxO era)) (Decoder s) (UTxO era) Source #

(Era era, EncCBOR (TxOut era)) ⇒ EncCBOR (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

encCBORUTxO era → Encoding Source #

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

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

Default (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

defUTxO era Source #

(Era era, NFData (TxOut era)) ⇒ NFData (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

rnfUTxO era → () Source #

(Era era, Eq (TxOut era)) ⇒ Eq (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

Methods

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

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

NoThunks (TxOut era) ⇒ NoThunks (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

type Rep (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

type Rep (UTxO era) = D1 ('MetaData "UTxO" "Cardano.Ledger.UTxO" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "UTxO" 'PrefixI 'True) (S1 ('MetaSel ('Just "unUTxO") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map TxIn (TxOut era)))))
type Share (UTxO era) 
Instance details

Defined in Cardano.Ledger.UTxO

data InstantaneousRewards Source #

InstantaneousRewards captures the pending changes to the ledger state caused by MIR certificates. It consists of two mappings, the rewards which will be paid out from the reserves and the rewards which will be paid out from the treasury. It also consists of two coin values which represent the transfer of coins from one pot to the other pot. NOTE that the following property should always hold: deltaReserves + deltaTreasury = 0

Instances

Instances details
ToJSON InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

Generic InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Rep InstantaneousRewardsTypeType Source #

Show InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

DecShareCBOR InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Share InstantaneousRewards Source #

EncCBOR InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

Default InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

NFData InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

Methods

rnfInstantaneousRewards → () Source #

Eq InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

NoThunks InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

type Rep InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

type Rep InstantaneousRewards = D1 ('MetaData "InstantaneousRewards" "Cardano.Ledger.CertState" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "InstantaneousRewards" 'PrefixI 'True) ((S1 ('MetaSel ('Just "iRReserves") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking) Coin)) :*: S1 ('MetaSel ('Just "iRTreasury") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking) Coin))) :*: (S1 ('MetaSel ('Just "deltaReserves") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DeltaCoin) :*: S1 ('MetaSel ('Just "deltaTreasury") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DeltaCoin))))
type Share InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.CertState

data DState era Source #

The state used by the DELEG rule, which roughly tracks stake delegation and some governance features.

Constructors

DState 

Fields

Instances

Instances details
ToJSON (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Generic (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Rep (DState era) ∷ TypeType Source #

Methods

fromDState era → Rep (DState era) x Source #

toRep (DState era) x → DState era Source #

Show (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

showsPrecIntDState era → ShowS Source #

showDState era → String Source #

showList ∷ [DState era] → ShowS Source #

DecShareCBOR (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Share (DState era) Source #

Methods

getShareDState era → Share (DState era) Source #

decShareCBORShare (DState era) → Decoder s (DState era) Source #

decSharePlusCBORStateT (Share (DState era)) (Decoder s) (DState era) Source #

Era era ⇒ EncCBOR (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

encCBORDState era → Encoding Source #

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

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

Default (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

defDState era Source #

NFData (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

rnfDState era → () Source #

Eq (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

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

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

NoThunks (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (DState era) = D1 ('MetaData "DState" "Cardano.Ledger.CertState" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "DState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dsUnified") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UMap) :*: S1 ('MetaSel ('Just "dsFutureGenDelegs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map FutureGenDeleg GenDelegPair))) :*: (S1 ('MetaSel ('Just "dsGenDelegs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GenDelegs) :*: S1 ('MetaSel ('Just "dsIRewards") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InstantaneousRewards))))
type Share (DState era) 
Instance details

Defined in Cardano.Ledger.CertState

data PState era Source #

The state used by the POOL rule, which tracks stake pool information.

Constructors

PState 

Fields

Instances

Instances details
ToJSON (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Generic (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Rep (PState era) ∷ TypeType Source #

Methods

fromPState era → Rep (PState era) x Source #

toRep (PState era) x → PState era Source #

Show (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

showsPrecIntPState era → ShowS Source #

showPState era → String Source #

showList ∷ [PState era] → ShowS Source #

(Era era, DecShareCBOR (PState era)) ⇒ DecCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

decCBORDecoder s (PState era) Source #

dropCBORProxy (PState era) → Decoder s () Source #

labelProxy (PState era) → Text Source #

DecShareCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Share (PState era) Source #

Methods

getSharePState era → Share (PState era) Source #

decShareCBORShare (PState era) → Decoder s (PState era) Source #

decSharePlusCBORStateT (Share (PState era)) (Decoder s) (PState era) Source #

Era era ⇒ EncCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

encCBORPState era → Encoding Source #

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

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

Default (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

defPState era Source #

NFData (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

rnfPState era → () Source #

Eq (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

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

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

NoThunks (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (PState era) = D1 ('MetaData "PState" "Cardano.Ledger.CertState" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "PState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "psStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) PoolParams)) :*: S1 ('MetaSel ('Just "psFutureStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) PoolParams))) :*: (S1 ('MetaSel ('Just "psRetiring") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) EpochNo)) :*: S1 ('MetaSel ('Just "psDeposits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) Coin)))))
type Share (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

data VState era Source #

The state that tracks the voting entities (DReps and Constitutional Committee members). In the formal ledger specification this type is called GState

Constructors

VState 

Fields

  • vsDReps ∷ !(Map (Credential 'DRepRole) DRepState)
     
  • vsCommitteeState ∷ !(CommitteeState era)
     
  • vsNumDormantEpochs ∷ !EpochNo

    Number of contiguous epochs in which there are exactly zero active governance proposals to vote on. It is incremented in every EPOCH rule if the number of active governance proposals to vote on continues to be zero. It is reset to zero when a new governance action is successfully proposed. We need this counter in order to bump DRep expiries through dormant periods when DReps do not have an opportunity to vote on anything.

Instances

Instances details
Generic (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Rep (VState era) ∷ TypeType Source #

Methods

fromVState era → Rep (VState era) x Source #

toRep (VState era) x → VState era Source #

Show (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

showsPrecIntVState era → ShowS Source #

showVState era → String Source #

showList ∷ [VState era] → ShowS Source #

Era era ⇒ DecCBOR (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

decCBORDecoder s (VState era) Source #

dropCBORProxy (VState era) → Decoder s () Source #

labelProxy (VState era) → Text Source #

Era era ⇒ DecShareCBOR (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Share (VState era) Source #

Methods

getShareVState era → Share (VState era) Source #

decShareCBORShare (VState era) → Decoder s (VState era) Source #

decSharePlusCBORStateT (Share (VState era)) (Decoder s) (VState era) Source #

Era era ⇒ EncCBOR (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

encCBORVState era → Encoding Source #

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

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

Default (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

defVState era Source #

NFData (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

rnfVState era → () Source #

Eq (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

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

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

NoThunks (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (VState era) = D1 ('MetaData "VState" "Cardano.Ledger.CertState" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "VState" 'PrefixI 'True) (S1 ('MetaSel ('Just "vsDReps") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'DRepRole) DRepState)) :*: (S1 ('MetaSel ('Just "vsCommitteeState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (CommitteeState era)) :*: S1 ('MetaSel ('Just "vsNumDormantEpochs") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo))))
type Share (VState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Share (VState era) = ()

data CertState era Source #

The state associated with the DELPL rule, which combines the DELEG rule and the POOL rule.

Constructors

CertState 

Fields

Instances

Instances details
ToJSON (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Generic (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Rep (CertState era) ∷ TypeType Source #

Methods

fromCertState era → Rep (CertState era) x Source #

toRep (CertState era) x → CertState era Source #

Show (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

showsPrecIntCertState era → ShowS Source #

showCertState era → String Source #

showList ∷ [CertState era] → ShowS Source #

Era era ⇒ DecShareCBOR (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Share (CertState era) Source #

Era era ⇒ EncCBOR (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

encCBORCertState era → Encoding Source #

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

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

Default (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

defCertState era Source #

NFData (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

rnfCertState era → () Source #

Eq (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

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

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

NoThunks (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (CertState era) = D1 ('MetaData "CertState" "Cardano.Ledger.CertState" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "CertState" 'PrefixI 'True) (S1 ('MetaSel ('Just "certVState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VState era)) :*: (S1 ('MetaSel ('Just "certPState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PState era)) :*: S1 ('MetaSel ('Just "certDState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (DState era)))))
type Share (CertState era) 
Instance details

Defined in Cardano.Ledger.CertState

newtype Stake Source #

Type of stake as map from hash key to coins associated.

Constructors

Stake 

Instances

Instances details
ToJSON Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Generic Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Associated Types

type Rep StakeTypeType Source #

Methods

fromStakeRep Stake x Source #

toRep Stake x → Stake Source #

Show Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

DecShareCBOR Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Associated Types

type Share Stake Source #

EncCBOR Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

encCBORStakeEncoding Source #

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

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

NFData Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

rnfStake → () Source #

Eq Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

(==)StakeStakeBool Source #

(/=)StakeStakeBool Source #

NoThunks Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

type Rep Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

type Rep Stake = D1 ('MetaData "Stake" "Cardano.Ledger.EpochBoundary" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "Stake" 'PrefixI 'True) (S1 ('MetaSel ('Just "unStake") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VMap VB VP (Credential 'Staking) (CompactForm Coin)))))
type Share Stake 
Instance details

Defined in Cardano.Ledger.EpochBoundary

data SnapShot Source #

Snapshot of the stake distribution.

Instances

Instances details
ToJSON SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Generic SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Associated Types

type Rep SnapShotTypeType Source #

Show SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

DecShareCBOR SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Associated Types

type Share SnapShot Source #

EncCBOR SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

encCBORSnapShotEncoding Source #

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

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

NFData SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

rnfSnapShot → () Source #

Eq SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

NoThunks SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

type Rep SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

type Rep SnapShot = D1 ('MetaData "SnapShot" "Cardano.Ledger.EpochBoundary" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "SnapShot" 'PrefixI 'True) (S1 ('MetaSel ('Just "ssStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Stake) :*: (S1 ('MetaSel ('Just "ssDelegations") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VMap VB VB (Credential 'Staking) (KeyHash 'StakePool))) :*: S1 ('MetaSel ('Just "ssPoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VMap VB VB (KeyHash 'StakePool) PoolParams)))))
type Share SnapShot 
Instance details

Defined in Cardano.Ledger.EpochBoundary

data SnapShots Source #

Snapshots of the stake distribution.

Note that ssStakeMark and ssStakeMarkPoolDistr are lazy on purpose since we only want to force the thunk after one stability window when we know that they are stable (so that we do not compute them if we do not have to). See more info in the Optimize TICKF ADR

Instances

Instances details
ToJSON SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Generic SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Associated Types

type Rep SnapShotsTypeType Source #

Show SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

DecCBOR SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

DecShareCBOR SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Associated Types

type Share SnapShots Source #

EncCBOR SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

encCBORSnapShotsEncoding Source #

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

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

Default SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

defSnapShots Source #

NFData SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

Methods

rnfSnapShots → () Source #

Eq SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

NoThunks SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

type Rep SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

type Rep SnapShots = D1 ('MetaData "SnapShots" "Cardano.Ledger.EpochBoundary" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "SnapShots" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ssStakeMark") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SnapShot) :*: S1 ('MetaSel ('Just "ssStakeMarkPoolDistr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PoolDistr)) :*: (S1 ('MetaSel ('Just "ssStakeSet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SnapShot) :*: (S1 ('MetaSel ('Just "ssStakeGo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SnapShot) :*: S1 ('MetaSel ('Just "ssFee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))))
type Share SnapShots 
Instance details

Defined in Cardano.Ledger.EpochBoundary

newtype TxId Source #

A unique ID of a transaction, which is computable from the transaction.

Constructors

TxId 

Instances

Instances details
FromJSON TxId 
Instance details

Defined in Cardano.Ledger.TxIn

ToJSON TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Generic TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep TxIdTypeType Source #

Methods

fromTxIdRep TxId x Source #

toRep TxId x → TxId Source #

Show TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

showsPrecIntTxIdShowS Source #

showTxIdString Source #

showList ∷ [TxId] → ShowS Source #

DecCBOR TxId 
Instance details

Defined in Cardano.Ledger.TxIn

EncCBOR TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

encCBORTxIdEncoding Source #

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

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

NFData TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnfTxId → () Source #

Eq TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

(==)TxIdTxIdBool Source #

(/=)TxIdTxIdBool Source #

Ord TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

compareTxIdTxIdOrdering Source #

(<)TxIdTxIdBool Source #

(<=)TxIdTxIdBool Source #

(>)TxIdTxIdBool Source #

(>=)TxIdTxIdBool Source #

maxTxIdTxIdTxId Source #

minTxIdTxIdTxId Source #

HeapWords TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

heapWordsTxIdInt Source #

NoThunks TxId 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep TxId 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep TxId = D1 ('MetaData "TxId" "Cardano.Ledger.TxIn" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "TxId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SafeHash EraIndependentTxBody))))

data TxIn Source #

The input of a UTxO.

Constructors

TxIn !TxId !TxIx 

Instances

Instances details
ToJSON TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

ToJSONKey TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Generic TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep TxInTypeType Source #

Methods

fromTxInRep TxIn x Source #

toRep TxIn x → TxIn Source #

Show TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

showsPrecIntTxInShowS Source #

showTxInString Source #

showList ∷ [TxIn] → ShowS Source #

DecCBOR TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

EncCBOR TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

encCBORTxInEncoding Source #

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

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

NFData TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnfTxIn → () Source #

Eq TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

(==)TxInTxInBool Source #

(/=)TxInTxInBool Source #

Ord TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

compareTxInTxInOrdering Source #

(<)TxInTxInBool Source #

(<=)TxInTxInBool Source #

(>)TxInTxInBool Source #

(>=)TxInTxInBool Source #

maxTxInTxInTxIn Source #

minTxInTxInTxIn Source #

HeapWords TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

heapWordsTxInInt Source #

NoThunks TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep TxIn = D1 ('MetaData "TxIn" "Cardano.Ledger.TxIn" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "TxIn" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 TxIx)))

isOverlaySlot Source #

Arguments

SlotNo

The first slot of the given epoch.

UnitInterval

The decentralization parameter.

SlotNo

The slot to check.

Bool 

Determine if the given slot is reserved for the overlay schedule.

data PoolCert Source #

Constructors

RegPool !PoolParams

A stake pool registration certificate.

RetirePool !(KeyHash 'StakePool) !EpochNo

A stake pool retirement certificate.

Instances

Instances details
ToJSON PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Generic PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Associated Types

type Rep PoolCertTypeType Source #

Show PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

EncCBOR PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

encCBORPoolCertEncoding Source #

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

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

NFData PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

rnfPoolCert → () Source #

Eq PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Ord PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

NoThunks PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

type Rep PoolCert 
Instance details

Defined in Cardano.Ledger.Core.TxCert

data PoolMetadata Source #

Constructors

PoolMetadata 

Fields

Instances

Instances details
FromJSON PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

ToJSON PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Generic PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep PoolMetadataTypeType Source #

Show PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

NFData PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnfPoolMetadata → () Source #

Eq PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolMetadata = D1 ('MetaData "PoolMetadata" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "PoolMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "pmUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "pmHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)))

data StakePoolRelay Source #

Constructors

SingleHostAddr !(StrictMaybe Port) !(StrictMaybe IPv4) !(StrictMaybe IPv6)

One or both of IPv4 & IPv6

SingleHostName !(StrictMaybe Port) !DnsName

An A or AAAA DNS record

MultiHostName !DnsName

A SRV DNS record

Instances

Instances details
FromJSON StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

ToJSON StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Generic StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep StakePoolRelayTypeType Source #

Show StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

NFData StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnfStakePoolRelay → () Source #

Eq StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

data PoolParams Source #

A stake pool.

Instances

Instances details
FromJSON PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

ToJSON PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

Generic PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep PoolParamsTypeType Source #

Show PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

encCBORPoolParamsEncoding Source #

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

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

DecCBORGroup PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBORGroup PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

Default PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

defPoolParams Source #

NFData PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnfPoolParams → () Source #

Eq PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolParams 
Instance details

Defined in Cardano.Ledger.PoolParams

data PoolDistr Source #

A map of stake pool IDs (the hash of the stake pool operator's verification key) to IndividualPoolStake. Also holds absolute values necessary for the calculations in the computeDRepDistr.

Constructors

PoolDistr 

Fields

Instances

Instances details
ToJSON PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

Generic PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

Associated Types

type Rep PoolDistrTypeType Source #

Show PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

DecCBOR PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

EncCBOR PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

Methods

encCBORPoolDistrEncoding Source #

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

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

NFData PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

Methods

rnfPoolDistr → () Source #

Eq PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

NoThunks PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

type Rep PoolDistr 
Instance details

Defined in Cardano.Ledger.PoolDistr

type Rep PoolDistr = D1 ('MetaData "PoolDistr" "Cardano.Ledger.PoolDistr" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "PoolDistr" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPoolDistr") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) IndividualPoolStake)) :*: S1 ('MetaSel ('Just "pdTotalActiveStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (CompactForm Coin))))

data Addr Source #

An address for UTxO.

Contents of Addr data type are intentionally left as lazy, otherwise operating on compact form of an address will result in redundant work.

Instances

Instances details
FromJSON Addr 
Instance details

Defined in Cardano.Ledger.Address

FromJSONKey Addr 
Instance details

Defined in Cardano.Ledger.Address

ToJSON Addr 
Instance details

Defined in Cardano.Ledger.Address

ToJSONKey Addr 
Instance details

Defined in Cardano.Ledger.Address

Generic Addr 
Instance details

Defined in Cardano.Ledger.Address

Associated Types

type Rep AddrTypeType Source #

Methods

fromAddrRep Addr x Source #

toRep Addr x → Addr Source #

Show Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

showsPrecIntAddrShowS Source #

showAddrString Source #

showList ∷ [Addr] → ShowS Source #

DecCBOR Addr 
Instance details

Defined in Cardano.Ledger.Address

EncCBOR Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

encCBORAddrEncoding Source #

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

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

NFData Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

rnfAddr → () Source #

Eq Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

(==)AddrAddrBool Source #

(/=)AddrAddrBool Source #

Ord Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

compareAddrAddrOrdering Source #

(<)AddrAddrBool Source #

(<=)AddrAddrBool Source #

(>)AddrAddrBool Source #

(>=)AddrAddrBool Source #

maxAddrAddrAddr Source #

minAddrAddrAddr Source #

NoThunks Addr 
Instance details

Defined in Cardano.Ledger.Address

type Rep Addr 
Instance details

Defined in Cardano.Ledger.Address

data RewardAccount Source #

An account based address for rewards

Constructors

RewardAccount 

Instances

Instances details
FromJSON RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

FromJSONKey RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

ToJSON RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

ToJSONKey RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

Generic RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

Associated Types

type Rep RewardAccountTypeType Source #

Show RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

DecCBOR RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

EncCBOR RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

Default RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

NFData RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

Methods

rnfRewardAccount → () Source #

Eq RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

Ord RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

NoThunks RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

type Rep RewardAccount 
Instance details

Defined in Cardano.Ledger.Address

type Rep RewardAccount = D1 ('MetaData "RewardAccount" "Cardano.Ledger.Address" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "RewardAccount" 'PrefixI 'True) (S1 ('MetaSel ('Just "raNetwork") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Network) :*: S1 ('MetaSel ('Just "raCredential") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'Staking))))

newtype Withdrawals Source #

This is called wdrl in the spec.

Instances

Instances details
Generic Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Associated Types

type Rep WithdrawalsTypeType Source #

Show Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

DecCBOR Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

EncCBOR Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Methods

encCBORWithdrawalsEncoding Source #

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

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

NFData Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Methods

rnfWithdrawals → () Source #

Eq Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

NoThunks Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

type Rep Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

type Rep Withdrawals = D1 ('MetaData "Withdrawals" "Cardano.Ledger.Address" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "Withdrawals" 'PrefixI 'True) (S1 ('MetaSel ('Just "unWithdrawals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map RewardAccount Coin))))

newtype Coin Source #

The amount of value held by a transaction output.

Constructors

Coin 

Fields

Instances

Instances details
FromJSON Coin 
Instance details

Defined in Cardano.Ledger.Coin

ToJSON Coin 
Instance details

Defined in Cardano.Ledger.Coin

Monoid Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

memptyCoin Source #

mappendCoinCoinCoin Source #

mconcat ∷ [Coin] → Coin Source #

Semigroup Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(<>)CoinCoinCoin Source #

sconcatNonEmpty CoinCoin Source #

stimesIntegral b ⇒ b → CoinCoin Source #

Enum Coin 
Instance details

Defined in Cardano.Ledger.Coin

Generic Coin 
Instance details

Defined in Cardano.Ledger.Coin

Associated Types

type Rep CoinTypeType Source #

Methods

fromCoinRep Coin x Source #

toRep Coin x → Coin Source #

Show Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

showsPrecIntCoinShowS Source #

showCoinString Source #

showList ∷ [Coin] → ShowS Source #

FromCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

ToCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

toCBORCoinEncoding Source #

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

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

DecCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

EncCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

encCBORCoinEncoding Source #

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

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

Compactible Coin 
Instance details

Defined in Cardano.Ledger.Coin

Associated Types

data CompactForm Coin Source #

ToPlutusData Coin 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

Val Coin 
Instance details

Defined in Cardano.Ledger.Val

NFData Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

rnfCoin → () Source #

Eq Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(==)CoinCoinBool Source #

(/=)CoinCoinBool Source #

Ord Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

compareCoinCoinOrdering Source #

(<)CoinCoinBool Source #

(<=)CoinCoinBool Source #

(>)CoinCoinBool Source #

(>=)CoinCoinBool Source #

maxCoinCoinCoin Source #

minCoinCoinCoin Source #

Abelian Coin 
Instance details

Defined in Cardano.Ledger.Coin

Group Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

invertCoinCoin Source #

(~~)CoinCoinCoin Source #

powIntegral x ⇒ Coin → x → Coin Source #

HeapWords Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

heapWordsCoinInt Source #

NoThunks Coin 
Instance details

Defined in Cardano.Ledger.Coin

PartialOrd Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(<=)CoinCoinBool Source #

(>=)CoinCoinBool Source #

(==)CoinCoinBool Source #

(/=)CoinCoinBool Source #

(<)CoinCoinBool Source #

(>)CoinCoinBool Source #

compareCoinCoinMaybe Ordering Source #

Uniform Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformMStatefulGen g m ⇒ g → m Coin Source #

UniformRange Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformRMStatefulGen g m ⇒ (Coin, Coin) → g → m Coin Source #

Inject Coin DeltaCoin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

injectCoinDeltaCoin Source #

FromJSON (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

ToJSON (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Monoid (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Semigroup (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Show (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

ToCBOR (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

toCBORCompactForm CoinEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (CompactForm Coin) → Size Source #

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

DecCBOR (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

EncCBOR (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

NFData (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

rnfCompactForm Coin → () Source #

Eq (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Ord (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Abelian (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Group (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

HeapWords (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

NoThunks (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Prim (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Uniform (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformMStatefulGen g m ⇒ g → m (CompactForm Coin) Source #

UniformRange (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

type Rep Coin 
Instance details

Defined in Cardano.Ledger.Coin

type Rep Coin = D1 ('MetaData "Coin" "Cardano.Ledger.Coin" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "Coin" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCoin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))
newtype CompactForm Coin 
Instance details

Defined in Cardano.Ledger.Coin

data Credential (kr ∷ KeyRole) Source #

Script hash or key hash for a payment or a staking object.

Note that credentials (unlike raw key hashes) do appear to vary from era to era, since they reference the hash of a script, which can change. This parameter is a phantom, however, so in actuality the instances will remain the same.

Instances

Instances details
HasKeyRole Credential 
Instance details

Defined in Cardano.Ledger.Credential

Methods

coerceKeyRole ∷ ∀ (r ∷ KeyRole) (r' ∷ KeyRole). Credential r → Credential r' Source #

FromJSON (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

FromJSONKey (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

ToJSON (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

ToJSONKey (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Generic (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep (Credential kr) ∷ TypeType Source #

Methods

fromCredential kr → Rep (Credential kr) x Source #

toRep (Credential kr) x → Credential kr Source #

Show (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Typeable kr ⇒ FromCBOR (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Typeable kr ⇒ ToCBOR (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

toCBORCredential kr → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Credential kr) → Size Source #

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

Typeable kr ⇒ DecCBOR (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Typeable kr ⇒ EncCBOR (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

encCBORCredential kr → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (Credential kr) → Size Source #

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

Default (Credential r) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

defCredential r Source #

NFData (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnfCredential kr → () Source #

Eq (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

(==)Credential kr → Credential kr → Bool Source #

(/=)Credential kr → Credential kr → Bool Source #

Ord (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

compareCredential kr → Credential kr → Ordering Source #

(<)Credential kr → Credential kr → Bool Source #

(<=)Credential kr → Credential kr → Bool Source #

(>)Credential kr → Credential kr → Bool Source #

(>=)Credential kr → Credential kr → Bool Source #

maxCredential kr → Credential kr → Credential kr Source #

minCredential kr → Credential kr → Credential kr Source #

NoThunks (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

type Rep (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

type Rep (Credential kr) = D1 ('MetaData "Credential" "Cardano.Ledger.Credential" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "ScriptHashObj" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptHash)) :+: C1 ('MetaCons "KeyHashObj" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash kr))))

data StakeReference Source #

Instances

Instances details
ToJSON StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

Generic StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep StakeReferenceTypeType Source #

Show StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

NFData StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnfStakeReference → () Source #

Eq StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

Ord StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

NoThunks StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

type Rep StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

type Rep StakeReference = D1 ('MetaData "StakeReference" "Cardano.Ledger.Credential" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "StakeRefBase" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 StakeCredential)) :+: (C1 ('MetaCons "StakeRefPtr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Ptr)) :+: C1 ('MetaCons "StakeRefNull" 'PrefixI 'False) (U1TypeType)))

data Ptr Source #

Pointer to a slot number, transaction index and an index in certificate list.

Constructors

Ptr !SlotNo !TxIx !CertIx 

Instances

Instances details
ToJSON Ptr 
Instance details

Defined in Cardano.Ledger.Credential

ToJSONKey Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Generic Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep PtrTypeType Source #

Methods

fromPtrRep Ptr x Source #

toRep Ptr x → Ptr Source #

Show Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

showsPrecIntPtrShowS Source #

showPtrString Source #

showList ∷ [Ptr] → ShowS Source #

FromCBOR Ptr 
Instance details

Defined in Cardano.Ledger.Credential

ToCBOR Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

toCBORPtrEncoding Source #

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

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

DecCBOR Ptr 
Instance details

Defined in Cardano.Ledger.Credential

EncCBOR Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

encCBORPtrEncoding Source #

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

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

DecCBORGroup Ptr 
Instance details

Defined in Cardano.Ledger.Credential

EncCBORGroup Ptr 
Instance details

Defined in Cardano.Ledger.Credential

NFData Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnfPtr → () Source #

Eq Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

(==)PtrPtrBool Source #

(/=)PtrPtrBool Source #

Ord Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

comparePtrPtrOrdering Source #

(<)PtrPtrBool Source #

(<=)PtrPtrBool Source #

(>)PtrPtrBool Source #

(>=)PtrPtrBool Source #

maxPtrPtrPtr Source #

minPtrPtrPtr Source #

NoThunks Ptr 
Instance details

Defined in Cardano.Ledger.Credential

type Rep Ptr 
Instance details

Defined in Cardano.Ledger.Credential

data ProtVer Source #

Constructors

ProtVer 

Fields

Instances

Instances details
FromJSON ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep ProtVerTypeType Source #

Methods

fromProtVerRep ProtVer x Source #

toRep ProtVer x → ProtVer Source #

Show ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

FromCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBORProtVerEncoding Source #

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

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

DecCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORProtVerEncoding Source #

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

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

DecCBORGroup ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBORGroup ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToPlutusData ProtVer 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

NFData ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfProtVer → () Source #

Eq ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)ProtVerProtVerBool Source #

(/=)ProtVerProtVerBool Source #

Ord ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep ProtVer = D1 ('MetaData "ProtVer" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "ProtVer" 'PrefixI 'True) (S1 ('MetaSel ('Just "pvMajor") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Version) :*: S1 ('MetaSel ('Just "pvMinor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural)))

data Nonce Source #

Evolving nonce type.

Constructors

Nonce !(Hash Blake2b_256 Nonce) 
NeutralNonce

Identity element

Instances

Instances details
FromJSON Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep NonceTypeType Source #

Methods

fromNonceRep Nonce x Source #

toRep Nonce x → Nonce Source #

Show Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

FromCBOR Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBORNonceEncoding Source #

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

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

DecCBOR Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORNonceEncoding Source #

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

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

NFData Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfNonce → () Source #

Eq Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)NonceNonceBool Source #

(/=)NonceNonceBool Source #

Ord Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compareNonceNonceOrdering Source #

(<)NonceNonceBool Source #

(<=)NonceNonceBool Source #

(>)NonceNonceBool Source #

(>=)NonceNonceBool Source #

maxNonceNonceNonce Source #

minNonceNonceNonce Source #

NoThunks Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Nonce = D1 ('MetaData "Nonce" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "Nonce" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash Blake2b_256 Nonce))) :+: C1 ('MetaCons "NeutralNonce" 'PrefixI 'False) (U1TypeType))

newtype Port Source #

Constructors

Port 

Fields

Instances

Instances details
FromJSON Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep PortTypeType Source #

Methods

fromPortRep Port x Source #

toRep Port x → Port Source #

Num Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(+)PortPortPort Source #

(-)PortPortPort Source #

(*)PortPortPort Source #

negatePortPort Source #

absPortPort Source #

signumPortPort Source #

fromIntegerIntegerPort Source #

Show Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrecIntPortShowS Source #

showPortString Source #

showList ∷ [Port] → ShowS Source #

DecCBOR Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORPortEncoding Source #

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

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

NFData Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfPort → () Source #

Eq Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)PortPortBool Source #

(/=)PortPortBool Source #

Ord Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

comparePortPortOrdering Source #

(<)PortPortBool Source #

(<=)PortPortBool Source #

(>)PortPortBool Source #

(>=)PortPortBool Source #

maxPortPortPort Source #

minPortPortPort Source #

NoThunks Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Port = D1 ('MetaData "Port" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "Port" 'PrefixI 'True) (S1 ('MetaSel ('Just "portToWord16") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

data Globals Source #

Constructors

Globals 

Fields

Instances

Instances details
Generic Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep GlobalsTypeType Source #

Methods

fromGlobalsRep Globals x Source #

toRep Globals x → Globals Source #

Show Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR Pulser Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

EncCBOR Pulser Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

encCBORPulserEncoding Source #

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

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

NFData Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfGlobals → () Source #

NFData Pulser Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

rnfPulser → () Source #

NoThunks Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks Pulser Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

type Rep Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

data Network Source #

Constructors

Testnet 
Mainnet 

Instances

Instances details
FromJSON Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Bounded Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Enum Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep NetworkTypeType Source #

Methods

fromNetworkRep Network x Source #

toRep Network x → Network Source #

Show Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORNetworkEncoding Source #

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

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

Default Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

defNetwork Source #

NFData Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfNetwork → () Source #

Eq Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)NetworkNetworkBool Source #

(/=)NetworkNetworkBool Source #

Ord Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Network = D1 ('MetaData "Network" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1TypeType))

data TxIx Source #

Transaction index.

Instances

Instances details
ToJSON TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Bounded TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Enum TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep TxIxTypeType Source #

Methods

fromTxIxRep TxIx x Source #

toRep TxIx x → TxIx Source #

Show TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrecIntTxIxShowS Source #

showTxIxString Source #

showList ∷ [TxIx] → ShowS Source #

FromCBOR TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBORTxIxEncoding Source #

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

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

DecCBOR TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORTxIxEncoding Source #

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

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

NFData TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfTxIx → () Source #

Eq TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)TxIxTxIxBool Source #

(/=)TxIxTxIxBool Source #

Ord TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compareTxIxTxIxOrdering Source #

(<)TxIxTxIxBool Source #

(<=)TxIxTxIxBool Source #

(>)TxIxTxIxBool Source #

(>=)TxIxTxIxBool Source #

maxTxIxTxIxTxIx Source #

minTxIxTxIxTxIx Source #

NoThunks TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep TxIx = D1 ('MetaData "TxIx" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "TxIx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTxIx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data CertIx Source #

Certificate index. Use certIxFromIntegral in order to construct this index safely from anything other than Word16. There is also mkCertIxPartial that can be used for testing.

Instances

Instances details
ToJSON CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Bounded CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Enum CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Show CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

FromCBOR CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBORCertIxEncoding Source #

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

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

DecCBOR CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORCertIxEncoding Source #

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

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

NFData CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfCertIx → () Source #

Eq CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)CertIxCertIxBool Source #

(/=)CertIxCertIxBool Source #

Ord CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

hashVerKeyVRF ∷ ∀ c (r ∷ KeyRoleVRF). Crypto c ⇒ VerKeyVRF (VRF c) → VRFVerKeyHash r Source #

data BootstrapWitness where Source #

Instances

Instances details
Generic BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

Associated Types

type Rep BootstrapWitnessTypeType Source #

Show BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

ToCBOR BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

EncCBOR BootstrapWitness

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

EqRaw BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

NFData BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

Methods

rnfBootstrapWitness → () Source #

Eq BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

Ord BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

NoThunks BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

DecCBOR (Annotator BootstrapWitness) 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

type Rep BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

type Rep BootstrapWitness = D1 ('MetaData "BootstrapWitness" "Cardano.Ledger.Keys.Bootstrap" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "BootstrapWitness'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bwKey'") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey 'Witness)) :*: S1 ('MetaSel ('Just "bwSig'") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "bwChainCode'") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainCode) :*: (S1 ('MetaSel ('Just "bwAttributes'") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "bwBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

data WitVKey (kr ∷ KeyRole) where Source #

Proof/Witness that a transaction is authorized by the given key holder.

Bundled Patterns

pattern WitVKeyTypeable kr ⇒ VKey kr → SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody) → WitVKey kr 

Instances

Instances details
Generic (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Associated Types

type Rep (WitVKey kr) ∷ TypeType Source #

Methods

fromWitVKey kr → Rep (WitVKey kr) x Source #

toRep (WitVKey kr) x → WitVKey kr Source #

Show (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

showsPrecIntWitVKey kr → ShowS Source #

showWitVKey kr → String Source #

showList ∷ [WitVKey kr] → ShowS Source #

Typeable kr ⇒ ToCBOR (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

toCBORWitVKey kr → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (WitVKey kr) → Size Source #

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

Typeable kr ⇒ DecCBOR (Annotator (WitVKey kr)) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Typeable kr ⇒ EncCBOR (WitVKey kr)

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

encCBORWitVKey kr → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (WitVKey kr) → Size Source #

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

Typeable kr ⇒ EqRaw (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

eqRawWitVKey kr → WitVKey kr → Bool Source #

NFData (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

rnfWitVKey kr → () Source #

Eq (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

(==)WitVKey kr → WitVKey kr → Bool Source #

(/=)WitVKey kr → WitVKey kr → Bool Source #

Typeable kr ⇒ Ord (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

compareWitVKey kr → WitVKey kr → Ordering Source #

(<)WitVKey kr → WitVKey kr → Bool Source #

(<=)WitVKey kr → WitVKey kr → Bool Source #

(>)WitVKey kr → WitVKey kr → Bool Source #

(>=)WitVKey kr → WitVKey kr → Bool Source #

maxWitVKey kr → WitVKey kr → WitVKey kr Source #

minWitVKey kr → WitVKey kr → WitVKey kr Source #

Typeable kr ⇒ NoThunks (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

type Rep (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

type Rep (WitVKey kr) = D1 ('MetaData "WitVKey" "Cardano.Ledger.Keys.WitVKey" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "WitVKeyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "wvkKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey kr)) :*: S1 ('MetaSel ('Just "wvkSig") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "wvkKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'Witness)) :*: S1 ('MetaSel ('Just "wvkBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))))

hashKey ∷ ∀ (kd ∷ KeyRole). VKey kd → KeyHash kd Source #

Hash a given public key

newtype KeyHash (r ∷ KeyRole) Source #

Discriminated hash of public Key

Constructors

KeyHash 

Instances

Instances details
HasKeyRole KeyHash 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

coerceKeyRole ∷ ∀ (r ∷ KeyRole) (r' ∷ KeyRole). KeyHash r → KeyHash r' Source #

FromJSON (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

FromJSONKey (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSON (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSONKey (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Generic (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep (KeyHash r) ∷ TypeType Source #

Methods

fromKeyHash r → Rep (KeyHash r) x Source #

toRep (KeyHash r) x → KeyHash r Source #

Show (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

showsPrecIntKeyHash r → ShowS Source #

showKeyHash r → String Source #

showList ∷ [KeyHash r] → ShowS Source #

Typeable r ⇒ FromCBOR (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

fromCBORDecoder s (KeyHash r) Source #

labelProxy (KeyHash r) → Text Source #

Typeable r ⇒ ToCBOR (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

toCBORKeyHash r → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (KeyHash r) → Size Source #

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

Typeable r ⇒ DecCBOR (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

decCBORDecoder s (KeyHash r) Source #

dropCBORProxy (KeyHash r) → Decoder s () Source #

labelProxy (KeyHash r) → Text Source #

Typeable r ⇒ EncCBOR (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

encCBORKeyHash r → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (KeyHash r) → Size Source #

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

Default (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

defKeyHash r Source #

NFData (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnfKeyHash r → () Source #

Eq (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

(==)KeyHash r → KeyHash r → Bool Source #

(/=)KeyHash r → KeyHash r → Bool Source #

Ord (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

compareKeyHash r → KeyHash r → Ordering Source #

(<)KeyHash r → KeyHash r → Bool Source #

(<=)KeyHash r → KeyHash r → Bool Source #

(>)KeyHash r → KeyHash r → Bool Source #

(>=)KeyHash r → KeyHash r → Bool Source #

maxKeyHash r → KeyHash r → KeyHash r Source #

minKeyHash r → KeyHash r → KeyHash r Source #

NoThunks (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

newtype ScriptHash Source #

Instances

Instances details
FromJSON ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

FromJSONKey ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSON ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSONKey ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Generic ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep ScriptHashTypeType Source #

Show ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

FromCBOR ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

ToCBOR ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

toCBORScriptHashEncoding Source #

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

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

DecCBOR ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

EncCBOR ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

encCBORScriptHashEncoding Source #

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

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

NFData ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnfScriptHash → () Source #

Eq ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Ord ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

NoThunks ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep ScriptHash = D1 ('MetaData "ScriptHash" "Cardano.Ledger.Hashes" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "ScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash ADDRHASH EraIndependentScript))))

data GenDelegPair Source #

Instances

Instances details
FromJSON GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSON GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

Generic GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep GenDelegPairTypeType Source #

Show GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

DecCBOR GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

EncCBOR GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

NFData GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnfGenDelegPair → () Source #

Eq GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

Ord GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

NoThunks GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep GenDelegPair = D1 ('MetaData "GenDelegPair" "Cardano.Ledger.Hashes" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "GenDelegPair" 'PrefixI 'True) (S1 ('MetaSel ('Just "genDelegKeyHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'GenesisDelegate)) :*: S1 ('MetaSel ('Just "genDelegVrfHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VRFVerKeyHash 'GenDelegVRF))))

newtype GenDelegs Source #

Constructors

GenDelegs 

Instances

Instances details
FromJSON GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSON GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Generic GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep GenDelegsTypeType Source #

Show GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

DecCBOR GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

EncCBOR GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

encCBORGenDelegsEncoding Source #

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

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

NFData GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnfGenDelegs → () Source #

Eq GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

NoThunks GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep GenDelegs = D1 ('MetaData "GenDelegs" "Cardano.Ledger.Hashes" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "GenDelegs" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGenDelegs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (KeyHash 'Genesis) GenDelegPair))))

data KeyRole Source #

The role of a key.

All key roles are fixed and unique, except for the Witness role. In particular, keys can be cast to a Witness role with the help of asWitness, because same witness can be valid for many roles.

In fact, it is perfectly allowable for a key to be used in many roles by the end user; there is nothing prohibiting somebody using the same underlying key or a script as their payment and staking credential, as well as the key for their stake pool. However, in the ledger code mixing up keys with different roles could be catastrophic, that is why we have this separation.

Instances

Instances details
Show KeyRole 
Instance details

Defined in Cardano.Ledger.Keys.Internal

coerceKeyRole ∷ ∀ (r ∷ KeyRole) (r' ∷ KeyRole). HasKeyRole a ⇒ a r → a r' Source #

General coercion of key roles.

The presence of this function is mostly to help the user realise where they are converting key roles.

newtype VKey (kd ∷ KeyRole) Source #

Discriminated verification key

We wrap the basic VerKeyDSIGN in order to add the key role.

Constructors

VKey 

Instances

Instances details
HasKeyRole VKey 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

coerceKeyRole ∷ ∀ (r ∷ KeyRole) (r' ∷ KeyRole). VKey r → VKey r' Source #

Generic (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Associated Types

type Rep (VKey kd) ∷ TypeType Source #

Methods

fromVKey kd → Rep (VKey kd) x Source #

toRep (VKey kd) x → VKey kd Source #

Show (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

showsPrecIntVKey kd → ShowS Source #

showVKey kd → String Source #

showList ∷ [VKey kd] → ShowS Source #

Typeable kd ⇒ FromCBOR (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

fromCBORDecoder s (VKey kd) Source #

labelProxy (VKey kd) → Text Source #

Typeable kd ⇒ ToCBOR (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

toCBORVKey kd → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (VKey kd) → Size Source #

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

Typeable kd ⇒ DecCBOR (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

decCBORDecoder s (VKey kd) Source #

dropCBORProxy (VKey kd) → Decoder s () Source #

labelProxy (VKey kd) → Text Source #

Typeable kd ⇒ EncCBOR (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

encCBORVKey kd → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (VKey kd) → Size Source #

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

NFData (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

rnfVKey kd → () Source #

Eq (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

(==)VKey kd → VKey kd → Bool Source #

(/=)VKey kd → VKey kd → Bool Source #

NoThunks (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (VKey kd) = D1 ('MetaData "VKey" "Cardano.Ledger.Keys.Internal" "cardano-ledger-core-1.17.0.0-inplace" 'True) (C1 ('MetaCons "VKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VerKeyDSIGN DSIGN))))

data Metadatum Source #

A generic metadatum type.

Constructors

Map ![(Metadatum, Metadatum)] 
List ![Metadatum] 
I !Integer 
B !ByteString 
S !Text 

Instances

Instances details
Generic Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Associated Types

type Rep MetadatumTypeType Source #

Show Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

DecCBOR Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

EncCBOR Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Methods

encCBORMetadatumEncoding Source #

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

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

NFData Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Methods

rnfMetadatum → () Source #

Eq Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Ord Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

NoThunks Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

type Rep Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

data ShelleyUTXOW era Source #

Instances

Instances details
(EraTx era, EraUTxO era, ShelleyEraTxBody era, ScriptsNeeded era ~ ShelleyScriptsNeeded era, Embed (EraRule "UTXO" era) (ShelleyUTXOW era), Environment (EraRule "UTXO" era) ~ UtxoEnv era, State (EraRule "UTXO" era) ~ UTxOState era, Signal (EraRule "UTXO" era) ~ Tx era, EraRule "UTXOW" era ~ ShelleyUTXOW era, InjectRuleFailure "UTXOW" ShelleyUtxowPredFailure era, EraGov era) ⇒ STS (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

(Era era, STS (ShelleyUTXO era), PredicateFailure (EraRule "UTXO" era) ~ ShelleyUtxoPredFailure era, Event (EraRule "UTXO" era) ~ UtxoEvent era) ⇒ Embed (ShelleyUTXO era) (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

(STS (ShelleyUTXOW era), PredicateFailure (EraRule "UTXOW" era) ~ ShelleyUtxowPredFailure era, Event (EraRule "UTXOW" era) ~ Event (ShelleyUTXOW era)) ⇒ Embed (ShelleyUTXOW era) (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type BaseM (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type Environment (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type Event (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type PredicateFailure (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type Signal (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type Signal (ShelleyUTXOW era) = Tx era
type State (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type State (ShelleyUTXOW era) = UTxOState era

data ShelleyUTXO era Source #

Instances

Instances details
(EraTx era, EraUTxO era, ShelleyEraTxBody era, EraGov era, GovState era ~ ShelleyGovState era, ExactEra ShelleyEra era, Embed (EraRule "PPUP" era) (ShelleyUTXO era), Environment (EraRule "PPUP" era) ~ PpupEnv era, Signal (EraRule "PPUP" era) ~ StrictMaybe (Update era), State (EraRule "PPUP" era) ~ ShelleyGovState era, Eq (EraRuleFailure "PPUP" era), Show (EraRuleFailure "PPUP" era), EraRule "UTXO" era ~ ShelleyUTXO era, InjectRuleFailure "UTXO" ShelleyUtxoPredFailure era) ⇒ STS (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Associated Types

type State (ShelleyUTXO era) Source #

type Signal (ShelleyUTXO era) Source #

type Environment (ShelleyUTXO era) Source #

type BaseM (ShelleyUTXO era) ∷ TypeType Source #

type Event (ShelleyUTXO era) Source #

type PredicateFailure (ShelleyUTXO era) Source #

(Era era, STS (ShelleyPPUP era), EraRuleFailure "PPUP" era ~ ShelleyPpupPredFailure era, Event (EraRule "PPUP" era) ~ PpupEvent era) ⇒ Embed (ShelleyPPUP era) (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

(Era era, STS (ShelleyUTXO era), PredicateFailure (EraRule "UTXO" era) ~ ShelleyUtxoPredFailure era, Event (EraRule "UTXO" era) ~ UtxoEvent era) ⇒ Embed (ShelleyUTXO era) (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type BaseM (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type Environment (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type Event (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type Event (ShelleyUTXO era) = UtxoEvent era
type PredicateFailure (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type Signal (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type Signal (ShelleyUTXO era) = Tx era
type State (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type State (ShelleyUTXO era) = UTxOState era

data ShelleyTICKF era Source #

Instances

Instances details
(EraGov era, GovState era ~ ShelleyGovState era, State (EraRule "PPUP" era) ~ ShelleyGovState era, Signal (EraRule "UPEC" era) ~ (), State (EraRule "UPEC" era) ~ UpecState era, Environment (EraRule "UPEC" era) ~ LedgerState era, Embed (EraRule "UPEC" era) (ShelleyTICKF era)) ⇒ STS (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

(Era era, STS (ShelleyUPEC era), PredicateFailure (EraRule "UPEC" era) ~ ShelleyUpecPredFailure era, Event (EraRule "UPEC" era) ~ Void) ⇒ Embed (ShelleyUPEC era) (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type BaseM (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment (ShelleyTICKF era) = ()
type Event (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Event (ShelleyTICKF era)
type PredicateFailure (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Signal (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type State (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

data ShelleyTICK era Source #

Instances

Instances details
(EraGov era, Embed (EraRule "NEWEPOCH" era) (ShelleyTICK era), Embed (EraRule "RUPD" era) (ShelleyTICK era), State (ShelleyTICK era) ~ NewEpochState era, BaseM (ShelleyTICK era) ~ ShelleyBase, Environment (EraRule "RUPD" era) ~ RupdEnv era, State (EraRule "RUPD" era) ~ StrictMaybe PulsingRewUpdate, Signal (EraRule "RUPD" era) ~ SlotNo, Environment (EraRule "NEWEPOCH" era) ~ (), State (EraRule "NEWEPOCH" era) ~ NewEpochState era, Signal (EraRule "NEWEPOCH" era) ~ EpochNo) ⇒ STS (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

Associated Types

type State (ShelleyTICK era) Source #

type Signal (ShelleyTICK era) Source #

type Environment (ShelleyTICK era) Source #

type BaseM (ShelleyTICK era) ∷ TypeType Source #

type Event (ShelleyTICK era) Source #

type PredicateFailure (ShelleyTICK era) Source #

(STS (ShelleyNEWEPOCH era), PredicateFailure (EraRule "NEWEPOCH" era) ~ ShelleyNewEpochPredFailure era, Event (EraRule "NEWEPOCH" era) ~ ShelleyNewEpochEvent era) ⇒ Embed (ShelleyNEWEPOCH era) (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

(Era era, STS (ShelleyRUPD era), PredicateFailure (EraRule "RUPD" era) ~ ShelleyRupdPredFailure era, Event (EraRule "RUPD" era) ~ RupdEvent) ⇒ Embed (ShelleyRUPD era) (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type BaseM (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment (ShelleyTICK era) = ()
type Event (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type PredicateFailure (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Signal (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type State (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

data ShelleyPPUP era Source #

Instances

Instances details
(EraPParams era, ProtVerAtMost era 8) ⇒ STS (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

Associated Types

type State (ShelleyPPUP era) Source #

type Signal (ShelleyPPUP era) Source #

type Environment (ShelleyPPUP era) Source #

type BaseM (ShelleyPPUP era) ∷ TypeType Source #

type Event (ShelleyPPUP era) Source #

type PredicateFailure (ShelleyPPUP era) Source #

(Era era, STS (ShelleyPPUP era), EraRuleFailure "PPUP" era ~ ShelleyPpupPredFailure era, Event (EraRule "PPUP" era) ~ PpupEvent era) ⇒ Embed (ShelleyPPUP era) (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type BaseM (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type Environment (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type Event (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type Event (ShelleyPPUP era) = PpupEvent era
type PredicateFailure (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type Signal (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type State (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

data ShelleyPOOLREAP era Source #

Instances

Instances details
(Default (ShelleyPoolreapState era), EraPParams era, EraGov era) ⇒ STS (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

(Era era, STS (ShelleyPOOLREAP era), PredicateFailure (EraRule "POOLREAP" era) ~ ShelleyPoolreapPredFailure era, Event (EraRule "POOLREAP" era) ~ ShelleyPoolreapEvent era) ⇒ Embed (ShelleyPOOLREAP era) (ShelleyEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Epoch

type BaseM (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type Environment (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type Event (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type PredicateFailure (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type Signal (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type State (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

data ShelleyPOOL era Source #

Instances

Instances details
(ShelleyEraTxCert era, EraPParams era) ⇒ STS (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

Associated Types

type State (ShelleyPOOL era) Source #

type Signal (ShelleyPOOL era) Source #

type Environment (ShelleyPOOL era) Source #

type BaseM (ShelleyPOOL era) ∷ TypeType Source #

type Event (ShelleyPOOL era) Source #

type PredicateFailure (ShelleyPOOL era) Source #

(Era era, STS (ShelleyPOOL era), PredicateFailure (EraRule "POOL" era) ~ ShelleyPoolPredFailure era, Event (EraRule "POOL" era) ~ PoolEvent era) ⇒ Embed (ShelleyPOOL era) (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type BaseM (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type Environment (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type Event (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type Event (ShelleyPOOL era) = PoolEvent era
type PredicateFailure (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type Signal (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type State (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type State (ShelleyPOOL era) = PState era

data ShelleyNEWEPOCH era Source #

Instances

Instances details
(EraTxOut era, EraGov era, Embed (EraRule "MIR" era) (ShelleyNEWEPOCH era), Embed (EraRule "EPOCH" era) (ShelleyNEWEPOCH era), Environment (EraRule "MIR" era) ~ (), State (EraRule "MIR" era) ~ EpochState era, Signal (EraRule "MIR" era) ~ (), Event (EraRule "RUPD" era) ~ RupdEvent, Environment (EraRule "EPOCH" era) ~ (), State (EraRule "EPOCH" era) ~ EpochState era, Signal (EraRule "EPOCH" era) ~ EpochNo, Default (EpochState era), Default (State (EraRule "PPUP" era)), Default (PParams era), Default (StashedAVVMAddresses era)) ⇒ STS (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

(STS (ShelleyEPOCH era), PredicateFailure (EraRule "EPOCH" era) ~ ShelleyEpochPredFailure era, Event (EraRule "EPOCH" era) ~ ShelleyEpochEvent era) ⇒ Embed (ShelleyEPOCH era) (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

(EraGov era, Default (EpochState era), PredicateFailure (EraRule "MIR" era) ~ ShelleyMirPredFailure era, Event (EraRule "MIR" era) ~ ShelleyMirEvent era) ⇒ Embed (ShelleyMIR era) (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

(STS (ShelleyNEWEPOCH era), PredicateFailure (EraRule "NEWEPOCH" era) ~ ShelleyNewEpochPredFailure era, Event (EraRule "NEWEPOCH" era) ~ ShelleyNewEpochEvent era) ⇒ Embed (ShelleyNEWEPOCH era) (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type BaseM (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type Environment (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type Event (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type PredicateFailure (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type Signal (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type State (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

data ShelleyLEDGERS era Source #

Instances

Instances details
(Era era, Embed (EraRule "LEDGER" era) (ShelleyLEDGERS era), Environment (EraRule "LEDGER" era) ~ LedgerEnv era, State (EraRule "LEDGER" era) ~ LedgerState era, Signal (EraRule "LEDGER" era) ~ Tx era, Default (LedgerState era)) ⇒ STS (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

(Era era, STS (ShelleyLEDGER era), PredicateFailure (EraRule "LEDGER" era) ~ ShelleyLedgerPredFailure era, Event (EraRule "LEDGER" era) ~ ShelleyLedgerEvent era) ⇒ Embed (ShelleyLEDGER era) (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type BaseM (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type Environment (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type Event (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type PredicateFailure (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type Signal (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type Signal (ShelleyLEDGERS era) = Seq (Tx era)
type State (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

data ShelleyLEDGER era Source #

Instances

Instances details
(EraTx era, EraGov era, Embed (EraRule "DELEGS" era) (ShelleyLEDGER era), Embed (EraRule "UTXOW" era) (ShelleyLEDGER era), Environment (EraRule "UTXOW" era) ~ UtxoEnv era, State (EraRule "UTXOW" era) ~ UTxOState era, Signal (EraRule "UTXOW" era) ~ Tx era, Environment (EraRule "DELEGS" era) ~ DelegsEnv era, State (EraRule "DELEGS" era) ~ CertState era, Signal (EraRule "DELEGS" era) ~ Seq (TxCert era), ProtVerAtMost era 8) ⇒ STS (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

(Era era, STS (ShelleyDELEGS era), PredicateFailure (EraRule "DELEGS" era) ~ ShelleyDelegsPredFailure era, Event (EraRule "DELEGS" era) ~ ShelleyDelegsEvent era) ⇒ Embed (ShelleyDELEGS era) (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

(Era era, STS (ShelleyLEDGER era), PredicateFailure (EraRule "LEDGER" era) ~ ShelleyLedgerPredFailure era, Event (EraRule "LEDGER" era) ~ ShelleyLedgerEvent era) ⇒ Embed (ShelleyLEDGER era) (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

(STS (ShelleyUTXOW era), PredicateFailure (EraRule "UTXOW" era) ~ ShelleyUtxowPredFailure era, Event (EraRule "UTXOW" era) ~ Event (ShelleyUTXOW era)) ⇒ Embed (ShelleyUTXOW era) (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type BaseM (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Environment (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Event (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type PredicateFailure (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Signal (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Signal (ShelleyLEDGER era) = Tx era
type State (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

data ShelleyDELPL era Source #

Instances

Instances details
(Era era, Embed (EraRule "DELEG" era) (ShelleyDELPL era), Environment (EraRule "DELEG" era) ~ DelegEnv era, State (EraRule "DELEG" era) ~ DState era, Embed (EraRule "POOL" era) (ShelleyDELPL era), Environment (EraRule "POOL" era) ~ PoolEnv era, State (EraRule "POOL" era) ~ PState era, Signal (EraRule "DELEG" era) ~ TxCert era, Embed (EraRule "POOL" era) (ShelleyDELPL era), Environment (EraRule "POOL" era) ~ PoolEnv era, Signal (EraRule "POOL" era) ~ PoolCert, TxCert era ~ ShelleyTxCert era) ⇒ STS (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

(ShelleyEraTxCert era, EraPParams era, ProtVerAtMost era 8, PredicateFailure (EraRule "DELEG" era) ~ ShelleyDelegPredFailure era, Event (EraRule "DELEG" era) ~ ShelleyDelegEvent era) ⇒ Embed (ShelleyDELEG era) (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

(Era era, STS (ShelleyDELPL era), PredicateFailure (EraRule "DELPL" era) ~ ShelleyDelplPredFailure era, Event (EraRule "DELPL" era) ~ ShelleyDelplEvent era) ⇒ Embed (ShelleyDELPL era) (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

(Era era, STS (ShelleyPOOL era), PredicateFailure (EraRule "POOL" era) ~ ShelleyPoolPredFailure era, Event (EraRule "POOL" era) ~ PoolEvent era) ⇒ Embed (ShelleyPOOL era) (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type BaseM (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type Environment (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type Event (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type PredicateFailure (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type Signal (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type Signal (ShelleyDELPL era) = TxCert era
type State (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type State (ShelleyDELPL era) = CertState era

data ShelleyDELEGS era Source #

Instances

Instances details
(EraTx era, ShelleyEraTxBody era, Embed (EraRule "DELPL" era) (ShelleyDELEGS era), Environment (EraRule "DELPL" era) ~ DelplEnv era, State (EraRule "DELPL" era) ~ CertState era, Signal (EraRule "DELPL" era) ~ TxCert era, EraRule "DELEGS" era ~ ShelleyDELEGS era) ⇒ STS (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

(Era era, STS (ShelleyDELEGS era), PredicateFailure (EraRule "DELEGS" era) ~ ShelleyDelegsPredFailure era, Event (EraRule "DELEGS" era) ~ ShelleyDelegsEvent era) ⇒ Embed (ShelleyDELEGS era) (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

(Era era, STS (ShelleyDELPL era), PredicateFailure (EraRule "DELPL" era) ~ ShelleyDelplPredFailure era, Event (EraRule "DELPL" era) ~ ShelleyDelplEvent era) ⇒ Embed (ShelleyDELPL era) (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type BaseM (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type Environment (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type Event (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type PredicateFailure (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type Signal (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type Signal (ShelleyDELEGS era) = Seq (TxCert era)
type State (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type State (ShelleyDELEGS era) = CertState era

data ShelleyDELEG era Source #

Instances

Instances details
(EraPParams era, ShelleyEraTxCert era, ProtVerAtMost era 8) ⇒ STS (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

(ShelleyEraTxCert era, EraPParams era, ProtVerAtMost era 8, PredicateFailure (EraRule "DELEG" era) ~ ShelleyDelegPredFailure era, Event (EraRule "DELEG" era) ~ ShelleyDelegEvent era) ⇒ Embed (ShelleyDELEG era) (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type BaseM (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type Environment (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type Event (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type PredicateFailure (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type Signal (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type Signal (ShelleyDELEG era) = TxCert era
type State (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type State (ShelleyDELEG era) = DState era

newtype ProposedPPUpdates era Source #

Update operation for protocol parameters structure PParams

Instances

Instances details
EraPParams era ⇒ ToJSON (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Monoid (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Semigroup (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Generic (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Associated Types

type Rep (ProposedPPUpdates era) ∷ TypeType Source #

Show (PParamsUpdate era) ⇒ Show (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

(Era era, FromCBOR (PParamsUpdate era)) ⇒ FromCBOR (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

(Era era, ToCBOR (PParamsUpdate era)) ⇒ ToCBOR (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

toCBORProposedPPUpdates era → Encoding Source #

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

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

(Era era, DecCBOR (PParamsUpdate era)) ⇒ DecCBOR (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

(Era era, EncCBOR (PParamsUpdate era)) ⇒ EncCBOR (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

encCBORProposedPPUpdates era → Encoding Source #

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

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

NFData (PParamsUpdate era) ⇒ NFData (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnfProposedPPUpdates era → () Source #

Eq (PParamsUpdate era) ⇒ Eq (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NoThunks (PParamsUpdate era) ⇒ NoThunks (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep (ProposedPPUpdates era) = D1 ('MetaData "ProposedPPUpdates" "Cardano.Ledger.Shelley.PParams" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "ProposedPPUpdates" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (KeyHash 'Genesis) (PParamsUpdate era)))))

data Update era Source #

Update Proposal

Constructors

Update !(ProposedPPUpdates era) !EpochNo 

Instances

Instances details
Generic (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Associated Types

type Rep (Update era) ∷ TypeType Source #

Methods

fromUpdate era → Rep (Update era) x Source #

toRep (Update era) x → Update era Source #

Show (PParamsUpdate era) ⇒ Show (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

showsPrecIntUpdate era → ShowS Source #

showUpdate era → String Source #

showList ∷ [Update era] → ShowS Source #

(Era era, DecCBOR (PParamsUpdate era)) ⇒ DecCBOR (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

decCBORDecoder s (Update era) Source #

dropCBORProxy (Update era) → Decoder s () Source #

labelProxy (Update era) → Text Source #

(Era era, EncCBOR (PParamsUpdate era)) ⇒ EncCBOR (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

encCBORUpdate era → Encoding Source #

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

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

NFData (PParamsUpdate era) ⇒ NFData (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnfUpdate era → () Source #

Eq (PParamsUpdate era) ⇒ Eq (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

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

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

NoThunks (PParamsUpdate era) ⇒ NoThunks (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

type Rep (Update era) = D1 ('MetaData "Update" "Cardano.Ledger.Shelley.PParams" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "Update" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ProposedPPUpdates era)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo)))

data ShelleyGovState era Source #

Constructors

ShelleyGovState 

Fields

Instances

Instances details
EraPParams era ⇒ ToJSON (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Generic (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Associated Types

type Rep (ShelleyGovState era) ∷ TypeType Source #

(Show (PParamsUpdate era), Show (PParams era)) ⇒ Show (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

(Era era, DecCBOR (PParamsUpdate era), DecCBOR (PParams era)) ⇒ FromCBOR (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

(Era era, EncCBOR (PParamsUpdate era), EncCBOR (PParams era)) ⇒ ToCBOR (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Methods

toCBORShelleyGovState era → Encoding Source #

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

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

(Era era, DecCBOR (PParamsUpdate era), DecCBOR (PParams era)) ⇒ DecCBOR (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

(Era era, DecCBOR (PParamsUpdate era), DecCBOR (PParams era)) ⇒ DecShareCBOR (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Associated Types

type Share (ShelleyGovState era) Source #

(Era era, EncCBOR (PParamsUpdate era), EncCBOR (PParams era)) ⇒ EncCBOR (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Methods

encCBORShelleyGovState era → Encoding Source #

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

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

EraPParams era ⇒ Default (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Methods

defShelleyGovState era Source #

(NFData (PParamsUpdate era), NFData (PParams era)) ⇒ NFData (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Methods

rnfShelleyGovState era → () Source #

(Eq (PParamsUpdate era), Eq (PParams era)) ⇒ Eq (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

(NoThunks (PParamsUpdate era), NoThunks (PParams era)) ⇒ NoThunks (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

type Rep (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

type Rep (ShelleyGovState era) = D1 ('MetaData "ShelleyGovState" "Cardano.Ledger.Shelley.Governance" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "ShelleyGovState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sgsCurProposals") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ProposedPPUpdates era)) :*: S1 ('MetaSel ('Just "sgsFutureProposals") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ProposedPPUpdates era))) :*: (S1 ('MetaSel ('Just "sgsCurPParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams era)) :*: (S1 ('MetaSel ('Just "sgsPrevPParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams era)) :*: S1 ('MetaSel ('Just "sgsFuturePParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (FuturePParams era))))))
type Share (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

type Share (ShelleyGovState era) = ()

data NonMyopic Source #

Instances

Instances details
ToJSON NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Generic NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Associated Types

type Rep NonMyopicTypeType Source #

Show NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

DecShareCBOR NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Associated Types

type Share NonMyopic Source #

EncCBOR NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

encCBORNonMyopicEncoding Source #

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

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

Default NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

defNonMyopic Source #

NFData NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

rnfNonMyopic → () Source #

Eq NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

NoThunks NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

type Rep NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

type Rep NonMyopic = D1 ('MetaData "NonMyopic" "Cardano.Ledger.Shelley.PoolRank" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "NonMyopic" 'PrefixI 'True) (S1 ('MetaSel ('Just "likelihoodsNM") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) Likelihood)) :*: S1 ('MetaSel ('Just "rewardPotNM") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))
type Share NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

data RewardUpdate Source #

The ultimate goal of a reward update computation. Aggregating rewards for each staking credential.

Constructors

RewardUpdate 

Instances

Instances details
ToJSON RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Generic RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Associated Types

type Rep RewardUpdateTypeType Source #

Show RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

DecCBOR RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

EncCBOR RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

NFData RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

rnfRewardUpdate → () Source #

Eq RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

NoThunks RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

type Rep RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

type Rep RewardUpdate = D1 ('MetaData "RewardUpdate" "Cardano.Ledger.Shelley.RewardUpdate" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "RewardUpdate" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deltaT") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DeltaCoin) :*: S1 ('MetaSel ('Just "deltaR") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DeltaCoin)) :*: (S1 ('MetaSel ('Just "rs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking) (Set Reward))) :*: (S1 ('MetaSel ('Just "deltaF") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DeltaCoin) :*: S1 ('MetaSel ('Just "nonMyopic") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonMyopic)))))

data PpupEnv era Source #

Constructors

PPUPEnv SlotNo (PParams era) GenDelegs 

data MultiSig era Source #

Instances

Instances details
Memoized MultiSig Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Associated Types

type RawType MultiSig = (r ∷ TypeType) Source #

Generic (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Associated Types

type Rep (MultiSig era) ∷ TypeType Source #

Methods

fromMultiSig era → Rep (MultiSig era) x Source #

toRep (MultiSig era) x → MultiSig era Source #

Show (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

showsPrecIntMultiSig era → ShowS Source #

showMultiSig era → String Source #

showList ∷ [MultiSig era] → ShowS Source #

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

Defined in Cardano.Ledger.Shelley.Scripts

Methods

toCBORMultiSig era → Encoding Source #

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

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

Era era ⇒ DecCBOR (Annotator (MultiSig era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Era era ⇒ EncCBOR (MultiSig era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

encCBORMultiSig era → Encoding Source #

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

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

SafeToHash (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

EqRaw (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

eqRawMultiSig era → MultiSig era → Bool Source #

NFData (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

rnfMultiSig era → () Source #

Eq (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

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

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

Typeable era ⇒ NoThunks (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

type RawType MultiSig Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

type Rep (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

type Rep (MultiSig era) = D1 ('MetaData "MultiSig" "Cardano.Ledger.Shelley.Scripts" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "MultiSigConstr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes MultiSigRaw era))))

computeStabilityWindowWord64ActiveSlotCoeffWord64 Source #

Calculate the stability window (e.g. the number of slots needed for a block to become stable) from the security param and the active slot coefficient.

The value 3k/f is determined to be a suitabe value as per https://docs.google.com/document/d/1B8BNMx8jVWRjYiUBOaI3jfZ7dQNvNTSDODvT5iOuYCU/edit#heading=h.qh2zcajmu6hm

computeRandomnessStabilisationWindowWord64ActiveSlotCoeffWord64 Source #

Calculate the randomness stabilisation window from the security param and the active slot coefficient.

The value 4k/f is determined to be a suitabe value as per https://docs.google.com/document/d/1B8BNMx8jVWRjYiUBOaI3jfZ7dQNvNTSDODvT5iOuYCU/edit#heading=h.qh2zcajmu6hm

data ShelleyGenesis Source #

Shelley genesis information

Note that this is needed only for a pure Shelley network, hence it being defined here rather than in its own module. In mainnet, Shelley will transition naturally from Byron, and thus will never have its own genesis information.

Constructors

ShelleyGenesis 

Fields

Instances

Instances details
FromJSON ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

ToJSON ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Generic ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Associated Types

type Rep ShelleyGenesisTypeType Source #

Show ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

FromCBOR ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

ToCBOR ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

DecCBOR ShelleyGenesis Source #

Genesis are always encoded with the version of era they are defined in.

Instance details

Defined in Cardano.Ledger.Shelley.Genesis

EncCBOR ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Eq ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

NoThunks ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep ShelleyGenesis Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep ShelleyGenesis = D1 ('MetaData "ShelleyGenesis" "Cardano.Ledger.Shelley.Genesis" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "ShelleyGenesis" 'PrefixI 'True) (((S1 ('MetaSel ('Just "sgSystemStart") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "sgNetworkMagic") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "sgNetworkId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Network))) :*: ((S1 ('MetaSel ('Just "sgActiveSlotsCoeff") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PositiveUnitInterval) :*: S1 ('MetaSel ('Just "sgSecurityParam") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "sgEpochLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochSize) :*: S1 ('MetaSel ('Just "sgSlotsPerKESPeriod") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))) :*: (((S1 ('MetaSel ('Just "sgMaxKESEvolutions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "sgSlotLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NominalDiffTimeMicro)) :*: (S1 ('MetaSel ('Just "sgUpdateQuorum") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "sgMaxLovelaceSupply") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "sgProtocolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams ShelleyEra)) :*: S1 ('MetaSel ('Just "sgGenDelegs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'Genesis) GenDelegPair))) :*: (S1 ('MetaSel ('Just "sgInitialFunds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap Addr Coin)) :*: S1 ('MetaSel ('Just "sgStaking") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShelleyGenesisStaking))))))

newtype NominalDiffTimeMicro Source #

Unlike NominalDiffTime that supports Pico precision, this type only supports Micro precision.

Instances

Instances details
FromJSON NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

ToJSON NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Generic NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Associated Types

type Rep NominalDiffTimeMicroTypeType Source #

Num NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Fractional NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Real NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Show NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

DecCBOR NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

EncCBOR NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Eq NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Ord NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

NoThunks NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep NominalDiffTimeMicro Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep NominalDiffTimeMicro = D1 ('MetaData "NominalDiffTimeMicro" "Cardano.Ledger.Shelley.Genesis" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "NominalDiffTimeMicro" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Micro)))

data ShelleyGenesisStaking Source #

Genesis Shelley staking configuration.

This allows us to configure some initial stake pools and delegation to them, in order to test Praos in a static configuration, without requiring on-chain registration and delegation.

For simplicity, pools defined in the genesis staking do not pay deposits for their registration.

Constructors

ShelleyGenesisStaking 

Fields

  • sgsPoolsListMap (KeyHash 'StakePool) PoolParams

    Pools to register

    The key in this map is the hash of the public key of the _pool_. This need not correspond to any payment or staking key, but must correspond to the cold key held by TPraosIsCoreNode.

  • sgsStakeListMap (KeyHash 'Staking) (KeyHash 'StakePool)

    Stake-holding key hash credentials and the pools to delegate that stake to. We require the raw staking key hash in order to:

    • Avoid pointer addresses, which would be tricky when there's no slot or transaction to point to.
    • Avoid script credentials.

Instances

Instances details
FromJSON ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

ToJSON ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Monoid ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Semigroup ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Generic ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Associated Types

type Rep ShelleyGenesisStakingTypeType Source #

Show ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

DecCBOR ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

EncCBOR ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Eq ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

NoThunks ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep ShelleyGenesisStaking Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep ShelleyGenesisStaking = D1 ('MetaData "ShelleyGenesisStaking" "Cardano.Ledger.Shelley.Genesis" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "ShelleyGenesisStaking" 'PrefixI 'True) (S1 ('MetaSel ('Just "sgsPools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'StakePool) PoolParams)) :*: S1 ('MetaSel ('Just "sgsStake") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'Staking) (KeyHash 'StakePool)))))

genesisUTxO ∷ ∀ era. EraTxOut era ⇒ ShelleyGenesisUTxO era Source #

initialFundsPseudoTxInAddrTxIn Source #

Compute the TxIn of the initial UTxO pseudo-transaction corresponding to the given address in the genesis initial funds.

The Shelley initial UTxO is constructed from the sgInitialFunds which is not a full UTxO but just a map from addresses to coin values.

This gets turned into a UTxO by making a pseudo-transaction for each address, with the 0th output being the coin value. So to spend from the initial UTxO we need this same TxIn to use as an input to the spending transaction.

validateGenesisShelleyGenesisEither [ValidationErr] () Source #

Do some basic sanity checking on the Shelley genesis file.

data ShelleyTxAuxData era where Source #

Bundled Patterns

pattern ShelleyTxAuxData ∷ ∀ era. Era era ⇒ Map Word64 MetadatumShelleyTxAuxData era 

Instances

Instances details
Memoized ShelleyTxAuxData Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Associated Types

type RawType ShelleyTxAuxData = (r ∷ TypeType) Source #

Generic (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Associated Types

type Rep (ShelleyTxAuxData era) ∷ TypeType Source #

Show (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

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

Defined in Cardano.Ledger.Shelley.TxAuxData

Methods

toCBORShelleyTxAuxData era → Encoding Source #

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

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

Era era ⇒ DecCBOR (Annotator (ShelleyTxAuxData era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Era era ⇒ EncCBOR (ShelleyTxAuxData era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Methods

encCBORShelleyTxAuxData era → Encoding Source #

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

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

SafeToHash (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

EqRaw (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Methods

eqRawShelleyTxAuxData era → ShelleyTxAuxData era → Bool Source #

NFData (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Methods

rnfShelleyTxAuxData era → () Source #

Eq (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

NoThunks (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

HashAnnotated (ShelleyTxAuxData era) EraIndependentTxAuxData Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

type RawType ShelleyTxAuxData Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

type Rep (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

type Rep (ShelleyTxAuxData era) = D1 ('MetaData "ShelleyTxAuxData" "Cardano.Ledger.Shelley.TxAuxData" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "AuxiliaryDataConstr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes ShelleyTxAuxDataRaw era))))

data ShelleyDelegCert Source #

Constructors

ShelleyRegCert !StakeCredential

A stake credential registration certificate.

ShelleyUnRegCert !StakeCredential

A stake credential deregistration certificate.

ShelleyDelegCert !StakeCredential !(KeyHash 'StakePool)

A stake delegation certificate.

Instances

Instances details
ToJSON ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Generic ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep ShelleyDelegCertTypeType Source #

Show ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NFData ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnfShelleyDelegCert → () Source #

Eq ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

data MIRCert Source #

Move instantaneous rewards certificate

Constructors

MIRCert 

Fields

Instances

Instances details
ToJSON MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Generic MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep MIRCertTypeType Source #

Methods

fromMIRCertRep MIRCert x Source #

toRep MIRCert x → MIRCert Source #

Show MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

DecCBOR MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

EncCBOR MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

encCBORMIRCertEncoding Source #

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

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

NFData MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnfMIRCert → () Source #

Eq MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

(==)MIRCertMIRCertBool Source #

(/=)MIRCertMIRCertBool Source #

Ord MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRCert = D1 ('MetaData "MIRCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "MIRCert" 'PrefixI 'True) (S1 ('MetaSel ('Just "mirPot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MIRPot) :*: S1 ('MetaSel ('Just "mirRewards") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MIRTarget)))

data MIRTarget Source #

MIRTarget specifies if funds from either the reserves or the treasury are to be handed out to a collection of reward accounts or instead transfered to the opposite pot.

Instances

Instances details
ToJSON MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Generic MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep MIRTargetTypeType Source #

Show MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

DecCBOR MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

EncCBOR MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

encCBORMIRTargetEncoding Source #

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

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

NFData MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnfMIRTarget → () Source #

Eq MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRTarget = D1 ('MetaData "MIRTarget" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "StakeAddressesMIR" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking) DeltaCoin))) :+: C1 ('MetaCons "SendToOppositePotMIR" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))

data MIRPot Source #

Constructors

ReservesMIR 
TreasuryMIR 

Instances

Instances details
ToJSON MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Bounded MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Enum MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Generic MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep MIRPotTypeType Source #

Methods

fromMIRPotRep MIRPot x Source #

toRep MIRPot x → MIRPot Source #

Show MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

DecCBOR MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

EncCBOR MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

encCBORMIRPotEncoding Source #

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

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

NFData MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnfMIRPot → () Source #

Eq MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

(==)MIRPotMIRPotBool Source #

(/=)MIRPotMIRPotBool Source #

Ord MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRPot = D1 ('MetaData "MIRPot" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "ReservesMIR" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "TreasuryMIR" 'PrefixI 'False) (U1TypeType))

data GenesisDelegCert Source #

Genesis key delegation certificate

Instances

Instances details
ToJSON GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Generic GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep GenesisDelegCertTypeType Source #

Show GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NFData GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnfGenesisDelegCert → () Source #

Eq GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

data ShelleyTxOut era Source #

Constructors

TxOutCompact !CompactAddr !(CompactForm (Value era)) 

Bundled Patterns

pattern ShelleyTxOut ∷ (HasCallStack, Era era, Val (Value era)) ⇒ AddrValue era → ShelleyTxOut era 

Instances

Instances details
(Era era, Val (Value era)) ⇒ ToJSON (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

(Era era, Val (Value era)) ⇒ Show (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

(Era era, DecCBOR (CompactForm (Value era))) ⇒ FromCBOR (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

(Era era, EncCBOR (CompactForm (Value era))) ⇒ ToCBOR (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Methods

toCBORShelleyTxOut era → Encoding Source #

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

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

(Era era, DecCBOR (CompactForm (Value era))) ⇒ DecCBOR (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

(Era era, DecCBOR (CompactForm (Value era))) ⇒ DecShareCBOR (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Associated Types

type Share (ShelleyTxOut era) Source #

(Era era, EncCBOR (CompactForm (Value era))) ⇒ EncCBOR (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Methods

encCBORShelleyTxOut era → Encoding Source #

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

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

NFData (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Methods

rnfShelleyTxOut era → () Source #

Eq (CompactForm (Value era)) ⇒ Eq (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Methods

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

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

(Era era, HeapWords (CompactForm (Value era))) ⇒ HeapWords (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Methods

heapWordsShelleyTxOut era → Int Source #

NoThunks (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

type Share (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

newtype ShelleyTxBody era Source #

Bundled Patterns

pattern ShelleyTxBody ∷ (EraTxOut era, EncCBOR (TxCert era)) ⇒ Set TxInStrictSeq (TxOut era) → StrictSeq (TxCert era) → WithdrawalsCoinSlotNoStrictMaybe (Update era) → StrictMaybe TxAuxDataHashShelleyTxBody era

Pattern for use by external users

Instances

Instances details
Memoized ShelleyTxBody Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

type RawType ShelleyTxBody = (r ∷ TypeType) Source #

Generic (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

type Rep (ShelleyTxBody era) ∷ TypeType Source #

Methods

fromShelleyTxBody era → Rep (ShelleyTxBody era) x Source #

toRep (ShelleyTxBody era) x → ShelleyTxBody era Source #

EraTxBody era ⇒ Show (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

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

Defined in Cardano.Ledger.Shelley.TxBody

Methods

toCBORShelleyTxBody era → Encoding Source #

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

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

EraTxBody era ⇒ DecCBOR (Annotator (ShelleyTxBody era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Era era ⇒ EncCBOR (ShelleyTxBody era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

encCBORShelleyTxBody era → Encoding Source #

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

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

SafeToHash (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

(Era era, Eq (TxOut era), Eq (TxCert era), Eq (PParamsUpdate era)) ⇒ EqRaw (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

eqRawShelleyTxBody era → ShelleyTxBody era → Bool Source #

EraTxBody era ⇒ NFData (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnfShelleyTxBody era → () Source #

(Era era, Eq (TxOut era), Eq (TxCert era), Eq (PParamsUpdate era)) ⇒ Eq (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

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

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

(Era era, NoThunks (TxOut era), NoThunks (TxCert era), NoThunks (PParamsUpdate era)) ⇒ NoThunks (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Era era ⇒ HashAnnotated (ShelleyTxBody era) EraIndependentTxBody Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type RawType ShelleyTxBody Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (ShelleyTxBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (ShelleyTxBody era) = D1 ('MetaData "ShelleyTxBody" "Cardano.Ledger.Shelley.TxBody" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "TxBodyConstr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes ShelleyTxBodyRaw era))))

data ShelleyTxWits era Source #

Instances

Instances details
Memoized ShelleyTxWits Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Associated Types

type RawType ShelleyTxWits = (r ∷ TypeType) Source #

EraScript era ⇒ Monoid (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

EraScript era ⇒ Semigroup (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Generic (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Associated Types

type Rep (ShelleyTxWits era) ∷ TypeType Source #

Methods

fromShelleyTxWits era → Rep (ShelleyTxWits era) x Source #

toRep (ShelleyTxWits era) x → ShelleyTxWits era Source #

EraScript era ⇒ Show (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

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

Defined in Cardano.Ledger.Shelley.TxWits

Methods

toCBORShelleyTxWits era → Encoding Source #

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

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

EraScript era ⇒ DecCBOR (Annotator (ShelleyTxWits era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Era era ⇒ EncCBOR (ShelleyTxWits era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

encCBORShelleyTxWits era → Encoding Source #

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

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

SafeToHash (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

(TxWits era ~ ShelleyTxWits era, EraTxWits era) ⇒ EqRaw (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

eqRawShelleyTxWits era → ShelleyTxWits era → Bool Source #

(Era era, NFData (Script era), NFData (WitVKey 'Witness), NFData BootstrapWitness) ⇒ NFData (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

rnfShelleyTxWits era → () Source #

EraScript era ⇒ Eq (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

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

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

EraScript era ⇒ NoThunks (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type RawType ShelleyTxWits Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type Rep (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type Rep (ShelleyTxWits era) = D1 ('MetaData "ShelleyTxWits" "Cardano.Ledger.Shelley.TxWits" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "ShelleyTxWitsConstr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes ShelleyTxWitsRaw era))))

data ShelleyTx era where Source #

Bundled Patterns

pattern ShelleyTxEraTx era ⇒ TxBody era → TxWits era → StrictMaybe (TxAuxData era) → ShelleyTx era 

Instances

Instances details
Memoized ShelleyTx Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Associated Types

type RawType ShelleyTx = (r ∷ TypeType) Source #

Generic (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Associated Types

type Rep (ShelleyTx era) ∷ TypeType Source #

Methods

fromShelleyTx era → Rep (ShelleyTx era) x Source #

toRep (ShelleyTx era) x → ShelleyTx era Source #

(Era era, Show (TxBody era), Show (TxWits era), Show (TxAuxData era)) ⇒ Show (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Methods

showsPrecIntShelleyTx era → ShowS Source #

showShelleyTx era → String Source #

showList ∷ [ShelleyTx era] → ShowS Source #

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

Defined in Cardano.Ledger.Shelley.Tx.Internal

Methods

toCBORShelleyTx era → Encoding Source #

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

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

EraTx era ⇒ DecCBOR (Annotator (ShelleyTx era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Era era ⇒ EncCBOR (ShelleyTx era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Methods

encCBORShelleyTx era → Encoding Source #

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

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

SafeToHash (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

(Tx era ~ ShelleyTx era, EraTx era) ⇒ EqRaw (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Methods

eqRawShelleyTx era → ShelleyTx era → Bool Source #

(NFData (TxBody era), NFData (TxWits era), NFData (TxAuxData era)) ⇒ NFData (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Methods

rnfShelleyTx era → () Source #

(Era era, Eq (TxBody era), Eq (TxWits era), Eq (TxAuxData era)) ⇒ Eq (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

Methods

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

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

(Era era, NoThunks (TxAuxData era), NoThunks (TxBody era), NoThunks (TxWits era)) ⇒ NoThunks (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

type RawType ShelleyTx Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

type Rep (ShelleyTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

type Rep (ShelleyTx era) = D1 ('MetaData "ShelleyTx" "Cardano.Ledger.Shelley.Tx.Internal" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "TxConstr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes ShelleyTxRaw era))))

data LedgerState era Source #

The state associated with a Ledger.

Constructors

LedgerState 

Fields

Instances

Instances details
(EraTxOut era, EraGov era) ⇒ ToJSON (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Generic (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (LedgerState era) ∷ TypeType Source #

Methods

fromLedgerState era → Rep (LedgerState era) x Source #

toRep (LedgerState era) x → LedgerState era Source #

(EraTxOut era, Show (GovState era)) ⇒ Show (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EraGov era) ⇒ FromCBOR (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EraGov era) ⇒ ToCBOR (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toCBORLedgerState era → Encoding Source #

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

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

(EraTxOut era, EraGov era) ⇒ DecShareCBOR (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Share (LedgerState era) Source #

(EraTxOut era, EncCBOR (GovState era)) ⇒ EncCBOR (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBORLedgerState era → Encoding Source #

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

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

Default (UTxOState era) ⇒ Default (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

defLedgerState era Source #

(EraTxOut era, NFData (GovState era)) ⇒ NFData (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnfLedgerState era → () Source #

(EraTxOut era, Eq (GovState era)) ⇒ Eq (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

(EraTxOut era, NoThunks (GovState era)) ⇒ NoThunks (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (LedgerState era) = D1 ('MetaData "LedgerState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "LedgerState" 'PrefixI 'True) (S1 ('MetaSel ('Just "lsUTxOState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (UTxOState era)) :*: S1 ('MetaSel ('Just "lsCertState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (CertState era))))
type Share (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

data NewEpochState era Source #

New Epoch state and environment

Constructors

NewEpochState 

Fields

  • nesEL ∷ !EpochNo

    Number of the epoch when this NewEpochState was modified last. With respect to block and transactions validation this will always be the current epoch number. However, when it comes to the TICK rule, it will be the epoch number of the previous epoch whenever we are crossing the epoch boundary.

  • nesBprev ∷ !BlocksMade

    Blocks made before current epoch

  • nesBcur ∷ !BlocksMade

    Blocks made in current epoch

  • nesEs ∷ !(EpochState era)

    Epoch state

  • nesRu ∷ !(StrictMaybe PulsingRewUpdate)

    Possible reward update

  • nesPd ∷ !PoolDistr

    Stake distribution within the stake pool

  • stashedAVVMAddresses ∷ !(StashedAVVMAddresses era)

    AVVM addresses to be removed at the end of the Shelley era. Note that the existence of this field is a hack, related to the transition of UTxO to disk. We remove AVVM addresses from the UTxO on the Shelley/Allegra boundary. However, by this point the UTxO will be moved to disk, and hence doing a scan of the UTxO for AVVM addresses will be expensive. Our solution to this is to do a scan of the UTxO on the Byron/Shelley boundary (since Byron UTxO are still on disk), stash the results here, and then remove them at the Shelley/Allegra boundary.

    This is very much an awkward implementation hack, and hence we hide it from as many places as possible.

Instances

Instances details
Generic (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (NewEpochState era) ∷ TypeType Source #

Methods

fromNewEpochState era → Rep (NewEpochState era) x Source #

toRep (NewEpochState era) x → NewEpochState era Source #

(EraTxOut era, Show (StashedAVVMAddresses era), Show (GovState era)) ⇒ Show (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EraGov era, DecCBOR (StashedAVVMAddresses era)) ⇒ FromCBOR (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EraGov era, EncCBOR (StashedAVVMAddresses era)) ⇒ ToCBOR (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toCBORNewEpochState era → Encoding Source #

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

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

(EraTxOut era, EraGov era, DecCBOR (StashedAVVMAddresses era)) ⇒ DecCBOR (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EncCBOR (StashedAVVMAddresses era), EncCBOR (GovState era)) ⇒ EncCBOR (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBORNewEpochState era → Encoding Source #

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

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

(EraTxOut era, NFData (StashedAVVMAddresses era), NFData (GovState era)) ⇒ NFData (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnfNewEpochState era → () Source #

(EraTxOut era, Eq (StashedAVVMAddresses era), Eq (GovState era)) ⇒ Eq (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

(Era era, NoThunks (EpochState era), NoThunks (StashedAVVMAddresses era)) ⇒ NoThunks (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

data UTxOState era Source #

There is a serious invariant that we must maintain in the UTxOState. Given (UTxOState utxo _ _ _ istake) it must be the case that istake == (updateStakeDistribution (UTxO Map.empty) (UTxO Map.empty) utxo) Of course computing the RHS of the above equality can be very expensive, so we only use this route in the testing function smartUTxO. But we are very careful, wherever we update the UTxO, we carefully make INCREMENTAL changes to istake to maintain this invariant. This happens in the UTxO rule.

Constructors

UTxOState 

Fields

Instances

Instances details
(EraTxOut era, EraGov era) ⇒ ToJSON (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Generic (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (UTxOState era) ∷ TypeType Source #

Methods

fromUTxOState era → Rep (UTxOState era) x Source #

toRep (UTxOState era) x → UTxOState era Source #

(EraTxOut era, Show (GovState era)) ⇒ Show (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

showsPrecIntUTxOState era → ShowS Source #

showUTxOState era → String Source #

showList ∷ [UTxOState era] → ShowS Source #

(EraTxOut era, EraGov era) ⇒ FromCBOR (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

fromCBORDecoder s (UTxOState era) Source #

labelProxy (UTxOState era) → Text Source #

(EraTxOut era, EraGov era) ⇒ ToCBOR (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toCBORUTxOState era → Encoding Source #

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

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

(EraTxOut era, EraGov era) ⇒ DecShareCBOR (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Share (UTxOState era) Source #

(EraTxOut era, EncCBOR (GovState era)) ⇒ EncCBOR (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBORUTxOState era → Encoding Source #

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

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

EraGov era ⇒ Default (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

defUTxOState era Source #

(EraTxOut era, NFData (GovState era)) ⇒ NFData (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnfUTxOState era → () Source #

(EraTxOut era, Eq (GovState era)) ⇒ Eq (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

(NoThunks (UTxO era), NoThunks (GovState era), Era era) ⇒ NoThunks (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (UTxOState era) = D1 ('MetaData "UTxOState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "UTxOState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "utxosUtxo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (UTxO era)) :*: (S1 ('MetaSel ('Just "utxosDeposited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin) :*: S1 ('MetaSel ('Just "utxosFees") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :*: (S1 ('MetaSel ('Just "utxosGovState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (GovState era)) :*: (S1 ('MetaSel ('Just "utxosStakeDistr") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 IncrementalStake) :*: S1 ('MetaSel ('Just "utxosDonation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))))
type Share (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

data IncrementalStake Source #

Incremental Stake, Stake along with possible missed coins from danging Ptrs. Transactions can use Ptrs to refer to a stake credential in a TxOut. The Ptr does not have to point to anything until the epoch boundary, when we compute rewards and aggregate staking information for ranking. This is unusual but legal. In a non incremental system, we use whatever legal Ptrs exist at the epoch boundary. Here we are computing things incrementally, so we need to remember Ptrs that might point to something by the time the epoch boundary is reached. When the epoch boundary is reached we resolve these pointers, to see if any have become non-dangling since the time they were first used in the incremental computation.

Constructors

IStake 

Instances

Instances details
ToJSON IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Monoid IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Semigroup IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Generic IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep IncrementalStakeTypeType Source #

Show IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

DecShareCBOR IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Share IncrementalStake Source #

EncCBOR IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Default IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

NFData IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnfIncrementalStake → () Source #

Eq IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Ord IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Group IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

NoThunks IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep IncrementalStake = D1 ('MetaData "IncrementalStake" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "IStake" 'PrefixI 'True) (S1 ('MetaSel ('Just "credMap") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking) (CompactForm Coin))) :*: S1 ('MetaSel ('Just "ptrMap") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map Ptr (CompactForm Coin)))))
type Share IncrementalStake Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

data EpochState era Source #

Constructors

EpochState 

Fields

Instances

Instances details
(EraTxOut era, EraGov era) ⇒ ToJSON (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Generic (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (EpochState era) ∷ TypeType Source #

Methods

fromEpochState era → Rep (EpochState era) x Source #

toRep (EpochState era) x → EpochState era Source #

(EraTxOut era, Show (GovState era)) ⇒ Show (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

showsPrecIntEpochState era → ShowS Source #

showEpochState era → String Source #

showList ∷ [EpochState era] → ShowS Source #

(EraTxOut era, EraGov era) ⇒ FromCBOR (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

fromCBORDecoder s (EpochState era) Source #

labelProxy (EpochState era) → Text Source #

(EraTxOut era, EraGov era) ⇒ ToCBOR (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toCBOREpochState era → Encoding Source #

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

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

(EraTxOut era, EraGov era) ⇒ DecCBOR (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

decCBORDecoder s (EpochState era) Source #

dropCBORProxy (EpochState era) → Decoder s () Source #

labelProxy (EpochState era) → Text Source #

(EraTxOut era, EncCBOR (GovState era)) ⇒ EncCBOR (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBOREpochState era → Encoding Source #

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

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

Default (LedgerState era) ⇒ Default (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

defEpochState era Source #

(EraTxOut era, NFData (GovState era)) ⇒ NFData (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnfEpochState era → () Source #

(EraTxOut era, Eq (GovState era)) ⇒ Eq (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

(EraTxOut era, NoThunks (GovState era)) ⇒ NoThunks (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (EpochState era) = D1 ('MetaData "EpochState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "EpochState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "esAccountState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AccountState) :*: S1 ('MetaSel ('Just "esLState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (LedgerState era))) :*: (S1 ('MetaSel ('Just "esSnapshots") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SnapShots) :*: S1 ('MetaSel ('Just "esNonMyopic") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonMyopic))))

data AccountState Source #

Constructors

AccountState 

Fields

Instances

Instances details
ToJSON AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Generic AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep AccountStateTypeType Source #

Show AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

DecCBOR AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

EncCBOR AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Default AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

NFData AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnfAccountState → () Source #

Eq AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

NoThunks AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep AccountState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep AccountState = D1 ('MetaData "AccountState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "AccountState" 'PrefixI 'True) (S1 ('MetaSel ('Just "asTreasury") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "asReserves") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))

bbHashShelleyTxSeq era → Hash HASH EraIndependentBlockBody Source #

Hash a given block body

data UtxoEnv era Source #

Constructors

UtxoEnv 

Fields

Instances

Instances details
Generic (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Associated Types

type Rep (UtxoEnv era) ∷ TypeType Source #

Methods

fromUtxoEnv era → Rep (UtxoEnv era) x Source #

toRep (UtxoEnv era) x → UtxoEnv era Source #

Show (PParams era) ⇒ Show (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

showsPrecIntUtxoEnv era → ShowS Source #

showUtxoEnv era → String Source #

showList ∷ [UtxoEnv era] → ShowS Source #

EraPParams era ⇒ DecCBOR (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

decCBORDecoder s (UtxoEnv era) Source #

dropCBORProxy (UtxoEnv era) → Decoder s () Source #

labelProxy (UtxoEnv era) → Text Source #

EraPParams era ⇒ EncCBOR (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

encCBORUtxoEnv era → Encoding Source #

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

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

(Era era, NFData (PParams era)) ⇒ NFData (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

rnfUtxoEnv era → () Source #

Eq (PParams era) ⇒ Eq (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

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

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

type Rep (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type Rep (UtxoEnv era) = D1 ('MetaData "UtxoEnv" "Cardano.Ledger.Shelley.Rules.Utxo" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "UtxoEnv" 'PrefixI 'True) (S1 ('MetaSel ('Just "ueSlot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: (S1 ('MetaSel ('Just "uePParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era)) :*: S1 ('MetaSel ('Just "ueCertState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (CertState era)))))

data SnapEnv era Source #

Constructors

SnapEnv !(LedgerState era) !(PParams era) 

data PoolEnv era Source #

Constructors

PoolEnv !EpochNo !(PParams era) 

Instances

Instances details
Generic (PoolEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

Associated Types

type Rep (PoolEnv era) ∷ TypeType Source #

Methods

fromPoolEnv era → Rep (PoolEnv era) x Source #

toRep (PoolEnv era) x → PoolEnv era Source #

Show (PParams era) ⇒ Show (PoolEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

showsPrecIntPoolEnv era → ShowS Source #

showPoolEnv era → String Source #

showList ∷ [PoolEnv era] → ShowS Source #

EraPParams era ⇒ EncCBOR (PoolEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

encCBORPoolEnv era → Encoding Source #

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

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

NFData (PParams era) ⇒ NFData (PoolEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

rnfPoolEnv era → () Source #

Eq (PParams era) ⇒ Eq (PoolEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

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

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

type Rep (PoolEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type Rep (PoolEnv era) = D1 ('MetaData "PoolEnv" "Cardano.Ledger.Shelley.Rules.Pool" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "PoolEnv" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams era))))

data DelegEnv era Source #

Constructors

DelegEnv 

Fields

Instances

Instances details
Generic (DelegEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Associated Types

type Rep (DelegEnv era) ∷ TypeType Source #

Methods

fromDelegEnv era → Rep (DelegEnv era) x Source #

toRep (DelegEnv era) x → DelegEnv era Source #

Show (PParams era) ⇒ Show (DelegEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Methods

showsPrecIntDelegEnv era → ShowS Source #

showDelegEnv era → String Source #

showList ∷ [DelegEnv era] → ShowS Source #

NFData (PParams era) ⇒ NFData (DelegEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Methods

rnfDelegEnv era → () Source #

Eq (PParams era) ⇒ Eq (DelegEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Methods

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

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

type Rep (DelegEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type Rep (DelegEnv era) = D1 ('MetaData "DelegEnv" "Cardano.Ledger.Shelley.Rules.Deleg" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "DelegEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "slotNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "deCurEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo)) :*: (S1 ('MetaSel ('Just "ptr_") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Ptr) :*: (S1 ('MetaSel ('Just "acnt_") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AccountState) :*: S1 ('MetaSel ('Just "ppDE") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams era))))))

data DelegsEnv era Source #

Constructors

DelegsEnv 

Fields

Instances

Instances details
(Show (Tx era), Show (PParams era)) ⇒ Show (DelegsEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

Methods

showsPrecIntDelegsEnv era → ShowS Source #

showDelegsEnv era → String Source #

showList ∷ [DelegsEnv era] → ShowS Source #

data LedgerEnv era Source #

Instances

Instances details
Generic (LedgerEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Associated Types

type Rep (LedgerEnv era) ∷ TypeType Source #

Methods

fromLedgerEnv era → Rep (LedgerEnv era) x Source #

toRep (LedgerEnv era) x → LedgerEnv era Source #

Show (PParams era) ⇒ Show (LedgerEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

showsPrecIntLedgerEnv era → ShowS Source #

showLedgerEnv era → String Source #

showList ∷ [LedgerEnv era] → ShowS Source #

EraPParams era ⇒ EncCBOR (LedgerEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

encCBORLedgerEnv era → Encoding Source #

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

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

NFData (PParams era) ⇒ NFData (LedgerEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

rnfLedgerEnv era → () Source #

Eq (PParams era) ⇒ Eq (LedgerEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

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

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

type Rep (LedgerEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Rep (LedgerEnv era) = D1 ('MetaData "LedgerEnv" "Cardano.Ledger.Shelley.Rules.Ledger" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "LedgerEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ledgerSlotNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: (S1 ('MetaSel ('Just "ledgerEpochNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe EpochNo)) :*: S1 ('MetaSel ('Just "ledgerIx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxIx))) :*: (S1 ('MetaSel ('Just "ledgerPp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams era)) :*: (S1 ('MetaSel ('Just "ledgerAccount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AccountState) :*: S1 ('MetaSel ('Just "ledgerMempool") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))

data ShelleyLedgersEnv era Source #

Instances

Instances details
Generic (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

Associated Types

type Rep (ShelleyLedgersEnv era) ∷ TypeType Source #

Show (PParamsHKD Identity era) ⇒ Show (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

(Era era, EncCBOR (PParamsHKD Identity era)) ⇒ EncCBOR (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

Methods

encCBORShelleyLedgersEnv era → Encoding Source #

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

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

NFData (PParamsHKD Identity era) ⇒ NFData (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

Methods

rnfShelleyLedgersEnv era → () Source #

Eq (PParamsHKD Identity era) ⇒ Eq (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type Rep (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type Rep (ShelleyLedgersEnv era) = D1 ('MetaData "ShelleyLedgersEnv" "Cardano.Ledger.Shelley.Rules.Ledgers" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "LedgersEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ledgersSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "ledgersEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo)) :*: (S1 ('MetaSel ('Just "ledgersPp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era)) :*: S1 ('MetaSel ('Just "ledgersAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccountState))))