1414#[ allow( clippy:: derive_partial_eq_without_eq) ]
1515#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1616pub struct EventEnvelope {
17- #[ prost( oneof = "event_envelope::Event" , tags = "2, 3, 4, 6, 7, 8" ) ]
17+ #[ prost( oneof = "event_envelope::Event" , tags = "2, 3, 4, 6, 7, 8, 9, 10 " ) ]
1818 pub event : :: core:: option:: Option < event_envelope:: Event > ,
1919}
2020/// Nested message and enum types in `EventEnvelope`.
@@ -36,6 +36,10 @@ pub mod event_envelope {
3636 PaymentClaimable ( super :: PaymentClaimable ) ,
3737 #[ prost( message, tag = "8" ) ]
3838 ChannelStateChanged ( super :: ChannelStateChanged ) ,
39+ #[ prost( message, tag = "9" ) ]
40+ SpliceNegotiated ( super :: SpliceNegotiated ) ,
41+ #[ prost( message, tag = "10" ) ]
42+ SpliceNegotiationFailed ( super :: SpliceNegotiationFailed ) ,
3943 }
4044}
4145#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
@@ -140,6 +144,38 @@ pub struct ChannelStateChanged {
140144 #[ prost( enumeration = "ChannelClosureInitiator" , tag = "7" ) ]
141145 pub closure_initiator : i32 ,
142146}
147+ /// SpliceNegotiated indicates a channel splice has been negotiated and the funding
148+ /// transaction is pending confirmation on-chain.
149+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
150+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
151+ #[ cfg_attr( feature = "serde" , serde( default ) ) ]
152+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
153+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
154+ pub struct SpliceNegotiated {
155+ #[ prost( string, tag = "1" ) ]
156+ pub channel_id : :: prost:: alloc:: string:: String ,
157+ #[ prost( string, tag = "2" ) ]
158+ pub user_channel_id : :: prost:: alloc:: string:: String ,
159+ #[ prost( string, tag = "3" ) ]
160+ pub counterparty_node_id : :: prost:: alloc:: string:: String ,
161+ /// The outpoint of the channel's splice funding transaction.
162+ #[ prost( string, tag = "4" ) ]
163+ pub new_funding_txo : :: prost:: alloc:: string:: String ,
164+ }
165+ /// SpliceNegotiationFailed indicates a channel splice negotiation round has failed.
166+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
167+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
168+ #[ cfg_attr( feature = "serde" , serde( default ) ) ]
169+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
170+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
171+ pub struct SpliceNegotiationFailed {
172+ #[ prost( string, tag = "1" ) ]
173+ pub channel_id : :: prost:: alloc:: string:: String ,
174+ #[ prost( string, tag = "2" ) ]
175+ pub user_channel_id : :: prost:: alloc:: string:: String ,
176+ #[ prost( string, tag = "3" ) ]
177+ pub counterparty_node_id : :: prost:: alloc:: string:: String ,
178+ }
143179/// PaymentReceived indicates a payment has been received.
144180#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
145181#[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
0 commit comments