byron-spec-ledger-1.0.1.0: Executable specification of Cardano ledger
Safe HaskellSafe-Inferred
LanguageHaskell2010

Byron.Spec.Ledger.Core

Synopsis

Documentation

newtype Hash Source #

An encoded hash of part of the system.

Nothing is used to signal to the elaborators (i.e. the algorithms that translate abstract data into data concrete) that they should produce an invalid concrete hash.

Constructors

Hash 

Fields

Instances

Instances details
Data Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Hash → c Hash #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Hash #

toConstrHash → Constr #

dataTypeOfHashDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Hash) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Hash) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → HashHash #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Hash → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Hash → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Hash → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Hash → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Hash → m Hash #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Hash → m Hash #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Hash → m Hash #

Generic Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep HashTypeType #

Methods

fromHashRep Hash x #

toRep Hash x → Hash #

Show Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntHashShowS #

showHashString #

showList ∷ [Hash] → ShowS #

HasTypeReps Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsHashSeq TypeRep Source #

ToCBOR Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORHashEncoding Source #

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

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

EncCBOR Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORHashEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy HashSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Hash] → Size Source #

Eq Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)HashHashBool #

(/=)HashHashBool #

Ord Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareHashHashOrdering #

(<)HashHashBool #

(<=)HashHashBool #

(>)HashHashBool #

(>=)HashHashBool #

maxHashHashHash #

minHashHashHash #

Hashable Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashWithSaltIntHashInt Source #

hashHashInt Source #

NoThunks Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Hash = D1 ('MetaData "Hash" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "Hash" 'PrefixI 'True) (S1 ('MetaSel ('Just "unHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))

class HasHash a where Source #

Hash part of the ledger payload

Methods

hash ∷ a → Hash Source #

Instances

Instances details
HasHash Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashAddrHash Source #

HasHash VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashVKeyHash Source #

HasHash VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashVKeyGenesisHash Source #

HasHash TxBody Source # 
Instance details

Defined in Byron.Spec.Ledger.UTxO

Methods

hashTxBodyHash Source #

HasHash [DCert] Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

Methods

hash ∷ [DCert] → Hash Source #

HasHash [Tx] Source # 
Instance details

Defined in Byron.Spec.Ledger.UTxO

Methods

hash ∷ [Tx] → Hash Source #

HasHash (Maybe UProp, [Vote]) Source # 
Instance details

Defined in Byron.Spec.Ledger.Update

Methods

hash ∷ (Maybe UProp, [Vote]) → Hash Source #

newtype Owner Source #

Representation of the owner of key pair.

Constructors

Owner 

Fields

Instances

Instances details
Data Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Owner → c Owner #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Owner #

toConstrOwner → Constr #

dataTypeOfOwnerDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Owner) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Owner) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → OwnerOwner #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Owner → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Owner → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Owner → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Owner → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Owner → m Owner #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Owner → m Owner #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Owner → m Owner #

Generic Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep OwnerTypeType #

Methods

fromOwnerRep Owner x #

toRep Owner x → Owner #

Show Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntOwnerShowS #

showOwnerString #

showList ∷ [Owner] → ShowS #

HasTypeReps Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsOwnerSeq TypeRep Source #

FromCBOR Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

ToCBOR Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBOROwnerEncoding Source #

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

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

DecCBOR Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

EncCBOR Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBOROwnerEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy OwnerSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Owner] → Size Source #

Eq Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)OwnerOwnerBool #

(/=)OwnerOwnerBool #

Ord Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareOwnerOwnerOrdering #

(<)OwnerOwnerBool #

(<=)OwnerOwnerBool #

(>)OwnerOwnerBool #

(>=)OwnerOwnerBool #

maxOwnerOwnerOwner #

minOwnerOwnerOwner #

Hashable Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashWithSaltIntOwnerInt Source #

hashOwnerInt Source #

NoThunks Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Owner = D1 ('MetaData "Owner" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "Owner" 'PrefixI 'True) (S1 ('MetaSel ('Just "unOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))

class HasOwner a where Source #

Methods

owner ∷ a → Owner Source #

Instances

Instances details
HasOwner Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerAddrOwner Source #

HasOwner SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerSKeyOwner Source #

HasOwner VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerVKeyOwner Source #

HasOwner VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerVKeyGenesisOwner Source #

newtype SKey Source #

Signing Key.

Constructors

SKey Owner 

Instances

Instances details
Data SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → SKey → c SKey #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c SKey #

toConstrSKey → Constr #

dataTypeOfSKeyDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c SKey) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c SKey) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → SKeySKey #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → SKey → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → SKey → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → SKey → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → SKey → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → SKey → m SKey #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → SKey → m SKey #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → SKey → m SKey #

