Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cooked.Skeleton.Proposal
Description
This module exposes the notion of proposal within a
TxSkel
Synopsis
- data TxParameterChange where
- FeePerByte :: Integer -> TxParameterChange
- FeeFixed :: Integer -> TxParameterChange
- MaxBlockBodySize :: Integer -> TxParameterChange
- MaxTxSize :: Integer -> TxParameterChange
- MaxBlockHeaderSize :: Integer -> TxParameterChange
- KeyDeposit :: Integer -> TxParameterChange
- PoolDeposit :: Integer -> TxParameterChange
- PoolRetirementMaxEpoch :: Integer -> TxParameterChange
- PoolNumber :: Integer -> TxParameterChange
- PoolInfluence :: Rational -> TxParameterChange
- MonetaryExpansion :: Rational -> TxParameterChange
- TreasuryCut :: Rational -> TxParameterChange
- MinPoolCost :: Integer -> TxParameterChange
- CoinsPerUTxOByte :: Integer -> TxParameterChange
- CostModels :: {..} -> TxParameterChange
- Prices :: {..} -> TxParameterChange
- MaxTxExUnits :: {..} -> TxParameterChange
- MaxBlockExUnits :: {..} -> TxParameterChange
- MaxValSize :: Integer -> TxParameterChange
- CollateralPercentage :: Integer -> TxParameterChange
- MaxCollateralInputs :: Integer -> TxParameterChange
- PoolVotingThresholds :: {..} -> TxParameterChange
- DRepVotingThresholds :: {..} -> TxParameterChange
- CommitteeMinSize :: Integer -> TxParameterChange
- CommitteeMaxTermLength :: Integer -> TxParameterChange
- GovActionLifetime :: Integer -> TxParameterChange
- GovActionDeposit :: Integer -> TxParameterChange
- DRepRegistrationDeposit :: Integer -> TxParameterChange
- DRepActivity :: Integer -> TxParameterChange
- data TxGovAction where
- TxGovActionParameterChange :: [TxParameterChange] -> TxGovAction
- TxGovActionHardForkInitiation :: ProtocolVersion -> TxGovAction
- TxGovActionTreasuryWithdrawals :: Map Credential Lovelace -> TxGovAction
- TxGovActionNoConfidence :: TxGovAction
- TxGovActionUpdateCommittee :: [ColdCommitteeCredential] -> Map ColdCommitteeCredential Integer -> Rational -> TxGovAction
- TxGovActionNewConstitution :: Constitution -> TxGovAction
- data TxSkelProposal where
- TxSkelProposal :: {..} -> TxSkelProposal
- txSkelProposalAddressL :: Lens' TxSkelProposal Address
- txSkelProposalActionL :: Lens' TxSkelProposal TxGovAction
- txSkelProposalWitnessL :: Lens' TxSkelProposal (Maybe (Versioned Script, TxSkelRedeemer))
- txSkelProposalAnchorL :: Lens' TxSkelProposal (Maybe String)
- simpleTxSkelProposal :: ToAddress a => a -> TxGovAction -> TxSkelProposal
- withWitness :: ToVersioned Script a => TxSkelProposal -> (a, TxSkelRedeemer) -> TxSkelProposal
- withAnchor :: TxSkelProposal -> String -> TxSkelProposal
Documentation
data TxParameterChange where Source #
These are all the protocol parameters. They are taken from https://github.com/IntersectMBO/cardano-ledger/blob/c4fbc05999866fea7c0cb1b211fd5288f286b95d/eras/conway/impl/cddl-files/conway.cddl#L381-L412 and will most likely change in future eras.
Constructors
FeePerByte :: Integer -> TxParameterChange | The linear factor for the minimum fee calculation |
FeeFixed :: Integer -> TxParameterChange | The constant factor for the minimum fee calculation |
MaxBlockBodySize :: Integer -> TxParameterChange | Maximal block body size |
MaxTxSize :: Integer -> TxParameterChange | Maximal transaction size |
MaxBlockHeaderSize :: Integer -> TxParameterChange | Maximal block header size |
KeyDeposit :: Integer -> TxParameterChange | The amount of a key registration deposit |
PoolDeposit :: Integer -> TxParameterChange | The amount of a pool registration deposit |
PoolRetirementMaxEpoch :: Integer -> TxParameterChange | Maximum number of epochs in the future a pool retirement is allowed to be scheduled future for. |
PoolNumber :: Integer -> TxParameterChange | Desired number of pools |
PoolInfluence :: Rational -> TxParameterChange | Pool influence |
MonetaryExpansion :: Rational -> TxParameterChange | Monetary expansion |
TreasuryCut :: Rational -> TxParameterChange | Treasury expansion |
MinPoolCost :: Integer -> TxParameterChange | Minimum Stake Pool Cost |
CoinsPerUTxOByte :: Integer -> TxParameterChange | Cost in lovelace per byte of UTxO storage |
CostModels | Cost models for non-native script languages |
Fields
| |
Prices | Prices of execution units |
Fields
| |
MaxTxExUnits | Max total script execution resources units allowed per tx |
Fields
| |
MaxBlockExUnits | Max total script execution resources units allowed per block |
Fields
| |
MaxValSize :: Integer -> TxParameterChange | Max size of a Value in an output |
CollateralPercentage :: Integer -> TxParameterChange | Percentage of the txfee which must be provided as collateral when including non-native scripts. |
MaxCollateralInputs :: Integer -> TxParameterChange | Maximum number of collateral inputs allowed in a transaction |
PoolVotingThresholds | Thresholds for pool votes |
Fields
| |
DRepVotingThresholds | Thresholds for DRep votes |
Fields
| |
CommitteeMinSize :: Integer -> TxParameterChange | Minimum size of the Constitutional Committee |
CommitteeMaxTermLength :: Integer -> TxParameterChange | The Constitutional Committee Term limit in number of Slots |
GovActionLifetime :: Integer -> TxParameterChange | Gov action lifetime in number of Epochs |
GovActionDeposit :: Integer -> TxParameterChange | The amount of the Gov Action deposit |
DRepRegistrationDeposit :: Integer -> TxParameterChange | The amount of a DRep registration deposit |
DRepActivity :: Integer -> TxParameterChange | The number of Epochs that a DRep can perform no activity without losing
their |
Instances
Show TxParameterChange Source # | |
Defined in Cooked.Skeleton.Proposal Methods showsPrec :: Int -> TxParameterChange -> ShowS # show :: TxParameterChange -> String # showList :: [TxParameterChange] -> ShowS # | |
PrettyCooked TxParameterChange Source # | |
Defined in Cooked.Pretty.Cooked Methods prettyCooked :: TxParameterChange -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> TxParameterChange -> DocCooked Source # | |
Eq TxParameterChange Source # | |
Defined in Cooked.Skeleton.Proposal Methods (==) :: TxParameterChange -> TxParameterChange -> Bool # (/=) :: TxParameterChange -> TxParameterChange -> Bool # |
data TxGovAction where Source #
This lists the various possible governance actions
Constructors
Instances
Show TxGovAction Source # | |
Defined in Cooked.Skeleton.Proposal Methods showsPrec :: Int -> TxGovAction -> ShowS # show :: TxGovAction -> String # showList :: [TxGovAction] -> ShowS # | |
PrettyCooked TxGovAction Source # | |
Defined in Cooked.Pretty.Cooked Methods prettyCooked :: TxGovAction -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> TxGovAction -> DocCooked Source # | |
Eq TxGovAction Source # | |
Defined in Cooked.Skeleton.Proposal |
data TxSkelProposal where Source #
This bundles a governance action into an actual proposal
Constructors
TxSkelProposal | |
Fields
|
Instances
Show TxSkelProposal Source # | |
Defined in Cooked.Skeleton.Proposal Methods showsPrec :: Int -> TxSkelProposal -> ShowS # show :: TxSkelProposal -> String # showList :: [TxSkelProposal] -> ShowS # | |
PrettyCooked TxSkelProposal Source # | |
Defined in Cooked.Pretty.Cooked Methods prettyCooked :: TxSkelProposal -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> TxSkelProposal -> DocCooked Source # | |
Eq TxSkelProposal Source # | |
Defined in Cooked.Skeleton.Proposal Methods (==) :: TxSkelProposal -> TxSkelProposal -> Bool # (/=) :: TxSkelProposal -> TxSkelProposal -> Bool # |
txSkelProposalAddressL :: Lens' TxSkelProposal Address Source #
A lens to get or set the address of a TxSkelProposal
txSkelProposalActionL :: Lens' TxSkelProposal TxGovAction Source #
A lens to get or set the governance action of a TxSkelProposal
txSkelProposalWitnessL :: Lens' TxSkelProposal (Maybe (Versioned Script, TxSkelRedeemer)) Source #
A lens to get or set the witness of a TxSkelProposal
txSkelProposalAnchorL :: Lens' TxSkelProposal (Maybe String) Source #
A lens to get or set the anchor of a TxSkelProposal
simpleTxSkelProposal :: ToAddress a => a -> TxGovAction -> TxSkelProposal Source #
Builds a TxSkelProposal
from an address and a TxGovAction
withWitness :: ToVersioned Script a => TxSkelProposal -> (a, TxSkelRedeemer) -> TxSkelProposal Source #
Assigns a witness to a TxSkelProposal
withAnchor :: TxSkelProposal -> String -> TxSkelProposal Source #
Assigns an anchor to a TxSkelProposal