hs-abci-sdk-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.BaseApp.Query.Store

Documentation

data StoreLeaf a Source #

Instances
(Queryable a, KnownSymbol (Name a)) => HasQueryRouter (StoreLeaf a :: Type) r Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Query.Store

Associated Types

type RouteQ (StoreLeaf a) r :: Type Source #

Methods

routeQ :: Proxy (StoreLeaf a) -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ (StoreLeaf a) r) -> Router env r QueryRequest Query Source #

type RouteQ (StoreLeaf a :: Type) r Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Query.Store

type RouteQ (StoreLeaf a :: Type) r = Sem r (QueryResult a)

class StoreQueryHandler a (ns :: Symbol) h where Source #

Methods

storeQueryHandler :: Proxy a -> StoreKey ns -> h Source #

Instances
(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 # 
Instance details

Defined in Tendermint.SDK.BaseApp.Query.Store

Methods

storeQueryHandler :: Proxy a -> StoreKey ns -> QueryArgs k -> Sem r (QueryResult a) Source #

class StoreQueryHandlers (kvs :: [*]) (ns :: Symbol) r where Source #

Associated Types

type QueryApi kvs :: * Source #

Methods

storeQueryHandlers :: Proxy kvs -> StoreKey ns -> Proxy r -> RouteQ (QueryApi kvs) r Source #

Instances
(IsKey k ns, a ~ Value k ns, HasCodec a, StoreQueryHandlers ((k', a') ': as) ns r, Members ((RawStore :: (Type -> Type) -> Type -> Type) ': ((Error AppError :: (Type -> Type) -> Type -> Type) ': ([] :: [(Type -> Type) -> Type -> Type]))) r) => StoreQueryHandlers ((k, a) ': ((k', a') ': as)) ns r Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Query.Store

Associated Types

type QueryApi ((k, a) ': ((k', a') ': as)) :: Type Source #

Methods

storeQueryHandlers :: Proxy ((k, a) ': ((k', a') ': as)) -> StoreKey ns -> Proxy r -> RouteQ (QueryApi ((k, a) ': ((k', a') ': as))) r 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) => StoreQueryHandlers ((k, a) ': ([] :: [Type])) ns r Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Query.Store

Associated Types

type QueryApi ((k, a) ': []) :: Type Source #

Methods

storeQueryHandlers :: Proxy ((k, a) ': []) -> StoreKey ns -> Proxy r -> RouteQ (QueryApi ((k, a) ': [])) r Source #