cardano-ledger-shelley-0.1.0.0
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Shelley.Rules.Rupd

Synopsis

Documentation

data RUPD era Source #

Instances

Instances details
( Era era, HasField "_a0" ( PParams era) NonNegativeInterval , HasField "_d" ( PParams era) UnitInterval , HasField "_nOpt" ( PParams era) Natural , HasField "_protocolVersion" ( PParams era) ProtVer , HasField "_rho" ( PParams era) UnitInterval , HasField "_tau" ( PParams era) UnitInterval ) => STS ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

( Era era, STS ( RUPD era), PredicateFailure ( EraRule "RUPD" era) ~ RupdPredicateFailure era, Event ( EraRule "RUPD" era) ~ RupdEvent ( Crypto era)) => Embed ( RUPD era) ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type PredicateFailure ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type Event ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type BaseM ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type Environment ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type Signal ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type State ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type family PredicateFailure a Source #

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

As a convention, PredicateFailure s 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 PredicateFailure s 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 ( SNAP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Snap

type PredicateFailure ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type PredicateFailure ( PPUP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type PredicateFailure ( UTXO era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type PredicateFailure ( UTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type PredicateFailure ( POOLREAP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type PredicateFailure ( POOL era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type PredicateFailure ( NEWPP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Newpp

type PredicateFailure ( UPEC era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Upec

type PredicateFailure ( MIR era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type PredicateFailure ( EPOCH era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Epoch

type PredicateFailure ( DELEG era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type PredicateFailure ( DELPL era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type PredicateFailure ( DELEGS era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type PredicateFailure ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type PredicateFailure ( LEDGERS era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type PredicateFailure ( BBODY era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Bbody

type PredicateFailure ( NEWEPOCH era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type PredicateFailure ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type PredicateFailure ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

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

Instances

Instances details
Eq ( RupdPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

Show ( RupdPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

Generic ( RupdPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

NoThunks ( RupdPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type Rep ( RupdPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type Rep ( RupdPredicateFailure era) = D1 (' MetaData "RupdPredicateFailure" "Cardano.Ledger.Shelley.Rules.Rupd" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' False ) ( V1 :: Type -> Type )

data PulsingRewUpdate crypto Source #

The state used in the STS rules

Constructors

Pulsing !( RewardSnapShot crypto) !( Pulser crypto)
Complete !( RewardUpdate crypto)

Instances

Instances details
Eq ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Show ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Generic ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Associated Types

type Rep ( PulsingRewUpdate crypto) :: Type -> Type Source #

NFData ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Crypto crypto => ToCBOR ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Crypto crypto => FromCBOR ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Typeable crypto => NoThunks ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

type Rep ( PulsingRewUpdate crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

startStep :: forall era. UsesPP era => EpochSize -> BlocksMade ( Crypto era) -> EpochState era -> Coin -> ActiveSlotCoeff -> Word64 -> ( PulsingRewUpdate ( Crypto era), RewardProvenance ( Crypto era)) Source #

Assemble the components for, and then create, a Pulser.

pulseStep :: PulsingRewUpdate crypto -> ShelleyBase ( PulsingRewUpdate crypto, RewardEvent crypto) Source #

Run the pulser for a bit. If is has nothing left to do, complete it.

lift :: ( MonadTrans t, Monad m) => m a -> t m a Source #

Lift a computation from the argument monad to the constructed monad.

newtype Identity a Source #

Identity functor and monad. (a non-strict monad)

Since: base-4.8.0.0

Constructors

Identity

Fields

Instances

Instances details
Monad Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Functor Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

MonadFix Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Applicative Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Foldable Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Traversable Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Traversable

ToJSON1 Identity
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON1 Identity
Instance details

Defined in Data.Aeson.Types.FromJSON

Eq1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Ord1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Read1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Show1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

NFData1 Identity

Since: deepseq-1.4.3.0

Instance details

Defined in Control.DeepSeq

Methods

liftRnf :: (a -> ()) -> Identity a -> () Source #

Hashable1 Identity
Instance details

Defined in Data.Hashable.Class

HKDFunctor Identity Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

(c ~ Crypto era, Witnesses era ~ WitnessSet era) => HasField "addrWits" ( WitnessSet era) ( Set ( WitVKey ' Witness c)) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

(c ~ Crypto era, script ~ Script era, Witnesses era ~ WitnessSet era) => HasField "scriptWits" ( WitnessSet era) ( Map ( ScriptHash c) script) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

() :=> ( Monad Identity )
Instance details

Defined in Data.Constraint

() :=> ( Functor Identity )
Instance details

Defined in Data.Constraint

Unbox a => Vector Vector ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

Bounded a => Bounded ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Enum a => Enum ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Eq a => Eq ( Identity a)

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Floating a => Floating ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Fractional a => Fractional ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Integral a => Integral ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Num a => Num ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Ord a => Ord ( Identity a)

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Read a => Read ( Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Real a => Real ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

RealFloat a => RealFloat ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

RealFrac a => RealFrac ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Show a => Show ( Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Ix a => Ix ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

IsString a => IsString ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.String

Generic ( Identity a)

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Associated Types

type Rep ( Identity a) :: Type -> Type Source #

Semigroup a => Semigroup ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Monoid a => Monoid ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

NFData a => NFData ( Identity a)

Since: deepseq-1.4.0.0

Instance details

Defined in Control.DeepSeq

NFData ( Pulser c) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Methods

rnf :: Pulser c -> () Source #

Hashable a => Hashable ( Identity a)
Instance details

Defined in Data.Hashable.Class

ToJSON a => ToJSON ( Identity a)
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSON ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

ToJSONKey a => ToJSONKey ( Identity a)
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON a => FromJSON ( Identity a)
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSON ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

FromJSONKey a => FromJSONKey ( Identity a)
Instance details

Defined in Data.Aeson.Types.FromJSON

Storable a => Storable ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Bits a => Bits ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

FiniteBits a => FiniteBits ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Era era => ToCBOR ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Crypto c => ToCBOR ( Pulser c) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

( Typeable era, FromCBOR ( Annotator ( Script era)), ValidateScript era) => FromCBOR ( Annotator ( WitnessSetHKD Identity era)) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Era era => FromCBOR ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Crypto c => FromCBOR ( Pulser c) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Default ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Group a => Group ( Identity a)

Identity lifts groups pointwise (at only one point).

Instance details

Defined in Data.Group

Abelian a => Abelian ( Identity a)
Instance details

Defined in Data.Group

Cyclic a => Cyclic ( Identity a)
Instance details

Defined in Data.Group

NoThunks ( PParams era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Typeable c => NoThunks ( Pulser c) Source #
Instance details

Defined in Cardano.Ledger.Shelley.RewardUpdate

Prim a => Prim ( Identity a)

Since: primitive-0.6.5.0

Instance details

Defined in Data.Primitive.Types

Serialise a => Serialise ( Identity a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Unbox a => Unbox ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

Generic1 Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Associated Types

type Rep1 Identity :: k -> Type Source #

( Bounded a) :=> ( Bounded ( Identity a))
Instance details

Defined in Data.Constraint

( Enum a) :=> ( Enum ( Identity a))
Instance details

Defined in Data.Constraint

( Eq a) :=> ( Eq ( Identity a))
Instance details

Defined in Data.Constraint

( Floating a) :=> ( Floating ( Identity a))
Instance details

Defined in Data.Constraint

( Fractional a) :=> ( Fractional ( Identity a))
Instance details

Defined in Data.Constraint

( Integral a) :=> ( Integral ( Identity a))
Instance details

Defined in Data.Constraint

( Num a) :=> ( Num ( Identity a))
Instance details

Defined in Data.Constraint

( Ord a) :=> ( Ord ( Identity a))
Instance details

Defined in Data.Constraint

( Read a) :=> ( Read ( Identity a))
Instance details

Defined in Data.Constraint

( Real a) :=> ( Real ( Identity a))
Instance details

Defined in Data.Constraint

( RealFloat a) :=> ( RealFloat ( Identity a))
Instance details

Defined in Data.Constraint

( RealFrac a) :=> ( RealFrac ( Identity a))
Instance details

Defined in Data.Constraint

( Show a) :=> ( Show ( Identity a))
Instance details

Defined in Data.Constraint

( Semigroup a) :=> ( Semigroup ( Identity a))
Instance details

Defined in Data.Constraint

( Monoid a) :=> ( Monoid ( Identity a))
Instance details

Defined in Data.Constraint

( Bits a) :=> ( Bits ( Identity a))
Instance details

Defined in Data.Constraint

Eq ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

( Era era, TransWitnessSet Eq era) => Eq ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Show ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

( Era era, TransWitnessSet Show era) => Show ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Era era => Generic ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

( Era era, AnnotatedData ( Script era)) => Semigroup ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

( Era era, AnnotatedData ( Script era)) => Monoid ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

NFData ( PParams' Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.PParams

( Era era, NFData ( Script era), NFData ( WitVKey ' Witness ( Crypto era)), NFData ( BootstrapWitness ( Crypto era))) => NFData ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Era era => ToCBOR ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

SafeToHash ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

( Era era, TransWitnessSet NoThunks era) => NoThunks ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx

newtype MVector s ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

type Rep ( Identity a)
Instance details

Defined in Data.Functor.Identity

type Rep ( Identity a) = D1 (' MetaData "Identity" "Data.Functor.Identity" "base" ' True ) ( C1 (' MetaCons "Identity" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "runIdentity") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 a)))
newtype Vector ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

type Rep1 Identity
Instance details

Defined in Data.Functor.Identity

type Rep1 Identity = D1 (' MetaData "Identity" "Data.Functor.Identity" "base" ' True ) ( C1 (' MetaCons "Identity" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "runIdentity") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) Par1 ))
type Rep ( WitnessSetHKD Identity era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Tx