cardano-ledger-byron-0.1.0.0: The blockchain layer of Cardano during the Byron era
Safe Haskell None
Language Haskell2010

Cardano.Chain.Delegation.Validation.Scheduling

Contents

Synopsis

Scheduling

data Environment Source #

Instances

Instances details
Eq Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

Show Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

Generic Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

NFData Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

type Rep Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

data State Source #

Instances

Instances details
Eq State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

Show State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

Generic State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

NFData State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

ToCBOR State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

FromCBOR State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

NoThunks State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

type Rep State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

type Rep State = D1 (' MetaData "State" "Cardano.Chain.Delegation.Validation.Scheduling" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' False ) ( C1 (' MetaCons "State" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "scheduledDelegations") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Seq ScheduledDelegation )) :*: S1 (' MetaSel (' Just "keyEpochDelegations") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Set ( EpochNumber , KeyHash )))))

data ScheduledDelegation Source #

Instances

Instances details
Eq ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

Show ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

Generic ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

NFData ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

ToCBOR ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

FromCBOR ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

NoThunks ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

type Rep ScheduledDelegation Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Scheduling

type Rep ScheduledDelegation = D1 (' MetaData "ScheduledDelegation" "Cardano.Chain.Delegation.Validation.Scheduling" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' False ) ( C1 (' MetaCons "ScheduledDelegation" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "sdSlot") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 SlotNumber ) :*: ( S1 (' MetaSel (' Just "sdDelegator") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 KeyHash ) :*: S1 (' MetaSel (' Just "sdDelegate") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 KeyHash ))))

scheduleCertificate :: MonadError Error m => Environment -> State -> ACertificate ByteString -> m State Source #

Update the delegation State with a Certificate if it passes all the validation rules. This is an implementation of the delegation scheduling inference rule from the ledger specification.