cardano-slotting-0.2.0.0: Key slotting types for cardano libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Slotting.Block

Synopsis

Documentation

newtype BlockNo Source #

The 0-based index of the block in the blockchain. BlockNo is <= SlotNo and is only equal at slot N if there is a block for every slot where N <= SlotNo.

Constructors

BlockNo 

Fields

Instances

Instances details
FromJSON BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

ToJSON BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Bounded BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Enum BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Generic BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Associated Types

type Rep BlockNoTypeType Source #

Methods

fromBlockNoRep BlockNo x Source #

toRep BlockNo x → BlockNo Source #

Num BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Show BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

FromCBOR BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

ToCBOR BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

toCBORBlockNoEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy BlockNoSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [BlockNo] → Size Source #

NFData BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

rnfBlockNo → () Source #

Eq BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Methods

(==)BlockNoBlockNoBool Source #

(/=)BlockNoBlockNoBool Source #

Ord BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

NoThunks BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

Serialise BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

type Rep BlockNo Source # 
Instance details

Defined in Cardano.Slotting.Block

type Rep BlockNo = D1 ('MetaData "BlockNo" "Cardano.Slotting.Block" "cardano-slotting-0.2.0.0-inplace" 'True) (C1 ('MetaCons "BlockNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))