@@ -261,25 +261,32 @@ impl From<BdkLocalOutput> for LocalOutput {
261261}
262262
263263// Callback for the FullScanRequest
264+ #[ uniffi:: export( with_foreign) ]
264265pub trait FullScanScriptInspector : Sync + Send {
265266 fn inspect ( & self , keychain : KeychainKind , index : u32 , script : Arc < Script > ) ;
266267}
267268
268269// Callback for the SyncRequest
270+ #[ uniffi:: export( with_foreign) ]
269271pub trait SyncScriptInspector : Sync + Send {
270272 fn inspect ( & self , script : Arc < Script > , total : u64 ) ;
271273}
272274
275+ #[ derive( uniffi:: Object ) ]
273276pub struct FullScanRequestBuilder (
274277 pub ( crate ) Mutex < Option < BdkFullScanRequestBuilder < KeychainKind > > > ,
275278) ;
276279
280+ #[ derive( uniffi:: Object ) ]
277281pub struct SyncRequestBuilder ( pub ( crate ) Mutex < Option < BdkSyncRequestBuilder < ( KeychainKind , u32 ) > > > ) ;
278282
283+ #[ derive( uniffi:: Object ) ]
279284pub struct FullScanRequest ( pub ( crate ) Mutex < Option < BdkFullScanRequest < KeychainKind > > > ) ;
280285
286+ #[ derive( uniffi:: Object ) ]
281287pub struct SyncRequest ( pub ( crate ) Mutex < Option < BdkSyncRequest < ( KeychainKind , u32 ) > > > ) ;
282288
289+ #[ uniffi:: export]
283290impl SyncRequestBuilder {
284291 pub fn inspect_spks (
285292 & self ,
@@ -314,6 +321,7 @@ impl SyncRequestBuilder {
314321 }
315322}
316323
324+ #[ uniffi:: export]
317325impl FullScanRequestBuilder {
318326 pub fn inspect_spks_for_all_keychains (
319327 & self ,
0 commit comments