You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
577 B
24 lines
577 B
//! Run an WOW/BTC swap in the role of Alice.
|
|
//! Alice holds WOW and wishes receive BTC.
|
|
use crate::database::Database;
|
|
use crate::env::Config;
|
|
use crate::{asb, bitcoin, wownero};
|
|
use std::sync::Arc;
|
|
use uuid::Uuid;
|
|
|
|
pub use self::state::*;
|
|
pub use self::swap::{run, run_until};
|
|
|
|
pub mod state;
|
|
pub mod swap;
|
|
|
|
pub struct Swap {
|
|
pub state: AliceState,
|
|
pub event_loop_handle: asb::EventLoopHandle,
|
|
pub bitcoin_wallet: Arc<bitcoin::Wallet>,
|
|
pub wownero_wallet: Arc<wownero::Wallet>,
|
|
pub env_config: Config,
|
|
pub swap_id: Uuid,
|
|
pub db: Arc<Database>,
|
|
}
|