Generic SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep SKeyTypeType #

Methods

fromSKeyRep SKey x #

toRep SKey x → SKey #

Show SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntSKeyShowS #

showSKeyString #

showList ∷ [SKey] → ShowS #

HasOwner SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerSKeyOwner Source #

HasTypeReps SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsSKeySeq TypeRep Source #

ToCBOR SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORSKeyEncoding Source #

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

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

EncCBOR SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORSKeyEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy SKeySize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [SKey] → Size Source #

Eq SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)SKeySKeyBool #

(/=)SKeySKeyBool #

Ord SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareSKeySKeyOrdering #

(<)SKeySKeyBool #

(<=)SKeySKeyBool #

(>)SKeySKeyBool #

(>=)SKeySKeyBool #

maxSKeySKeySKey #

minSKeySKeySKey #

NoThunks SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep SKey = D1 ('MetaData "SKey" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "SKey" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Owner)))

newtype VKey Source #

Verification Key.

Constructors

VKey Owner 

Instances

Instances details
Data VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → VKey → c VKey #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c VKey #

toConstrVKey → Constr #

dataTypeOfVKeyDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c VKey) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c VKey) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → VKeyVKey #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → VKey → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → VKey → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → VKey → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → VKey → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → VKey → m VKey #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → VKey → m VKey #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → VKey → m VKey #

Generic VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep VKeyTypeType #

Methods

fromVKeyRep VKey x #

toRep VKey x → VKey #

Show VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntVKeyShowS #

showVKeyString #

showList ∷ [VKey] → ShowS #

HasHash VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashVKeyHash Source #

HasOwner VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerVKeyOwner Source #

HasTypeReps VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsVKeySeq TypeRep Source #

FromCBOR VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

ToCBOR VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORVKeyEncoding Source #

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

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

DecCBOR VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

EncCBOR VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORVKeyEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy VKeySize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [VKey] → Size Source #

Eq VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)VKeyVKeyBool #

(/=)VKeyVKeyBool #

Ord VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareVKeyVKeyOrdering #

(<)VKeyVKeyBool #

(<=)VKeyVKeyBool #

(>)VKeyVKeyBool #

(>=)VKeyVKeyBool #

maxVKeyVKeyVKey #

minVKeyVKeyVKey #

Hashable VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashWithSaltIntVKeyInt Source #

hashVKeyInt Source #

NoThunks VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasScheduledDelegations DIState [(Slot, (VKeyGenesis, VKey))] Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

HasScheduledDelegations DSState [(Slot, (VKeyGenesis, VKey))] Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type Rep VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep VKey = D1 ('MetaData "VKey" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "VKey" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Owner)))

newtype VKeyGenesis Source #

A genesis key is a specialisation of a generic VKey.

Constructors

VKeyGenesis 

Fields

Instances

Instances details
Data VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → VKeyGenesis → c VKeyGenesis #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c VKeyGenesis #

toConstrVKeyGenesis → Constr #

dataTypeOfVKeyGenesisDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c VKeyGenesis) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c VKeyGenesis) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → VKeyGenesisVKeyGenesis #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → VKeyGenesis → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → VKeyGenesis → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → VKeyGenesis → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → VKeyGenesis → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → VKeyGenesis → m VKeyGenesis #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → VKeyGenesis → m VKeyGenesis #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → VKeyGenesis → m VKeyGenesis #

Generic VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep VKeyGenesisTypeType #

Show VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasHash VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashVKeyGenesisHash Source #

HasOwner VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerVKeyGenesisOwner Source #

HasTypeReps VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsVKeyGenesisSeq TypeRep Source #

FromCBOR VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

ToCBOR VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORVKeyGenesisEncoding Source #

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

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

DecCBOR VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

EncCBOR VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORVKeyGenesisEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy VKeyGenesisSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [VKeyGenesis] → Size Source #

