Move definitions out of lib.rs

This commit is contained in:
Franck Royer 2021-01-21 13:43:25 +11:00
parent b88a777bae
commit f2a25ee49b
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
16 changed files with 85 additions and 81 deletions

View file

@ -1,14 +1,15 @@
use crate::{
bitcoin::{
self, current_epoch, timelocks::Timelock, wait_for_cancel_timelock_to_expire,
BroadcastSignedTransaction, BuildTxLockPsbt, GetBlockHeight, GetNetwork, GetRawTransaction,
Transaction, TransactionBlockHeight, TxCancel, Txid, WatchForRawTransaction,
self, current_epoch,
timelocks::{ExpiredTimelocks, Timelock},
wait_for_cancel_timelock_to_expire, BroadcastSignedTransaction, BuildTxLockPsbt,
GetBlockHeight, GetNetwork, GetRawTransaction, Transaction, TransactionBlockHeight,
TxCancel, Txid, WatchForRawTransaction,
},
config::Config,
monero,
monero::{monero_private_key, TransferProof},
protocol::{alice, bob},
ExpiredTimelocks, SwapAmounts,
protocol::{alice, bob, SwapAmounts},
};
use anyhow::{anyhow, Result};
use ecdsa_fun::{