Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- fixed: Remove invalid const qualifier from std::vector element types to fix Xcode 26 builds

## 0.2.6 (2026-01-29)

- changed: Update `zano_native_lib` to `239d4a39`
Expand Down
2 changes: 1 addition & 1 deletion ios/ZanoModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ + (BOOL)requiresMainQueueSetup { return NO; }

// Re-package the arguments:
NSUInteger length = [arguments count];
std::vector<const std::string> strings;
std::vector<std::string> strings;
strings.reserve(length);
for (NSUInteger i = 0; i < length; ++i) {
NSString *string = [arguments objectAtIndex:i];
Expand Down
2 changes: 1 addition & 1 deletion src/jni/jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Java_app_edge_rnzano_RnZanoModule_callZanoJNI(

// Re-package the arguments:
jsize length = env->GetArrayLength(arguments);
std::vector<const std::string> strings;
std::vector<std::string> strings;
strings.reserve(length);
for (jsize i = 0; i < length; ++i) {
jstring string = (jstring)env->GetObjectArrayElement(arguments, i);
Expand Down
60 changes: 30 additions & 30 deletions src/zano-wrapper/zano-methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
#include "zano-methods.hpp"


std::string hello(const std::vector<const std::string> &args) {
std::string hello(const std::vector<std::string> &args) {
printf("Zano says hello\n");
return "hello";
}

std::string init(const std::vector<const std::string> &args) {
std::string init(const std::vector<std::string> &args) {
return plain_wallet::init(
args[0], // address
args[1], // cwd
std::stoi(args[2]) // log level
);
}

std::string initWithIpPort(const std::vector<const std::string> &args) {
std::string initWithIpPort(const std::vector<std::string> &args) {
return plain_wallet::init(
args[0], // ip
args[1], // port
Expand All @@ -26,112 +26,112 @@ std::string initWithIpPort(const std::vector<const std::string> &args) {
);
}

std::string reset(const std::vector<const std::string> &args) {
std::string reset(const std::vector<std::string> &args) {
return plain_wallet::reset();
}

std::string setLogLevel(const std::vector<const std::string> &args) {
std::string setLogLevel(const std::vector<std::string> &args) {
return plain_wallet::set_log_level(std::stoi(args[0]));
}

std::string getVersion(const std::vector<const std::string> &args) {
std::string getVersion(const std::vector<std::string> &args) {
return plain_wallet::get_version();
}

std::string getWalletFiles(const std::vector<const std::string> &args) {
std::string getWalletFiles(const std::vector<std::string> &args) {
return plain_wallet::get_wallet_files();
}

std::string getExportPrivateInfo(const std::vector<const std::string> &args) {
std::string getExportPrivateInfo(const std::vector<std::string> &args) {
return plain_wallet::get_export_private_info(args[0]);
}

std::string deleteWallet(const std::vector<const std::string> &args) {
std::string deleteWallet(const std::vector<std::string> &args) {
return plain_wallet::delete_wallet(args[0]);
}

std::string getAddressInfo(const std::vector<const std::string> &args) {
std::string getAddressInfo(const std::vector<std::string> &args) {
return plain_wallet::get_address_info(args[0]);
}

std::string getAppconfig(const std::vector<const std::string> &args) {
std::string getAppconfig(const std::vector<std::string> &args) {
return plain_wallet::get_appconfig(args[0]);
}

std::string setAppconfig(const std::vector<const std::string> &args) {
std::string setAppconfig(const std::vector<std::string> &args) {
return plain_wallet::set_appconfig(args[0], args[1]);
}

std::string generateRandomKey(const std::vector<const std::string> &args) {
std::string generateRandomKey(const std::vector<std::string> &args) {
return plain_wallet::generate_random_key(std::stoull(args[0]));
}

std::string getLogsBuffer(const std::vector<const std::string> &args) {
std::string getLogsBuffer(const std::vector<std::string> &args) {
return plain_wallet::get_logs_buffer();
}

std::string truncateLog(const std::vector<const std::string> &args) {
std::string truncateLog(const std::vector<std::string> &args) {
return plain_wallet::truncate_log();
}

std::string getConnectivityStatus(const std::vector<const std::string> &args) {
std::string getConnectivityStatus(const std::vector<std::string> &args) {
return plain_wallet::get_connectivity_status();
}

std::string open(const std::vector<const std::string> &args) {
std::string open(const std::vector<std::string> &args) {
return plain_wallet::open(args[0], args[1]);
}

std::string restore(const std::vector<const std::string> &args) {
std::string restore(const std::vector<std::string> &args) {
return plain_wallet::restore(args[0], args[1], args[2], args[3]);
}

std::string generate(const std::vector<const std::string> &args) {
std::string generate(const std::vector<std::string> &args) {
return plain_wallet::generate(args[0], args[1]);
}

std::string getOpenedWallets(const std::vector<const std::string> &args) {
std::string getOpenedWallets(const std::vector<std::string> &args) {
return plain_wallet::get_opened_wallets();
}

std::string getWalletStatus(const std::vector<const std::string> &args) {
std::string getWalletStatus(const std::vector<std::string> &args) {
return plain_wallet::get_wallet_status(std::stoll(args[0]));
}

std::string closeWallet(const std::vector<const std::string> &args) {
std::string closeWallet(const std::vector<std::string> &args) {
return plain_wallet::close_wallet(std::stoll(args[0]));
}

std::string invoke(const std::vector<const std::string> &args) {
std::string invoke(const std::vector<std::string> &args) {
return plain_wallet::invoke(std::stoll(args[0]), args[1]);
}

std::string asyncCall(const std::vector<const std::string> &args) {
std::string asyncCall(const std::vector<std::string> &args) {
return plain_wallet::async_call(args[0], std::stoull(args[1]), args[2]);
}

std::string tryPullResult(const std::vector<const std::string> &args) {
std::string tryPullResult(const std::vector<std::string> &args) {
return plain_wallet::try_pull_result(std::stoull(args[0]));
}

std::string syncCall(const std::vector<const std::string> &args) {
std::string syncCall(const std::vector<std::string> &args) {
return plain_wallet::sync_call(args[0], std::stoull(args[1]), args[2]);
}

std::string isWalletExist(const std::vector<const std::string> &args) {
std::string isWalletExist(const std::vector<std::string> &args) {
bool exists = plain_wallet::is_wallet_exist(args[0]);
return std::to_string(exists);
}

std::string getWalletInfo(const std::vector<const std::string> &args) {
std::string getWalletInfo(const std::vector<std::string> &args) {
return plain_wallet::get_wallet_info(std::stoll(args[0]));
}

std::string resetWalletPassword(const std::vector<const std::string> &args) {
std::string resetWalletPassword(const std::vector<std::string> &args) {
return plain_wallet::reset_wallet_password(std::stoll(args[0]), args[1]);
}

std::string getCurrentTxFee(const std::vector<const std::string> &args) {
std::string getCurrentTxFee(const std::vector<std::string> &args) {
uint64_t fee = plain_wallet::get_current_tx_fee(std::stoull(args[0]));
return std::to_string(fee);
}
Expand Down
2 changes: 1 addition & 1 deletion src/zano-wrapper/zano-methods.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
struct ZanoMethod {
const char *name;
int argc;
std::string (*method)(const std::vector<const std::string> &args);
std::string (*method)(const std::vector<std::string> &args);
};
extern const ZanoMethod zanoMethods[];
extern const unsigned zanoMethodCount;
Expand Down