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

Cardano.Ledger.Shelley.Rules.Mir

Synopsis

Documentation

data ShelleyMIR era Source #

Instances

Instances details
(Default (EpochState era), EraGov era) ⇒ STS (ShelleyMIR era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

Associated Types

type State (ShelleyMIR era) Source #

type Signal (ShelleyMIR era) Source #

type Environment (ShelleyMIR era) Source #

type BaseM (ShelleyMIR era) ∷ TypeType Source #

type Event (ShelleyMIR era) Source #

type PredicateFailure (ShelleyMIR era) Source #

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

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type BaseM (ShelleyMIR era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type Environment (ShelleyMIR era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

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

Defined in Cardano.Ledger.Shelley.Rules.Mir

type PredicateFailure (ShelleyMIR era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type Signal (ShelleyMIR era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type Signal (ShelleyMIR era) = ()
type State (ShelleyMIR era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type State (ShelleyMIR era) = EpochState era

type family PredicateFailure a Source #

Descriptive type for the possible failures which might cause a transition to fail.

As a convention, PredicateFailures which are "structural" (meaning that they are not "throwable" in practice, and are used to pass control from one transition rule to another) are prefixed with S_.

Structural PredicateFailures represent conditions between rules where the disjunction of all rules' preconditions is equal to True. That is, either one rule will throw a structural PredicateFailure and the other will succeed, or vice-versa.

Instances

Instances details
type PredicateFailure (ShelleyBBODY era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Bbody

type PredicateFailure (ShelleyDELEG era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type PredicateFailure (ShelleyDELEGS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type PredicateFailure (ShelleyDELPL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type PredicateFailure (ShelleyEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Epoch

type PredicateFailure (ShelleyLEDGER era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type PredicateFailure (ShelleyLEDGERS era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type PredicateFailure (ShelleyMIR era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type PredicateFailure (ShelleyNEWEPOCH era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type PredicateFailure (ShelleyNEWPP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Newpp

type PredicateFailure (ShelleyPOOL era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type PredicateFailure (ShelleyPOOLREAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type PredicateFailure (ShelleyPPUP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type PredicateFailure (ShelleyRUPD era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type PredicateFailure (ShelleySNAP era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Snap

type PredicateFailure (ShelleyTICK era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type PredicateFailure (ShelleyTICKF era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type PredicateFailure (ShelleyUPEC era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Upec

type PredicateFailure (ShelleyUTXO era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type PredicateFailure (ShelleyUTXOW era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type PredicateFailure (STUB e st si f m) 
Instance details

Defined in Control.State.Transition.Extended

type PredicateFailure (STUB e st si f m) = f

data ShelleyMirPredFailure era Source #

Instances

Instances details
Generic (ShelleyMirPredFailure era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

Associated Types

type Rep (ShelleyMirPredFailure era) ∷ TypeType Source #

Show (ShelleyMirPredFailure era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

NFData (ShelleyMirPredFailure era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

Methods

rnfShelleyMirPredFailure era → () Source #

Eq (ShelleyMirPredFailure era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

NoThunks (ShelleyMirPredFailure era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type Rep (ShelleyMirPredFailure era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type Rep (ShelleyMirPredFailure era) = D1 ('MetaData "ShelleyMirPredFailure" "Cardano.Ledger.Shelley.Rules.Mir" "cardano-ledger-shelley-1.12.2.1-inplace" 'False) (V1TypeType)

data ShelleyMirEvent era Source #

Constructors

MirTransfer (InstantaneousRewards (EraCrypto era)) 
NoMirTransfer (InstantaneousRewards (EraCrypto era)) Coin Coin

We were not able to perform an MIR transfer due to insufficient funds. This event gives the rewards we wanted to pay, plus the available reserves and treasury.

Instances

Instances details
Generic (ShelleyMirEvent era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

Associated Types

type Rep (ShelleyMirEvent era) ∷ TypeType Source #

NFData (ShelleyMirEvent era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

Methods

rnfShelleyMirEvent era → () Source #

Eq (ShelleyMirEvent era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type Rep (ShelleyMirEvent era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

Orphan instances