Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype BtcUrl = BtcUrl String
- newtype BtcLogin = BtcLogin ByteString
- newtype BtcPassword = BtcPassword ByteString
- data BtcEnv = BtcEnv {}
- newBtcClient :: MonadIO m => BtcEnv -> m Client
- data TestEnv
- newTestEnv :: (KatipContext m, MonadUnliftIO m) => LndEnv -> NodeLocation -> m TestEnv
- spawnLinkChannelWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Watcher () ChannelEventUpdate)
- spawnLinkInvoiceWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Watcher SubscribeInvoicesRequest Invoice)
- spawnLinkSingleInvoiceWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Watcher RHash Invoice)
- class (KatipContext m, MonadUnliftIO m, Ord owner, Enum owner, Bounded owner, Show owner) => LndTest m owner where
- getBtcClient :: owner -> m Client
- getTestEnv :: owner -> m TestEnv
- getLndEnv :: owner -> m LndEnv
- getSev :: owner -> Severity -> m Severity
- getNodeLocation :: owner -> m NodeLocation
- getChannelTChan :: owner -> m (TChan ((), ChannelEventUpdate))
- getInvoiceTChan :: owner -> m (TChan (SubscribeInvoicesRequest, Invoice))
- getSingleInvoiceTChan :: owner -> m (TChan (RHash, Invoice))
- watchSingleInvoice :: owner -> RHash -> m ()
- mine :: forall m owner. LndTest m owner => Int -> owner -> m ()
- mine1 :: forall m owner. LndTest m owner => Proxy owner -> m ()
- syncWallets :: forall m owner. LndTest m owner => Proxy owner -> m (Either LndError ())
- syncPendingChannels :: forall m owner. LndTest m owner => Proxy owner -> m ()
- syncPendingChannelsFor :: forall m owner. LndTest m owner => owner -> m (Either LndError ())
- sendTestPayment :: LndTest m owner => MSat -> owner -> owner -> m ()
- receiveClosedChannels :: forall m owner. LndTest m owner => Proxy owner -> [ChannelPoint] -> m (Either LndError ())
- receiveActiveChannel :: LndTest m owner => Proxy owner -> ChannelPoint -> TChan ((), ChannelEventUpdate) -> m (Either LndError ())
- receiveInvoice :: (MonadUnliftIO m, KatipContext m) => RHash -> InvoiceState -> TChan (a, Invoice) -> m (Either LndError ())
- lazyMineInitialCoins :: forall m owner. LndTest m owner => Proxy owner -> m ()
- lazyConnectNodes :: forall m owner. LndTest m owner => Proxy owner -> m ()
- watchDefaults :: forall m owner. LndTest m owner => Proxy owner -> m ()
- cancelAllInvoices :: forall m owner. LndTest m owner => Proxy owner -> m ()
- closeAllChannels :: forall m owner. LndTest m owner => Proxy owner -> m ()
- setupZeroChannels :: LndTest m owner => Proxy owner -> m ()
- setupOneChannel :: forall m owner. LndTest m owner => owner -> owner -> m ChannelPoint
- liftLndResult :: MonadIO m => Either LndError a -> m a
- liftMaybe :: MonadIO m => String -> Maybe a -> m a
- purgeChan :: MonadUnliftIO m => TChan a -> m ()
- ignore2 :: Monad m => a -> b -> m ()
- ignore3 :: Monad m => a -> b -> c -> m ()
BTC
newtype BtcPassword Source #
BtcEnv | |
|
newBtcClient :: MonadIO m => BtcEnv -> m Client Source #
TestEnv
newTestEnv :: (KatipContext m, MonadUnliftIO m) => LndEnv -> NodeLocation -> m TestEnv Source #
spawnLinkChannelWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Watcher () ChannelEventUpdate) Source #
spawnLinkInvoiceWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Watcher SubscribeInvoicesRequest Invoice) Source #
spawnLinkSingleInvoiceWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Watcher RHash Invoice) Source #
Class
class (KatipContext m, MonadUnliftIO m, Ord owner, Enum owner, Bounded owner, Show owner) => LndTest m owner where Source #
getBtcClient :: owner -> m Client Source #
getTestEnv :: owner -> m TestEnv Source #
getLndEnv :: owner -> m LndEnv Source #
getSev :: owner -> Severity -> m Severity Source #
getNodeLocation :: owner -> m NodeLocation Source #
getChannelTChan :: owner -> m (TChan ((), ChannelEventUpdate)) Source #
getInvoiceTChan :: owner -> m (TChan (SubscribeInvoicesRequest, Invoice)) Source #
getSingleInvoiceTChan :: owner -> m (TChan (RHash, Invoice)) Source #
watchSingleInvoice :: owner -> RHash -> m () Source #
TestUtils
syncPendingChannels :: forall m owner. LndTest m owner => Proxy owner -> m () Source #
syncPendingChannelsFor :: forall m owner. LndTest m owner => owner -> m (Either LndError ()) Source #
sendTestPayment :: LndTest m owner => MSat -> owner -> owner -> m () Source #
receiveClosedChannels :: forall m owner. LndTest m owner => Proxy owner -> [ChannelPoint] -> m (Either LndError ()) Source #
receiveActiveChannel :: LndTest m owner => Proxy owner -> ChannelPoint -> TChan ((), ChannelEventUpdate) -> m (Either LndError ()) Source #
receiveInvoice :: (MonadUnliftIO m, KatipContext m) => RHash -> InvoiceState -> TChan (a, Invoice) -> m (Either LndError ()) Source #
LowLevel setup
lazyMineInitialCoins :: forall m owner. LndTest m owner => Proxy owner -> m () Source #
lazyConnectNodes :: forall m owner. LndTest m owner => Proxy owner -> m () Source #
watchDefaults :: forall m owner. LndTest m owner => Proxy owner -> m () Source #
cancelAllInvoices :: forall m owner. LndTest m owner => Proxy owner -> m () Source #
closeAllChannels :: forall m owner. LndTest m owner => Proxy owner -> m () Source #
HighLevel setip
setupZeroChannels :: LndTest m owner => Proxy owner -> m () Source #
setupOneChannel :: forall m owner. LndTest m owner => owner -> owner -> m ChannelPoint Source #
Misc
purgeChan :: MonadUnliftIO m => TChan a -> m () Source #