Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- filterStakePoolDelegsAndRewards ∷ UMap c → Set (Credential 'Staking c) → (Map (Credential 'Staking c) (KeyHash 'StakePool c), Map (Credential 'Staking c) Coin)
- queryStakePoolDelegsAndRewards ∷ NewEpochState era → Set (Credential 'Staking (EraCrypto era)) → (Map (Credential 'Staking (EraCrypto era)) (KeyHash 'StakePool (EraCrypto era)), Map (Credential 'Staking (EraCrypto era)) Coin)
- queryGovState ∷ NewEpochState era → GovState era
- queryConstitution ∷ ConwayEraGov era ⇒ NewEpochState era → Constitution era
- queryConstitutionHash ∷ ConwayEraGov era ⇒ NewEpochState era → SafeHash (EraCrypto era) AnchorData
- queryDRepState ∷ NewEpochState era → Set (Credential 'DRepRole (EraCrypto era)) → Map (Credential 'DRepRole (EraCrypto era)) (DRepState (EraCrypto era))
- queryDRepStakeDistr ∷ ConwayEraGov era ⇒ NewEpochState era → Set (DRep (EraCrypto era)) → Map (DRep (EraCrypto era)) Coin
- querySPOStakeDistr ∷ ConwayEraGov era ⇒ NewEpochState era → Set (KeyHash 'StakePool (EraCrypto era)) → Map (KeyHash 'StakePool (EraCrypto era)) Coin
- queryCommitteeState ∷ NewEpochState era → CommitteeState era
- queryCommitteeMembersState ∷ ∀ era. ConwayEraGov era ⇒ Set (Credential 'ColdCommitteeRole (EraCrypto era)) → Set (Credential 'HotCommitteeRole (EraCrypto era)) → Set MemberStatus → NewEpochState era → CommitteeMembersState (EraCrypto era)
- queryAccountState ∷ NewEpochState era → AccountState
- data CommitteeMemberState c = CommitteeMemberState {}
- data CommitteeMembersState c = CommitteeMembersState {
- csCommittee ∷ !(Map (Credential 'ColdCommitteeRole c) (CommitteeMemberState c))
- csThreshold ∷ !(Maybe UnitInterval)
- csEpochNo ∷ !EpochNo
- data HotCredAuthStatus c
- data MemberStatus
- data NextEpochChange
- queryCurrentPParams ∷ EraGov era ⇒ NewEpochState era → PParams era
- queryFuturePParams ∷ EraGov era ⇒ NewEpochState era → Maybe (PParams era)
- queryProposals ∷ ConwayEraGov era ⇒ NewEpochState era → Set (GovActionId (EraCrypto era)) → Seq (GovActionState era)
- queryRatifyState ∷ ConwayEraGov era ⇒ NewEpochState era → RatifyState era
- queryStakePoolDefaultVote ∷ NewEpochState era → KeyHash 'StakePool (EraCrypto era) → DefaultVote
- data DefaultVote
- getNextEpochCommitteeMembers ∷ ConwayEraGov era ⇒ NewEpochState era → Map (Credential 'ColdCommitteeRole (EraCrypto era)) EpochNo
GetFilteredDelegationsAndRewardAccounts
filterStakePoolDelegsAndRewards ∷ UMap c → Set (Credential 'Staking c) → (Map (Credential 'Staking c) (KeyHash 'StakePool c), Map (Credential 'Staking c) Coin) Source #
Filter out stake pool delegations and rewards for a set of stake credentials
queryStakePoolDelegsAndRewards ∷ NewEpochState era → Set (Credential 'Staking (EraCrypto era)) → (Map (Credential 'Staking (EraCrypto era)) (KeyHash 'StakePool (EraCrypto era)), Map (Credential 'Staking (EraCrypto era)) Coin) Source #
Uses filterStakePoolDelegsAndRewards
to get the same information from the NewEpochState
Implementation for GetFilteredDelegationsAndRewardAccounts
query.
GetGovState
queryGovState ∷ NewEpochState era → GovState era Source #
This query returns all of the state related to governance
GetConstitution
queryConstitution ∷ ConwayEraGov era ⇒ NewEpochState era → Constitution era Source #
GetConstitutionHash
queryConstitutionHash ∷ ConwayEraGov era ⇒ NewEpochState era → SafeHash (EraCrypto era) AnchorData Source #
GetDRepState
∷ NewEpochState era | |
→ Set (Credential 'DRepRole (EraCrypto era)) | Specify a set of DRep credentials whose state should be returned. When this set is empty, states for all of the DReps will be returned. |
→ Map (Credential 'DRepRole (EraCrypto era)) (DRepState (EraCrypto era)) |
Query DRep state.
GetDRepStakeDistr
∷ ConwayEraGov era | |
⇒ NewEpochState era | |
→ Set (DRep (EraCrypto era)) | Specify DRep Ids whose stake distribution should be returned. When this set is empty, distributions for all of the DReps will be returned. |
→ Map (DRep (EraCrypto era)) Coin |
Query DRep stake distribution. Note that this can be an expensive query because there is a chance that current distribution has not been fully computed yet.
GetSPOStakeDistr
∷ ConwayEraGov era | |
⇒ NewEpochState era | |
→ Set (KeyHash 'StakePool (EraCrypto era)) | |
→ Map (KeyHash 'StakePool (EraCrypto era)) Coin | Specify pool key hashes whose stake distribution should be returned. When this set is empty, distributions for all of the pools will be returned. |
Query pool stake distribution.
GetCommitteeState
queryCommitteeState ∷ NewEpochState era → CommitteeState era Source #
Deprecated: In favor of queryCommitteeMembersState
Query committee members
GetCommitteeMembersState
queryCommitteeMembersState Source #
∷ ∀ era. ConwayEraGov era | |
⇒ Set (Credential 'ColdCommitteeRole (EraCrypto era)) | filter by cold credentials (don't filter when empty) |
→ Set (Credential 'HotCommitteeRole (EraCrypto era)) | filter by hot credentials (don't filter when empty) |
→ Set MemberStatus | filter by status (don't filter when empty) (useful, for discovering, for example, only active members) |
→ NewEpochState era | |
→ CommitteeMembersState (EraCrypto era) |
Query committee members. Whenever the system is in No Confidence mode this query will
return Nothing
.
GetAccountState
data CommitteeMemberState c Source #
CommitteeMemberState | |
|
Instances
data CommitteeMembersState c Source #
CommitteeMembersState | |
|
Instances
data HotCredAuthStatus c Source #
MemberAuthorized (Credential 'HotCommitteeRole c) | |
MemberNotAuthorized | Member enacted, but no hot credential for voting has been registered |
MemberResigned (Maybe (Anchor c)) |
Instances
data MemberStatus Source #
Active | |
Expired | |
Unrecognized | This can happen when a hot credential for an unknown cold credential exists. Such Committee member will be either removed from the state at the next epoch boundary or enacted as a new member. |
Instances
data NextEpochChange Source #
ToBeEnacted | |
ToBeRemoved | Member will be removed |
NoChangeExpected | |
ToBeExpired | |
TermAdjusted EpochNo |
Instances
GetCurrentPParams
queryCurrentPParams ∷ EraGov era ⇒ NewEpochState era → PParams era Source #
This is a simple lookup into the state for the values of current protocol
parameters. These values can change on the epoch boundary. Use queryFuturePParams
to
see if we are aware of any upcoming changes.
GetFuturePParams
queryFuturePParams ∷ EraGov era ⇒ NewEpochState era → Maybe (PParams era) Source #
This query will return values for protocol parameters that are likely to be adopted at the next epoch boundary. It is only when we passed 2 stability windows before the end of the epoch that users can rely on this query to produce stable results.
GetProposals
∷ ConwayEraGov era | |
⇒ NewEpochState era | |
→ Set (GovActionId (EraCrypto era)) | Specify a set of Governance Action IDs to filter the proposals. When this set is empty, all the proposals considered for ratification will be returned. |
→ Seq (GovActionState era) |
Query proposals that are considered for ratification.
GetRatifyState
queryRatifyState ∷ ConwayEraGov era ⇒ NewEpochState era → RatifyState era Source #
Query ratification state.
@GetStakePoolDefaultVote
queryStakePoolDefaultVote Source #
∷ NewEpochState era | |
→ KeyHash 'StakePool (EraCrypto era) | Specify the key hash of the pool whose default vote should be returned. |
→ DefaultVote |
Query a stake pool's reward account delegatee which determines the pool's default vote in absence of an explicit vote. Note that this is different from the delegatee determined by the credential of the stake pool itself.
data DefaultVote Source #
Default vote that will be used for Stake Pool.
DefaultNo | Reward account is delegated to a |
DefaultAbstain | Reward account is delegated to |
DefaultNoConfidence | Reward account is delegated to |
Instances
Show DefaultVote | |
Defined in Cardano.Ledger.Conway.Governance | |
Eq DefaultVote | |
Defined in Cardano.Ledger.Conway.Governance (==) ∷ DefaultVote → DefaultVote → Bool Source # (/=) ∷ DefaultVote → DefaultVote → Bool Source # |
For testing
getNextEpochCommitteeMembers ∷ ConwayEraGov era ⇒ NewEpochState era → Map (Credential 'ColdCommitteeRole (EraCrypto era)) EpochNo Source #