@@ -3,6 +3,7 @@ mod utxo_tests {
33 use super :: super :: * ;
44 use crate :: error:: { FFIError , FFIErrorCode } ;
55 use crate :: types:: FFINetwork ;
6+ use key_wallet:: managed_account:: managed_account_type:: ManagedAccountType ;
67 use std:: ffi:: CStr ;
78 use std:: ptr;
89
@@ -189,10 +190,10 @@ mod utxo_tests {
189190 use crate :: managed_wallet:: FFIManagedWalletInfo ;
190191 use dashcore:: blockdata:: script:: ScriptBuf ;
191192 use dashcore:: { Address , OutPoint , TxOut , Txid } ;
192- use key_wallet:: account:: managed_account:: ManagedAccount ;
193- use key_wallet:: account:: managed_account_collection:: ManagedAccountCollection ;
194- use key_wallet:: account:: types:: { ManagedAccountType , StandardAccountType } ;
193+ use key_wallet:: account:: account_type:: StandardAccountType ;
195194 use key_wallet:: gap_limit:: GapLimitManager ;
195+ use key_wallet:: managed_account:: managed_account_collection:: ManagedAccountCollection ;
196+ use key_wallet:: managed_account:: ManagedAccount ;
196197 use key_wallet:: utxo:: Utxo ;
197198 use key_wallet:: wallet:: managed_wallet_info:: ManagedWalletInfo ;
198199 use key_wallet:: Network ;
@@ -211,16 +212,16 @@ mod utxo_tests {
211212 ManagedAccountType :: Standard {
212213 index : 0 ,
213214 standard_account_type : StandardAccountType :: BIP44Account ,
214- external_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
215- )
216- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
217- . build ( )
218- . unwrap ( ) ,
219- internal_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
220- )
221- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
222- . build ( )
223- . unwrap ( ) ,
215+ external_addresses :
216+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
217+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
218+ . build ( )
219+ . unwrap ( ) ,
220+ internal_addresses :
221+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
222+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
223+ . build ( )
224+ . unwrap ( ) ,
224225 } ,
225226 Network :: Testnet ,
226227 GapLimitManager :: default ( ) ,
@@ -304,10 +305,10 @@ mod utxo_tests {
304305 use crate :: managed_wallet:: FFIManagedWalletInfo ;
305306 use dashcore:: blockdata:: script:: ScriptBuf ;
306307 use dashcore:: { Address , OutPoint , TxOut , Txid } ;
307- use key_wallet:: account:: managed_account:: ManagedAccount ;
308- use key_wallet:: account:: managed_account_collection:: ManagedAccountCollection ;
309- use key_wallet:: account:: types:: { ManagedAccountType , StandardAccountType } ;
308+ use key_wallet:: account:: account_type:: StandardAccountType ;
310309 use key_wallet:: gap_limit:: GapLimitManager ;
310+ use key_wallet:: managed_account:: managed_account_collection:: ManagedAccountCollection ;
311+ use key_wallet:: managed_account:: ManagedAccount ;
311312 use key_wallet:: utxo:: Utxo ;
312313 use key_wallet:: wallet:: managed_wallet_info:: ManagedWalletInfo ;
313314 use key_wallet:: Network ;
@@ -325,16 +326,16 @@ mod utxo_tests {
325326 ManagedAccountType :: Standard {
326327 index : 0 ,
327328 standard_account_type : StandardAccountType :: BIP44Account ,
328- external_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
329- )
330- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
331- . build ( )
332- . unwrap ( ) ,
333- internal_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
334- )
335- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
336- . build ( )
337- . unwrap ( ) ,
329+ external_addresses :
330+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
331+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
332+ . build ( )
333+ . unwrap ( ) ,
334+ internal_addresses :
335+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
336+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
337+ . build ( )
338+ . unwrap ( ) ,
338339 } ,
339340 Network :: Testnet ,
340341 GapLimitManager :: default ( ) ,
@@ -364,16 +365,16 @@ mod utxo_tests {
364365 ManagedAccountType :: Standard {
365366 index : 0 ,
366367 standard_account_type : StandardAccountType :: BIP32Account ,
367- external_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
368- )
369- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
370- . build ( )
371- . unwrap ( ) ,
372- internal_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
373- )
374- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
375- . build ( )
376- . unwrap ( ) ,
368+ external_addresses :
369+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
370+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
371+ . build ( )
372+ . unwrap ( ) ,
373+ internal_addresses :
374+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
375+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
376+ . build ( )
377+ . unwrap ( ) ,
377378 } ,
378379 Network :: Testnet ,
379380 GapLimitManager :: default ( ) ,
@@ -400,7 +401,7 @@ mod utxo_tests {
400401 let mut coinjoin_account = ManagedAccount :: new (
401402 ManagedAccountType :: CoinJoin {
402403 index : 0 ,
403- addresses : key_wallet:: account :: address_pool:: AddressPoolBuilder :: default ( )
404+ addresses : key_wallet:: managed_account :: address_pool:: AddressPoolBuilder :: default ( )
404405 . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
405406 . build ( )
406407 . unwrap ( ) ,
@@ -456,10 +457,10 @@ mod utxo_tests {
456457 use crate :: managed_wallet:: FFIManagedWalletInfo ;
457458 use dashcore:: blockdata:: script:: ScriptBuf ;
458459 use dashcore:: { Address , OutPoint , TxOut , Txid } ;
459- use key_wallet:: account:: managed_account:: ManagedAccount ;
460- use key_wallet:: account:: managed_account_collection:: ManagedAccountCollection ;
461- use key_wallet:: account:: types:: { ManagedAccountType , StandardAccountType } ;
460+ use key_wallet:: account:: account_type:: StandardAccountType ;
462461 use key_wallet:: gap_limit:: GapLimitManager ;
462+ use key_wallet:: managed_account:: managed_account_collection:: ManagedAccountCollection ;
463+ use key_wallet:: managed_account:: ManagedAccount ;
463464 use key_wallet:: utxo:: Utxo ;
464465 use key_wallet:: wallet:: managed_wallet_info:: ManagedWalletInfo ;
465466 use key_wallet:: Network ;
@@ -477,16 +478,16 @@ mod utxo_tests {
477478 ManagedAccountType :: Standard {
478479 index : 0 ,
479480 standard_account_type : StandardAccountType :: BIP44Account ,
480- external_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
481- )
482- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
483- . build ( )
484- . unwrap ( ) ,
485- internal_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
486- )
487- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
488- . build ( )
489- . unwrap ( ) ,
481+ external_addresses :
482+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
483+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
484+ . build ( )
485+ . unwrap ( ) ,
486+ internal_addresses :
487+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
488+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
489+ . build ( )
490+ . unwrap ( ) ,
490491 } ,
491492 Network :: Testnet ,
492493 GapLimitManager :: default ( ) ,
@@ -516,16 +517,16 @@ mod utxo_tests {
516517 ManagedAccountType :: Standard {
517518 index : 0 ,
518519 standard_account_type : StandardAccountType :: BIP44Account ,
519- external_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
520- )
521- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
522- . build ( )
523- . unwrap ( ) ,
524- internal_addresses : key_wallet :: account :: address_pool :: AddressPoolBuilder :: default (
525- )
526- . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
527- . build ( )
528- . unwrap ( ) ,
520+ external_addresses :
521+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
522+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
523+ . build ( )
524+ . unwrap ( ) ,
525+ internal_addresses :
526+ key_wallet :: managed_account :: address_pool :: AddressPoolBuilder :: default ( )
527+ . base_path ( key_wallet:: DerivationPath :: from ( vec ! [ ] ) )
528+ . build ( )
529+ . unwrap ( ) ,
529530 } ,
530531 Network :: Dash ,
531532 GapLimitManager :: default ( ) ,
0 commit comments