cardano-ledger-core-1.17.0.0: Core components of Cardano ledgers from the Shelley release on.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.PoolParams

Synopsis

Documentation

data PoolParams Source #

A stake pool.

Instances

Instances details
FromJSON PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

ToJSON PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Generic PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep PoolParamsTypeType #

Show PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

encCBORPoolParamsEncoding Source #

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

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

DecCBORGroup PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBORGroup PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Default PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

defPoolParams Source #

NFData PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnfPoolParams → () #

Eq PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

(==)PoolParamsPoolParamsBool #

(/=)PoolParamsPoolParamsBool #

Ord PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolParams Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolParams = D1 ('MetaData "PoolParams" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "PoolParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ppId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool)) :*: S1 ('MetaSel ('Just "ppVrf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VRFVerKeyHash 'StakePoolVRF))) :*: (S1 ('MetaSel ('Just "ppPledge") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "ppCost") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :*: ((S1 ('MetaSel ('Just "ppMargin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "ppRewardAccount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RewardAccount)) :*: (S1 ('MetaSel ('Just "ppOwners") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (KeyHash 'Staking))) :*: (S1 ('MetaSel ('Just "ppRelays") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq StakePoolRelay)) :*: S1 ('MetaSel ('Just "ppMetadata") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe PoolMetadata)))))))

data PoolMetadata Source #

Constructors

PoolMetadata 

Fields

Instances

Instances details
FromJSON PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

ToJSON PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Generic PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep PoolMetadataTypeType #

Show PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

NFData PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnfPoolMetadata → () #

Eq PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolMetadata Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolMetadata = D1 ('MetaData "PoolMetadata" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "PoolMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "pmUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "pmHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)))

data StakePoolRelay Source #

Constructors

SingleHostAddr !(StrictMaybe Port) !(StrictMaybe IPv4) !(StrictMaybe IPv6)

One or both of IPv4 & IPv6

SingleHostName !(StrictMaybe Port) !DnsName

An A or AAAA DNS record

MultiHostName !DnsName

A SRV DNS record

Instances

Instances details
FromJSON StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

ToJSON StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Generic StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep StakePoolRelayTypeType #

Show StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

NFData StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnfStakePoolRelay → () #

Eq StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep StakePoolRelay Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep StakePoolRelay = D1 ('MetaData "StakePoolRelay" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "SingleHostAddr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe Port)) :*: (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe IPv4)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe IPv6)))) :+: (C1 ('MetaCons "SingleHostName" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe Port)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DnsName)) :+: C1 ('MetaCons "MultiHostName" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DnsName))))

data SizeOfPoolRelays Source #

The size of the ppRelays Set. Only used to compute size of encoded PoolParams.

Constructors

SizeOfPoolRelays 

Instances

Instances details
EncCBOR SizeOfPoolRelays Source # 
Instance details

Defined in Cardano.Ledger.PoolParams

data SizeOfPoolOwners Source #

The size of the ppOwners Set. Only used to compute size of encoded PoolParams.

Constructors

SizeOfPoolOwners 

Instances

Instances details
EncCBOR SizeOfPoolOwners Source # 
Instance details

Defined in Cardano.Ledger.PoolParams