Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.Ledger.PoolParams
Description
Deprecated: Use State
instead.
This module is deprecated and will be removed in a future version. Please import these types from Cardano.Ledger.State instead.
The contents of this module have been moved to Cardano.Ledger.State.StakePool to provide better separation between pool registration parameters and pool state management. All types are now re-exported through Cardano.Ledger.State for convenient access.
Synopsis
- data PoolParams = PoolParams {
- ppId ∷ !(KeyHash 'StakePool)
- ppVrf ∷ !(VRFVerKeyHash 'StakePoolVRF)
- ppPledge ∷ !Coin
- ppCost ∷ !Coin
- ppMargin ∷ !UnitInterval
- ppRewardAccount ∷ !RewardAccount
- ppOwners ∷ !(Set (KeyHash 'Staking))
- ppRelays ∷ !(StrictSeq StakePoolRelay)
- ppMetadata ∷ !(StrictMaybe PoolMetadata)
- data PoolMetadata = PoolMetadata {
- pmUrl ∷ !Url
- pmHash ∷ !ByteString
- data StakePoolRelay
- = SingleHostAddr !(StrictMaybe Port) !(StrictMaybe IPv4) !(StrictMaybe IPv6)
- | SingleHostName !(StrictMaybe Port) !DnsName
- | MultiHostName !DnsName
- data SizeOfPoolRelays = SizeOfPoolRelays
- data SizeOfPoolOwners = SizeOfPoolOwners
Documentation
data PoolParams Source #
A stake pool.
Constructors
PoolParams | |
Fields
|
Instances
data PoolMetadata Source #
Constructors
PoolMetadata | |
Fields
|
Instances
data StakePoolRelay Source #
Constructors
SingleHostAddr !(StrictMaybe Port) !(StrictMaybe IPv4) !(StrictMaybe IPv6) | One or both of IPv4 & IPv6 |
SingleHostName !(StrictMaybe Port) !DnsName | An |
MultiHostName !DnsName | A |
Instances
data SizeOfPoolRelays Source #
The size of the ppRelays
Set
. Only used to compute size of encoded
PoolParams
.
Constructors
SizeOfPoolRelays |
Instances
EncCBOR SizeOfPoolRelays Source # | |
Defined in Cardano.Ledger.State.StakePool Methods encCBOR ∷ SizeOfPoolRelays → Encoding Source # encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy SizeOfPoolRelays → Size Source # encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [SizeOfPoolRelays] → Size Source # |
data SizeOfPoolOwners Source #
The size of the ppOwners
Set
. Only used to compute size of encoded
PoolParams
.
Constructors
SizeOfPoolOwners |
Instances
EncCBOR SizeOfPoolOwners Source # | |
Defined in Cardano.Ledger.State.StakePool Methods encCBOR ∷ SizeOfPoolOwners → Encoding Source # encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy SizeOfPoolOwners → Size Source # encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [SizeOfPoolOwners] → Size Source # |