Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Leaf (a :: *)
- data QA (a :: *)
- type QueryApplication m = Query -> m Query
- data QueryRequest = QueryRequest {
- queryRequestPath :: Text
- queryRequestParamString :: Text
- queryRequestData :: Base64String
- queryRequestProve :: Bool
- queryRequestHeight :: Int64
- parseQueryRequest :: Query -> QueryRequest
- data QueryArgs a = QueryArgs {
- queryArgsProve :: Bool
- queryArgsData :: a
- queryArgsHeight :: Int64
- defaultQueryArgs :: QueryArgs ()
- data QueryResult a = QueryResult {}
- class HasCodec a => Queryable a where
- class FromQueryData a where
- fromQueryData :: Base64String -> Either String a
- data EmptyQueryServer = EmptyQueryServer
Documentation
Instances
(FromQueryData a, HasQueryRouter sublayout r) => HasQueryRouter (QA a :> sublayout :: Type) r Source # | |
type RouteQ (QA a :> sublayout :: Type) r Source # | |
type QueryApplication m = Query -> m Query Source #
data QueryRequest Source #
QueryRequest | |
|
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 | |
|
Instances
Functor QueryArgs Source # | |
(IsKey k ns, a ~ Value k ns, HasCodec a, Members ((RawStore :: (Type -> Type) -> Type -> Type) ': ((Error AppError :: (Type -> Type) -> Type -> Type) ': ([] :: [(Type -> Type) -> Type -> Type]))) r) => StoreQueryHandler (a :: Type) ns (QueryArgs k -> Sem r (QueryResult a)) Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Store storeQueryHandler :: Proxy a -> StoreKey ns -> QueryArgs k -> Sem r (QueryResult a) Source # |
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 # | |
(IsKey k ns, a ~ Value k ns, HasCodec a, Members ((RawStore :: (Type -> Type) -> Type -> Type) ': ((Error AppError :: (Type -> Type) -> Type -> Type) ': ([] :: [(Type -> Type) -> Type -> Type]))) r) => StoreQueryHandler (a :: Type) ns (QueryArgs k -> Sem r (QueryResult a)) Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Store storeQueryHandler :: Proxy a -> StoreKey ns -> QueryArgs k -> Sem r (QueryResult a) Source # |
class HasCodec a => Queryable a Source #
class representing objects which can be queried via the hs-abci query message.
| Here the Name
is the leaf of the query url, e.g. if you can access a token
| balance of type Balance
at "token/balance", then 'Name Balance ~ "balance"'.
class FromQueryData 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 #
fromQueryData :: RawKey a => Base64String -> Either String a Source #
Instances
FromQueryData Address Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Types |
data EmptyQueryServer Source #
Instances
HasQueryRouter EmptyQueryServer r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Router type RouteQ EmptyQueryServer r :: Type Source # routeQ :: Proxy EmptyQueryServer -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ EmptyQueryServer r) -> Router env r QueryRequest Query Source # | |
type RouteQ EmptyQueryServer r Source # | |
Defined in Tendermint.SDK.BaseApp.Query.Router |