lnd-client-0.1.0.0: Lightning Network Daemon (LND) client library for Haskell

Safe HaskellNone
LanguageHaskell2010

LndClient.LndTest

Contents

Synopsis

BTC

newtype BtcUrl Source #

Constructors

BtcUrl String 

newtype BtcLogin Source #

Constructors

BtcLogin ByteString 

newBtcClient :: MonadIO m => BtcEnv -> m Client Source #

TestEnv

Class

class (KatipContext m, MonadUnliftIO m, Ord owner, Enum owner, Bounded owner, Show owner) => LndTest m owner where Source #

Minimal complete definition

getBtcClient, getTestEnv

TestUtils

mine :: forall m owner. LndTest m owner => Int -> owner -> m () Source #

mine1 :: forall m owner. LndTest m owner => Proxy owner -> m () Source #

syncWallets :: forall m owner. LndTest m owner => Proxy owner -> m (Either LndError ()) Source #

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 #

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

liftMaybe :: MonadIO m => String -> Maybe a -> m a Source #

ignore2 :: Monad m => a -> b -> m () Source #

ignore3 :: Monad m => a -> b -> c -> m () Source #