Eq VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Ord VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Hashable VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

NoThunks VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasScheduledDelegations DIState [(Slot, (VKeyGenesis, VKey))] Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

HasScheduledDelegations DSState [(Slot, (VKeyGenesis, VKey))] Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type Rep VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep VKeyGenesis = D1 ('MetaData "VKeyGenesis" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "VKeyGenesis" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVKeyGenesis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VKey)))

mkVkGenesisSet Source #

Arguments

Word8

Number of genesis keys

Set VKeyGenesis 

Make a set of genesis keys. The genesis keys are continuously numbered from 0 to the given number of genesis keys minus 1.

data KeyPair Source #

Key Pair.

Constructors

KeyPair 

Fields

Instances

Instances details
Generic KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep KeyPairTypeType #

Methods

fromKeyPairRep KeyPair x #

toRep KeyPair x → KeyPair #

Show KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntKeyPairShowS #

showKeyPairString #

showList ∷ [KeyPair] → ShowS #

HasTypeReps KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsKeyPairSeq TypeRep Source #

Eq KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)KeyPairKeyPairBool #

(/=)KeyPairKeyPairBool #

Ord KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareKeyPairKeyPairOrdering #

(<)KeyPairKeyPairBool #

(<=)KeyPairKeyPairBool #

(>)KeyPairKeyPairBool #

(>=)KeyPairKeyPairBool #

maxKeyPairKeyPairKeyPair #

minKeyPairKeyPairKeyPair #

