Save Bob state during swap

This commit is contained in:
Franck Royer 2020-12-08 14:54:08 +11:00
parent 7e0a1ffe84
commit 905fc6cf35
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
6 changed files with 255 additions and 92 deletions

View file

@ -1,6 +1,6 @@
#![allow(non_snake_case)]
use serde::{Deserialize, Serialize};
use ::serde::{Deserialize, Serialize};
use std::fmt::{self, Display};
pub mod alice;
@ -10,6 +10,7 @@ pub mod cli;
pub mod monero;
pub mod network;
pub mod recover;
pub mod serde;
pub mod state;
pub mod storage;
pub mod tor;
@ -31,7 +32,7 @@ pub enum Rsp {
}
/// XMR/BTC swap amounts.
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[derive(Copy, Clone, Debug, Serialize, Deserialize, PartialEq)]
// TODO(Franck): review necessity of this struct
pub struct SwapAmounts {
/// Amount of BTC to swap.