Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.CLI.EraBased.Query.Run
Synopsis
- runQueryCmds :: QueryCmds era -> ExceptT QueryCmdError IO ()
- runQueryKesPeriodInfoCmd :: QueryKesPeriodInfoCmdArgs -> ExceptT QueryCmdError IO ()
- runQueryLeadershipScheduleCmd :: QueryLeadershipScheduleCmdArgs -> ExceptT QueryCmdError IO ()
- runQueryLedgerStateCmd :: QueryLedgerStateCmdArgs -> ExceptT QueryCmdError IO ()
- runQueryLedgerPeerSnapshot :: QueryLedgerPeerSnapshotCmdArgs -> 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 #
runQueryLedgerPeerSnapshot :: QueryLedgerPeerSnapshotCmdArgs -> 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 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
Constructors
DelegationsAndRewards (Map StakeAddress Coin, Map StakeAddress PoolId) |
Instances
FromJSON DelegationsAndRewards | |
Defined in Cardano.Api.Internal.Rewards Methods parseJSON :: Value -> Parser DelegationsAndRewards parseJSONList :: Value -> Parser [DelegationsAndRewards] | |
ToJSON DelegationsAndRewards | |
Defined in Cardano.Api.Internal.Rewards Methods toJSON :: DelegationsAndRewards -> Value toEncoding :: DelegationsAndRewards -> Encoding toJSONList :: [DelegationsAndRewards] -> Value toEncodingList :: [DelegationsAndRewards] -> Encoding | |
Show DelegationsAndRewards | |
Defined in Cardano.Api.Internal.Rewards | |
Eq DelegationsAndRewards | |
Defined in Cardano.Api.Internal.Rewards Methods (==) :: DelegationsAndRewards -> DelegationsAndRewards -> Bool Source # (/=) :: DelegationsAndRewards -> DelegationsAndRewards -> Bool Source # |
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 #
renderOpCertIntervalInformation :: FilePath -> OpCertIntervalInformation -> Doc AnsiStyle Source #
Arguments
:: RelativeTime |
|
-> RelativeTime |
|
-> RelativeTime |
|
-> Text |
Calculate the percentage sync rendered as text: min 1 (tipTime/nowTime)