| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Bcc.CLI.Sophie.Run.Query
Synopsis
- data SophieQueryCmdError
- data SophieQueryCmdLocalStateQueryError
- renderSophieQueryCmdError ∷ SophieQueryCmdError → Text
- renderLocalStateQueryError ∷ SophieQueryCmdLocalStateQueryError → Text
- runQueryCmd ∷ QueryCmd → ExceptT SophieQueryCmdError IO ()
- percentage ∷ RelativeTime → RelativeTime → RelativeTime → Text
- executeQuery ∷ ∀ result era mode. BccEra era → ConsensusModeParams mode → LocalNodeConnectInfo mode → QueryInMode mode (Either EraMismatch result) → ExceptT SophieQueryCmdError IO result
- queryQueryTip ∷ LocalNodeConnectInfo BccMode → Maybe ChainPoint → IO (ChainTip, Either AcquireFailure QueryTipLocalState)
Documentation
data SophieQueryCmdError Source #
Instances
| Show SophieQueryCmdError Source # | |
Defined in Bcc.CLI.Sophie.Run.Query | |
data SophieQueryCmdLocalStateQueryError Source #
An error that can occur while querying a node's local state.
Constructors
| AcquireFailureError !AcquireFailure | |
| EraMismatchError !EraMismatch | A query from a certain era was applied to a ledger from a different era. |
| ColeProtocolNotSupportedError | The query does not support the Cole protocol. |
| SophieProtocolEraMismatch | The Sophie protocol only supports the Sophie era. |
Instances
Arguments
| ∷ RelativeTime |
|
| → RelativeTime |
|
| → RelativeTime |
|
| → Text |
Calculate the percentage sync rendered as text.
executeQuery ∷ ∀ result era mode. BccEra era → ConsensusModeParams mode → LocalNodeConnectInfo mode → QueryInMode mode (Either EraMismatch result) → ExceptT SophieQueryCmdError IO result Source #