Split monero-harness into harness and rpc

This allows us to move `monero-harness` and `bitcoin-harness` into
`[dev-dependencies]` of `swap`.
This commit is contained in:
Thomas Eizinger 2021-02-22 12:32:15 +11:00
parent 2a3db9bd80
commit 03078f328c
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
16 changed files with 82 additions and 54 deletions

View file

@ -3,7 +3,7 @@ use crate::{
protocol::{bob, bob::BobState},
};
use ::bitcoin::hashes::core::fmt::Display;
use monero_harness::rpc::wallet::BlockHeight;
use monero_rpc::wallet::BlockHeight;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]

View file

@ -7,7 +7,7 @@ use anyhow::Result;
use async_trait::async_trait;
use backoff::{backoff::Constant as ConstantBackoff, future::retry};
use bitcoin::hashes::core::sync::atomic::AtomicU32;
use monero_harness::rpc::wallet;
use monero_rpc::wallet;
use std::{
str::FromStr,
sync::{atomic::Ordering, Arc},

View file

@ -21,7 +21,7 @@ use ecdsa_fun::{
nonce::Deterministic,
Signature,
};
use monero_harness::rpc::wallet::BlockHeight;
use monero_rpc::wallet::BlockHeight;
use rand::{CryptoRng, RngCore};
use serde::{Deserialize, Serialize};
use sha2::Sha256;