Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- serveTxApplication :: HasTxRouter layout r scope => Proxy layout -> Proxy r -> Proxy scope -> RouteTx layout (TxEffs :& r) -> TransactionApplication (Sem r)
- module Tendermint.SDK.BaseApp.Transaction.Types
- class HasTxRouter layout (r :: EffectRow) (scope :: Scope) where
- type RouteTx layout (s :: EffectRow) :: Type
- routeTx :: Proxy layout -> Proxy r -> Proxy scope -> Delayed (Sem r) env (RoutingTx ByteString) (RouteTx layout (TxEffs :& r)) -> Router env r (RoutingTx ByteString) (TxResult, Maybe Cache)
- applyAnteHandler :: Proxy layout -> Proxy r -> Proxy scope -> AnteHandler r -> RouteTx layout r -> RouteTx layout r
- hoistTxRouter :: Proxy layout -> Proxy r -> Proxy scope -> (forall a. Sem s a -> Sem s' a) -> RouteTx layout s -> RouteTx layout s'
- emptyTxServer :: RouteTx EmptyTxServer r
- class DefaultCheckTx api (r :: EffectRow) where
- type DefaultCheckTxT api r :: Type
- defaultCheckTx :: Proxy api -> Proxy r -> DefaultCheckTxT api r
- type family VoidReturn (api :: Type) :: Type where ...
- type TxEffs = [Output Event, GasMeter, WriteStore, ReadStore, Error AppError]
- evalReadOnly :: forall r. forall a. Sem (TxEffs :& r) a -> Sem (ReadStore ': (Error AppError ': r)) a
- type AnteHandler r = forall msg a. Endo (RoutingTx msg -> Sem r a)
Documentation
serveTxApplication :: HasTxRouter layout r scope => Proxy layout -> Proxy r -> Proxy scope -> RouteTx layout (TxEffs :& r) -> TransactionApplication (Sem r) Source #
Re-Exports
class HasTxRouter layout (r :: EffectRow) (scope :: Scope) where Source #
routeTx :: Proxy layout -> Proxy r -> Proxy scope -> Delayed (Sem r) env (RoutingTx ByteString) (RouteTx layout (TxEffs :& r)) -> Router env r (RoutingTx ByteString) (TxResult, Maybe Cache) Source #
applyAnteHandler :: Proxy layout -> Proxy r -> Proxy scope -> AnteHandler r -> RouteTx layout r -> RouteTx layout r Source #
hoistTxRouter :: Proxy layout -> Proxy r -> Proxy scope -> (forall a. Sem s a -> Sem s' a) -> RouteTx layout s -> RouteTx layout s' Source #
Instances
class DefaultCheckTx api (r :: EffectRow) where Source #
type DefaultCheckTxT api r :: Type Source #
defaultCheckTx :: Proxy api -> Proxy r -> DefaultCheckTxT api r Source #
Instances
type family VoidReturn (api :: Type) :: Type where ... Source #
VoidReturn (a :<|> b) = VoidReturn a :<|> VoidReturn b | |
VoidReturn (path :> a) = path :> VoidReturn a | |
VoidReturn (TypedMessage msg :~> Return a) = TypedMessage msg :~> Return () |
evalReadOnly :: forall r. forall a. Sem (TxEffs :& r) a -> Sem (ReadStore ': (Error AppError ': r)) a Source #
type AnteHandler r = forall msg a. Endo (RoutingTx msg -> Sem r a) Source #