new functions:

- MONERO_Wallet_getRefreshFromBlockHeight
- MONERO_Wallet_connectToDaemon
- MONERO_Wallet_connected
- MONERO_Wallet_setProxy
new enum: ConnectionStatus
This commit is contained in:
Czarek Nakamoto
2023-12-29 22:30:03 +01:00
parent 66e06c38f6
commit c608ba2960
4 changed files with 26 additions and 606 deletions
+17
View File
@@ -195,6 +195,23 @@ bool MONERO_Wallet_init(void* wallet_ptr, const char* daemon_address, uint64_t u
return wallet->init(std::string(daemon_address), upper_transaction_size_limit, std::string(daemon_username), std::string(daemon_password), use_ssl, lightWallet, std::string(proxy_address));
}
uint64_t MONERO_Wallet_getRefreshFromBlockHeight(void* wallet_ptr) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
return wallet->getRefreshFromBlockHeight();
}
bool MONERO_Wallet_connectToDaemon(void* wallet_ptr) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
return wallet->connectToDaemon();
}
int MONERO_Wallet_connected(void* wallet_ptr) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
return wallet->connected();
}
bool MONERO_Wallet_setProxy(void* wallet_ptr, const char* address) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
return wallet->setProxy(std::string(address));
}
uint64_t MONERO_Wallet_balance(void* wallet_ptr, uint32_t accountIndex) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
return wallet->balance(accountIndex);