Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- runQueryCmds ∷ QueryCmds era → ExceptT QueryCmdError IO ()
- runQueryConstitutionHashCmd ∷ QueryConstitutionHashCmdArgs → ExceptT QueryCmdError IO ()
- runQueryKesPeriodInfoCmd ∷ QueryKesPeriodInfoCmdArgs → ExceptT QueryCmdError IO ()
- runQueryLeadershipScheduleCmd ∷ QueryLeadershipScheduleCmdArgs → ExceptT QueryCmdError IO ()
- runQueryLedgerStateCmd ∷ QueryLedgerStateCmdArgs → ExceptT QueryCmdError IO ()
- runQueryPoolStateCmd ∷ QueryPoolStateCmdArgs → ExceptT QueryCmdError IO ()
- runQueryProtocolParametersCmd ∷ QueryProtocolParametersCmdArgs → ExceptT QueryCmdError IO ()
- runQueryProtocolStateCmd ∷ QueryProtocolStateCmdArgs → ExceptT QueryCmdError IO ()
- runQuerySlotNumberCmd ∷ QuerySlotNumberCmdArgs → ExceptT QueryCmdError IO ()
- runQueryStakeAddressInfoCmd ∷ QueryStakeAddressInfoCmdArgs → ExceptT QueryCmdError IO ()
- runQueryStakeDistributionCmd ∷ QueryStakeDistributionCmdArgs → ExceptT QueryCmdError IO ()
- runQueryStakePoolsCmd ∷ QueryStakePoolsCmdArgs → ExceptT QueryCmdError IO ()
- runQueryStakeSnapshotCmd ∷ QueryStakeSnapshotCmdArgs → ExceptT QueryCmdError IO ()
- runQueryTipCmd ∷ QueryTipCmdArgs → ExceptT QueryCmdError IO ()
- runQueryTxMempoolCmd ∷ QueryTxMempoolCmdArgs → ExceptT QueryCmdError IO ()
- runQueryUTxOCmd ∷ QueryUTxOCmdArgs → ExceptT QueryCmdError IO ()
- newtype DelegationsAndRewards = DelegationsAndRewards (Map StakeAddress Coin, Map StakeAddress PoolId)
- renderQueryCmdError ∷ QueryCmdError → Doc ann
- renderOpCertIntervalInformation ∷ FilePath → OpCertIntervalInformation → Doc AnsiStyle
- percentage ∷ RelativeTime → RelativeTime → RelativeTime → Text
Documentation
runQueryCmds ∷ QueryCmds era → ExceptT QueryCmdError IO () Source #
runQueryLeadershipScheduleCmd ∷ QueryLeadershipScheduleCmdArgs → ExceptT QueryCmdError IO () Source #
runQueryPoolStateCmd ∷ QueryPoolStateCmdArgs → ExceptT QueryCmdError IO () Source #
Query the current and future parameters for a stake pool, including the retirement date. Any of these may be empty (in which case a null will be displayed).
runQueryProtocolParametersCmd ∷ QueryProtocolParametersCmdArgs → ExceptT QueryCmdError IO () Source #
runQueryStakeAddressInfoCmd ∷ QueryStakeAddressInfoCmdArgs → ExceptT QueryCmdError IO () Source #
Query the current delegations and reward accounts, filtered by a given set of addresses, from a Shelley node via the local state query protocol.
runQueryStakeSnapshotCmd ∷ QueryStakeSnapshotCmdArgs → ExceptT QueryCmdError IO () Source #
Obtain stake snapshot information for a pool, plus information about the total active stake. This information can be used for leader slot calculation, for example, and has been requested by SPOs. Obtaining the information directly is significantly more time and memory efficient than using a full ledger state dump.
runQueryTxMempoolCmd ∷ QueryTxMempoolCmdArgs → ExceptT QueryCmdError IO () Source #
Query the local mempool state
runQueryUTxOCmd ∷ QueryUTxOCmdArgs → ExceptT QueryCmdError IO () Source #
Query the UTxO, filtered by a given set of addresses, from a Shelley node via the local state query protocol.
newtype DelegationsAndRewards Source #
A mapping of Shelley reward accounts to both the stake pool that they delegate to and their reward account balance. TODO: Move to cardano-api
Instances
renderQueryCmdError ∷ QueryCmdError → Doc ann Source #
∷ RelativeTime |
|
→ RelativeTime |
|
→ RelativeTime |
|
→ Text |
Calculate the percentage sync rendered as text.