Merge branch 'rpc-server' of https://github.com/yamabiiko/xmr-btc-swap into rpc-server

This commit is contained in:
binarybaron 2023-09-08 12:52:04 +02:00
commit 2ec465aec7
7 changed files with 62 additions and 99 deletions

View file

@ -21,6 +21,7 @@ use std::time::Duration;
use tracing::{debug_span, field, Instrument, Span};
use uuid::Uuid;
//TODO: Request and Method can be combined into a single enum
#[derive(PartialEq, Debug)]
pub struct Request {
pub cmd: Method,
@ -272,6 +273,7 @@ impl Request {
| BobState::XmrRedeemed { .. } => None,
};
// TODO: Add relevant txids
Ok(json!({
"swapId": swap_id,
"seller": {