mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
Add parse_uri to wallet2_api
This commit is contained in:
parent
dd580d7bc7
commit
60fe1b61e0
3 changed files with 8 additions and 0 deletions
|
@ -1089,6 +1089,11 @@ void WalletImpl::doInit(const string &daemon_address, uint64_t upper_transaction
|
|||
|
||||
}
|
||||
|
||||
bool WalletImpl::parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error)
|
||||
{
|
||||
return m_wallet->parse_uri(uri, address, payment_id, amount, tx_description, recipient_name, unknown_parameters, error);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace Bitmonero = Monero;
|
||||
|
|
|
@ -109,6 +109,7 @@ public:
|
|||
virtual bool verifySignedMessage(const std::string &message, const std::string &address, const std::string &signature) const;
|
||||
virtual void startRefresh();
|
||||
virtual void pauseRefresh();
|
||||
virtual bool parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error);
|
||||
|
||||
private:
|
||||
void clearStatus();
|
||||
|
|
|
@ -468,6 +468,8 @@ struct Wallet
|
|||
* \return true if the signature verified, false otherwise
|
||||
*/
|
||||
virtual bool verifySignedMessage(const std::string &message, const std::string &addres, const std::string &signature) const = 0;
|
||||
|
||||
virtual bool parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue