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 Source #

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

toConstrHashConstr Source #

dataTypeOfHashDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep HashTypeType Source #

Methods

fromHashRep Hash x Source #

toRep Hash x → Hash Source #

Show Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntHashShowS Source #

showHashString Source #

showList ∷ [Hash] → ShowS Source #

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 Source #

(/=)HashHashBool Source #

Ord Hash Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareHashHashOrdering Source #

(<)HashHashBool Source #

(<=)HashHashBool Source #

(>)HashHashBool Source #

(>=)HashHashBool Source #

maxHashHashHash Source #

minHashHashHash Source #

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 Source #

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

toConstrOwnerConstr Source #

dataTypeOfOwnerDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep OwnerTypeType Source #

Methods

fromOwnerRep Owner x Source #

toRep Owner x → Owner Source #

Show Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

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 Source #

(/=)OwnerOwnerBool Source #

Ord Owner Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareOwnerOwnerOrdering Source #

(<)OwnerOwnerBool Source #

(<=)OwnerOwnerBool Source #

(>)OwnerOwnerBool Source #

(>=)OwnerOwnerBool Source #

maxOwnerOwnerOwner Source #

minOwnerOwnerOwner Source #

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 Source #

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

toConstrSKeyConstr Source #

dataTypeOfSKeyDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep SKeyTypeType Source #

Methods

fromSKeyRep SKey x Source #

toRep SKey x → SKey Source #

Show SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntSKeyShowS Source #

showSKeyString Source #

showList ∷ [SKey] → ShowS Source #

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 Source #

(/=)SKeySKeyBool Source #

Ord SKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareSKeySKeyOrdering Source #

(<)SKeySKeyBool Source #

(<=)SKeySKeyBool Source #

(>)SKeySKeyBool Source #

(>=)SKeySKeyBool Source #

maxSKeySKeySKey Source #

minSKeySKeySKey Source #

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 Source #

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

toConstrVKeyConstr Source #

dataTypeOfVKeyDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep VKeyTypeType Source #

Methods

fromVKeyRep VKey x Source #

toRep VKey x → VKey Source #

Show VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntVKeyShowS Source #

showVKeyString Source #

showList ∷ [VKey] → ShowS Source #

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 Source #

(/=)VKeyVKeyBool Source #

Ord VKey Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareVKeyVKeyOrdering Source #

(<)VKeyVKeyBool Source #

(<=)VKeyVKeyBool Source #

(>)VKeyVKeyBool Source #

(>=)VKeyVKeyBool Source #

maxVKeyVKeyVKey Source #

minVKeyVKeyVKey Source #

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 Source #

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

toConstrVKeyGenesisConstr Source #

dataTypeOfVKeyGenesisDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic VKeyGenesis Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep VKeyGenesisTypeType Source #

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

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 Source #

Methods

fromKeyPairRep KeyPair x Source #

toRep KeyPair x → KeyPair Source #

Show KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasTypeReps KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Eq KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

(==)KeyPairKeyPairBool Source #

(/=)KeyPairKeyPairBool Source #

Ord KeyPair Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

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) Source #

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

toConstrSig a → Constr Source #

dataTypeOfSig a → DataType Source #

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

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

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

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

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

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

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

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

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

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

Generic (Sig a) Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep (Sig a) ∷ TypeType Source #

Methods

fromSig a → Rep (Sig a) x Source #

toRep (Sig a) x → Sig a Source #

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

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntSig a → ShowS Source #

showSig a → String Source #

showList ∷ [Sig a] → ShowS Source #

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 Source #

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

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

Defined in Byron.Spec.Ledger.Core

Methods

compareSig a → Sig a → Ordering Source #

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

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

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

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

maxSig a → Sig a → Sig a Source #

minSig a → Sig a → Sig a Source #

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 Source #

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

toConstrEpochConstr Source #

dataTypeOfEpochDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep EpochTypeType Source #

Methods

fromEpochRep Epoch x Source #

toRep Epoch x → Epoch Source #

Num Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Show Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

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 Source #

(/=)EpochEpochBool Source #

Ord Epoch Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareEpochEpochOrdering Source #

(<)EpochEpochBool Source #

(<=)EpochEpochBool Source #

(>)EpochEpochBool Source #

(>=)EpochEpochBool Source #

maxEpochEpochEpoch Source #

minEpochEpochEpoch Source #

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 Source #

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

toConstrSlotConstr Source #

dataTypeOfSlotDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep SlotTypeType Source #

Methods

fromSlotRep Slot x Source #

toRep Slot x → Slot Source #

Show Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntSlotShowS Source #

showSlotString Source #

showList ∷ [Slot] → ShowS Source #

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 Source #

(/=)SlotSlotBool Source #

Ord Slot Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareSlotSlotOrdering Source #

(<)SlotSlotBool Source #

(<=)SlotSlotBool Source #

(>)SlotSlotBool Source #

(>=)SlotSlotBool Source #

maxSlotSlotSlot Source #

minSlotSlotSlot Source #

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 Source #

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

toConstrSlotCountConstr Source #

dataTypeOfSlotCountDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep SlotCountTypeType Source #

Num SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Show SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasTypeReps SlotCount Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

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

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 Source #

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

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

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 Source #

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

toConstrAddrConstr Source #

dataTypeOfAddrDataType Source #

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

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

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

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

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

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

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

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

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

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

Generic Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Associated Types

type Rep AddrTypeType Source #

Methods

fromAddrRep Addr x Source #

toRep Addr x → Addr Source #

Show Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

showsPrecIntAddrShowS Source #

showAddrString Source #

showList ∷ [Addr] → ShowS Source #

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 Source #

(/=)AddrAddrBool Source #

Ord Addr Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

Methods

compareAddrAddrOrdering Source #

(<)AddrAddrBool Source #

(<=)AddrAddrBool Source #

(>)AddrAddrBool Source #

(>=)AddrAddrBool Source #

maxAddrAddrAddr Source #

minAddrAddrAddr Source #

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 Source #

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

toConstrLovelaceConstr Source #

dataTypeOfLovelaceDataType Source #

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

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

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

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

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

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

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

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

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

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

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 Source #

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

Show Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

HasTypeReps Lovelace Source # 
Instance details

Defined in Byron.Spec.Ledger.Core

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

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 #