cardano-ledger-shelley-1.20.0.0: Shelley Ledger Executable Model
Safe HaskellNone
LanguageHaskell2010

Cardano.Ledger.Shelley.API.Types

Synopsis

Documentation

data Metadatum Source #

A generic metadatum type.

Constructors

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

Instances

Instances details
FromJSON Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

ToJSON 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

NFData Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Methods

rnf ∷ Metadatum → () #

Generic Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Methods

from ∷ Metadatum → Rep Metadatum x #

to ∷ Rep Metadatum x → Metadatum #

Show Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Methods

showsPrec ∷ Int → Metadatum → ShowS #

show ∷ Metadatum → String #

showList ∷ [Metadatum] → ShowS #

Eq Metadatum 
Instance details

Defined in Cardano.Ledger.Metadata

Methods

(==) ∷ Metadatum → Metadatum → Bool #

(/=) ∷ Metadatum → Metadatum → Bool #

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 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.

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

FromCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBOR ∷ Network → Encoding Source #

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

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

DecCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Default Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

def ∷ Network Source #

NFData Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf ∷ Network → () #

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 Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Network = D1 ('MetaData "Network" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 ∷ Type → Type))

Methods

from ∷ Network → Rep Network x #

to ∷ Rep Network x → Network #

Show Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrec ∷ Int → Network → ShowS #

show ∷ Network → String #

showList ∷ [Network] → ShowS #

Eq Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) ∷ Network → Network → Bool #

(/=) ∷ Network → Network → Bool #

Ord Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare ∷ Network → Network → Ordering #

(<) ∷ Network → Network → Bool #

(<=) ∷ Network → Network → Bool #

(>) ∷ Network → Network → Bool #

(>=) ∷ Network → Network → Bool #

max ∷ Network → Network → Network #

min ∷ Network → Network → Network #

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.22.0.0-inplace" 'False) (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 ∷ Type → Type))

data Ptr Source #

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

Constructors

Ptr !SlotNo32 !TxIx !CertIx 

Instances

Instances details
ToJSON Ptr 
Instance details

Defined in Cardano.Ledger.Credential

ToJSONKey Ptr 
Instance details

Defined in Cardano.Ledger.Credential

DecCBOR Ptr 
Instance details

Defined in Cardano.Ledger.Credential

EncCBOR Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

encCBOR ∷ Ptr → Encoding Source #

DecCBORGroup Ptr 
Instance details

Defined in Cardano.Ledger.Credential

EncCBORGroup Ptr 
Instance details

Defined in Cardano.Ledger.Credential

ToKeyValuePairs Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ Ptr → [kv] Source #

NFData Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnf ∷ Ptr → () #

Generic Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep Ptr 
Instance details

Defined in Cardano.Ledger.Credential

