31 #ifndef LEDGER_CORE_BITCOINLIKEWALLET_HPP 32 #define LEDGER_CORE_BITCOINLIKEWALLET_HPP 34 #include "api/BitcoinLikeWallet.hpp" 36 #include "explorers/BitcoinLikeBlockchainExplorer.hpp" 37 #include "keychains/BitcoinLikeKeychain.hpp" 38 #include "observers/BitcoinLikeBlockchainObserver.hpp" 39 #include "synchronizers/BitcoinLikeAccountSynchronizer.hpp" 40 #include "wallet/common/AbstractWallet.hpp" 41 #include "api/BitcoinLikeNetworkParameters.hpp" 42 #include "wallet/bitcoin/factories/BitcoinLikeWalletFactory.hpp" 43 #include "wallet/bitcoin/database/BitcoinLikeWalletDatabase.h" 50 using BitcoinLikeAccountSynchronizerFactory = std::function<std::shared_ptr<BitcoinLikeAccountSynchronizer> ()>;
52 const std::string& name,
53 const std::shared_ptr<BitcoinLikeBlockchainExplorer>& explorer,
54 const std::shared_ptr<BitcoinLikeBlockchainObserver>& observer,
55 const std::shared_ptr<BitcoinLikeKeychainFactory>& keychainFactory,
56 const BitcoinLikeAccountSynchronizerFactory& synchronizerFactory,
57 const std::shared_ptr<WalletPool>& pool,
59 const std::shared_ptr<DynamicObject>& configuration,
65 std::shared_ptr<api::EventBus>
synchronize()
override;
73 getExtendedKeyAccountCreationInfo(int32_t accountIndex)
override;
77 std::shared_ptr<BitcoinLikeBlockchainExplorer> getBlockchainExplorer();
80 std::shared_ptr<AbstractAccount>
81 createAccountInstance(soci::session &sql,
const std::string &accountUid)
override;
84 std::shared_ptr<BitcoinLikeWallet> getSelf();
87 std::shared_ptr<BitcoinLikeBlockchainExplorer> _explorer;
88 std::shared_ptr<BitcoinLikeBlockchainObserver> _observer;
89 std::shared_ptr<BitcoinLikeKeychainFactory> _keychainFactory;
90 BitcoinLikeAccountSynchronizerFactory _synchronizerFactory;
96 #endif //LEDGER_CORE_BITCOINLIKEWALLET_HPP Definition: AbstractWallet.hpp:61
std::shared_ptr< api::EventBus > synchronize() override
Definition: BitcoinLikeWallet.cpp:67
bool isSynchronizing() override
Definition: BitcoinLikeWallet.cpp:63
Definition: Deffered.hpp:49
Definition: ExtendedKeyAccountCreationInfo.hpp:16
Definition: DerivationScheme.hpp:55
Definition: Currency.hpp:23
Definition: Account.cpp:8
WalletType
Definition: WalletType.hpp:20
Definition: BitcoinLikeWallet.hpp:47
Definition: BitcoinLikeWallet.hpp:17
Definition: AccountCreationInfo.hpp:16