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

Cardano.Ledger.Shelley.Delegation.Certificates

Synopsis

Documentation

data DCert crypto Source #

A heavyweight certificate.

Instances

Instances details
Crypto era ~ crypto => HasField "certs" ( TxBody era) ( StrictSeq ( DCert crypto)) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Eq ( DCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Show ( DCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Generic ( DCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

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

Methods

from :: DCert crypto -> Rep ( DCert crypto) x Source #

to :: Rep ( DCert crypto) x -> DCert crypto Source #

NFData ( DCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnf :: DCert crypto -> () Source #

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

Defined in Cardano.Ledger.Shelley.TxBody

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

Defined in Cardano.Ledger.Shelley.TxBody

NoThunks ( DCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( DCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

data DelegCert crypto Source #

Constructors

RegKey !( StakeCredential crypto)

A stake key registration certificate.

DeRegKey !( StakeCredential crypto)

A stake key deregistration certificate.

Delegate !( Delegation crypto)

A stake delegation certificate.

Instances

Instances details
Eq ( DelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Show ( DelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Generic ( DelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

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

NFData ( DelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnf :: DelegCert crypto -> () Source #

NoThunks ( DelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( DelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

data PoolCert crypto Source #

Constructors

RegPool !( PoolParams crypto)

A stake pool registration certificate.

RetirePool !( KeyHash ' StakePool crypto) ! EpochNo

A stake pool retirement certificate.

Instances

Instances details
Eq ( PoolCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Show ( PoolCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Generic ( PoolCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

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

NFData ( PoolCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnf :: PoolCert crypto -> () Source #

NoThunks ( PoolCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( PoolCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

data GenesisDelegCert crypto Source #

Genesis key delegation certificate

Constructors

GenesisDelegCert !( KeyHash ' Genesis crypto) !( KeyHash ' GenesisDelegate crypto) !( Hash crypto ( VerKeyVRF crypto))

Instances

Instances details
Eq ( GenesisDelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Show ( GenesisDelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Generic ( GenesisDelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

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

NFData ( GenesisDelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

NoThunks ( GenesisDelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( GenesisDelegCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

data MIRCert crypto Source #

Move instantaneous rewards certificate

Instances

Instances details
Eq ( MIRCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Show ( MIRCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Generic ( MIRCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

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

NFData ( MIRCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnf :: MIRCert crypto -> () Source #

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

Defined in Cardano.Ledger.Shelley.TxBody

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

Defined in Cardano.Ledger.Shelley.TxBody

NoThunks ( MIRCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( MIRCert crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( MIRCert crypto) = D1 (' MetaData "MIRCert" "Cardano.Ledger.Shelley.TxBody" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' False ) ( C1 (' MetaCons "MIRCert" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "mirPot") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 MIRPot ) :*: S1 (' MetaSel (' Just "mirRewards") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( MIRTarget crypto))))

newtype StakeCreds crypto Source #

Instances

Instances details
Eq ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Show ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Generic ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

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

NFData ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnf :: StakeCreds crypto -> () Source #

Crypto crypto => ToJSON ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Crypto crypto => FromJSON ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

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

Defined in Cardano.Ledger.Shelley.TxBody

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

Defined in Cardano.Ledger.Shelley.TxBody

NoThunks ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

HasExp ( StakeCreds era) ( Map ( Credential ' Staking era) SlotNo ) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Embed ( StakeCreds era) ( Map ( Credential ' Staking era) SlotNo ) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( StakeCreds crypto) Source #
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep ( StakeCreds crypto) = D1 (' MetaData "StakeCreds" "Cardano.Ledger.Shelley.TxBody" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' True ) ( C1 (' MetaCons "StakeCreds" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unStakeCreds") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Map ( Credential ' Staking crypto) SlotNo ))))

delegCWitness :: DelegCert crypto -> Credential ' Staking crypto Source #

Determine the certificate author

isRegKey :: DCert crypto -> Bool Source #

Check for RegKey constructor

isRegPool :: DCert crypto -> Bool Source #

Check for RegPool constructor

requiresVKeyWitness :: DCert crypto -> Bool Source #

Returns True for delegation certificates that require at least one witness, and False otherwise. It is mainly used to ensure that calling a variant of cwitness is safe.