Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runQueryCmds :: QueryCmds era -> 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)
- newOutputFormat :: Maybe OutputFormatJsonOrText -> Maybe a -> OutputFormatJsonOrText
- 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.
runQueryStakeDistributionCmd :: QueryStakeDistributionCmdArgs -> ExceptT QueryCmdError IO () Source #
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.
runQueryTipCmd :: QueryTipCmdArgs -> ExceptT QueryCmdError IO () Source #
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 #
Instances
FromJSON DelegationsAndRewards | |
Defined in Cardano.Api.Rewards | |
ToJSON DelegationsAndRewards | |
Defined in Cardano.Api.Rewards | |
Show DelegationsAndRewards | |
Defined in Cardano.Api.Rewards | |
Eq DelegationsAndRewards | |
Defined in Cardano.Api.Rewards |
newOutputFormat :: Maybe OutputFormatJsonOrText -> Maybe a -> OutputFormatJsonOrText Source #
The output format to use, for commands with a recently introduced --output-[json,text] flag and that used to have the following default: --out-file implies JSON, output to stdout implied text.
renderQueryCmdError :: QueryCmdError -> Doc ann Source #
:: RelativeTime |
|
-> RelativeTime |
|
-> RelativeTime |
|
-> Text |
Calculate the percentage sync rendered as text: min 1 (tipTime/nowTime)