mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
Move monero serde code to lib
This commit is contained in:
parent
30298bdf1f
commit
eed5e8e9a4
3 changed files with 29 additions and 36 deletions
|
|
@ -4,7 +4,6 @@ use std::fmt::{self, Display};
|
|||
pub mod alice;
|
||||
pub mod bitcoin;
|
||||
pub mod bob;
|
||||
pub mod monero;
|
||||
pub mod network;
|
||||
|
||||
pub const ONE_BTC: u64 = 100_000_000;
|
||||
|
|
@ -34,7 +33,7 @@ pub struct SwapAmounts {
|
|||
#[serde(with = "::bitcoin::util::amount::serde::as_sat")]
|
||||
pub btc: ::bitcoin::Amount,
|
||||
/// Amount of XMR to swap.
|
||||
#[serde(with = "crate::monero::amount_serde")]
|
||||
#[serde(with = "xmr_btc::serde::monero_amount")]
|
||||
pub xmr: xmr_btc::monero::Amount,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue