Split monero-harness into harness and rpc
This allows us to move `monero-harness` and `bitcoin-harness` into `[dev-dependencies]` of `swap`.pull/218/head
parent
2a3db9bd80
commit
03078f328c
@ -1,2 +1,2 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["monero-harness", "swap"]
|
members = ["monero-harness", "monero-rpc", "swap"]
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
[package]
|
||||||
|
name = "monero-rpc"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["CoBloX Team <team@coblox.tech>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
anyhow = "1"
|
||||||
|
reqwest = { version = "0.11", default-features = false, features = ["json", "native-tls"] }
|
||||||
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
serde_json = "1.0"
|
||||||
|
tracing = "0.1"
|
@ -0,0 +1,12 @@
|
|||||||
|
Monero Harness
|
||||||
|
==============
|
||||||
|
|
||||||
|
Provides an implementation of `testcontainers::Image` for a monero image to run
|
||||||
|
`monerod` and `monero-wallet-rpc` in a docker container.
|
||||||
|
|
||||||
|
Also provides two standalone JSON RPC clients, one each for `monerod` and `monero-wallet-rpc`.
|
||||||
|
|
||||||
|
Example Usage
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Please see `tests/*` for example usage.
|
@ -0,0 +1 @@
|
|||||||
|
1.46.0
|
@ -0,0 +1,9 @@
|
|||||||
|
edition = "2018"
|
||||||
|
condense_wildcard_suffixes = true
|
||||||
|
format_macro_matchers = true
|
||||||
|
imports_granularity = "Crate"
|
||||||
|
use_field_init_shorthand = true
|
||||||
|
format_code_in_doc_comments = true
|
||||||
|
normalize_comments = true
|
||||||
|
wrap_comments = true
|
||||||
|
overflow_delimited_expr = true
|
@ -0,0 +1,17 @@
|
|||||||
|
#![warn(
|
||||||
|
unused_extern_crates,
|
||||||
|
missing_debug_implementations,
|
||||||
|
missing_copy_implementations,
|
||||||
|
rust_2018_idioms,
|
||||||
|
clippy::cast_possible_truncation,
|
||||||
|
clippy::cast_sign_loss,
|
||||||
|
clippy::fallible_impl_from,
|
||||||
|
clippy::cast_precision_loss,
|
||||||
|
clippy::cast_possible_wrap,
|
||||||
|
clippy::dbg_macro
|
||||||
|
)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
|
mod rpc;
|
||||||
|
|
||||||
|
pub use self::rpc::*;
|
@ -1,5 +1,4 @@
|
|||||||
use crate::rpc::{Request, Response};
|
use crate::rpc::{Request, Response};
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use reqwest::Url;
|
use reqwest::Url;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
Loading…
Reference in New Issue