NoThunks KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep KeyPair = D1 ('MetaData "KeyPair" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'False) (C1 ('MetaCons "KeyPair" 'PrefixI 'True) (S1 ('MetaSel ('Just "sKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SKey) :*: S1 ('MetaSel ('Just "vKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VKey)))

keyPairOwnerKeyPair Source #

Return a key pair for a given owner.

data Sig a Source #

A digital signature.

Constructors

Sig a Owner 

Instances

Instances details
Data a ⇒ Data (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Sig a → c (Sig a) #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c (Sig a) #

toConstrSig a → Constr #

dataTypeOfSig a → DataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c (Sig a)) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c (Sig a)) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → Sig a → Sig a #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Sig a → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Sig a → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Sig a → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Sig a → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Sig a → m (Sig a) #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Sig a → m (Sig a) #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Sig a → m (Sig a) #

Generic (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep (Sig a) ∷ TypeType #

Methods

fromSig a → Rep (Sig a) x #

toRep (Sig a) x → Sig a #

Show a ⇒ Show (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntSig a → ShowS #

showSig a → String #

showList ∷ [Sig a] → ShowS #

Typeable a ⇒ HasTypeReps (Sig a) Source #

We need a custom instance here that returns only the top level type. A generic instance would have recursed into type a and since we use typeReps to compute abstractSize, this would mean the size of 'Sig a' would include the size of a (e.g. Tx). This would create an artificial coupling between the size of a type and it's "signature".

Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsSig a → Seq TypeRep Source #

Eq a ⇒ Eq (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)Sig a → Sig a → Bool #

(/=)Sig a → Sig a → Bool #

Ord a ⇒ Ord (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareSig a → Sig a → Ordering #

(<)Sig a → Sig a → Bool #

(<=)Sig a → Sig a → Bool #

(>)Sig a → Sig a → Bool #

(>=)Sig a → Sig a → Bool #

maxSig a → Sig a → Sig a #

minSig a → Sig a → Sig a #

Hashable a ⇒ Hashable (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashWithSaltIntSig a → Int Source #

hashSig a → Int Source #

NoThunks a ⇒ NoThunks (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep (Sig a) = D1 ('MetaData "Sig" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'False) (C1 ('MetaCons "Sig" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Owner)))

signSKey → a → Sig a Source #

Produce a digital signature

verifyEq a ⇒ VKey → a → Sig a → Bool Source #

Verify a digital signature

newtype Epoch Source #

Constructors

Epoch 

Fields

Instances

Instances details
Data Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Epoch → c Epoch #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Epoch #

toConstrEpoch → Constr #

dataTypeOfEpochDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Epoch) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Epoch) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → EpochEpoch #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Epoch → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Epoch → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Epoch → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Epoch → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Epoch → m Epoch #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Epoch → m Epoch #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Epoch → m Epoch #

Generic Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep EpochTypeType #

Methods

fromEpochRep Epoch x #

toRep Epoch x → Epoch #

Num Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(+)EpochEpochEpoch #

(-)EpochEpochEpoch #

(*)EpochEpochEpoch #

negateEpochEpoch #

absEpochEpoch #

signumEpochEpoch #

fromIntegerIntegerEpoch #

Show Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntEpochShowS #

showEpochString #

showList ∷ [Epoch] → ShowS #

HasTypeReps Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsEpochSeq TypeRep Source #

ToCBOR Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBOREpochEncoding Source #

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

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

EncCBOR Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBOREpochEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy EpochSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Epoch] → Size Source #

Eq Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)EpochEpochBool #

(/=)EpochEpochBool #

Ord Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareEpochEpochOrdering #

(<)EpochEpochBool #

(<=)EpochEpochBool #

(>)EpochEpochBool #

(>=)EpochEpochBool #

maxEpochEpochEpoch #

minEpochEpochEpoch #

Hashable Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashWithSaltIntEpochInt Source #

hashEpochInt Source #

NoThunks Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Epoch = D1 ('MetaData "Epoch" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "Epoch" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpoch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype Slot Source #

Constructors

Slot 

Fields

Instances

Instances details
Data Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Slot → c Slot #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Slot #

toConstrSlot → Constr #

dataTypeOfSlotDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Slot) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Slot) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → SlotSlot #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Slot → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Slot → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Slot → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Slot → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Slot → m Slot #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Slot → m Slot #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Slot → m Slot #

Generic Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep SlotTypeType #

Methods

fromSlotRep Slot x #

toRep Slot x → Slot #

Show Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntSlotShowS #

showSlotString #

showList ∷ [Slot] → ShowS #

HasTypeReps Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsSlotSeq TypeRep Source #

ToCBOR Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORSlotEncoding Source #

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

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

EncCBOR Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORSlotEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy SlotSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Slot] → Size Source #

Eq Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)SlotSlotBool #

(/=)SlotSlotBool #

Ord Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareSlotSlotOrdering #

(<)SlotSlotBool #

(<=)SlotSlotBool #

(>)SlotSlotBool #

(>=)SlotSlotBool #

maxSlotSlotSlot #

minSlotSlotSlot #

Hashable Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashWithSaltIntSlotInt Source #

hashSlotInt Source #

NoThunks Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasScheduledDelegations DIState [(Slot, (VKeyGenesis, VKey))] Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

HasScheduledDelegations DSState [(Slot, (VKeyGenesis, VKey))] Source # 
Instance details

Defined in Byron.Spec.Ledger.Delegation

type Rep Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Slot = D1 ('MetaData "Slot" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "Slot" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype SlotCount Source #

A number of slots.

We use this newtype to distinguish between a cardinal slot and a relative period of slots, and also to distinguish between number of slots and number of blocks.

Constructors

SlotCount 

Fields

Instances

Instances details
Data SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → SlotCount → c SlotCount #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c SlotCount #

toConstrSlotCount → Constr #

dataTypeOfSlotCountDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c SlotCount) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c SlotCount) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → SlotCountSlotCount #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → SlotCount → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → SlotCount → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → SlotCount → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → SlotCount → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → SlotCount → m SlotCount #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → SlotCount → m SlotCount #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → SlotCount → m SlotCount #

Generic SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep SlotCountTypeType #

Methods

fromSlotCountRep SlotCount x #

toRep SlotCount x → SlotCount #

Num SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Show SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntSlotCountShowS #

showSlotCountString #

showList ∷ [SlotCount] → ShowS #

HasTypeReps SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsSlotCountSeq TypeRep Source #

ToCBOR SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORSlotCountEncoding Source #

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

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

EncCBOR SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORSlotCountEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy SlotCountSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [SlotCount] → Size Source #

Eq SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)SlotCountSlotCountBool #

(/=)SlotCountSlotCountBool #

Ord SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Hashable SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

NoThunks SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep SlotCount = D1 ('MetaData "SlotCount" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "SlotCount" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

addSlotSlotSlotCountSlot Source #

Add a slot count to a slot.

(+.)SlotSlotCountSlot infixl 6 Source #

An alias for addSlot

minusSlotSlotSlotCountSlot Source #

Subtract a slot count from a slot.

This is bounded below by 0.

(-.)SlotSlotCountSlot infixl 6 Source #

An alias for minusSlot

(*.)Word64BlockCountSlotCount infixl 7 Source #

Multiply the block count by the given constant. This function does not check for overflow.

minusSlotMaybeSlotSlotCountMaybe Slot Source #

Subtract a slot count from a slot.

In case the slot count is greater than the slot's index, it returns Nothing.

newtype BlockCount Source #

Constructors

BlockCount 

Fields

Instances

Instances details
Generic BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep BlockCountTypeType #

Num BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Show BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasTypeReps BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsBlockCountSeq TypeRep Source #

FromCBOR BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

ToCBOR BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORBlockCountEncoding Source #

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

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

DecCBOR BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

EncCBOR BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORBlockCountEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy BlockCountSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [BlockCount] → Size Source #

Eq BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)BlockCountBlockCountBool #

(/=)BlockCountBlockCountBool #

Ord BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Hashable BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

NoThunks BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep BlockCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep BlockCount = D1 ('MetaData "BlockCount" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "BlockCount" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype Addr Source #

The address of a transaction output, used to identify the owner.

Constructors

Addr VKey 

Instances

Instances details
Data Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Addr → c Addr #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Addr #

toConstrAddr → Constr #

dataTypeOfAddrDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Addr) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Addr) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → AddrAddr #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Addr → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Addr → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Addr → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Addr → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Addr → m Addr #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Addr → m Addr #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Addr → m Addr #

