Skip to content
Merged
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
74 changes: 0 additions & 74 deletions .vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions monero-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"

[dependencies]
anyhow = "1.0.98"
backoff = "0.4.0"
cxx = "1.0.137"
monero = { version = "0.12", features = ["serde_support"] }
tokio = { version = "1.44.2", features = ["sync", "time", "rt"] }
Expand Down
5 changes: 5 additions & 0 deletions monero-sys/src/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ namespace Monero
{
return std::make_unique<std::vector<std::string>>(tx.txid());
}

inline std::unique_ptr<std::string> walletFilename(const Wallet &wallet)
{
return std::make_unique<std::string>(wallet.filename());
}
}

#include "easylogging++.h"
Expand Down
3 changes: 3 additions & 0 deletions monero-sys/src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ pub mod ffi {
/// Get the path of the wallet.
fn walletPath(wallet: &Wallet) -> Result<UniquePtr<CxxString>>;

/// Get the filename of the wallet.
fn walletFilename(wallet: &Wallet) -> Result<UniquePtr<CxxString>>;

/// Get the status of the wallet and an error string if there is one.
fn statusWithErrorString(
self: &Wallet,
Expand Down
Loading