@@ -9,8 +9,8 @@ use breez_sdk_spark::sync_storage::{
99 IncomingChange , OutgoingChange , Record , RecordChange , RecordId , UnversionedRecordChange ,
1010} ;
1111use breez_sdk_spark:: {
12- DepositInfo , Payment , PaymentDetails , PaymentMetadata , SetLnurlMetadataItem , StorageError ,
13- StorageListPaymentsRequest , UpdateDepositPayload ,
12+ Contact , DepositInfo , ListContactsRequest , Payment , PaymentDetails , PaymentMetadata ,
13+ SetLnurlMetadataItem , StorageError , StorageListPaymentsRequest , UpdateDepositPayload ,
1414} ;
1515use ldk_node:: DynStore ;
1616use ldk_node:: lightning:: util:: persist:: KVSTORE_NAMESPACE_KEY_MAX_LEN ;
@@ -298,6 +298,7 @@ impl breez_sdk_spark::Storage for SparkStore {
298298 lnurl_withdraw_info : metadata. lnurl_withdraw_info . or ( existing. lnurl_withdraw_info ) ,
299299 lnurl_description : metadata. lnurl_description . or ( existing. lnurl_description ) ,
300300 conversion_info : metadata. conversion_info . or ( existing. conversion_info ) ,
301+ conversion_status : metadata. conversion_status . or ( existing. conversion_status ) ,
301302 }
302303 } else {
303304 metadata
@@ -407,13 +408,14 @@ impl breez_sdk_spark::Storage for SparkStore {
407408 }
408409
409410 async fn add_deposit (
410- & self , txid : String , vout : u32 , amount_sats : u64 ,
411+ & self , txid : String , vout : u32 , amount_sats : u64 , is_mature : bool ,
411412 ) -> Result < ( ) , StorageError > {
412413 let id = format ! ( "{txid}:{vout}" ) ;
413414 let info = DepositInfo {
414415 txid,
415416 vout,
416417 amount_sats,
418+ is_mature,
417419 refund_tx : None ,
418420 refund_tx_id : None ,
419421 claim_error : None ,
@@ -534,6 +536,28 @@ impl breez_sdk_spark::Storage for SparkStore {
534536 Ok ( ( ) )
535537 }
536538
539+ async fn list_contacts (
540+ & self , _request : ListContactsRequest ,
541+ ) -> Result < Vec < Contact > , StorageError > {
542+ // Contacts are not used by orange-sdk
543+ Ok ( Vec :: new ( ) )
544+ }
545+
546+ async fn get_contact ( & self , _id : String ) -> Result < Contact , StorageError > {
547+ // Contacts are not used by orange-sdk
548+ Err ( StorageError :: Implementation ( "contacts are not supported" . to_string ( ) ) )
549+ }
550+
551+ async fn insert_contact ( & self , _contact : Contact ) -> Result < ( ) , StorageError > {
552+ // Contacts are not used by orange-sdk
553+ Ok ( ( ) )
554+ }
555+
556+ async fn delete_contact ( & self , _id : String ) -> Result < ( ) , StorageError > {
557+ // Contacts are not used by orange-sdk
558+ Ok ( ( ) )
559+ }
560+
537561 async fn add_outgoing_change (
538562 & self , record : UnversionedRecordChange ,
539563 ) -> Result < u64 , StorageError > {
0 commit comments