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

Safe HaskellNone
LanguageHaskell2010

LndClient.RPC.Generic

Documentation

grpcSyncSilent :: (MonadIO m, ToGrpc a gA, FromGrpc b gB, HasMethod s rm, gA ~ MethodInput s rm, gB ~ MethodOutput s rm) => RPC s (rm :: Symbol) -> LndEnv -> a -> m (Either LndError b) Source #

grpcSyncKatip :: (MonadIO m, KatipContext m, ToGrpc a gA, FromGrpc b gB, HasMethod s rm, gA ~ MethodInput s rm, gB ~ MethodOutput s rm, Show a, Show b) => RPC s (rm :: Symbol) -> LndEnv -> a -> m (Either LndError b) Source #

grpcSubscribeSilent :: (MonadIO m, ToGrpc a gA, FromGrpc b gB, HasMethod s rm, gA ~ MethodInput s rm, gB ~ MethodOutput s rm) => RPC s (rm :: Symbol) -> (b -> IO ()) -> LndEnv -> a -> m (Either LndError ()) Source #

grpcSubscribeKatip :: (MonadIO m, KatipContext m, ToGrpc a gA, FromGrpc b gB, HasMethod s rm, Show a, gA ~ MethodInput s rm, gB ~ MethodOutput s rm) => RPC s (rm :: Symbol) -> (b -> IO ()) -> LndEnv -> a -> m (Either LndError ()) Source #

data RpcName Source #

Instances
Generic RpcName Source # 
Instance details

Defined in LndClient.RPC.Generic

Associated Types

type Rep RpcName :: Type -> Type #

Methods

from :: RpcName -> Rep RpcName x #

to :: Rep RpcName x -> RpcName #

ToJSON RpcName Source # 
Instance details

Defined in LndClient.RPC.Generic

Methods

toJSON :: RpcName -> Value

toEncoding :: RpcName -> Encoding

toJSONList :: [RpcName] -> Value

toEncodingList :: [RpcName] -> Encoding

type Rep RpcName Source # 
Instance details

Defined in LndClient.RPC.Generic

type Rep RpcName = D1 (MetaData "RpcName" "LndClient.RPC.Generic" "lnd-client-0.1.0.0-inplace" False) ((((C1 (MetaCons "UnlockWallet" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "InitWallet" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "LazyUnlockWallet" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "LazyInitWallet" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "NewAddress" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "AddInvoice" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "AddHodlInvoice" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "CancelInvoice" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "SettleInvoice" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "SubscribeInvoices" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "SubscribeChannelEvents" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "SubscribeHtlcEvents" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "OpenChannelSync" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "OpenChannel" PrefixI False) (U1 :: Type -> Type))))) :+: (((C1 (MetaCons "ListChannels" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "CloseChannel" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ListPeers" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "ConnectPeer" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GetInfo" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "SendPayment" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "WaitForGrpc" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "DecodePayReq" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "LookupInvoice" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "EnsureHodlInvoice" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "TrackPaymentV2" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "PendingChannels" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ClosedChannels" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "ListInvoices" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "SubscribeSingleInvoice" PrefixI False) (U1 :: Type -> Type))))))