Wallet *WalletManagerImpl::createWallet(const std::string &path, const std::string &password, const std::string &language, NetworkType nettype) { WalletImpl * wallet = new WalletImpl(nettype); wallet->create(path, password, language); return wallet; }
Wallet *WalletManagerImpl::createWallet(const std::string &path, const std::string &password, const std::string &language, bool testnet) { WalletImpl * wallet = new WalletImpl(testnet); wallet->create(path, password, language); return wallet; }
Wallet *WalletManagerImpl::openWallet(const std::string &path, const std::string &password, NetworkType nettype) { WalletImpl * wallet = new WalletImpl(nettype); wallet->open(path, password); //Refresh addressBook wallet->addressBook()->refresh(); return wallet; }
Wallet *WalletManagerImpl::openWallet(const std::string &path, const std::string &password, bool testnet) { WalletImpl * wallet = new WalletImpl(testnet); wallet->open(path, password); //Refresh addressBook wallet->addressBook()->refresh(); return wallet; }
Wallet *WalletManagerImpl::recoveryWallet(const std::string &path, const std::string &memo, bool testnet, uint64_t restoreHeight) { WalletImpl * wallet = new WalletImpl(testnet); if(restoreHeight > 0){ wallet->setRefreshFromBlockHeight(restoreHeight); } wallet->recover(path, memo); return wallet; }
Wallet *WalletManagerImpl::recoveryWallet(const std::string &path, const std::string &password, const std::string &mnemonic, NetworkType nettype, uint64_t restoreHeight) { WalletImpl * wallet = new WalletImpl(nettype); if(restoreHeight > 0){ wallet->setRefreshFromBlockHeight(restoreHeight); } wallet->recover(path, password, mnemonic); return wallet; }
Wallet *WalletManagerImpl::createWalletFromKeys(const std::string &path, const std::string &password, const std::string &language, NetworkType nettype, uint64_t restoreHeight, const std::string &addressString, const std::string &viewKeyString, const std::string &spendKeyString) { WalletImpl * wallet = new WalletImpl(nettype); if(restoreHeight > 0){ wallet->setRefreshFromBlockHeight(restoreHeight); } wallet->recoverFromKeysWithPassword(path, password, language, addressString, viewKeyString, spendKeyString); return wallet; }
Wallet *WalletManagerImpl::createWalletFromDevice(const std::string &path, const std::string &password, NetworkType nettype, const std::string &deviceName, uint64_t restoreHeight, const std::string &subaddressLookahead) { WalletImpl * wallet = new WalletImpl(nettype); if(restoreHeight > 0){ wallet->setRefreshFromBlockHeight(restoreHeight); } auto lookahead = tools::parse_subaddress_lookahead(subaddressLookahead); if (lookahead) { wallet->setSubaddressLookahead(lookahead->first, lookahead->second); } wallet->recoverFromDevice(path, password, deviceName); return wallet; }
Wallet *WalletManagerImpl::openWallet(const std::string &path, const std::string &password, bool testnet) { WalletImpl * wallet = new WalletImpl(testnet); wallet->open(path, password); return wallet; }