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.Interface

Synopsis

Blockchain Interface

data Environment Source #

Instances

Instances details
Eq Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

Show Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

Generic Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

NFData Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

type Rep Environment Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

data State Source #

State shared between the blockchain and the ledger

Instances

Instances details
Eq State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

Show State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

Generic State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

NFData State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

ToCBOR State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

FromCBOR State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

NoThunks State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

type Rep State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Interface

type Rep State = D1 (' MetaData "State" "Cardano.Chain.Delegation.Validation.Interface" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' False ) ( C1 (' MetaCons "State" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "schedulingState") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 State ) :*: S1 (' MetaSel (' Just "activationState") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 State )))

activateDelegations :: SlotNumber -> State -> State Source #

Activate certificates up to this slot

initialState :: MonadError Error m => Environment -> GenesisDelegation -> m State Source #

The initial state maps each genesis key to itself and overrides this using certificates from the genesis block.

tickDelegation :: EpochNumber -> SlotNumber -> State -> State Source #

Perform delegation update without adding certificates

updateDelegation :: MonadError Error m => Environment -> State -> [ ACertificate ByteString ] -> m State Source #

Update the State with a list of new Certificate s

This corresponds to the DELEG rule from the Byron ledger specification