@@ -21,7 +21,7 @@ use crate::lsps0::ser::{
2121use bitcoin:: { Address , FeeRate , OutPoint } ;
2222use lightning:: offers:: offer:: Offer ;
2323use lightning:: util:: ser:: { Readable , Writeable } ;
24- use lightning:: { impl_writeable_tlv_based , impl_writeable_tlv_based_enum } ;
24+ use lightning:: { impl_ser_tlv_based , impl_ser_tlv_based_enum } ;
2525use lightning_invoice:: Bolt11Invoice ;
2626
2727use serde:: { Deserialize , Serialize } ;
@@ -145,7 +145,7 @@ pub struct LSPS1OrderParams {
145145 pub announce_channel : bool ,
146146}
147147
148- impl_writeable_tlv_based ! ( LSPS1OrderParams , {
148+ impl_ser_tlv_based ! ( LSPS1OrderParams , {
149149 ( 0 , lsp_balance_sat, required) ,
150150 ( 2 , client_balance_sat, required) ,
151151 ( 4 , required_channel_confirmations, required) ,
@@ -185,7 +185,7 @@ pub enum LSPS1OrderState {
185185 Failed ,
186186}
187187
188- impl_writeable_tlv_based_enum ! ( LSPS1OrderState ,
188+ impl_ser_tlv_based_enum ! ( LSPS1OrderState ,
189189 ( 0 , Created ) => { } ,
190190 ( 2 , Completed ) => { } ,
191191 ( 4 , Failed ) => { }
@@ -202,7 +202,7 @@ pub struct LSPS1PaymentInfo {
202202 pub onchain : Option < LSPS1OnchainPaymentInfo > ,
203203}
204204
205- impl_writeable_tlv_based ! ( LSPS1PaymentInfo , {
205+ impl_ser_tlv_based ! ( LSPS1PaymentInfo , {
206206 ( 0 , bolt11, option) ,
207207 ( 2 , bolt12, option) ,
208208 ( 4 , onchain, option) ,
@@ -225,7 +225,7 @@ pub struct LSPS1Bolt11PaymentInfo {
225225 pub invoice : Bolt11Invoice ,
226226}
227227
228- impl_writeable_tlv_based ! ( LSPS1Bolt11PaymentInfo , {
228+ impl_ser_tlv_based ! ( LSPS1Bolt11PaymentInfo , {
229229 ( 0 , state, required) ,
230230 ( 2 , expires_at, required) ,
231231 ( 4 , fee_total_sat, required) ,
@@ -251,7 +251,7 @@ pub struct LSPS1Bolt12PaymentInfo {
251251 pub offer : Offer ,
252252}
253253
254- impl_writeable_tlv_based ! ( LSPS1Bolt12PaymentInfo , {
254+ impl_ser_tlv_based ! ( LSPS1Bolt12PaymentInfo , {
255255 ( 0 , state, required) ,
256256 ( 2 , expires_at, required) ,
257257 ( 4 , fee_total_sat, required) ,
@@ -290,7 +290,7 @@ pub struct LSPS1OnchainPaymentInfo {
290290 pub refund_onchain_address : Option < Address > ,
291291}
292292
293- impl_writeable_tlv_based ! ( LSPS1OnchainPaymentInfo , {
293+ impl_ser_tlv_based ! ( LSPS1OnchainPaymentInfo , {
294294 ( 0 , state, required) ,
295295 ( 2 , expires_at, required) ,
296296 ( 4 , fee_total_sat, required) ,
@@ -322,7 +322,7 @@ pub enum LSPS1PaymentState {
322322 Refunded ,
323323}
324324
325- impl_writeable_tlv_based_enum ! ( LSPS1PaymentState ,
325+ impl_ser_tlv_based_enum ! ( LSPS1PaymentState ,
326326 ( 0 , ExpectPayment ) => { } ,
327327 ( 2 , Hold ) => { } ,
328328 ( 4 , Paid ) => { } ,
@@ -340,7 +340,7 @@ pub struct LSPS1ChannelInfo {
340340 pub expires_at : LSPSDateTime ,
341341}
342342
343- impl_writeable_tlv_based ! ( LSPS1ChannelInfo , {
343+ impl_ser_tlv_based ! ( LSPS1ChannelInfo , {
344344 ( 0 , funded_at, required) ,
345345 ( 2 , funding_outpoint, required) ,
346346 ( 4 , expires_at, required) ,
0 commit comments