Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Leaf (a :: Type)
- data QA (a :: Type)
- data EmptyQueryServer = EmptyQueryServer
- class QueryData a where
- fromQueryData :: Base64String -> Either String a
- toQueryData :: a -> Base64String
- type QueryApplication m = Query -> m Query
- data QueryRequest = QueryRequest {}
- parseQueryRequest :: Query -> QueryRequest
- data QueryArgs a = QueryArgs {
- queryArgsProve :: Bool
- queryArgsData :: a
- queryArgsHeight :: Int64
- defaultQueryArgs :: QueryArgs ()
- data QueryResult a = QueryResult {}
Server combinators
data Leaf (a :: Type) Source #
Instances
(Member (Tagged 'QueryAndMempool (ReadStore :: (Type -> Type) -> Type -> Type)) r, HasCodec a) => HasQueryRouter (Leaf a :: Type) r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Router routeQ :: Proxy (Leaf a) -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ (Leaf a) (QueryEffs :& r)) -> Router env r QueryRequest Query Source # hoistQueryRouter :: forall (s :: EffectRow) (s' :: EffectRow). Proxy (Leaf a) -> Proxy r -> (forall a0. Sem s a0 -> Sem s' a0) -> RouteQ (Leaf a) s -> RouteQ (Leaf a) s' Source # | |
type RouteQ (Leaf a :: Type) r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Router |
Instances
(QueryData a, HasQueryRouter sublayout r) => HasQueryRouter (QA a :> sublayout :: Type) r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Router routeQ :: Proxy (QA a :> sublayout) -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ (QA a :> sublayout) (QueryEffs :& r)) -> Router env r QueryRequest Query Source # hoistQueryRouter :: forall (s :: EffectRow) (s' :: EffectRow). Proxy (QA a :> sublayout) -> Proxy r -> (forall a0. Sem s a0 -> Sem s' a0) -> RouteQ (QA a :> sublayout) s -> RouteQ (QA a :> sublayout) s' Source # | |
type RouteQ (QA a :> sublayout :: Type) r Source # | |
data EmptyQueryServer Source #
Instances
HasQueryRouter EmptyQueryServer r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Router type RouteQ EmptyQueryServer r Source # routeQ :: Proxy EmptyQueryServer -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ EmptyQueryServer (QueryEffs :& r)) -> Router env r QueryRequest Query Source # hoistQueryRouter :: forall (s :: EffectRow) (s' :: EffectRow). Proxy EmptyQueryServer -> Proxy r -> (forall a. Sem s a -> Sem s' a) -> RouteQ EmptyQueryServer s -> RouteQ EmptyQueryServer s' Source # | |
type RouteQ EmptyQueryServer r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Router |
class QueryData a where Source #
This class is used to parse the 'data' field of the query request message. | The default method assumes that the 'data' is simply the key for the | value being queried.
Nothing
fromQueryData :: Base64String -> Either String a Source #
default fromQueryData :: RawKey a => Base64String -> Either String a Source #
toQueryData :: a -> Base64String Source #
default toQueryData :: RawKey a => a -> Base64String Source #
Instances
QueryData Word64 Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types fromQueryData :: Base64String -> Either String Word64 Source # toQueryData :: Word64 -> Base64String Source # | |
QueryData () Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types fromQueryData :: Base64String -> Either String () Source # toQueryData :: () -> Base64String Source # | |
QueryData Text Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types fromQueryData :: Base64String -> Either String Text Source # toQueryData :: Text -> Base64String Source # | |
QueryData Address Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types fromQueryData :: Base64String -> Either String Address Source # toQueryData :: Address -> Base64String Source # | |
QueryData PubKey_ Source # | |
Defined in Tendermint.SDK.Modules.Validators.Types fromQueryData :: Base64String -> Either String PubKey_ Source # toQueryData :: PubKey_ -> Base64String Source # |
Query Application
type QueryApplication m = Query -> m Query Source #
data QueryRequest Source #
Instances
Eq QueryRequest Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types (==) :: QueryRequest -> QueryRequest -> Bool # (/=) :: QueryRequest -> QueryRequest -> Bool # | |
Show QueryRequest Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types showsPrec :: Int -> QueryRequest -> ShowS # show :: QueryRequest -> String # showList :: [QueryRequest] -> ShowS # | |
HasPath QueryRequest Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types path :: Lens' QueryRequest Text Source # |
QueryArgs | |
|
defaultQueryArgs :: QueryArgs () Source #
data QueryResult a Source #
Instances
Functor QueryResult Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types fmap :: (a -> b) -> QueryResult a -> QueryResult b # (<$) :: a -> QueryResult b -> QueryResult a # | |
Eq a => Eq (QueryResult a) Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types (==) :: QueryResult a -> QueryResult a -> Bool # (/=) :: QueryResult a -> QueryResult a -> Bool # | |
Show a => Show (QueryResult a) Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types showsPrec :: Int -> QueryResult a -> ShowS # show :: QueryResult a -> String # showList :: [QueryResult a] -> ShowS # |