Generic Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep AddrTypeType #

Methods

fromAddrRep Addr x #

toRep Addr x → Addr #

Show Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntAddrShowS #

showAddrString #

showList ∷ [Addr] → ShowS #

HasHash Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashAddrHash Source #

HasOwner Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

ownerAddrOwner Source #

HasTypeReps Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsAddrSeq TypeRep Source #

ToCBOR Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORAddrEncoding Source #

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

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

EncCBOR Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORAddrEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy AddrSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Addr] → Size Source #

Eq Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)AddrAddrBool #

(/=)AddrAddrBool #

Ord Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareAddrAddrOrdering #

(<)AddrAddrBool #

(<=)AddrAddrBool #

(>)AddrAddrBool #

(>=)AddrAddrBool #

maxAddrAddrAddr #

minAddrAddrAddr #

Hashable Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

hashWithSaltIntAddrInt Source #

hashAddrInt Source #

NoThunks Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Addr = D1 ('MetaData "Addr" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "Addr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VKey)))

mkAddrNaturalAddr Source #

Create an address from a number.

newtype Lovelace Source #

A unit of value held by a UTxO.

Constructors

Lovelace 

Fields

Instances

Instances details
Data Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Lovelace → c Lovelace #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Lovelace #

toConstrLovelace → Constr #

dataTypeOfLovelaceDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Lovelace) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Lovelace) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → LovelaceLovelace #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Lovelace → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Lovelace → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Lovelace → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Lovelace → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Lovelace → m Lovelace #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Lovelace → m Lovelace #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Lovelace → m Lovelace #

Monoid Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Semigroup Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Enum Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Generic Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep LovelaceTypeType #

Methods

fromLovelaceRep Lovelace x #

toRep Lovelace x → Lovelace #

Num Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Integral Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Real Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toRationalLovelaceRational #

Show Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntLovelaceShowS #

showLovelaceString #

showList ∷ [Lovelace] → ShowS #

HasTypeReps Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

typeRepsLovelaceSeq TypeRep Source #

ToCBOR Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

toCBORLovelaceEncoding Source #

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

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

EncCBOR Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

encCBORLovelaceEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy LovelaceSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Lovelace] → Size Source #

Eq Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)LovelaceLovelaceBool #

(/=)LovelaceLovelaceBool #

Ord Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Hashable Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

NoThunks Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

