Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- prevGovActionIdsGenPreds ∷ Reflect era ⇒ Proof era → [Pred era]
- prevGovActionIdsCheckPreds ∷ Proof era → [Pred era]
- enactStateGenPreds ∷ Reflect era ⇒ Proof era → [Pred era]
- enactStateCheckPreds ∷ Proof era → [Pred era]
- ledgerStatePreds ∷ ∀ era. Reflect era ⇒ UnivSize → Proof era → [Pred era]
- ledgerStateStage ∷ Reflect era ⇒ UnivSize → Proof era → Subst era → Gen (Subst era)
- demo ∷ Reflect era ⇒ Proof era → ReplMode → IO ()
- demoTest ∷ TestTree
- main ∷ IO ()
- genTree ∷ Ord a ⇒ [a] → Gen [(Maybe a, a)]
- useTriples ∷ [(Maybe GovActionId, GovActionId)] → [GovAction era] → [GovActionState era] → [GovActionState era]
- govStatePreds ∷ ∀ era. (ConwayEraPParams era, Reflect era) ⇒ Proof era → [Pred era]
- toProposalMap ∷ ∀ era. [GovActionState era] → Map GovActionId (GovActionState era)
- demoGov ∷ (ConwayEraPParams era, Reflect era) ⇒ Proof era → ReplMode → IO ()
- mainGov ∷ IO ()
- setActionId ∷ GovAction era → Maybe GovActionId → GovAction era
- actionIdL ∷ Lens' (GovAction era) (Maybe GovActionId)
- children ∷ GovActionId → [(Maybe GovActionId, GovActionId)] → Set GovActionId
- genGovActionStates ∷ ∀ era. Era era ⇒ Proof era → Set GovActionId → Gen (Map GovActionId (GovActionState era))
- genGovAction ∷ ∀ era. Era era ⇒ Proof era → GovActionPurpose → Maybe GovActionId → Gen (GovAction era)
- mapOMap ∷ HasOKey k v ⇒ (v → v) → OMap k v → OMap k v
- updateProposals ∷ (GovAction era → GovAction era) → Proposals era → Proposals era
- updateGovAction ∷ (PParamsUpdate era → PParamsUpdate era) → GovAction era → GovAction era
- reasonable ∷ ConwayEraPParams era ⇒ Proposals era → Proposals era
Documentation
prevGovActionIdsCheckPreds ∷ Proof era → [Pred era] Source #
enactStateCheckPreds ∷ Proof era → [Pred era] Source #
genTree ∷ Ord a ⇒ [a] → Gen [(Maybe a, a)] Source #
Generate the (parent,child) pairs in a Tree.
Be sure the list of a
are unique, because each node should appear in the Tree only once.
The first one will be the root of the tree
and have parent Nothing.
useTriples ∷ [(Maybe GovActionId, GovActionId)] → [GovAction era] → [GovActionState era] → [GovActionState era] Source #
Tie together GovActionState and GovAction using the (parent,child) links that describe the shape of the Tree
govStatePreds ∷ ∀ era. (ConwayEraPParams era, Reflect era) ⇒ Proof era → [Pred era] Source #
- Pred era
- that generate a valid (Map GovActionId GovActionState)
toProposalMap ∷ ∀ era. [GovActionState era] → Map GovActionId (GovActionState era) Source #
setActionId ∷ GovAction era → Maybe GovActionId → GovAction era Source #
children ∷ GovActionId → [(Maybe GovActionId, GovActionId)] → Set GovActionId Source #
genGovActionStates ∷ ∀ era. Era era ⇒ Proof era → Set GovActionId → Gen (Map GovActionId (GovActionState era)) Source #
genGovAction ∷ ∀ era. Era era ⇒ Proof era → GovActionPurpose → Maybe GovActionId → Gen (GovAction era) Source #
updateGovAction ∷ (PParamsUpdate era → PParamsUpdate era) → GovAction era → GovAction era Source #
reasonable ∷ ConwayEraPParams era ⇒ Proposals era → Proposals era Source #
What is reasonable for a Tx generated in Conway by drepCertTx
Well parameters that affect the Fee, the Tx Size, TxOuts, and DRep Deposits