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

Cardano.Ledger.Shelley.Rules.Tick

Synopsis

Documentation

data TICK era Source #

Instances

Instances details
( Era era, Embed ( EraRule "NEWEPOCH" era) ( TICK era), Embed ( EraRule "RUPD" era) ( TICK era), State ( TICK era) ~ NewEpochState era, BaseM ( TICK era) ~ ShelleyBase , Environment ( EraRule "RUPD" era) ~ RupdEnv era, State ( EraRule "RUPD" era) ~ StrictMaybe ( PulsingRewUpdate ( Crypto era)), Signal ( EraRule "RUPD" era) ~ SlotNo , Environment ( EraRule "NEWEPOCH" era) ~ (), State ( EraRule "NEWEPOCH" era) ~ NewEpochState era, Signal ( EraRule "NEWEPOCH" era) ~ EpochNo ) => STS ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

( 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

( UsesTxOut era, UsesValue era, STS ( NEWEPOCH era), PredicateFailure ( EraRule "NEWEPOCH" era) ~ NewEpochPredicateFailure era, Event ( EraRule "NEWEPOCH" era) ~ NewEpochEvent era) => Embed ( NEWEPOCH era) ( TICK 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 Event ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Event ( TICK era) = TickEvent era
type BaseM ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment ( TICK era) = ()
type Signal ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type State ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type family State a Source #

Type of the state which the system transitions between.

Instances

Instances details
type State ( SNAP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Snap

type State ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type State ( PPUP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type State ( PPUP era) = PPUPState era
type State ( UTXO era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type State ( UTXO era) = UTxOState era
type State ( UTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type State ( POOLREAP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type State ( POOL era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type State ( NEWPP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Newpp

type State ( UPEC era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Upec

type State ( UPEC era) = UpecState era
type State ( MIR era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type State ( MIR era) = EpochState era
type State ( EPOCH era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Epoch

type State ( DELEG era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type State ( DELPL era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type State ( DELEGS era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type State ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type State ( LEDGERS era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type State ( BBODY era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Bbody

type State ( NEWEPOCH era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type State ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type State ( TICK era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

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

Defined in Control.State.Transition.Extended

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

data TickPredicateFailure era Source #

Instances

Instances details
( Eq ( PredicateFailure ( EraRule "NEWEPOCH" era)), Eq ( PredicateFailure ( EraRule "RUPD" era))) => Eq ( TickPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

( Show ( PredicateFailure ( EraRule "NEWEPOCH" era)), Show ( PredicateFailure ( EraRule "RUPD" era))) => Show ( TickPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

Generic ( TickPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

( NoThunks ( PredicateFailure ( EraRule "NEWEPOCH" era)), NoThunks ( PredicateFailure ( EraRule "RUPD" era))) => NoThunks ( TickPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Rep ( TickPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Rep ( TickPredicateFailure era) = D1 (' MetaData "TickPredicateFailure" "Cardano.Ledger.Shelley.Rules.Tick" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' False ) ( C1 (' MetaCons "NewEpochFailure" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( PredicateFailure ( EraRule "NEWEPOCH" era)))) :+: C1 (' MetaCons "RupdFailure" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( PredicateFailure ( EraRule "RUPD" era)))))

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

Instances

Instances details
( Era era, Embed ( EraRule "NEWEPOCH" era) ( TICKF era), Environment ( EraRule "NEWEPOCH" era) ~ (), State ( EraRule "NEWEPOCH" era) ~ NewEpochState era, Signal ( EraRule "NEWEPOCH" era) ~ EpochNo ) => STS ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

( UsesTxOut era, UsesValue era, STS ( NEWEPOCH era), PredicateFailure ( EraRule "NEWEPOCH" era) ~ NewEpochPredicateFailure era, Event ( EraRule "NEWEPOCH" era) ~ NewEpochEvent era) => Embed ( NEWEPOCH era) ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type PredicateFailure ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Event ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Event ( TICKF era)
type BaseM ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Environment ( TICKF era) = ()
type Signal ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type State ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

newtype TickfPredicateFailure era Source #

Instances

Instances details
( Era era, Eq ( PredicateFailure ( EraRule "NEWEPOCH" era))) => Eq ( TickfPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

( Era era, Show ( PredicateFailure ( EraRule "NEWEPOCH" era))) => Show ( TickfPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

Generic ( TickfPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

( UsesTxOut era, UsesValue era, NoThunks ( PredicateFailure ( EraRule "NEWEPOCH" era))) => NoThunks ( TickfPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Rep ( TickfPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Rep ( TickfPredicateFailure era) = D1 (' MetaData "TickfPredicateFailure" "Cardano.Ledger.Shelley.Rules.Tick" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' True ) ( C1 (' MetaCons "TickfNewEpochFailure" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( PredicateFailure ( EraRule "NEWEPOCH" era)))))