@@ -13,26 +13,18 @@ use ldk_server_protos::api::{
1313 OnchainReceiveRequest , OnchainReceiveResponse , OnchainSendRequest , OnchainSendResponse ,
1414 OpenChannelRequest , OpenChannelResponse ,
1515} ;
16+ use ldk_server_protos:: endpoints:: {
17+ BOLT11_RECEIVE_PATH , BOLT11_SEND_PATH , BOLT12_RECEIVE_PATH , BOLT12_SEND_PATH ,
18+ CLOSE_CHANNEL_PATH , FORCE_CLOSE_CHANNEL_PATH , GET_BALANCES_PATH , GET_NODE_INFO_PATH ,
19+ LIST_CHANNELS_PATH , LIST_PAYMENTS_PATH , ONCHAIN_RECEIVE_PATH , ONCHAIN_SEND_PATH ,
20+ OPEN_CHANNEL_PATH ,
21+ } ;
1622use ldk_server_protos:: error:: { ErrorCode , ErrorResponse } ;
1723use reqwest:: header:: CONTENT_TYPE ;
1824use reqwest:: Client ;
1925
2026const APPLICATION_OCTET_STREAM : & str = "application/octet-stream" ;
2127
22- const GET_NODE_INFO_PATH : & str = "GetNodeInfo" ;
23- const GET_BALANCES_PATH : & str = "GetBalances" ;
24- const ONCHAIN_RECEIVE_PATH : & str = "OnchainReceive" ;
25- const ONCHAIN_SEND_PATH : & str = "OnchainSend" ;
26- const BOLT11_RECEIVE_PATH : & str = "Bolt11Receive" ;
27- const BOLT11_SEND_PATH : & str = "Bolt11Send" ;
28- const BOLT12_RECEIVE_PATH : & str = "Bolt12Receive" ;
29- const BOLT12_SEND_PATH : & str = "Bolt12Send" ;
30- const OPEN_CHANNEL_PATH : & str = "OpenChannel" ;
31- const CLOSE_CHANNEL_PATH : & str = "CloseChannel" ;
32- const FORCE_CLOSE_CHANNEL_PATH : & str = "ForceCloseChannel" ;
33- const LIST_CHANNELS_PATH : & str = "ListChannels" ;
34- const LIST_PAYMENTS_PATH : & str = "ListPayments" ;
35-
3628/// Client to access a hosted instance of LDK Server.
3729#[ derive( Clone ) ]
3830pub struct LdkServerClient {
0 commit comments