type Rep Ptr = D1 ('MetaData "Ptr" "Cardano.Ledger.Credential" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "Ptr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 SlotNo32) :*: (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 TxIx) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 CertIx))))

Methods

from ∷ Ptr → Rep Ptr x #

to ∷ Rep Ptr x → Ptr #

Show Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

showsPrec ∷ Int → Ptr → ShowS #

show ∷ Ptr → String #

showList ∷ [Ptr] → ShowS #

Eq Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

(==) ∷ Ptr → Ptr → Bool #

(/=) ∷ Ptr → Ptr → Bool #

Ord Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

compare ∷ Ptr → Ptr → Ordering #

(<) ∷ Ptr → Ptr → Bool #

(<=) ∷ Ptr → Ptr → Bool #

(>) ∷ Ptr → Ptr → Bool #

(>=) ∷ Ptr → Ptr → Bool #

max ∷ Ptr → Ptr → Ptr #

min ∷ Ptr → Ptr → Ptr #

NoThunks Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Uniform Ptr 
Instance details

Defined in Cardano.Ledger.Credential

Methods

uniformM ∷ StatefulGen g m ⇒ g → m Ptr Source #

type Rep Ptr 
Instance details

Defined in Cardano.Ledger.Credential

type Rep Ptr = D1 ('MetaData "Ptr" "Cardano.Ledger.Credential" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "Ptr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 SlotNo32) :*: (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 TxIx) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 CertIx))))

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

DecCBOR Addr 
Instance details

Defined in Cardano.Ledger.Address

EncCBOR Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

encCBOR ∷ Addr → Encoding Source #

NFData Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

rnf ∷ Addr → () #

Generic Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

from ∷ Addr → Rep Addr x #

to ∷ Rep Addr x → Addr #

Show Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

showsPrec ∷ Int → Addr → ShowS #

show ∷ Addr → String #

showList ∷ [Addr] → ShowS #

Eq Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

(==) ∷ Addr → Addr → Bool #

(/=) ∷ Addr → Addr → Bool #

Ord Addr 
Instance details

Defined in Cardano.Ledger.Address

Methods

compare ∷ Addr → Addr → Ordering #

(<) ∷ Addr → Addr → Bool #

(<=) ∷ Addr → Addr → Bool #

(>) ∷ Addr → Addr → Bool #

(>=) ∷ Addr → Addr → Bool #

max ∷ Addr → Addr → Addr #

min ∷ Addr → Addr → Addr #

NoThunks Addr 
Instance details

Defined in Cardano.Ledger.Address

type Rep Addr 
Instance details

Defined in Cardano.Ledger.Address

data Block h era Source #

Constructors

Block 

Fields

Instances

Instances details
(DecCBOR (Annotator h), Typeable h) ⇒ DecCBOR (Annotator (Block h ShelleyEra)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Block

(EncCBOR h, Typeable h) ⇒ ToCBOR (Block h ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Block

Methods

toCBOR ∷ Block h ShelleyEra → Encoding Source #

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

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

EncCBOR h ⇒ EncCBOR (Block h ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Block

(NFData h, NFData (BlockBody era)) ⇒ NFData (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Methods

rnf ∷ Block h era → () #

Generic (Block h era) 
Instance details

Defined in Cardano.Ledger.Block

Associated Types

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.22.0.0-inplace" 'False) (C1 ('MetaCons "Block" 'PrefixI 'True) (S1 ('MetaSel ('Just "blockHeader") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 h) :*: S1 ('MetaSel ('Just "blockBody") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (BlockBody era))))

Methods

from ∷ Block h era → Rep (Block h era) x #

to ∷ Rep (Block h era) x → Block h era #

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

Defined in Cardano.Ledger.Block

Methods

showsPrec ∷ Int → Block h era → ShowS #

show ∷ Block h era → String #

showList ∷ [Block h era] → ShowS #

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

Defined in Cardano.Ledger.Block

Methods

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

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

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

Defined in Cardano.Ledger.Block

Methods

noThunks ∷ Context → Block h era → IO (Maybe ThunkInfo) Source #

wNoThunks ∷ Context → Block h era → IO (Maybe ThunkInfo) Source #

showTypeOf ∷ Proxy (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.22.0.0-inplace" 'False) (C1 ('MetaCons "Block" 'PrefixI 'True) (S1 ('MetaSel ('Just "blockHeader") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 h) :*: S1 ('MetaSel ('Just "blockBody") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (BlockBody era))))

data StrictMaybe a Source #

Constructors

SNothing 
SJust !a 

Instances

Instances details
Eq1 StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

liftEq ∷ (a → b → Bool) → StrictMaybe a → StrictMaybe b → Bool #

Ord1 StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

liftCompare ∷ (a → b → Ordering) → StrictMaybe a → StrictMaybe b → Ordering #

Read1 StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

liftReadsPrec ∷ (Int → ReadS a) → ReadS [a] → Int → ReadS (StrictMaybe a) #

liftReadList ∷ (Int → ReadS a) → ReadS [a] → ReadS [StrictMaybe a] #

liftReadPrec ∷ ReadPrec a → ReadPrec [a] → ReadPrec (StrictMaybe a) #

liftReadListPrec ∷ ReadPrec a → ReadPrec [a] → ReadPrec [StrictMaybe a] #

Show1 StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

liftShowsPrec ∷ (Int → a → ShowS) → ([a] → ShowS) → Int → StrictMaybe a → ShowS #

liftShowList ∷ (Int → a → ShowS) → ([a] → ShowS) → [StrictMaybe a] → ShowS #

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

HKDSemialign StrictMaybe 
Instance details

Defined in Cardano.Ledger.HKD

Methods

hkdAlignWith ∷ proxy StrictMaybe → (a → c) → (b → c) → (a → b → c) → HKD StrictMaybe a → HKD StrictMaybe b → HKD StrictMaybe c Source #

Alternative StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Applicative StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

pure ∷ a → StrictMaybe a #

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

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

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

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

Functor StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

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

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

Monad StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

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

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

return ∷ a → StrictMaybe a #

MonadFail StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

fail ∷ String → StrictMaybe a #

Foldable StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

fold ∷ Monoid m ⇒ StrictMaybe m → m #

foldMap ∷ Monoid m ⇒ (a → m) → StrictMaybe a → m #

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

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

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

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

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

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

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

toList ∷ StrictMaybe a → [a] #

null ∷ StrictMaybe a → Bool #

length ∷ StrictMaybe a → Int #

elem ∷ Eq a ⇒ a → StrictMaybe a → Bool #

maximum ∷ Ord a ⇒ StrictMaybe a → a #

minimum ∷ Ord a ⇒ StrictMaybe a → a #

sum ∷ Num a ⇒ StrictMaybe a → a #

product ∷ Num a ⇒ StrictMaybe a → a #

Traversable StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

traverse ∷ Applicative f ⇒ (a → f b) → StrictMaybe a → f (StrictMaybe b) #

sequenceA ∷ Applicative f ⇒ StrictMaybe (f a) → f (StrictMaybe a) #

mapM ∷ Monad m ⇒ (a → m b) → StrictMaybe a → m (StrictMaybe b) #

sequence ∷ Monad m ⇒ StrictMaybe (m a) → m (StrictMaybe a) #

FromJSON a ⇒ FromJSON (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

ToJSON a ⇒ ToJSON (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

toCBOR ∷ StrictMaybe 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

ToPlutusData a ⇒ ToPlutusData (StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

Default (StrictMaybe t) 
Instance details

Defined in Data.Maybe.Strict

Methods

def ∷ StrictMaybe t Source #

NFData a ⇒ NFData (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

rnf ∷ StrictMaybe a → () #

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) 
Instance details

Defined in Data.Maybe.Strict

type Rep (StrictMaybe a) = D1 ('MetaData "StrictMaybe" "Data.Maybe.Strict" "cardano-strict-containers-0.1.6.0-3bb10cdd63e39d259fe0050d272bd37cdc2e0eba0d338ea3e57a6888b475dd23" 'False) (C1 ('MetaCons "SNothing" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "SJust" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))

Methods

from ∷ StrictMaybe a → Rep (StrictMaybe a) x #

to ∷ Rep (StrictMaybe a) x → StrictMaybe a #

Read a ⇒ Read (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Show a ⇒ Show (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

showsPrec ∷ Int → StrictMaybe a → ShowS #

show ∷ StrictMaybe a → String #

showList ∷ [StrictMaybe a] → ShowS #

Eq a ⇒ Eq (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

(==) ∷ StrictMaybe a → StrictMaybe a → Bool #

(/=) ∷ StrictMaybe a → StrictMaybe a → Bool #

Ord a ⇒ Ord (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

NoThunks a ⇒ NoThunks (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

NFData (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnf ∷ ShelleyPParams StrictMaybe era → () #

Show (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

applyUpdate ∷ K1 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.6.0-3bb10cdd63e39d259fe0050d272bd37cdc2e0eba0d338ea3e57a6888b475dd23" 'False) (C1 ('MetaCons "SNothing" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "SJust" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))

data Update era Source #

Update Proposal

Constructors

Update !(ProposedPPUpdates era) !EpochNo 

Instances

Instances details
(EraPParams era, FromJSON (PParamsUpdate era)) ⇒ FromJSON (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

EraPParams era ⇒ ToJSON (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

Defined in Cardano.Ledger.Shelley.PParams

Methods

decCBOR ∷ Decoder s (Update era) Source #

dropCBOR ∷ Proxy (Update era) → Decoder s () Source #

label ∷ Proxy (Update era) → Text Source #

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

Defined in Cardano.Ledger.Shelley.PParams

Methods

encCBOR ∷ Update era → Encoding Source #

EraPParams era ⇒ ToKeyValuePairs (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ Update era → [kv] Source #

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

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnf ∷ Update era → () #

Generic (Update era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Associated Types

type Rep (Update era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

Methods

from ∷ Update era → Rep (Update era) x #

to ∷ Rep (Update era) x → Update era #

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

Defined in Cardano.Ledger.Shelley.PParams

Methods

showsPrec ∷ Int → Update era → ShowS #

show ∷ Update era → String #

showList ∷ [Update era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.PParams

Methods

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

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

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.20.0.0-inplace" 'False) (C1 ('MetaCons "Update" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ProposedPPUpdates era)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo)))

newtype KeyHash (r ∷ KeyRole) Source #

Discriminated hash of public Key

Constructors

KeyHash 

Instances

Instances details
HasKeyRole KeyHash 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

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

FromJSON (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

FromJSONKey (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

ToJSON (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

ToJSONKey (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Typeable r ⇒ FromCBOR (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

fromCBOR ∷ Decoder s (KeyHash r) Source #

label ∷ Proxy (KeyHash r) → Text Source #

Typeable r ⇒ ToCBOR (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

toCBOR ∷ KeyHash 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.Keys.Internal

Methods

decCBOR ∷ Decoder s (KeyHash r) Source #

dropCBOR ∷ Proxy (KeyHash r) → Decoder s () Source #

label ∷ Proxy (KeyHash r) → Text Source #

EncCBOR (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

encCBOR ∷ KeyHash r → Encoding Source #

Default (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

def ∷ KeyHash r Source #

NFData (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

rnf ∷ KeyHash r → () #

Storable (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

sizeOf ∷ KeyHash r → Int #

alignment ∷ KeyHash r → Int #

peekElemOff ∷ Ptr (KeyHash r) → Int → IO (KeyHash r) #

pokeElemOff ∷ Ptr (KeyHash r) → Int → KeyHash r → IO () #

peekByteOff ∷ Ptr b → Int → IO (KeyHash r) #

pokeByteOff ∷ Ptr b → Int → KeyHash r → IO () #

peek ∷ Ptr (KeyHash r) → IO (KeyHash r) #

poke ∷ Ptr (KeyHash r) → KeyHash r → IO () #

Generic (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Associated Types

type Rep (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

from ∷ KeyHash r → Rep (KeyHash r) x #

to ∷ Rep (KeyHash r) x → KeyHash r #

Show (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

showsPrec ∷ Int → KeyHash r → ShowS #

show ∷ KeyHash r → String #

showList ∷ [KeyHash r] → ShowS #

Eq (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

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

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

Ord (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

compare ∷ KeyHash r → KeyHash r → Ordering #

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

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

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

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

max ∷ KeyHash r → KeyHash r → KeyHash r #

min ∷ KeyHash r → KeyHash r → KeyHash r #

MemPack (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

NoThunks (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (KeyHash r) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

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

Hash a given public key

data TxIn Source #

The input of a UTxO.

Constructors

TxIn !TxId !TxIx 

Instances

Instances details
FromJSON TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

ToJSON TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

ToJSONKey TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

DecCBOR TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

DecShareCBOR TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Share TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

type Share TxIn = ()
EncCBOR TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

encCBOR ∷ TxIn → Encoding Source #

NFData TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnf ∷ TxIn → () #

Generic TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

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

Methods

from ∷ TxIn → Rep TxIn x #

to ∷ Rep TxIn x → TxIn #

Show TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

showsPrec ∷ Int → TxIn → ShowS #

show ∷ TxIn → String #

showList ∷ [TxIn] → ShowS #

Eq TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

(==) ∷ TxIn → TxIn → Bool #

(/=) ∷ TxIn → TxIn → Bool #

Ord TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

compare ∷ TxIn → TxIn → Ordering #

(<) ∷ TxIn → TxIn → Bool #

(<=) ∷ TxIn → TxIn → Bool #

(>) ∷ TxIn → TxIn → Bool #

(>=) ∷ TxIn → TxIn → Bool #

max ∷ TxIn → TxIn → TxIn #

min ∷ TxIn → TxIn → TxIn #

MemPack TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

NoThunks TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

type Share TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

type Share TxIn = ()
type Rep TxIn 
Instance details

Defined in Cardano.Ledger.TxIn

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

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

DecCBOR TxId 
Instance details

Defined in Cardano.Ledger.TxIn

EncCBOR TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

encCBOR ∷ TxId → Encoding Source #

NFData TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnf ∷ TxId → () #

Generic TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep TxId 
Instance details

Defined in Cardano.Ledger.TxIn

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

Methods

from ∷ TxId → Rep TxId x #

to ∷ Rep TxId x → TxId #

Show TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

showsPrec ∷ Int → TxId → ShowS #

show ∷ TxId → String #

showList ∷ [TxId] → ShowS #

Eq TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

(==) ∷ TxId → TxId → Bool #

(/=) ∷ TxId → TxId → Bool #

Ord TxId 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

compare ∷ TxId → TxId → Ordering #

(<) ∷ TxId → TxId → Bool #

(<=) ∷ TxId → TxId → Bool #

(>) ∷ TxId → TxId → Bool #

(>=) ∷ TxId → TxId → Bool #

max ∷ TxId → TxId → TxId #

min ∷ TxId → TxId → TxId #

MemPack TxId 
Instance details

Defined in Cardano.Ledger.TxIn

NoThunks TxId 
Instance details

Defined in Cardano.Ledger.TxIn

EraTx era ⇒ HasOKey TxId (Tx l era) 
Instance details

Defined in Cardano.Ledger.Core

Methods

toOKey ∷ Tx l era → TxId Source #

EraTxBody era ⇒ HasOKey TxId (TxBody l era) 
Instance details

Defined in Cardano.Ledger.Core

Methods

toOKey ∷ TxBody l era → TxId Source #

type Rep TxId 
Instance details

Defined in Cardano.Ledger.TxIn

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

newtype UTxO era Source #

The unspent transaction outputs.

Constructors

UTxO 

Fields

Instances

Instances details
CanGetUTxO UTxO 
Instance details

Defined in Cardano.Ledger.State.UTxO

Methods

utxoG ∷ SimpleGetter (UTxO era) (UTxO era) Source #

CanSetUTxO UTxO 
Instance details

Defined in Cardano.Ledger.State.UTxO

Methods

utxoL ∷ Lens' (UTxO era) (UTxO era) Source #

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

Defined in Cardano.Ledger.State.UTxO

Methods

toJSON ∷ UTxO era → Value Source #

toEncoding ∷ UTxO era → Encoding Source #

toJSONList ∷ [UTxO era] → Value Source #

toEncodingList ∷ [UTxO era] → Encoding Source #

omitField ∷ UTxO era → Bool Source #

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

Defined in Cardano.Ledger.State.UTxO

Methods

fromCBOR ∷ Decoder s (UTxO era) Source #

label ∷ Proxy (UTxO era) → Text Source #

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

Defined in Cardano.Ledger.State.UTxO

Methods

toCBOR ∷ UTxO 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, DecShareCBOR (TxOut era), Share (TxOut era) ~ Interns (Credential 'Staking)) ⇒ DecCBOR (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

Methods

decCBOR ∷ Decoder s (UTxO era) Source #

dropCBOR ∷ Proxy (UTxO era) → Decoder s () Source #

label ∷ Proxy (UTxO era) → Text Source #

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

Defined in Cardano.Ledger.State.UTxO

Associated Types

type Share (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

Methods

getShare ∷ UTxO era → Share (UTxO era) Source #

decShareCBOR ∷ Share (UTxO era) → Decoder s (UTxO era) Source #

decSharePlusCBOR ∷ StateT (Share (UTxO era)) (Decoder s) (UTxO era) Source #

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

Defined in Cardano.Ledger.State.UTxO

Methods

encCBOR ∷ UTxO era → Encoding Source #

Default (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

Methods

def ∷ UTxO era Source #

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

Defined in Cardano.Ledger.State.UTxO

Methods

rnf ∷ UTxO era → () #

Era era ⇒ Monoid (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

Methods

mempty ∷ UTxO era #

mappend ∷ UTxO era → UTxO era → UTxO era #

mconcat ∷ [UTxO era] → UTxO era #

Semigroup (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

Methods

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

sconcat ∷ NonEmpty (UTxO era) → UTxO era #

stimes ∷ Integral b ⇒ b → UTxO era → UTxO era #

Generic (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

Associated Types

type Rep (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

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

Methods

from ∷ UTxO era → Rep (UTxO era) x #

to ∷ Rep (UTxO era) x → UTxO era #

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

Defined in Cardano.Ledger.State.UTxO

Methods

showsPrec ∷ Int → UTxO era → ShowS #

show ∷ UTxO era → String #

showList ∷ [UTxO era] → ShowS #

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

Defined in Cardano.Ledger.State.UTxO

Methods

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

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

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

Defined in Cardano.Ledger.State.UTxO

type Share (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

type Rep (UTxO era) 
Instance details

Defined in Cardano.Ledger.State.UTxO

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

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

FromCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBOR ∷ ProtVer → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ProtVer → Size 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

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

rnf ∷ ProtVer → () #

Generic ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

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

Methods

from ∷ ProtVer → Rep ProtVer x #

to ∷ Rep ProtVer x → ProtVer #

Show ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrec ∷ Int → ProtVer → ShowS #

show ∷ ProtVer → String #

showList ∷ [ProtVer] → ShowS #

Eq ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) ∷ ProtVer → ProtVer → Bool #

(/=) ∷ ProtVer → ProtVer → Bool #

Ord ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare ∷ ProtVer → ProtVer → Ordering #

(<) ∷ ProtVer → ProtVer → Bool #

(<=) ∷ ProtVer → ProtVer → Bool #

(>) ∷ ProtVer → ProtVer → Bool #

(>=) ∷ ProtVer → ProtVer → Bool #

max ∷ ProtVer → ProtVer → ProtVer #

min ∷ ProtVer → ProtVer → ProtVer #

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.22.0.0-inplace" 'False) (C1 ('MetaCons "ProtVer" 'PrefixI 'True) (S1 ('MetaSel ('Just "pvMajor") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Version) :*: S1 ('MetaSel ('Just "pvMinor") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word32)))

data family TxBody (l ∷ TxLevel) era Source #

The body of a transaction.

Instances

Instances details
HasEraTxLevel TxBody ShelleyEra Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). TxBody l ShelleyEra → STxLevel l ShelleyEra Source #

EraTxBody era ⇒ HasOKey TxId (TxBody l era) 
Instance details

Defined in Cardano.Ledger.Core

Methods

toOKey ∷ TxBody l era → TxId Source #

Typeable l ⇒ DecCBOR (Annotator (TxBody l ShelleyEra)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

FromJSON (TxBody 'TopTx ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

ToJSON (TxBody 'TopTx ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Typeable l ⇒ ToCBOR (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

toCBOR ∷ TxBody l ShelleyEra → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (TxBody l ShelleyEra) → Size Source #

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

EncCBOR (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

ToKeyValuePairs (TxBody 'TopTx ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ TxBody 'TopTx ShelleyEra → [kv] Source #

SafeToHash (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

EqRaw (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Memoized (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

type RawType (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

NFData (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnf ∷ TxBody l ShelleyEra → () #

Generic (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

type Rep (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (TxBody l ShelleyEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Shelley.TxBody" "cardano-ledger-shelley-1.20.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (ShelleyTxBodyRaw l ShelleyEra)))))
Show (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Eq (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Typeable l ⇒ NoThunks (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

HashAnnotated (TxBody l ShelleyEra) EraIndependentTxBody Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

newtype TxBody l ShelleyEra Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type RawType (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (TxBody l ShelleyEra) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (TxBody l ShelleyEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Shelley.TxBody" "cardano-ledger-shelley-1.20.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (ShelleyTxBodyRaw l ShelleyEra)))))

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.State.PoolDistr

DecCBOR PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

EncCBOR PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

Default PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

Methods

def ∷ PoolDistr Source #

NFData PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

Methods

rnf ∷ PoolDistr → () #

Generic PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

Associated Types

type Rep PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

type Rep PoolDistr = D1 ('MetaData "PoolDistr" "Cardano.Ledger.State.PoolDistr" "cardano-ledger-core-1.22.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 'DecidedStrict) (Rec0 (NonZero Coin))))

Methods

from ∷ PoolDistr → Rep PoolDistr x #

to ∷ Rep PoolDistr x → PoolDistr #

Show PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

Methods

showsPrec ∷ Int → PoolDistr → ShowS #

show ∷ PoolDistr → String #

showList ∷ [PoolDistr] → ShowS #

Eq PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

Methods

(==) ∷ PoolDistr → PoolDistr → Bool #

(/=) ∷ PoolDistr → PoolDistr → Bool #

NoThunks PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

type Rep PoolDistr 
Instance details

Defined in Cardano.Ledger.State.PoolDistr

type Rep PoolDistr = D1 ('MetaData "PoolDistr" "Cardano.Ledger.State.PoolDistr" "cardano-ledger-core-1.22.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 'DecidedStrict) (Rec0 (NonZero Coin))))

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 #

Typeable kd ⇒ DecCBOR (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

decCBOR ∷ Decoder s (VKey kd) Source #

dropCBOR ∷ Proxy (VKey kd) → Decoder s () Source #

label ∷ Proxy (VKey kd) → Text Source #

EncCBOR (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

encCBOR ∷ VKey kd → Encoding Source #

NFData (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

rnf ∷ VKey kd → () #

Generic (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Associated Types

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.22.0.0-inplace" 'True) (C1 ('MetaCons "VKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VerKeyDSIGN DSIGN))))

Methods

from ∷ VKey kd → Rep (VKey kd) x #

to ∷ Rep (VKey kd) x → VKey kd #

Show (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

showsPrec ∷ Int → VKey kd → ShowS #

show ∷ VKey kd → String #

showList ∷ [VKey kd] → ShowS #

Eq (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

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

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

Ord (VKey kd) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

compare ∷ VKey kd → VKey kd → Ordering #

(<) ∷ VKey kd → VKey kd → Bool #

(<=) ∷ VKey kd → VKey kd → Bool #

(>) ∷ VKey kd → VKey kd → Bool #

(>=) ∷ VKey kd → VKey kd → Bool #

max ∷ VKey kd → VKey kd → VKey kd #

min ∷ VKey kd → VKey kd → VKey kd #

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.22.0.0-inplace" 'True) (C1 ('MetaCons "VKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VerKeyDSIGN DSIGN))))

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 GenDelegs Source #

Instances

Instances details
FromJSON GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSON 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

NFData GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnf ∷ GenDelegs → () #

Generic GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

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

Methods

from ∷ GenDelegs → Rep GenDelegs x #

to ∷ Rep GenDelegs x → GenDelegs #

Show GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

showsPrec ∷ Int → GenDelegs → ShowS #

show ∷ GenDelegs → String #

showList ∷ [GenDelegs] → ShowS #

Eq GenDelegs 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

(==) ∷ GenDelegs → GenDelegs → Bool #

(/=) ∷ GenDelegs → GenDelegs → Bool #

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.22.0.0-inplace" 'True) (C1 ('MetaCons "GenDelegs" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGenDelegs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (KeyHash 'GenesisRole) GenDelegPair))))

data GenDelegPair Source #

Instances

Instances details
FromJSON GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSON 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

rnf ∷ GenDelegPair → () #

Generic GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep GenDelegPair = D1 ('MetaData "GenDelegPair" "Cardano.Ledger.Hashes" "cardano-ledger-core-1.22.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))))
Show GenDelegPair 
Instance details

Defined in Cardano.Ledger.Hashes

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.22.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 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

ToCBOR ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

toCBOR ∷ ScriptHash → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ScriptHash → Size 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

NFData ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnf ∷ ScriptHash → () #

Storable ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Generic ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep ScriptHash = D1 ('MetaData "ScriptHash" "Cardano.Ledger.Hashes" "cardano-ledger-core-1.22.0.0-inplace" 'True) (C1 ('MetaCons "ScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash ADDRHASH EraIndependentScript))))
Show ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Eq ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

(==) ∷ ScriptHash → ScriptHash → Bool #

(/=) ∷ ScriptHash → ScriptHash → Bool #

Ord ScriptHash 
Instance details

Defined in Cardano.Ledger.Hashes

MemPack 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.22.0.0-inplace" 'True) (C1 ('MetaCons "ScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash ADDRHASH EraIndependentScript))))

data WitVKey (kr ∷ KeyRole) where Source #

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

Bundled Patterns

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

Instances

Instances details
Typeable kr ⇒ FromJSON (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

ToJSON (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Typeable kr ⇒ DecCBOR (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

decCBOR ∷ Decoder s (WitVKey kr) Source #

dropCBOR ∷ Proxy (WitVKey kr) → Decoder s () Source #

label ∷ Proxy (WitVKey kr) → Text Source #

EncCBOR (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

encCBOR ∷ WitVKey kr → Encoding Source #

NFData (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

rnf ∷ WitVKey kr → () #

Generic (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Associated Types

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.22.0.0-inplace" 'False) (C1 ('MetaCons "WitVKeyInternal" 'PrefixI 'True) (S1 ('MetaSel ('Just "wvkKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey kr)) :*: (S1 ('MetaSel ('Just "wvkSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody))) :*: S1 ('MetaSel ('Just "wvkKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'Witness)))))

Methods

from ∷ WitVKey kr → Rep (WitVKey kr) x #

to ∷ Rep (WitVKey kr) x → WitVKey kr #

Show (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

showsPrec ∷ Int → WitVKey kr → ShowS #

show ∷ WitVKey kr → String #

showList ∷ [WitVKey kr] → ShowS #

Eq (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

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

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

Typeable kr ⇒ Ord (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

compare ∷ WitVKey kr → WitVKey kr → Ordering #

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

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

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

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

max ∷ WitVKey kr → WitVKey kr → WitVKey kr #

min ∷ WitVKey kr → WitVKey kr → WitVKey kr #

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.22.0.0-inplace" 'False) (C1 ('MetaCons "WitVKeyInternal" 'PrefixI 'True) (S1 ('MetaSel ('Just "wvkKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey kr)) :*: (S1 ('MetaSel ('Just "wvkSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody))) :*: S1 ('MetaSel ('Just "wvkKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'Witness)))))

data BootstrapWitness Source #

Instances

Instances details
FromJSON BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

ToJSON BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

DecCBOR BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

EncCBOR BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

NFData BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

Methods

rnf ∷ BootstrapWitness → () #

Generic BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

Associated Types

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.22.0.0-inplace" 'False) (C1 ('MetaCons "BootstrapWitness" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bwKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey 'Witness)) :*: S1 ('MetaSel ('Just "bwSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "bwChainCode") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ChainCode) :*: S1 ('MetaSel ('Just "bwAttributes") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByteArray))))
Show BootstrapWitness 
Instance details

Defined in Cardano.Ledger.Keys.Bootstrap

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

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.22.0.0-inplace" 'False) (C1 ('MetaCons "BootstrapWitness" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bwKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey 'Witness)) :*: S1 ('MetaSel ('Just "bwSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "bwChainCode") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ChainCode) :*: S1 ('MetaSel ('Just "bwAttributes") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByteArray))))

data CertIx Source #

Certificate index. There is mkCertIxPartial that can be used for testing when constructing from other integral types that are larger than Word16

Instances

Instances details
ToJSON CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR ∷ CertIx → Encoding Source #

NFData CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf ∷ CertIx → () #

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

Methods

showsPrec ∷ Int → CertIx → ShowS #

show ∷ CertIx → String #

showList ∷ [CertIx] → ShowS #

Eq CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) ∷ CertIx → CertIx → Bool #

(/=) ∷ CertIx → CertIx → Bool #

Ord CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare ∷ CertIx → CertIx → Ordering #

(<) ∷ CertIx → CertIx → Bool #

(<=) ∷ CertIx → CertIx → Bool #

(>) ∷ CertIx → CertIx → Bool #

(>=) ∷ CertIx → CertIx → Bool #

max ∷ CertIx → CertIx → CertIx #

min ∷ CertIx → CertIx → CertIx #

NoThunks CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Random CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

randomR ∷ RandomGen g ⇒ (CertIx, CertIx) → g → (CertIx, g) Source #

random ∷ RandomGen g ⇒ g → (CertIx, g) Source #

randomRs ∷ RandomGen g ⇒ (CertIx, CertIx) → g → [CertIx] Source #

randoms ∷ RandomGen g ⇒ g → [CertIx] Source #

Uniform CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

uniformM ∷ StatefulGen g m ⇒ g → m CertIx Source #

UniformRange CertIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

uniformRM ∷ StatefulGen g m ⇒ (CertIx, CertIx) → g → m CertIx Source #

isInRange ∷ (CertIx, CertIx) → CertIx → Bool Source #

data TxIx Source #

Transaction index.

Instances

Instances details
ToJSON TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR ∷ TxIx → Encoding Source #

NFData TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf ∷ TxIx → () #

Bounded TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

minBound ∷ TxIx #

maxBound ∷ TxIx #

Enum TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

succ ∷ TxIx → TxIx #

pred ∷ TxIx → TxIx #

toEnum ∷ Int → TxIx #

fromEnum ∷ TxIx → Int #

enumFrom ∷ TxIx → [TxIx] #

enumFromThen ∷ TxIx → TxIx → [TxIx] #

enumFromTo ∷ TxIx → TxIx → [TxIx] #

enumFromThenTo ∷ TxIx → TxIx → TxIx → [TxIx] #

Generic TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

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

Methods

from ∷ TxIx → Rep TxIx x #

to ∷ Rep TxIx x → TxIx #

Show TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrec ∷ Int → TxIx → ShowS #

show ∷ TxIx → String #

showList ∷ [TxIx] → ShowS #

Eq TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) ∷ TxIx → TxIx → Bool #

(/=) ∷ TxIx → TxIx → Bool #

Ord TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare ∷ TxIx → TxIx → Ordering #

(<) ∷ TxIx → TxIx → Bool #

(<=) ∷ TxIx → TxIx → Bool #

(>) ∷ TxIx → TxIx → Bool #

(>=) ∷ TxIx → TxIx → Bool #

max ∷ TxIx → TxIx → TxIx #

min ∷ TxIx → TxIx → TxIx #

MemPack TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Random TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

randomR ∷ RandomGen g ⇒ (TxIx, TxIx) → g → (TxIx, g) Source #

random ∷ RandomGen g ⇒ g → (TxIx, g) Source #

randomRs ∷ RandomGen g ⇒ (TxIx, TxIx) → g → [TxIx] Source #

randoms ∷ RandomGen g ⇒ g → [TxIx] Source #

Uniform TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

uniformM ∷ StatefulGen g m ⇒ g → m TxIx Source #

UniformRange TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

uniformRM ∷ StatefulGen g m ⇒ (TxIx, TxIx) → g → m TxIx Source #

isInRange ∷ (TxIx, TxIx) → TxIx → Bool Source #

type Rep TxIx 
Instance details

Defined in Cardano.Ledger.BaseTypes

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

data Globals Source #

Constructors

Globals 

Fields

Instances

Instances details
DecCBOR Pulser Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

EncCBOR Pulser Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

encCBOR ∷ Pulser → Encoding Source #

NFData Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf ∷ Globals → () #

NFData Pulser Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

rnf ∷ Pulser → () #

Generic Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

from ∷ Globals → Rep Globals x #

to ∷ Rep Globals x → Globals #

Show Globals 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrec ∷ Int → Globals → ShowS #

show ∷ Globals → String #

showList ∷ [Globals] → ShowS #

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

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

DecCBOR Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR ∷ Port → Encoding Source #

NFData Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf ∷ Port → () #

Generic Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

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

Methods

from ∷ Port → Rep Port x #

to ∷ Rep Port x → Port #

Num Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(+) ∷ Port → Port → Port #

(-) ∷ Port → Port → Port #

(*) ∷ Port → Port → Port #

negate ∷ Port → Port #

abs ∷ Port → Port #

signum ∷ Port → Port #

fromInteger ∷ Integer → Port #

Show Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrec ∷ Int → Port → ShowS #

show ∷ Port → String #

showList ∷ [Port] → ShowS #

Eq Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) ∷ Port → Port → Bool #

(/=) ∷ Port → Port → Bool #

Ord Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare ∷ Port → Port → Ordering #

(<) ∷ Port → Port → Bool #

(<=) ∷ Port → Port → Bool #

(>) ∷ Port → Port → Bool #

(>=) ∷ Port → Port → Bool #

max ∷ Port → Port → Port #

min ∷ Port → Port → Port #

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.22.0.0-inplace" 'True) (C1 ('MetaCons "Port" 'PrefixI 'True) (S1 ('MetaSel ('Just "portToWord16") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

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

DecCBOR Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR ∷ Nonce → Encoding Source #

ToPlutusData Nonce 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

NFData Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf ∷ Nonce → () #

Generic Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Nonce = D1 ('MetaData "Nonce" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "Nonce" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash Blake2b_256 Nonce))) :+: C1 ('MetaCons "NeutralNonce" 'PrefixI 'False) (U1 ∷ Type → Type))

Methods

from ∷ Nonce → Rep Nonce x #

to ∷ Rep Nonce x → Nonce #

Show Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrec ∷ Int → Nonce → ShowS #

show ∷ Nonce → String #

showList ∷ [Nonce] → ShowS #

Eq Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) ∷ Nonce → Nonce → Bool #

(/=) ∷ Nonce → Nonce → Bool #

Ord Nonce 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare ∷ Nonce → Nonce → Ordering #

(<) ∷ Nonce → Nonce → Bool #

(<=) ∷ Nonce → Nonce → Bool #

(>) ∷ Nonce → Nonce → Bool #

(>=) ∷ Nonce → Nonce → Bool #

max ∷ Nonce → Nonce → Nonce #

min ∷ Nonce → Nonce → Nonce #

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.22.0.0-inplace" 'False) (C1 ('MetaCons "Nonce" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash Blake2b_256 Nonce))) :+: C1 ('MetaCons "NeutralNonce" 'PrefixI 'False) (U1 ∷ Type → Type))

data StakeReference Source #

Instances

Instances details
ToJSON StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

NFData StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnf ∷ StakeReference → () #

Generic StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

type Rep StakeReference = D1 ('MetaData "StakeReference" "Cardano.Ledger.Credential" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "StakeRefBase" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'Staking))) :+: (C1 ('MetaCons "StakeRefPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Ptr)) :+: C1 ('MetaCons "StakeRefNull" 'PrefixI 'False) (U1 ∷ Type → Type)))
Show StakeReference 
Instance details

Defined in Cardano.Ledger.Credential

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.22.0.0-inplace" 'False) (C1 ('MetaCons "StakeRefBase" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'Staking))) :+: (C1 ('MetaCons "StakeRefPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Ptr)) :+: C1 ('MetaCons "StakeRefNull" 'PrefixI 'False) (U1 ∷ Type → Type)))

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

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

toCBOR ∷ Credential 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

EncCBOR (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

encCBOR ∷ Credential kr → Encoding Source #

Default (Credential r) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

def ∷ Credential r Source #

NFData (Credential r) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnf ∷ Credential r → () #

Storable (Credential r) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

sizeOf ∷ Credential r → Int #

alignment ∷ Credential r → Int #

peekElemOff ∷ Ptr (Credential r) → Int → IO (Credential r) #

pokeElemOff ∷ Ptr (Credential r) → Int → Credential r → IO () #

peekByteOff ∷ Ptr b → Int → IO (Credential r) #

pokeByteOff ∷ Ptr b → Int → Credential r → IO () #

peek ∷ Ptr (Credential r) → IO (Credential r) #

poke ∷ Ptr (Credential r) → Credential r → IO () #

Generic (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

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.22.0.0-inplace" 'False) (C1 ('MetaCons "ScriptHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptHash)) :+: C1 ('MetaCons "KeyHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash kr))))

Methods

from ∷ Credential kr → Rep (Credential kr) x #

to ∷ Rep (Credential kr) x → Credential kr #

Show (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

showsPrec ∷ Int → Credential kr → ShowS #

show ∷ Credential kr → String #

showList ∷ [Credential kr] → ShowS #

Eq (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

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

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

Ord (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

compare ∷ Credential kr → Credential kr → Ordering #

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

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

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

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

max ∷ Credential kr → Credential kr → Credential kr #

min ∷ Credential kr → Credential kr → Credential kr #

Typeable kr ⇒ MemPack (Credential kr) 
Instance details

Defined in Cardano.Ledger.Credential

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.22.0.0-inplace" 'False) (C1 ('MetaCons "ScriptHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptHash)) :+: C1 ('MetaCons "KeyHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash kr))))

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

FromCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

ToCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

toCBOR ∷ Coin → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy Coin → Size 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

encCBOR ∷ Coin → Encoding Source #

HasZero Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

isZero ∷ Coin → Bool Source #

Compactible Coin 
Instance details

Defined in Cardano.Ledger.Coin

Associated Types

newtype CompactForm Coin 
Instance details

Defined in Cardano.Ledger.Coin

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

rnf ∷ Coin → () #

Monoid Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

mempty ∷ Coin #

mappend ∷ Coin → Coin → Coin #

mconcat ∷ [Coin] → Coin #

Semigroup Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(<>) ∷ Coin → Coin → Coin #

sconcat ∷ NonEmpty Coin → Coin #

stimes ∷ Integral b ⇒ b → Coin → Coin #

Enum Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

succ ∷ Coin → Coin #

pred ∷ Coin → Coin #

toEnum ∷ Int → Coin #

fromEnum ∷ Coin → Int #

enumFrom ∷ Coin → [Coin] #

enumFromThen ∷ Coin → Coin → [Coin] #

enumFromTo ∷ Coin → Coin → [Coin] #

enumFromThenTo ∷ Coin → Coin → Coin → [Coin] #

Generic Coin 
Instance details

Defined in Cardano.Ledger.Coin

Associated Types

type Rep Coin 
Instance details

Defined in Cardano.Ledger.Coin

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

Methods

from ∷ Coin → Rep Coin x #

to ∷ Rep Coin x → Coin #

Show Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

showsPrec ∷ Int → Coin → ShowS #

show ∷ Coin → String #

showList ∷ [Coin] → ShowS #

Eq Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(==) ∷ Coin → Coin → Bool #

(/=) ∷ Coin → Coin → Bool #

Ord Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

compare ∷ Coin → Coin → Ordering #

(<) ∷ Coin → Coin → Bool #

(<=) ∷ Coin → Coin → Bool #

(>) ∷ Coin → Coin → Bool #

(>=) ∷ Coin → Coin → Bool #

max ∷ Coin → Coin → Coin #

min ∷ Coin → Coin → Coin #

Abelian Coin 
Instance details

Defined in Cardano.Ledger.Coin

Group Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

invert ∷ Coin → Coin Source #

(~~) ∷ Coin → Coin → Coin Source #

pow ∷ Integral x ⇒ Coin → x → Coin Source #

NoThunks Coin 
Instance details

Defined in Cardano.Ledger.Coin

PartialOrd Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(<=) ∷ Coin → Coin → Bool Source #

(>=) ∷ Coin → Coin → Bool Source #

(==) ∷ Coin → Coin → Bool Source #

(/=) ∷ Coin → Coin → Bool Source #

(<) ∷ Coin → Coin → Bool Source #

(>) ∷ Coin → Coin → Bool Source #

compare ∷ Coin → Coin → Maybe Ordering Source #

Uniform Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformM ∷ StatefulGen g m ⇒ g → m Coin Source #

UniformRange Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformRM ∷ StatefulGen g m ⇒ (Coin, Coin) → g → m Coin Source #

isInRange ∷ (Coin, Coin) → Coin → Bool Source #

Inject Coin DeltaCoin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

inject ∷ Coin → DeltaCoin Source #

FromJSON (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

ToJSON (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

ToCBOR (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

toCBOR ∷ CompactForm Coin → Encoding 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

HasZero (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

ToPlutusData (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

NFData (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

rnf ∷ CompactForm Coin → () #

Monoid (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Semigroup (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Storable (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Generic (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Associated Types

type Rep (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

type Rep (CompactForm Coin) = D1 ('MetaData "CompactForm" "Cardano.Ledger.Coin" "cardano-ledger-core-1.22.0.0-inplace" 'True) (C1 ('MetaCons "CompactCoin" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCompactCoin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))
Show (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

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

MemPack (CompactForm Coin)

This instance prefixes with a 0 Tag for binary compatibility with compact form of multiassets.

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

uniformM ∷ StatefulGen g m ⇒ g → m (CompactForm Coin) Source #

UniformRange (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

newtype 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.22.0.0-inplace" 'True) (C1 ('MetaCons "Coin" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCoin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))
type Rep (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

type Rep (CompactForm Coin) = D1 ('MetaData "CompactForm" "Cardano.Ledger.Coin" "cardano-ledger-core-1.22.0.0-inplace" 'True) (C1 ('MetaCons "CompactCoin" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCompactCoin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype Withdrawals Source #

This is called wdrl in the spec.

Instances

Instances details
FromJSON Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

ToJSON 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

NFData Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Methods

rnf ∷ Withdrawals → () #

Monoid Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Semigroup Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Generic Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Associated Types

type Rep Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

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

Defined in Cardano.Ledger.Address

Eq Withdrawals 
Instance details

Defined in Cardano.Ledger.Address

Ord 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.22.0.0-inplace" 'True) (C1 ('MetaCons "Withdrawals" 'PrefixI 'True) (S1 ('MetaSel ('Just "unWithdrawals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map AccountAddress Coin))))

pattern RewardAccount ∷ Network → Credential 'Staking → AccountAddress Source #

Deprecated pattern synonym for backward compatibility

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 ChainAccountState Source #

Instances

Instances details
ToJSON ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

DecCBOR ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

EncCBOR ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

ToKeyValuePairs ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ ChainAccountState → [kv] Source #

Default ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

NFData ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

Methods

rnf ∷ ChainAccountState → () #

Generic ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

Associated Types

type Rep ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

type Rep ChainAccountState = D1 ('MetaData "ChainAccountState" "Cardano.Ledger.State.ChainAccount" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "ChainAccountState" 'PrefixI 'True) (S1 ('MetaSel ('Just "casTreasury") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "casReserves") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))
Show ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

Eq ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

NoThunks ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

type Rep ChainAccountState 
Instance details

Defined in Cardano.Ledger.State.ChainAccount

type Rep ChainAccountState = D1 ('MetaData "ChainAccountState" "Cardano.Ledger.State.ChainAccount" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "ChainAccountState" 'PrefixI 'True) (S1 ('MetaSel ('Just "casTreasury") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "casReserves") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))

data StakePoolParams era Source #

A stake pool.

Instances

Instances details
FromJSON (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

ToJSON (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

Era era ⇒ DecCBOR (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

EncCBOR (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

Default (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

Methods

def ∷ StakePoolParams era Source #

NFData (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

Methods

rnf ∷ StakePoolParams era → () #

Generic (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

Methods

from ∷ StakePoolParams era → Rep (StakePoolParams era) x #

to ∷ Rep (StakePoolParams era) x → StakePoolParams era #

Show (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

Methods

showsPrec ∷ Int → StakePoolParams era → ShowS #

show ∷ StakePoolParams era → String #

showList ∷ [StakePoolParams era] → ShowS #

Eq (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

Methods

(==) ∷ StakePoolParams era → StakePoolParams era → Bool #

(/=) ∷ StakePoolParams era → StakePoolParams era → Bool #

Ord (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

NoThunks (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

type Rep (StakePoolParams era) 
Instance details

Defined in Cardano.Ledger.State.StakePool

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.State.StakePool

ToJSON StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

DecCBOR StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

EncCBOR StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

NFData StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

Methods

rnf ∷ StakePoolRelay → () #

Generic StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

Show StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

Eq StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

Ord StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

NoThunks StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

type Rep StakePoolRelay 
Instance details

Defined in Cardano.Ledger.State.StakePool

data PoolMetadata Source #

Constructors

PoolMetadata 

Fields

Instances

Instances details
FromJSON PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

ToJSON PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

DecCBOR PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

EncCBOR PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

NFData PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

Methods

rnf ∷ PoolMetadata → () #

Generic PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

Associated Types

type Rep PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

type Rep PoolMetadata = D1 ('MetaData "PoolMetadata" "Cardano.Ledger.State.StakePool" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "PoolMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "pmUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "pmHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByteArray)))
Show PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

Eq PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

Ord PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

NoThunks PoolMetadata

Check WHNF by pattern-matching on both fields, since they both are strict, and just contain ByteArray#

Instance details

Defined in Cardano.Ledger.State.StakePool

type Rep PoolMetadata 
Instance details

Defined in Cardano.Ledger.State.StakePool

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

data PoolCert era Source #

Constructors

RegPool !(StakePoolParams era)

A stake pool registration certificate.

RetirePool !(KeyHash 'StakePool) !EpochNo

A stake pool retirement certificate.

Instances

Instances details
FromJSON (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

ToJSON (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

NFData (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

rnf ∷ PoolCert era → () #

Generic (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Associated Types

type Rep (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

type Rep (PoolCert era) = D1 ('MetaData "PoolCert" "Cardano.Ledger.Core.TxCert" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "RegPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakePoolParams era))) :+: C1 ('MetaCons "RetirePool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo)))

Methods

from ∷ PoolCert era → Rep (PoolCert era) x #

to ∷ Rep (PoolCert era) x → PoolCert era #

Show (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

showsPrec ∷ Int → PoolCert era → ShowS #

show ∷ PoolCert era → String #

showList ∷ [PoolCert era] → ShowS #

Eq (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

(==) ∷ PoolCert era → PoolCert era → Bool #

(/=) ∷ PoolCert era → PoolCert era → Bool #

Ord (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

compare ∷ PoolCert era → PoolCert era → Ordering #

(<) ∷ PoolCert era → PoolCert era → Bool #

(<=) ∷ PoolCert era → PoolCert era → Bool #

(>) ∷ PoolCert era → PoolCert era → Bool #

(>=) ∷ PoolCert era → PoolCert era → Bool #

max ∷ PoolCert era → PoolCert era → PoolCert era #

min ∷ PoolCert era → PoolCert era → PoolCert era #

NoThunks (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

type Rep (PoolCert era) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

type Rep (PoolCert era) = D1 ('MetaData "PoolCert" "Cardano.Ledger.Core.TxCert" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "RegPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakePoolParams era))) :+: C1 ('MetaCons "RetirePool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo)))

type family AccountState era = (r ∷ Type) | r → era Source #

type family AccountState era = (r ∷ Type) | r → era Source #

class (EraAccounts era, ToJSON (CertState era), EncCBOR (CertState era), DecShareCBOR (CertState era), Share (CertState era) ~ (Interns (Credential 'Staking), Interns (KeyHash 'StakePool), Interns (Credential 'DRepRole), Interns (Credential 'HotCommitteeRole)), Default (CertState era), NoThunks (CertState era), NFData (CertState era), Show (CertState era), Eq (CertState era)) ⇒ EraCertState era where Source #

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

Associated Types

type CertState era = (r ∷ Type) | r → era Source #

Methods

certDStateL ∷ Lens' (CertState era) (DState era) Source #

certPStateL ∷ Lens' (CertState era) (PState era) Source #

obligationCertState ∷ CertState era → Obligations Source #

Calculate total possible refunds in the system that are related to certificates

There is an invariant that the sum of all the fields should be the same as the utxosDeposited field of the UTxOState. Note that this does not depend upon the current values of the Key and Pool deposits of the PParams.

certsTotalDepositsTxBody ∷ PParams era → CertState era → TxBody 'TopTx era → Coin Source #

Compute the total deposits from the Certs of a TxBody.

This is the contribution of a TxBody towards the deposit pot (utxosDeposit field of the UTxOState) of the system

certsTotalRefundsTxBody ∷ ∀ (t ∷ TxLevel). EraTxBody era ⇒ PParams era → Accounts era → TxBody t era → Coin Source #

Compute the total refunds from the Certs of a TxBody.

This is the contribution of a TxBody towards the total Obligations of the system See Obligations and obligationCertState for more information.

type family CertState era = (r ∷ Type) | r → era Source #

Instances

Instances details
type CertState ShelleyEra Source # 
Instance details

Defined in Cardano.Ledger.Shelley.State.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.State.CertState

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

Defined in Cardano.Ledger.State.CertState

Methods

decCBOR ∷ Decoder s (PState era) Source #

dropCBOR ∷ Proxy (PState era) → Decoder s () Source #

label ∷ Proxy (PState era) → Text Source #

Era era ⇒ DecShareCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Associated Types

type Share (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

getShare ∷ PState era → Share (PState era) Source #

decShareCBOR ∷ Share (PState era) → Decoder s (PState era) Source #

decSharePlusCBOR ∷ StateT (Share (PState era)) (Decoder s) (PState era) Source #

Era era ⇒ EncCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

encCBOR ∷ PState era → Encoding Source #

ToKeyValuePairs (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ PState era → [kv] Source #

Default (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

def ∷ PState era Source #

NFData (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

rnf ∷ PState era → () #

Generic (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Associated Types

type Rep (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep (PState era) = D1 ('MetaData "PState" "Cardano.Ledger.State.CertState" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "PState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "psVRFKeyHashes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (VRFVerKeyHash 'StakePoolVRF) (NonZero Word64))) :*: S1 ('MetaSel ('Just "psStakePools") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) StakePoolState))) :*: (S1 ('MetaSel ('Just "psFutureStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) (StakePoolParams era))) :*: S1 ('MetaSel ('Just "psRetiring") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) EpochNo)))))

Methods

from ∷ PState era → Rep (PState era) x #

to ∷ Rep (PState era) x → PState era #

Show (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

showsPrec ∷ Int → PState era → ShowS #

show ∷ PState era → String #

showList ∷ [PState era] → ShowS #

Eq (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

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

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

NoThunks (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Share (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep (PState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep (PState era) = D1 ('MetaData "PState" "Cardano.Ledger.State.CertState" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "PState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "psVRFKeyHashes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (VRFVerKeyHash 'StakePoolVRF) (NonZero Word64))) :*: S1 ('MetaSel ('Just "psStakePools") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) StakePoolState))) :*: (S1 ('MetaSel ('Just "psFutureStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) (StakePoolParams era))) :*: S1 ('MetaSel ('Just "psRetiring") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool) EpochNo)))))

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
CanGetAccounts DState 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

accountsG ∷ SimpleGetter (DState era) (Accounts era) Source #

CanSetAccounts DState 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

accountsL ∷ Lens' (DState era) (Accounts era) Source #

ToJSON (Accounts era) ⇒ ToJSON (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

EraAccounts era ⇒ DecShareCBOR (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Associated Types

type Share (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

getShare ∷ DState era → Share (DState era) Source #

decShareCBOR ∷ Share (DState era) → Decoder s (DState era) Source #

decSharePlusCBOR ∷ StateT (Share (DState era)) (Decoder s) (DState era) Source #

(Era era, EncCBOR (Accounts era)) ⇒ EncCBOR (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

encCBOR ∷ DState era → Encoding Source #

ToJSON (Accounts era) ⇒ ToKeyValuePairs (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ DState era → [kv] Source #

Default (Accounts era) ⇒ Default (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

def ∷ DState era Source #

NFData (Accounts era) ⇒ NFData (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

rnf ∷ DState era → () #

Generic (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Associated Types

type Rep (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep (DState era) = D1 ('MetaData "DState" "Cardano.Ledger.State.CertState" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "DState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dsAccounts") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Accounts era)) :*: 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))))

Methods

from ∷ DState era → Rep (DState era) x #

to ∷ Rep (DState era) x → DState era #

Show (Accounts era) ⇒ Show (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

showsPrec ∷ Int → DState era → ShowS #

show ∷ DState era → String #

showList ∷ [DState era] → ShowS #

Eq (Accounts era) ⇒ Eq (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

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

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

NoThunks (Accounts era) ⇒ NoThunks (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Share (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep (DState era) 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep (DState era) = D1 ('MetaData "DState" "Cardano.Ledger.State.CertState" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "DState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dsAccounts") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Accounts era)) :*: 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))))

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.State.CertState

DecShareCBOR InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

EncCBOR InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

ToKeyValuePairs InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

Default InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

NFData InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

Methods

rnf ∷ InstantaneousRewards → () #

Generic InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

Associated Types

type Rep InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep InstantaneousRewards = D1 ('MetaData "InstantaneousRewards" "Cardano.Ledger.State.CertState" "cardano-ledger-core-1.22.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))))
Show InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

Eq InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

NoThunks InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

type Share InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep InstantaneousRewards 
Instance details

Defined in Cardano.Ledger.State.CertState

type Rep InstantaneousRewards = D1 ('MetaData "InstantaneousRewards" "Cardano.Ledger.State.CertState" "cardano-ledger-core-1.22.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))))

newtype Stake Source #

Type of stake as map from staking credential to coins associated. Any staking credential that has no stake will not appear in this Map, even if it is registered. For this reason, this data type should not be used for infering whether credential is registered or not.

Constructors

Stake 

Instances

Instances details
ToJSON Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

DecShareCBOR Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Associated Types

type Share Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

EncCBOR Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Methods

encCBOR ∷ Stake → Encoding Source #

NFData Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Methods

rnf ∷ Stake → () #

Monoid Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Methods

mempty ∷ Stake #

mappend ∷ Stake → Stake → Stake #

mconcat ∷ [Stake] → Stake #

Semigroup Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Methods

(<>) ∷ Stake → Stake → Stake #

sconcat ∷ NonEmpty Stake → Stake #

stimes ∷ Integral b ⇒ b → Stake → Stake #

Generic Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Associated Types

type Rep Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

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

Methods

from ∷ Stake → Rep Stake x #

to ∷ Rep Stake x → Stake #

Show Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Methods

showsPrec ∷ Int → Stake → ShowS #

show ∷ Stake → String #

showList ∷ [Stake] → ShowS #

Eq Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

Methods

(==) ∷ Stake → Stake → Bool #

(/=) ∷ Stake → Stake → Bool #

NoThunks Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

type Share Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

type Rep Stake 
Instance details

Defined in Cardano.Ledger.State.Stake

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

data SnapShots era 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 era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Era era ⇒ DecCBOR (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

decCBOR ∷ Decoder s (SnapShots era) Source #

dropCBOR ∷ Proxy (SnapShots era) → Decoder s () Source #

label ∷ Proxy (SnapShots era) → Text Source #

DecShareCBOR (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Associated Types

type Share (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

EncCBOR (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

encCBOR ∷ SnapShots era → Encoding Source #

ToKeyValuePairs (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ SnapShots era → [kv] Source #

Default (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

def ∷ SnapShots era Source #

NFData (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

rnf ∷ SnapShots era → () #

Generic (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Associated Types

type Rep (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Rep (SnapShots era) = D1 ('MetaData "SnapShots" "Cardano.Ledger.State.SnapShots" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "SnapShots" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ssStakeMark") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MarkSnapShot) :*: S1 ('MetaSel ('Just "ssStakeMarkPoolDistr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PoolDistr)) :*: (S1 ('MetaSel ('Just "ssStakeSet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SetSnapShot) :*: (S1 ('MetaSel ('Just "ssStakeGo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GoSnapShot) :*: S1 ('MetaSel ('Just "ssFee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))))

Methods

from ∷ SnapShots era → Rep (SnapShots era) x #

to ∷ Rep (SnapShots era) x → SnapShots era #

Show (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

showsPrec ∷ Int → SnapShots era → ShowS #

show ∷ SnapShots era → String #

showList ∷ [SnapShots era] → ShowS #

Eq (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

(==) ∷ SnapShots era → SnapShots era → Bool #

(/=) ∷ SnapShots era → SnapShots era → Bool #

Typeable era ⇒ NoThunks (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Share (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Rep (SnapShots era) 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Rep (SnapShots era) = D1 ('MetaData "SnapShots" "Cardano.Ledger.State.SnapShots" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "SnapShots" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ssStakeMark") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MarkSnapShot) :*: S1 ('MetaSel ('Just "ssStakeMarkPoolDistr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PoolDistr)) :*: (S1 ('MetaSel ('Just "ssStakeSet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SetSnapShot) :*: (S1 ('MetaSel ('Just "ssStakeGo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GoSnapShot) :*: S1 ('MetaSel ('Just "ssFee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))))

data SnapShot Source #

Snapshot of the stake distribution.

Constructors

SnapShot 

Fields

Instances

Instances details
ToJSON SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

DecShareCBOR SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Associated Types

type Share SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

EncCBOR SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

ToKeyValuePairs SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ SnapShot → [kv] Source #

NFData SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

rnf ∷ SnapShot → () #

Generic SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Associated Types

type Rep SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Rep SnapShot = D1 ('MetaData "SnapShot" "Cardano.Ledger.State.SnapShots" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "SnapShot" 'PrefixI 'True) (S1 ('MetaSel ('Just "ssActiveStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ActiveStake) :*: (S1 ('MetaSel ('Just "ssTotalActiveStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonZero Coin)) :*: S1 ('MetaSel ('Just "ssStakePoolsSnapShot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VMap VB VB (KeyHash 'StakePool) StakePoolSnapShot)))))

Methods

from ∷ SnapShot → Rep SnapShot x #

to ∷ Rep SnapShot x → SnapShot #

Show SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

showsPrec ∷ Int → SnapShot → ShowS #

show ∷ SnapShot → String #

showList ∷ [SnapShot] → ShowS #

Eq SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

Methods

(==) ∷ SnapShot → SnapShot → Bool #

(/=) ∷ SnapShot → SnapShot → Bool #

NoThunks SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Share SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Rep SnapShot 
Instance details

Defined in Cardano.Ledger.State.SnapShots

type Rep SnapShot = D1 ('MetaData "SnapShot" "Cardano.Ledger.State.SnapShots" "cardano-ledger-core-1.22.0.0-inplace" 'False) (C1 ('MetaCons "SnapShot" 'PrefixI 'True) (S1 ('MetaSel ('Just "ssActiveStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ActiveStake) :*: (S1 ('MetaSel ('Just "ssTotalActiveStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonZero Coin)) :*: S1 ('MetaSel ('Just "ssStakePoolsSnapShot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VMap VB VB (KeyHash 'StakePool) StakePoolSnapShot)))))

data ShelleyTx (l ∷ TxLevel) era where Source #

Constructors

ShelleyTx 

Fields

Instances

Instances details
(Typeable l, EraTxBody era, EraTxWits era, EraTxAuxData era, STxLevel l era ~ STxTopLevel l era) ⇒ DecCBOR (Annotator (ShelleyTx l era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

(FromJSON (TxBody 'TopTx era), FromJSON (TxWits era), FromJSON (TxAuxData era)) ⇒ FromJSON (ShelleyTx 'TopTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

(ToJSON (TxBody 'TopTx era), ToJSON (TxWits era), ToJSON (TxAuxData era)) ⇒ ToJSON (ShelleyTx 'TopTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

(Era era, EncCBOR (TxWits era), EncCBOR (TxBody l era), EncCBOR (TxAuxData era), Typeable l) ⇒ ToCBOR (ShelleyTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

toCBOR ∷ ShelleyTx l era → Encoding Source #

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

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

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

Defined in Cardano.Ledger.Shelley.Tx

Methods

encCBOR ∷ ShelleyTx l era → Encoding Source #

(ToJSON (TxBody 'TopTx era), ToJSON (TxWits era), ToJSON (TxAuxData era)) ⇒ ToKeyValuePairs (ShelleyTx 'TopTx era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ ShelleyTx 'TopTx era → [kv] Source #

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

Defined in Cardano.Ledger.Shelley.Tx

Methods

rnf ∷ ShelleyTx l era → () #

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

Defined in Cardano.Ledger.Shelley.Tx

Methods

showsPrec ∷ Int → ShelleyTx l era → ShowS #

show ∷ ShelleyTx l era → String #

showList ∷ [ShelleyTx l era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.Tx

Methods

(==) ∷ ShelleyTx l era → ShelleyTx l era → Bool #

(/=) ∷ ShelleyTx l era → ShelleyTx l era → Bool #

(Typeable era, Typeable l) ⇒ NoThunks (ShelleyTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

data ShelleyTxOut era Source #

Constructors

TxOutCompact !CompactAddr !(CompactForm (Value era)) 

Bundled Patterns

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

Instances

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

Defined in Cardano.Ledger.Shelley.TxOut

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

Defined in Cardano.Ledger.Shelley.TxOut

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

Defined in Cardano.Ledger.Shelley.TxOut

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

Defined in Cardano.Ledger.Shelley.TxOut

Associated Types

type Share (ShelleyTxOut era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

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

Defined in Cardano.Ledger.Shelley.TxOut

Methods

encCBOR ∷ ShelleyTxOut era → Encoding Source #

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

Defined in Cardano.Ledger.Shelley.TxOut

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ ShelleyTxOut era → [kv] Source #

NFData (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Methods

rnf ∷ ShelleyTxOut era → () #

Generic (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

Associated Types

type Rep (ShelleyTxOut era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

type Rep (ShelleyTxOut era) = D1 ('MetaData "ShelleyTxOut" "Cardano.Ledger.Shelley.TxOut" "cardano-ledger-shelley-1.20.0.0-inplace" 'False) (C1 ('MetaCons "TxOutCompact" 'PrefixI 'True) (S1 ('MetaSel ('Just "txOutCompactAddr") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 CompactAddr) :*: S1 ('MetaSel ('Just "txOutCompactValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (CompactForm (Value era)))))

Methods

from ∷ ShelleyTxOut era → Rep (ShelleyTxOut era) x #

to ∷ Rep (ShelleyTxOut era) x → ShelleyTxOut era #

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

Defined in Cardano.Ledger.Shelley.TxOut

Methods

showsPrec ∷ Int → ShelleyTxOut era → ShowS #

show ∷ ShelleyTxOut era → String #

showList ∷ [ShelleyTxOut era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.TxOut

Methods

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

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

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

Defined in Cardano.Ledger.Shelley.TxOut

Methods

compare ∷ ShelleyTxOut era → ShelleyTxOut era → Ordering #

(<) ∷ ShelleyTxOut era → ShelleyTxOut era → Bool #

(<=) ∷ ShelleyTxOut era → ShelleyTxOut era → Bool #

(>) ∷ ShelleyTxOut era → ShelleyTxOut era → Bool #

(>=) ∷ ShelleyTxOut era → ShelleyTxOut era → Bool #

max ∷ ShelleyTxOut era → ShelleyTxOut era → ShelleyTxOut era #

min ∷ ShelleyTxOut era → ShelleyTxOut era → ShelleyTxOut era #

(Era era, MemPack (CompactForm (Value era))) ⇒ MemPack (ShelleyTxOut era) Source #

This instance uses a zero Tag for forward compatibility in binary representation with TxOut instances for future eras

Instance details

Defined in Cardano.Ledger.Shelley.TxOut

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

type Rep (ShelleyTxOut era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxOut

type Rep (ShelleyTxOut era) = D1 ('MetaData "ShelleyTxOut" "Cardano.Ledger.Shelley.TxOut" "cardano-ledger-shelley-1.20.0.0-inplace" 'False) (C1 ('MetaCons "TxOutCompact" 'PrefixI 'True) (S1 ('MetaSel ('Just "txOutCompactAddr") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 CompactAddr) :*: S1 ('MetaSel ('Just "txOutCompactValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (CompactForm (Value era)))))

newtype ShelleyTxAuxData era Source #

Bundled Patterns

pattern ShelleyTxAuxData ∷ Era era ⇒ Map Word64 Metadatum → ShelleyTxAuxData era 

Instances

Instances details
Era era ⇒ FromJSON (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Era era ⇒ ToJSON (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

toCBOR ∷ ShelleyTxAuxData 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

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

eqRaw ∷ ShelleyTxAuxData era → ShelleyTxAuxData era → Bool Source #

Memoized (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Associated Types

type RawType (ShelleyTxAuxData era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

NFData (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Methods

rnf ∷ ShelleyTxAuxData era → () #

Generic (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Associated Types

type Rep (ShelleyTxAuxData era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

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

Methods

from ∷ ShelleyTxAuxData era → Rep (ShelleyTxAuxData era) x #

to ∷ Rep (ShelleyTxAuxData era) x → ShelleyTxAuxData era #

Show (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Eq (ShelleyTxAuxData era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxAuxData

Methods

(==) ∷ ShelleyTxAuxData era → ShelleyTxAuxData era → Bool #

(/=) ∷ ShelleyTxAuxData era → ShelleyTxAuxData era → Bool #

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 era) 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.20.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxAuxData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (ShelleyTxAuxDataRaw era)))))

data LedgerState era Source #

The state associated with a Ledger.

Constructors

LedgerState 

Fields

Instances

Instances details
CanGetInstantStake LedgerState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanSetInstantStake LedgerState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanGetUTxO LedgerState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoG ∷ SimpleGetter (LedgerState era) (UTxO era) Source #

CanSetUTxO LedgerState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoL ∷ Lens' (LedgerState era) (UTxO era) Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBOR ∷ LedgerState era → Encoding Source #

(EraTxOut era, EraGov era, EraStake era, EraCertState era) ⇒ ToKeyValuePairs (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ LedgerState era → [kv] Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

def ∷ LedgerState era Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnf ∷ LedgerState era → () #

Generic (LedgerState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (LedgerState era) 
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.20.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))))

Methods

from ∷ LedgerState era → Rep (LedgerState era) x #

to ∷ Rep (LedgerState era) x → LedgerState era #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

showsPrec ∷ Int → LedgerState era → ShowS #

show ∷ LedgerState era → String #

showList ∷ [LedgerState era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Share (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.20.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))))

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
CanGetChainAccountState NewEpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanSetChainAccountState NewEpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanGetInstantStake NewEpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanSetInstantStake NewEpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanGetUTxO NewEpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoG ∷ SimpleGetter (NewEpochState era) (UTxO era) Source #

CanSetUTxO NewEpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoL ∷ Lens' (NewEpochState era) (UTxO era) Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toCBOR ∷ NewEpochState 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, EraStake era, DecCBOR (StashedAVVMAddresses era), EraCertState era) ⇒ DecCBOR (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraStake era, EraGov era, EraCertState era, Default (StashedAVVMAddresses era)) ⇒ Default (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

def ∷ NewEpochState era Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnf ∷ NewEpochState era → () #

Generic (NewEpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

from ∷ NewEpochState era → Rep (NewEpochState era) x #

to ∷ Rep (NewEpochState era) x → NewEpochState era #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

showsPrec ∷ Int → NewEpochState era → ShowS #

show ∷ NewEpochState era → String #

showList ∷ [NewEpochState era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

(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 LedgerEnv era Source #

Instances

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

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

encCBOR ∷ LedgerEnv era → Encoding Source #

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

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

rnf ∷ LedgerEnv era → () #

Generic (LedgerEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Associated Types

type Rep (LedgerEnv era) 
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.20.0.0-inplace" 'False) (C1 ('MetaCons "LedgerEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ledgerSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "ledgerEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EpochNo))) :*: (S1 ('MetaSel ('Just "ledgerIx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxIx) :*: (S1 ('MetaSel ('Just "ledgerPp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era)) :*: S1 ('MetaSel ('Just "ledgerAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainAccountState)))))

Methods

from ∷ LedgerEnv era → Rep (LedgerEnv era) x #

to ∷ Rep (LedgerEnv era) x → LedgerEnv era #

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

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

showsPrec ∷ Int → LedgerEnv era → ShowS #

show ∷ LedgerEnv era → String #

showList ∷ [LedgerEnv era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Methods

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

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

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.20.0.0-inplace" 'False) (C1 ('MetaCons "LedgerEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ledgerSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "ledgerEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EpochNo))) :*: (S1 ('MetaSel ('Just "ledgerIx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxIx) :*: (S1 ('MetaSel ('Just "ledgerPp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era)) :*: S1 ('MetaSel ('Just "ledgerAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainAccountState)))))

type ShelleyDELEG = DELEG Source #

Deprecated: In favor of DELEG

type ShelleyDELEGS = DELEGS Source #

Deprecated: In favor of DELEGS

type ShelleyDELPL = DELPL Source #

Deprecated: In favor of DELPL

type ShelleyLEDGER = LEDGER Source #

Deprecated: In favor of LEDGER

type ShelleyLEDGERS = LEDGERS Source #

Deprecated: In favor of LEDGERS

type ShelleyNEWEPOCH = NEWEPOCH Source #

Deprecated: In favor of NEWEPOCH

type ShelleyPOOL = POOL Source #

Deprecated: In favor of POOL

type ShelleyPOOLREAP = POOLREAP Source #

Deprecated: In favor of POOLREAP

type ShelleyPPUP = PPUP Source #

Deprecated: In favor of PPUP

type ShelleyTICK = TICK Source #

Deprecated: In favor of TICK

type ShelleyTICKF = TICKF Source #

Deprecated: In favor of TICKF

type ShelleyUTXO = UTXO Source #

Deprecated: In favor of UTXO

type ShelleyUTXOW = UTXOW Source #

Deprecated: In favor of UTXOW

data EpochState era Source #

Constructors

EpochState 

Fields

Instances

Instances details
CanGetChainAccountState EpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanSetChainAccountState EpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanGetInstantStake EpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanSetInstantStake EpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanGetUTxO EpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoG ∷ SimpleGetter (EpochState era) (UTxO era) Source #

CanSetUTxO EpochState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoL ∷ Lens' (EpochState era) (UTxO era) Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

fromCBOR ∷ Decoder s (EpochState era) Source #

label ∷ Proxy (EpochState era) → Text Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toCBOR ∷ EpochState 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, EraStake era, EraCertState era) ⇒ DecCBOR (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

decCBOR ∷ Decoder s (EpochState era) Source #

dropCBOR ∷ Proxy (EpochState era) → Decoder s () Source #

label ∷ Proxy (EpochState era) → Text Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBOR ∷ EpochState era → Encoding Source #

(EraTxOut era, EraGov era, EraStake era, EraCertState era) ⇒ ToKeyValuePairs (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ EpochState era → [kv] Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

def ∷ EpochState era Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnf ∷ EpochState era → () #

Generic (EpochState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (EpochState era) 
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.20.0.0-inplace" 'False) (C1 ('MetaCons "EpochState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "esChainAccountState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainAccountState) :*: S1 ('MetaSel ('Just "esLState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (LedgerState era))) :*: (S1 ('MetaSel ('Just "esSnapshots") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SnapShots era)) :*: S1 ('MetaSel ('Just "esNonMyopic") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonMyopic))))

Methods

from ∷ EpochState era → Rep (EpochState era) x #

to ∷ Rep (EpochState era) x → EpochState era #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

showsPrec ∷ Int → EpochState era → ShowS #

show ∷ EpochState era → String #

showList ∷ [EpochState era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

(EraTxOut era, NoThunks (GovState era), NoThunks (CertState era), NoThunks (InstantStake 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.20.0.0-inplace" 'False) (C1 ('MetaCons "EpochState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "esChainAccountState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainAccountState) :*: S1 ('MetaSel ('Just "esLState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (LedgerState era))) :*: (S1 ('MetaSel ('Just "esSnapshots") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SnapShots era)) :*: S1 ('MetaSel ('Just "esNonMyopic") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonMyopic))))

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

DecCBOR RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

EncCBOR RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

ToKeyValuePairs RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ RewardUpdate → [kv] Source #

NFData RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

rnf ∷ RewardUpdate → () #

Generic RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Associated Types

type Rep RewardUpdate 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

type Rep RewardUpdate = D1 ('MetaData "RewardUpdate" "Cardano.Ledger.Shelley.RewardUpdate" "cardano-ledger-shelley-1.20.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)))))
Show RewardUpdate Source # 
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

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.20.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 ShelleyGovState era Source #

Constructors

ShelleyGovState 

Fields

Instances

Instances details
EraPParams era ⇒ ToJSON (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

toCBOR ∷ ShelleyGovState 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

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

Defined in Cardano.Ledger.Shelley.Governance

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

Defined in Cardano.Ledger.Shelley.Governance

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ ShelleyGovState era → [kv] Source #

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

Defined in Cardano.Ledger.Shelley.Governance

Methods

def ∷ ShelleyGovState era Source #

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

Defined in Cardano.Ledger.Shelley.Governance

Methods

rnf ∷ ShelleyGovState era → () #

Generic (ShelleyGovState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

Associated Types

type Rep (ShelleyGovState era) 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

type Rep (ShelleyGovState era) = D1 ('MetaData "ShelleyGovState" "Cardano.Ledger.Shelley.Governance" "cardano-ledger-shelley-1.20.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))))))

Methods

from ∷ ShelleyGovState era → Rep (ShelleyGovState era) x #

to ∷ Rep (ShelleyGovState era) x → ShelleyGovState era #

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

Defined in Cardano.Ledger.Shelley.Governance

Methods

showsPrec ∷ Int → ShelleyGovState era → ShowS #

show ∷ ShelleyGovState era → String #

showList ∷ [ShelleyGovState era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.Governance

Methods

(==) ∷ ShelleyGovState era → ShelleyGovState era → Bool #

(/=) ∷ ShelleyGovState era → ShelleyGovState era → Bool #

(Ord (PParamsUpdate era), Ord (PParams era)) ⇒ Ord (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 Share (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.20.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))))))

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 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 

Instances

Instances details
CanGetInstantStake UTxOState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanSetInstantStake UTxOState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

CanGetUTxO UTxOState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoG ∷ SimpleGetter (UTxOState era) (UTxO era) Source #

CanSetUTxO UTxOState Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

utxoL ∷ Lens' (UTxOState era) (UTxO era) Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBOR ∷ UTxOState era → Encoding Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ UTxOState era → [kv] Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

def ∷ UTxOState era Source #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnf ∷ UTxOState era → () #

Generic (UTxOState era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (UTxOState era) 
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.20.0.0-inplace" 'False) (C1 ('MetaCons "UTxOState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "utxosUtxo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (UTxO era)) :*: (S1 ('MetaSel ('Just "utxosDeposited") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "utxosFees") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :*: (S1 ('MetaSel ('Just "utxosGovState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (GovState era)) :*: (S1 ('MetaSel ('Just "utxosInstantStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (InstantStake era)) :*: S1 ('MetaSel ('Just "utxosDonation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))))

Methods

from ∷ UTxOState era → Rep (UTxOState era) x #

to ∷ Rep (UTxOState era) x → UTxOState era #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

showsPrec ∷ Int → UTxOState era → ShowS #

show ∷ UTxOState era → String #

showList ∷ [UTxOState era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

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

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Share (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.20.0.0-inplace" 'False) (C1 ('MetaCons "UTxOState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "utxosUtxo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (UTxO era)) :*: (S1 ('MetaSel ('Just "utxosDeposited") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "utxosFees") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :*: (S1 ('MetaSel ('Just "utxosGovState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (GovState era)) :*: (S1 ('MetaSel ('Just "utxosInstantStake") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (InstantStake era)) :*: S1 ('MetaSel ('Just "utxosDonation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))))

newtype ProposedPPUpdates era Source #

Update operation for protocol parameters structure PParams

Instances

Instances details
(EraPParams era, FromJSON (PParamsUpdate era)) ⇒ FromJSON (ProposedPPUpdates era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

EraPParams era ⇒ ToJSON (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

toCBOR ∷ ProposedPPUpdates 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

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

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnf ∷ ProposedPPUpdates era → () #

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) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

Methods

from ∷ ProposedPPUpdates era → Rep (ProposedPPUpdates era) x #

to ∷ Rep (ProposedPPUpdates era) x → ProposedPPUpdates era #

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

Defined in Cardano.Ledger.Shelley.PParams

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

Defined in Cardano.Ledger.Shelley.PParams

Ord (PParamsUpdate era) ⇒ Ord (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.20.0.0-inplace" 'True) (C1 ('MetaCons "ProposedPPUpdates" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (KeyHash 'GenesisRole) (PParamsUpdate era)))))

data NonMyopic Source #

Instances

Instances details
ToJSON 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 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

EncCBOR NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

ToKeyValuePairs NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ NonMyopic → [kv] Source #

Default NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

def ∷ NonMyopic Source #

NFData NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

rnf ∷ NonMyopic → () #

Generic NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Associated Types

type Rep NonMyopic 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

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

Methods

from ∷ NonMyopic → Rep NonMyopic x #

to ∷ Rep NonMyopic x → NonMyopic #

Show NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

showsPrec ∷ Int → NonMyopic → ShowS #

show ∷ NonMyopic → String #

showList ∷ [NonMyopic] → ShowS #

Eq NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

Methods

(==) ∷ NonMyopic → NonMyopic → Bool #

(/=) ∷ NonMyopic → NonMyopic → Bool #

NoThunks NonMyopic Source # 
Instance details

Defined in Cardano.Ledger.Shelley.PoolRank

type Share 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.20.0.0-inplace" 'False) (C1 ('MetaCons "NonMyopic" 'PrefixI 'True) (S1 ('MetaSel ('Just "likelihoodsNM") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VMap VB VB (KeyHash 'StakePool) Likelihood)) :*: S1 ('MetaSel ('Just "rewardPotNM") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))

data DelegEnv era Source #

Instances

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

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Methods

rnf ∷ DelegEnv era → () #

Generic (DelegEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Associated Types

type Rep (DelegEnv era) 
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.20.0.0-inplace" 'False) (C1 ('MetaCons "DelegEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "slotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "deCurEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo)) :*: (S1 ('MetaSel ('Just "ptr_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ptr) :*: (S1 ('MetaSel ('Just "deChainAccountState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainAccountState) :*: S1 ('MetaSel ('Just "ppDE") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era))))))

Methods

from ∷ DelegEnv era → Rep (DelegEnv era) x #

to ∷ Rep (DelegEnv era) x → DelegEnv era #

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

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Methods

showsPrec ∷ Int → DelegEnv era → ShowS #

show ∷ DelegEnv era → String #

showList ∷ [DelegEnv era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.Rules.Deleg

Methods

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

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

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.20.0.0-inplace" 'False) (C1 ('MetaCons "DelegEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "slotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "deCurEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo)) :*: (S1 ('MetaSel ('Just "ptr_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ptr) :*: (S1 ('MetaSel ('Just "deChainAccountState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainAccountState) :*: S1 ('MetaSel ('Just "ppDE") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era))))))

data DelegsEnv era Source #

Constructors

DelegsEnv 

Fields

Instances

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

Defined in Cardano.Ledger.Shelley.Rules.Delegs

Methods

showsPrec ∷ Int → DelegsEnv era → ShowS #

show ∷ DelegsEnv era → String #

showList ∷ [DelegsEnv era] → ShowS #

data ShelleyLedgersEnv era Source #

Instances

Instances details
EraPParams era ⇒ EncCBOR (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

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

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

Methods

rnf ∷ ShelleyLedgersEnv era → () #

Generic (ShelleyLedgersEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

Associated Types

type Rep (ShelleyLedgersEnv era) 
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.20.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 ChainAccountState))))

Methods

from ∷ ShelleyLedgersEnv era → Rep (ShelleyLedgersEnv era) x #

to ∷ Rep (ShelleyLedgersEnv era) x → ShelleyLedgersEnv era #

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

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

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.20.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 ChainAccountState))))

data PoolEnv era Source #

Constructors

PoolEnv EpochNo (PParams era) 

Instances

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

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

encCBOR ∷ PoolEnv era → Encoding Source #

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

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

rnf ∷ PoolEnv era → () #

Generic (PoolEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

Associated Types

type Rep (PoolEnv era) 
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.20.0.0-inplace" 'False) (C1 ('MetaCons "PoolEnv" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era))))

Methods

from ∷ PoolEnv era → Rep (PoolEnv era) x #

to ∷ Rep (PoolEnv era) x → PoolEnv era #

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

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

showsPrec ∷ Int → PoolEnv era → ShowS #

show ∷ PoolEnv era → String #

showList ∷ [PoolEnv era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.Rules.Pool

Methods

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

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

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.20.0.0-inplace" 'False) (C1 ('MetaCons "PoolEnv" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era))))

data PpupEnv era Source #

Constructors

PPUPEnv SlotNo (PParams era) GenDelegs 

data SnapEnv era Source #

Constructors

SnapEnv (LedgerState era) (PParams era) 

data UtxoEnv era Source #

Constructors

UtxoEnv 

Fields

Instances

Instances details
(EraPParams era, EraCertState era, Typeable (CertState era)) ⇒ DecCBOR (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

decCBOR ∷ Decoder s (UtxoEnv era) Source #

dropCBOR ∷ Proxy (UtxoEnv era) → Decoder s () Source #

label ∷ Proxy (UtxoEnv era) → Text Source #

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

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

encCBOR ∷ UtxoEnv era → Encoding Source #

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

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

rnf ∷ UtxoEnv era → () #

Generic (UtxoEnv era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Associated Types

type Rep (UtxoEnv era) 
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.20.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)))))

Methods

from ∷ UtxoEnv era → Rep (UtxoEnv era) x #

to ∷ Rep (UtxoEnv era) x → UtxoEnv era #

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

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

showsPrec ∷ Int → UtxoEnv era → ShowS #

show ∷ UtxoEnv era → String #

showList ∷ [UtxoEnv era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.Rules.Utxo

Methods

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

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

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.20.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 MultiSig era Source #

Instances

Instances details
(ShelleyEraScript era, NativeScript era ~ MultiSig era) ⇒ FromJSON (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

(ShelleyEraScript era, NativeScript era ~ MultiSig era) ⇒ ToJSON (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

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

Defined in Cardano.Ledger.Shelley.Scripts

Methods

toCBOR ∷ MultiSig 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

encCBOR ∷ MultiSig era → Encoding 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

eqRaw ∷ MultiSig era → MultiSig era → Bool Source #

Memoized (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Associated Types

type RawType (MultiSig era) 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

type RawType (MultiSig era) = MultiSigRaw era
NFData (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

rnf ∷ MultiSig era → () #

Generic (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Associated Types

type Rep (MultiSig era) 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

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

Methods

from ∷ MultiSig era → Rep (MultiSig era) x #

to ∷ Rep (MultiSig era) x → MultiSig era #

Show (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

showsPrec ∷ Int → MultiSig era → ShowS #

show ∷ MultiSig era → String #

showList ∷ [MultiSig era] → ShowS #

Eq (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

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

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

Ord (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

Methods

compare ∷ MultiSig era → MultiSig era → Ordering #

(<) ∷ MultiSig era → MultiSig era → Bool #

(<=) ∷ MultiSig era → MultiSig era → Bool #

(>) ∷ MultiSig era → MultiSig era → Bool #

(>=) ∷ MultiSig era → MultiSig era → Bool #

max ∷ MultiSig era → MultiSig era → MultiSig era #

min ∷ MultiSig era → MultiSig era → MultiSig era #

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

Defined in Cardano.Ledger.Shelley.Scripts

type RawType (MultiSig era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

type RawType (MultiSig era) = MultiSigRaw era
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.20.0.0-inplace" 'True) (C1 ('MetaCons "MkMultiSig" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (MultiSigRaw era)))))

data GenesisDelegCert Source #

Genesis key delegation certificate

Instances

Instances details
FromJSON GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

ToJSON GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NFData GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf ∷ GenesisDelegCert → () #

Generic GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep GenesisDelegCert 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Show GenesisDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

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 MIRCert Source #

Move instantaneous rewards certificate

Constructors

MIRCert 

Fields

Instances

Instances details
FromJSON MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

ToJSON 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

NFData MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf ∷ MIRCert → () #

Generic MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep MIRCert 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRCert = D1 ('MetaData "MIRCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.20.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)))

Methods

from ∷ MIRCert → Rep MIRCert x #

to ∷ Rep MIRCert x → MIRCert #

Show MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

showsPrec ∷ Int → MIRCert → ShowS #

show ∷ MIRCert → String #

showList ∷ [MIRCert] → ShowS #

Eq MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

(==) ∷ MIRCert → MIRCert → Bool #

(/=) ∷ MIRCert → MIRCert → Bool #

Ord MIRCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

compare ∷ MIRCert → MIRCert → Ordering #

(<) ∷ MIRCert → MIRCert → Bool #

(<=) ∷ MIRCert → MIRCert → Bool #

(>) ∷ MIRCert → MIRCert → Bool #

(>=) ∷ MIRCert → MIRCert → Bool #

max ∷ MIRCert → MIRCert → MIRCert #

min ∷ MIRCert → MIRCert → MIRCert #

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.20.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 MIRPot Source #

Constructors

ReservesMIR 
TreasuryMIR 

Instances

Instances details
FromJSON MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

ToJSON 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

encCBOR ∷ MIRPot → Encoding Source #

NFData MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf ∷ MIRPot → () #

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 MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

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

Methods

from ∷ MIRPot → Rep MIRPot x #

to ∷ Rep MIRPot x → MIRPot #

Show MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

showsPrec ∷ Int → MIRPot → ShowS #

show ∷ MIRPot → String #

showList ∷ [MIRPot] → ShowS #

Eq MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

(==) ∷ MIRPot → MIRPot → Bool #

(/=) ∷ MIRPot → MIRPot → Bool #

Ord MIRPot Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

compare ∷ MIRPot → MIRPot → Ordering #

(<) ∷ MIRPot → MIRPot → Bool #

(<=) ∷ MIRPot → MIRPot → Bool #

(>) ∷ MIRPot → MIRPot → Bool #

(>=) ∷ MIRPot → MIRPot → Bool #

max ∷ MIRPot → MIRPot → MIRPot #

min ∷ MIRPot → MIRPot → MIRPot #

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.20.0.0-inplace" 'False) (C1 ('MetaCons "ReservesMIR" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "TreasuryMIR" 'PrefixI 'False) (U1 ∷ Type → Type))

data MIRTarget Source #

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

Instances

Instances details
FromJSON MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

ToJSON 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

NFData MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf ∷ MIRTarget → () #

Generic MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep MIRTarget 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

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

Methods

from ∷ MIRTarget → Rep MIRTarget x #

to ∷ Rep MIRTarget x → MIRTarget #

Show MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

showsPrec ∷ Int → MIRTarget → ShowS #

show ∷ MIRTarget → String #

showList ∷ [MIRTarget] → ShowS #

Eq MIRTarget Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

(==) ∷ MIRTarget → MIRTarget → Bool #

(/=) ∷ MIRTarget → MIRTarget → Bool #

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.20.0.0-inplace" 'False) (C1 ('MetaCons "StakeAddressesMIR" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking) DeltaCoin))) :+: C1 ('MetaCons "SendToOppositePotMIR" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))

data ShelleyDelegCert Source #

Constructors

ShelleyRegCert !(Credential 'Staking)

A stake credential registration certificate.

ShelleyUnRegCert !(Credential 'Staking)

A stake credential deregistration certificate.

ShelleyDelegCert !(Credential 'Staking) !(KeyHash 'StakePool)

A stake delegation certificate.

Instances

Instances details
FromJSON ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

ToJSON ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NFData ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf ∷ ShelleyDelegCert → () #

Generic ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep ShelleyDelegCert 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Show ShelleyDelegCert Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

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 ShelleyTxWits era Source #

Instances

Instances details
(EraScript era, FromJSON (Script era)) ⇒ FromJSON (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

(EraScript era, ToJSON (Script era)) ⇒ ToJSON (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

toCBOR ∷ ShelleyTxWits 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 (Script 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

(EraScript era, ToJSON (Script era)) ⇒ ToKeyValuePairs (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ ShelleyTxWits era → [kv] 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

eqRaw ∷ ShelleyTxWits era → ShelleyTxWits era → Bool Source #

Memoized (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Associated Types

type RawType (ShelleyTxWits era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

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

Defined in Cardano.Ledger.Shelley.TxWits

Methods

rnf ∷ ShelleyTxWits era → () #

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

Methods

(<>) ∷ ShelleyTxWits era → ShelleyTxWits era → ShelleyTxWits era #

sconcat ∷ NonEmpty (ShelleyTxWits era) → ShelleyTxWits era #

stimes ∷ Integral b ⇒ b → ShelleyTxWits era → ShelleyTxWits era #

Generic (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Associated Types

type Rep (ShelleyTxWits era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

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

Methods

from ∷ ShelleyTxWits era → Rep (ShelleyTxWits era) x #

to ∷ Rep (ShelleyTxWits era) x → ShelleyTxWits era #

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

Defined in Cardano.Ledger.Shelley.TxWits

Methods

showsPrec ∷ Int → ShelleyTxWits era → ShowS #

show ∷ ShelleyTxWits era → String #

showList ∷ [ShelleyTxWits era] → ShowS #

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

Defined in Cardano.Ledger.Shelley.TxWits

Methods

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

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

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

Defined in Cardano.Ledger.Shelley.TxWits

type RawType (ShelleyTxWits era) 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.20.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxWits" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (ShelleyTxWitsRaw era)))))