mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Cleanup Display for database states
This commit is contained in:
parent
e6493784bf
commit
20893c1bb1
@ -93,7 +93,7 @@ impl Display for Alice {
|
|||||||
Alice::BtcLocked(_) => f.write_str("Bitcoin locked"),
|
Alice::BtcLocked(_) => f.write_str("Bitcoin locked"),
|
||||||
Alice::XmrLocked(_) => f.write_str("Monero locked"),
|
Alice::XmrLocked(_) => f.write_str("Monero locked"),
|
||||||
Alice::BtcRedeemable { .. } => f.write_str("Bitcoin redeemable"),
|
Alice::BtcRedeemable { .. } => f.write_str("Bitcoin redeemable"),
|
||||||
Alice::T1Expired(_) => f.write_str("Submitting TxCancel"),
|
Alice::T1Expired(_) => f.write_str("Timelock T1 expired"),
|
||||||
Alice::BtcCancelled(_) => f.write_str("Bitcoin cancel transaction published"),
|
Alice::BtcCancelled(_) => f.write_str("Bitcoin cancel transaction published"),
|
||||||
Alice::BtcPunishable(_) => f.write_str("Bitcoin punishable"),
|
Alice::BtcPunishable(_) => f.write_str("Bitcoin punishable"),
|
||||||
Alice::BtcRefunded { .. } => f.write_str("Monero refundable"),
|
Alice::BtcRefunded { .. } => f.write_str("Monero refundable"),
|
||||||
@ -107,10 +107,10 @@ impl Display for Bob {
|
|||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
Bob::Negotiated { .. } => f.write_str("Handshake complete"),
|
Bob::Negotiated { .. } => f.write_str("Handshake complete"),
|
||||||
Bob::BtcLocked { .. }
|
Bob::BtcLocked { .. } => f.write_str("Bitcoin locked"),
|
||||||
| Bob::XmrLocked { .. }
|
Bob::XmrLocked { .. } => f.write_str("Monero locked"),
|
||||||
| Bob::T1Expired(_)
|
Bob::T1Expired(_) => f.write_str("Timelock T1 expired"),
|
||||||
| Bob::BtcCancelled(_) => f.write_str("Bitcoin refundable"),
|
Bob::BtcCancelled(_) => f.write_str("Bitcoin refundable"),
|
||||||
Bob::BtcRedeemed(_) => f.write_str("Monero redeemable"),
|
Bob::BtcRedeemed(_) => f.write_str("Monero redeemable"),
|
||||||
Bob::SwapComplete => f.write_str("Swap complete"),
|
Bob::SwapComplete => f.write_str("Swap complete"),
|
||||||
Bob::EncSigSent { .. } => f.write_str("Encrypted signature sent"),
|
Bob::EncSigSent { .. } => f.write_str("Encrypted signature sent"),
|
||||||
|
Loading…
Reference in New Issue
Block a user