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

Cardano.Ledger.Shelley.Rules.Ledger

Synopsis

Documentation

data LEDGER era Source #

Instances

Instances details
( Show ( PParams era), Show ( Tx era), Show ( TxOut era), Show ( State ( EraRule "PPUP" era)), HasField "inputs" ( TxBody era) ( Set ( TxIn ( Crypto era))), DSignable ( Crypto era) ( Hash ( Crypto era) EraIndependentTxBody ), Era era, Embed ( EraRule "DELEGS" era) ( LEDGER era), Embed ( EraRule "UTXOW" era) ( LEDGER era), Environment ( EraRule "UTXOW" era) ~ UtxoEnv era, State ( EraRule "UTXOW" era) ~ UTxOState era, Signal ( EraRule "UTXOW" era) ~ Tx era, Environment ( EraRule "DELEGS" era) ~ DelegsEnv era, State ( EraRule "DELEGS" era) ~ DPState ( Crypto era), Signal ( EraRule "DELEGS" era) ~ Seq ( DCert ( Crypto era)), HasField "certs" ( TxBody era) ( StrictSeq ( DCert ( Crypto era))), HasField "_keyDeposit" ( PParams era) Coin , HasField "_poolDeposit" ( PParams era) Coin ) => STS ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

( Era era, STS ( UTXOW era), PredicateFailure ( EraRule "UTXOW" era) ~ UtxowPredicateFailure era, Event ( EraRule "UTXOW" era) ~ Event ( UTXOW era)) => Embed ( UTXOW era) ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

( Era era, STS ( DELEGS era), PredicateFailure ( EraRule "DELEGS" era) ~ DelegsPredicateFailure era, Event ( EraRule "DELEGS" era) ~ DelegsEvent era) => Embed ( DELEGS era) ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

( Era era, STS ( LEDGER era), PredicateFailure ( EraRule "LEDGER" era) ~ LedgerPredicateFailure era, Event ( EraRule "LEDGER" era) ~ LedgerEvent era) => Embed ( LEDGER era) ( LEDGERS era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type PredicateFailure ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Event ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type BaseM ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Environment ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Signal ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

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

Defined in Cardano.Ledger.Shelley.Rules.Ledger

data LedgerPredicateFailure era Source #

Instances

Instances details
( Eq ( PredicateFailure ( EraRule "DELEGS" era)), Eq ( PredicateFailure ( EraRule "UTXOW" era)), Era era) => Eq ( LedgerPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

( Show ( PredicateFailure ( EraRule "DELEGS" era)), Show ( PredicateFailure ( EraRule "UTXOW" era)), Era era) => Show ( LedgerPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

Generic ( LedgerPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

( ToCBOR ( PredicateFailure ( EraRule "DELEGS" era)), ToCBOR ( PredicateFailure ( EraRule "UTXOW" era)), Era era) => ToCBOR ( LedgerPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

( FromCBOR ( PredicateFailure ( EraRule "DELEGS" era)), FromCBOR ( PredicateFailure ( EraRule "UTXOW" era)), Era era) => FromCBOR ( LedgerPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

( NoThunks ( PredicateFailure ( EraRule "DELEGS" era)), NoThunks ( PredicateFailure ( EraRule "UTXOW" era)), Era era) => NoThunks ( LedgerPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Rep ( LedgerPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Rep ( LedgerPredicateFailure era) = D1 (' MetaData "LedgerPredicateFailure" "Cardano.Ledger.Shelley.Rules.Ledger" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' False ) ( C1 (' MetaCons "UtxowFailure" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( PredicateFailure ( EraRule "UTXOW" era)))) :+: C1 (' MetaCons "DelegsFailure" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( PredicateFailure ( EraRule "DELEGS" era)))))

type family Event a Source #

Event type.

Instances

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

Defined in Cardano.Ledger.Shelley.Rules.Snap

type Event ( SNAP era) = SnapEvent era
type Event ( RUPD era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Rupd

type Event ( PPUP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ppup

type Event ( PPUP era) = PpupEvent era
type Event ( UTXO era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxo

type Event ( UTXO era) = UtxoEvent era
type Event ( UTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Utxow

type Event ( POOLREAP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.PoolReap

type Event ( POOL era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Pool

type Event ( POOL era) = PoolEvent era
type Event ( NEWPP era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Newpp

type Event ( UPEC era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Upec

type Event ( MIR era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Mir

type Event ( MIR era) = MirEvent era
type Event ( EPOCH era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Epoch

type Event ( DELEG era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Deleg

type Event ( DELEG era)
type Event ( DELPL era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delpl

type Event ( DELEGS era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Delegs

type Event ( LEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledger

type Event ( LEDGERS era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Ledgers

type Event ( BBODY era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Bbody

type Event ( NEWEPOCH era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.NewEpoch

type Event ( TICKF era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.Rules.Tick

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

Defined in Cardano.Ledger.Shelley.Rules.Tick

type Event ( TICK era) = TickEvent era
type Event ( STUB e st si f m)
Instance details

Defined in Control.State.Transition.Extended

type Event ( STUB e st si f m) = Void

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