Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class (MonadUnliftIO m, KatipContext m, Storage m) => Env m where Source #
getGsEnv, getSwapIntoLnMinAmt, getMsatPerByte, getLspPubKeyVar, getLndP2PSocketAddress, getLspLndEnv, getYesodLog, withLnd, withBtc, monitorTotalExtOutgoingLiquidity, monitorTotalExtIncomingLiquidity, monitorTotalOnChainLiquidity
getSwapIntoLnMinAmt :: m (Money 'Usr 'OnChain 'Fund) Source #
getMsatPerByte :: m (Maybe MSat) Source #
getLspPubKeyVar :: m (MVar NodePubKey) Source #
getLndP2PSocketAddress :: m SocketAddress Source #
getLndNodeUri :: m NodeUri Source #
getLspPubKey :: m NodePubKey Source #
getLspLndEnv :: m LndEnv Source #
getYesodLog :: m YesodLog Source #
setGrpcCtx :: HasField msg "ctx" Ctx => msg -> m msg Source #
setGrpcCtxT :: HasField msg "ctx" Ctx => msg -> ExceptT Failure m msg Source #
withLnd :: (LndEnv -> a) -> (a -> m (Either LndError b)) -> m (Either Failure b) Source #
withLndT :: (LndEnv -> a) -> (a -> m (Either LndError b)) -> ExceptT Failure m b Source #
withLndServerT :: GrpcRes res failure specific => (LndEnv -> a) -> (a -> m (Either LndError b)) -> ExceptT res m b Source #
withBtc :: (Client -> a) -> (a -> IO b) -> m (Either Failure b) Source #
withBtcT :: (Client -> a) -> (a -> IO b) -> ExceptT Failure m b Source #
monitorTotalExtOutgoingLiquidity :: Liquidity 'Outgoing -> m () Source #
monitorTotalExtIncomingLiquidity :: Liquidity 'Incoming -> m () Source #
monitorTotalOnChainLiquidity :: WalletBalance -> m () Source #