@@ -249,6 +249,55 @@ pub struct OpenChannelResponse {
249249 #[ prost( string, tag = "1" ) ]
250250 pub user_channel_id : :: prost:: alloc:: string:: String ,
251251}
252+ /// Increases the channel balance by the given amount.
253+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.splice_in_channel>
254+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
255+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
256+ pub struct SpliceInRequest {
257+ /// The local `user_channel_id` of the channel.
258+ #[ prost( string, tag = "1" ) ]
259+ pub user_channel_id : :: prost:: alloc:: string:: String ,
260+ /// The hex-encoded public key of the channel's counterparty node.
261+ #[ prost( string, tag = "2" ) ]
262+ pub counterparty_node_id : :: prost:: alloc:: string:: String ,
263+ /// The amount of sats to splice into the channel.
264+ #[ prost( uint64, tag = "3" ) ]
265+ pub splice_amount_sats : u64 ,
266+ }
267+ /// The response `content` for the `SpliceIn` API, when HttpStatusCode is OK (200).
268+ /// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
269+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
270+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
271+ pub struct SpliceInResponse { }
272+ /// Decreases the channel balance by the given amount.
273+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.splice_out_channel>
274+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
275+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
276+ pub struct SpliceOutRequest {
277+ /// The local `user_channel_id` of this channel.
278+ #[ prost( string, tag = "1" ) ]
279+ pub user_channel_id : :: prost:: alloc:: string:: String ,
280+ /// The hex-encoded public key of the channel's counterparty node.
281+ #[ prost( string, tag = "2" ) ]
282+ pub counterparty_node_id : :: prost:: alloc:: string:: String ,
283+ /// A Bitcoin on-chain address to send the spliced-out funds.
284+ ///
285+ /// If not set, an address from the node's on-chain wallet will be used.
286+ #[ prost( string, optional, tag = "3" ) ]
287+ pub address : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
288+ /// The amount of sats to splice out of the channel.
289+ #[ prost( uint64, tag = "4" ) ]
290+ pub splice_amount_sats : u64 ,
291+ }
292+ /// The response `content` for the `SpliceOut` API, when HttpStatusCode is OK (200).
293+ /// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
294+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
295+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
296+ pub struct SpliceOutResponse {
297+ /// The Bitcoin on-chain address where the funds will be sent.
298+ #[ prost( string, tag = "1" ) ]
299+ pub address : :: prost:: alloc:: string:: String ,
300+ }
252301/// Update the config for a previously opened channel.
253302/// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.update_channel_config>
254303#[ allow( clippy:: derive_partial_eq_without_eq) ]
0 commit comments