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
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
rust: [
1.56.1,
1.83.0,
stable
]
runs-on: ubuntu-latest
Expand All @@ -41,6 +41,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --config 'resolver.incompatible-rust-versions="fallback"'

doc:
name: Build doc
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ documentation = "https://docs.rs/monero-lws"
homepage = "https://github.com/monero-rs/monero-lws"
repository = "https://github.com/monero-rs/monero-lws"
description = "RPC client for Monero light wallet server"
rust-version = "1.56.1"
rust-version = "1.66.0"

[dependencies]
anyhow = "1"
fixed-hash = "0.7"
fixed-hash = "0.8"
hex = "0.4"
http = "0.2"
jsonrpc-core = "18"
monero = { version = "0.17", features = ["serde"] }
reqwest = { version = "0.11", features = ["json"] }
monero = { version = "0.21", features = ["serde"] }
reqwest = { version = "0.12", features = ["json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tracing = "0.1"
Expand All @@ -34,4 +34,4 @@ uuid = { version = "1.1", features = ["v4"] }
# Async
rand = "0.8.4"
tokio = { version = "1.12.0", features = ["full"] }
monero-rpc = "0.2"
monero-rpc = "0.5"
1 change: 1 addition & 0 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
#![allow(unexpected_cfgs)]

use crate::util::*;
use monero::{cryptonote::hash::Hash as CryptoNoteHash, util::address::PaymentId};
Expand Down
9 changes: 7 additions & 2 deletions tests/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// copies or substantial portions of the Software.
//

use monero_rpc::RpcClientBuilder;
use rand::{distributions::Alphanumeric, Rng};
use std::env; // 0.8

Expand Down Expand Up @@ -80,11 +81,15 @@ async fn setup_monero() -> (
.map(char::from)
.collect();
let dhost = env::var("MONERO_DAEMON_HOST").unwrap_or_else(|_| "localhost".into());
let daemon_client = monero_rpc::RpcClient::new(format!("http://{}:18081", dhost));
let daemon_client = RpcClientBuilder::new()
.build(format!("http://{}:18081", dhost))
.unwrap();
let daemon = daemon_client.daemon();
let regtest = daemon.regtest();
let whost = env::var("MONERO_WALLET_HOST_1").unwrap_or_else(|_| "localhost".into());
let wallet_client = monero_rpc::RpcClient::new(format!("http://{}:18083", whost));
let wallet_client = RpcClientBuilder::new()
.build(format!("http://{}:18083", whost))
.unwrap();
let wallet = wallet_client.wallet();
wallet
.create_wallet(wallet_name.clone(), None, "English".to_string())
Expand Down
Loading