type Rep Lovelace = D1 ('MetaData "Lovelace" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.0.1.0-inplace" 'True) (C1 ('MetaCons "Lovelace" 'PrefixI 'True) (S1 ('MetaSel ('Just "unLovelace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

lovelaceCapLovelace Source #

Constant amount of Lovelace in the system.

class Relation m where Source #

Minimal complete definition

singleton, dom, range, (◁), (⋪), (▷), (⋫), (∪), (⨃), (<=◁), (▷<=), (▷>=), size

Associated Types

type Domain m ∷ Type Source #

type Range m ∷ Type Source #

Methods

singletonDomain m → Range m → m Source #

domOrd (Domain m) ⇒ m → Set (Domain m) Source #

Domain

rangeOrd (Range m) ⇒ m → Set (Range m) Source #

Range

(◁) ∷ (Ord (Domain m), Foldable f) ⇒ f (Domain m) → m → m Source #

Domain restriction

Unicode: 25c1

(<|) ∷ (Ord (Domain m), Foldable f) ⇒ f (Domain m) → m → m Source #

Domain restriction

Unicode: 25c1

(⋪) ∷ (Ord (Domain m), Foldable f) ⇒ f (Domain m) → m → m Source #

Domain exclusion

Unicode: 22ea

(</|) ∷ (Ord (Domain m), Foldable f) ⇒ f (Domain m) → m → m Source #

Domain exclusion

Unicode: 22ea

(▷)Ord (Range m) ⇒ m → Set (Range m) → m Source #

Range restriction

Unicode: 25b7

(|>)Ord (Range m) ⇒ m → Set (Range m) → m Source #

Range restriction

Unicode: 25b7

(⋫)Ord (Range m) ⇒ m → Set (Range m) → m Source #

Range exclusion

Unicode: 22eb

(|/>)Ord (Range m) ⇒ m → Set (Range m) → m Source #

Range exclusion

Unicode: 22eb

(∪) ∷ (Ord (Domain m), Ord (Range m)) ⇒ m → m → m Source #

Union

(⨃) ∷ (Ord (Domain m), Ord (Range m), Foldable f) ⇒ m → f (Domain m, Range m) → m Source #

Union Override Right

(<=◁)Ord (Domain m) ⇒ Domain m → m → m infixl 5 Source #

Restrict domain to values less or equal than the given value.

Unicode: 25c1

(▷<=)Ord (Range m) ⇒ m → Range m → m infixl 5 Source #

Restrict range to values less or equal than the given value

Unicode: 25b7

(▷>=)Ord (Range m) ⇒ m → Range m → m infixl 5 Source #

Restrict range to values greater or equal than the given value

Unicode: 25b7

sizeIntegral n ⇒ m → n Source #

Size of the relation

Instances

Instances details
Relation UTxO Source # 
Instance details

Defined in Byron.Spec.Ledger.UTxO

Associated Types

type Domain UTxO Source #

type Range UTxO Source #

Methods

singletonDomain UTxORange UTxOUTxO Source #

domUTxOSet (Domain UTxO) Source #

rangeUTxOSet (Range UTxO) Source #

(◁) ∷ (Ord (Domain UTxO), Foldable f) ⇒ f (Domain UTxO) → UTxOUTxO Source #

(<|) ∷ (Ord (Domain UTxO), Foldable f) ⇒ f (Domain UTxO) → UTxOUTxO Source #

(⋪) ∷ (Ord (Domain UTxO), Foldable f) ⇒ f (Domain UTxO) → UTxOUTxO Source #

(</|) ∷ (Ord (Domain UTxO), Foldable f) ⇒ f (Domain UTxO) → UTxOUTxO Source #

(▷)UTxOSet (Range UTxO) → UTxO Source #

(|>)UTxOSet (Range UTxO) → UTxO Source #

(⋫)UTxOSet (Range UTxO) → UTxO Source #

(|/>)UTxOSet (Range UTxO) → UTxO Source #

(∪)UTxOUTxOUTxO Source #

(⨃) ∷ (Ord (Domain UTxO), Ord (Range UTxO), Foldable f) ⇒ UTxO → f (Domain UTxO, Range UTxO) → UTxO Source #

(<=◁)Domain UTxOUTxOUTxO Source #

(▷<=)UTxORange UTxOUTxO Source #

(▷>=)UTxORange UTxOUTxO Source #

sizeIntegral n ⇒ UTxO → n Source #

Relation (Set (a, b)) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Domain (Set (a, b)) Source #

type Range (Set (a, b)) Source #

Methods

singletonDomain (Set (a, b)) → Range (Set (a, b)) → Set (a, b) Source #

domSet (a, b) → Set (Domain (Set (a, b))) Source #

rangeSet (a, b) → Set (Range (Set (a, b))) Source #

(◁) ∷ (Ord (Domain (Set (a, b))), Foldable f) ⇒ f (Domain (Set (a, b))) → Set (a, b) → Set (a, b) Source #

(<|) ∷ (Ord (Domain (Set (a, b))), Foldable f) ⇒ f (Domain (Set (a, b))) → Set (a, b) → Set (a, b) Source #

(⋪) ∷ (Ord (Domain (Set (a, b))), Foldable f) ⇒ f (Domain (Set (a, b))) → Set (a, b) → Set (a, b) Source #

(</|) ∷ (Ord (Domain (Set (a, b))), Foldable f) ⇒ f (Domain (Set (a, b))) → Set (a, b) → Set (a, b) Source #

(▷)Set (a, b) → Set (Range (Set (a, b))) → Set (a, b) Source #

(|>)Set (a, b) → Set (Range (Set (a, b))) → Set (a, b) Source #

(⋫)Set (a, b) → Set (Range (Set (a, b))) → Set (a, b) Source #

(|/>)Set (a, b) → Set (Range (Set (a, b))) → Set (a, b) Source #

(∪)Set (a, b) → Set (a, b) → Set (a, b) Source #

(⨃) ∷ (Ord (Domain (Set (a, b))), Ord (Range (Set (a, b))), Foldable f) ⇒ Set (a, b) → f (Domain (Set (a, b)), Range (Set (a, b))) → Set (a, b) Source #

(<=◁)Domain (Set (a, b)) → Set (a, b) → Set (a, b) Source #

(▷<=)Set (a, b) → Range (Set (a, b)) → Set (a, b) Source #

(▷>=)Set (a, b) → Range (Set (a, b)) → Set (a, b) Source #

sizeIntegral n ⇒ Set (a, b) → n Source #

Relation [(a, b)] Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Domain [(a, b)] Source #

type Range [(a, b)] Source #

Methods

singletonDomain [(a, b)] → Range [(a, b)] → [(a, b)] Source #

dom ∷ [(a, b)] → Set (Domain [(a, b)]) Source #

range ∷ [(a, b)] → Set (Range [(a, b)]) Source #

(◁) ∷ (Ord (Domain [(a, b)]), Foldable f) ⇒ f (Domain [(a, b)]) → [(a, b)] → [(a, b)] Source #

(<|) ∷ (Ord (Domain [(a, b)]), Foldable f) ⇒ f (Domain [(a, b)]) → [(a, b)] → [(a, b)] Source #

(⋪) ∷ (Ord (Domain [(a, b)]), Foldable f) ⇒ f (Domain [(a, b)]) → [(a, b)] → [(a, b)] Source #

(</|) ∷ (Ord (Domain [(a, b)]), Foldable f) ⇒ f (Domain [(a, b)]) → [(a, b)] → [(a, b)] Source #

(▷) ∷ [(a, b)] → Set (Range [(a, b)]) → [(a, b)] Source #

(|>) ∷ [(a, b)] → Set (Range [(a, b)]) → [(a, b)] Source #

(⋫) ∷ [(a, b)] → Set (Range [(a, b)]) → [(a, b)] Source #

(|/>) ∷ [(a, b)] → Set (Range [(a, b)]) → [(a, b)] Source #

(∪) ∷ [(a, b)] → [(a, b)] → [(a, b)] Source #

(⨃) ∷ (Ord (Domain [(a, b)]), Ord (Range [(a, b)]), Foldable f) ⇒ [(a, b)] → f (Domain [(a, b)], Range [(a, b)]) → [(a, b)] Source #

(<=◁)Domain [(a, b)] → [(a, b)] → [(a, b)] Source #

(▷<=) ∷ [(a, b)] → Range [(a, b)] → [(a, b)] Source #

(▷>=) ∷ [(a, b)] → Range [(a, b)] → [(a, b)] Source #

sizeIntegral n ⇒ [(a, b)] → n Source #

(Ord k, Ord v) ⇒ Relation (Bimap k v) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Domain (Bimap k v) Source #

type Range (Bimap k v) Source #

Methods

singletonDomain (Bimap k v) → Range (Bimap k v) → Bimap k v Source #

domBimap k v → Set (Domain (Bimap k v)) Source #

rangeBimap k v → Set (Range (Bimap k v)) Source #

(◁) ∷ (Ord (Domain (Bimap k v)), Foldable f) ⇒ f (Domain (Bimap k v)) → Bimap k v → Bimap k v Source #

(<|) ∷ (Ord (Domain (Bimap k v)), Foldable f) ⇒ f (Domain (Bimap k v)) → Bimap k v → Bimap k v Source #

(⋪) ∷ (Ord (Domain (Bimap k v)), Foldable f) ⇒ f (Domain (Bimap k v)) → Bimap k v → Bimap k v Source #

(</|) ∷ (Ord (Domain (Bimap k v)), Foldable f) ⇒ f (Domain (Bimap k v)) → Bimap k v → Bimap k v Source #

(▷)Bimap k v → Set (Range (Bimap k v)) → Bimap k v Source #

(|>)Bimap k v → Set (Range (Bimap k v)) → Bimap k v Source #

(⋫)Bimap k v → Set (Range (Bimap k v)) → Bimap k v Source #

(|/>)Bimap k v → Set (Range (Bimap k v)) → Bimap k v Source #

(∪)Bimap k v → Bimap k v → Bimap k v Source #

(⨃) ∷ (Ord (Domain (Bimap k v)), Ord (Range (Bimap k v)), Foldable f) ⇒ Bimap k v → f (Domain (Bimap k v), Range (Bimap k v)) → Bimap k v Source #

(<=◁)Domain (Bimap k v) → Bimap k v → Bimap k v Source #

(▷<=)Bimap k v → Range (Bimap k v) → Bimap k v Source #

(▷>=)Bimap k v → Range (Bimap k v) → Bimap k v Source #

sizeIntegral n ⇒ Bimap k v → n Source #

Relation (Map k v) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Domain (Map k v) Source #

type Range (Map k v) Source #

Methods

singletonDomain (Map k v) → Range (Map k v) → Map k v Source #

domMap k v → Set (Domain (Map k v)) Source #

rangeMap k v → Set (Range (Map k v)) Source #

(◁) ∷ (Ord (Domain (Map k v)), Foldable f) ⇒ f (Domain (Map k v)) → Map k v → Map k v Source #

(<|) ∷ (Ord (Domain (Map k v)), Foldable f) ⇒ f (Domain (Map k v)) → Map k v → Map k v Source #

(⋪) ∷ (Ord (Domain (Map k v)), Foldable f) ⇒ f (Domain (Map k v)) → Map k v → Map k v Source #

(</|) ∷ (Ord (Domain (Map k v)), Foldable f) ⇒ f (Domain (Map k v)) → Map k v → Map k v Source #

(▷)Map k v → Set (Range (Map k v)) → Map k v Source #

(|>)Map k v → Set (Range (Map k v)) → Map k v Source #

(⋫)Map k v → Set (Range (Map k v)) → Map k v Source #

(|/>)Map k v → Set (Range (Map k v)) → Map k v Source #

(∪)Map k v → Map k v → Map k v Source #

(⨃) ∷ (Ord (Domain (Map k v)), Ord (Range (Map k v)), Foldable f) ⇒ Map k v → f (Domain (Map k v), Range (Map k v)) → Map k v Source #

(<=◁)Domain (Map k v) → Map k v → Map k v Source #

(▷<=)Map k v → Range (Map k v) → Map k v Source #

(▷>=)Map k v → Range (Map k v) → Map k v Source #

sizeIntegral n ⇒ Map k v → n Source #

(∈) ∷ (Eq a, Foldable f) ⇒ a → f a → Bool Source #

Alias for elem.

Unicode: 2208

(∉) ∷ (Eq a, Foldable f) ⇒ a → f a → Bool infixl 4 Source #

Alias for not elem.

Unicode: 2209

(∪+) ∷ (Ord a, Ord b, Num b) ⇒ Map a b → Map a b → Map a b Source #

Union override plus is (AB)∪(BA)∪{k|->v1+v2 | k|->v1 : A / k|->v2 : B}

(⊆) ∷ (Foldable f, Foldable g, Ord a) ⇒ f a → g a → Bool Source #

Inclusion among foldables.

Unicode: 2286

toSet ∷ (Foldable f, Ord a) ⇒ f a → Set a Source #

(∩)Ord a ⇒ Set a → Set a → Set a Source #