|
31 | 31 | #include <utility> |
32 | 32 | #include <vector> |
33 | 33 |
|
34 | | -namespace interfaces { |
35 | | -namespace { |
| 34 | +using interfaces::Chain; |
| 35 | +using interfaces::FoundBlock; |
| 36 | +using interfaces::Handler; |
| 37 | +using interfaces::MakeHandler; |
| 38 | +using interfaces::Wallet; |
| 39 | +using interfaces::WalletAddress; |
| 40 | +using interfaces::WalletBalances; |
| 41 | +using interfaces::WalletClient; |
| 42 | +using interfaces::WalletOrderForm; |
| 43 | +using interfaces::WalletTx; |
| 44 | +using interfaces::WalletTxOut; |
| 45 | +using interfaces::WalletTxStatus; |
| 46 | +using interfaces::WalletValueMap; |
36 | 47 |
|
| 48 | +namespace wallet { |
| 49 | +namespace { |
37 | 50 | //! Construct wallet tx struct. |
38 | 51 | WalletTx MakeWalletTx(CWallet& wallet, const CWalletTx& wtx) |
39 | 52 | { |
@@ -561,14 +574,14 @@ class WalletClientImpl : public WalletClient |
561 | 574 | std::vector<std::unique_ptr<Handler>> m_rpc_handlers; |
562 | 575 | std::list<CRPCCommand> m_rpc_commands; |
563 | 576 | }; |
564 | | - |
565 | 577 | } // namespace |
| 578 | +} // namespace wallet |
566 | 579 |
|
567 | | -std::unique_ptr<Wallet> MakeWallet(const std::shared_ptr<CWallet>& wallet) { return wallet ? MakeUnique<WalletImpl>(wallet) : nullptr; } |
| 580 | +namespace interfaces { |
| 581 | +std::unique_ptr<Wallet> MakeWallet(const std::shared_ptr<CWallet>& wallet) { return wallet ? MakeUnique<wallet::WalletImpl>(wallet) : nullptr; } |
568 | 582 |
|
569 | 583 | std::unique_ptr<WalletClient> MakeWalletClient(Chain& chain, ArgsManager& args) |
570 | 584 | { |
571 | | - return MakeUnique<WalletClientImpl>(chain, args); |
| 585 | + return MakeUnique<wallet::WalletClientImpl>(chain, args); |
572 | 586 | } |
573 | | - |
574 | 587 | } // namespace interfaces |
0 commit comments