Skip to content

Commit

Permalink
TSM: Update diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCharlatan committed Nov 30, 2022
1 parent 6e23cf1 commit ed4247f
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions src/farcasterd/trade_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,26 @@ use std::str::FromStr;
///
/// State machine automaton:
/// ```ignore
/// StartRestore StartTaker StartMaker
/// | | |
/// | V V
/// | TakerConnect MakeOffer
/// | | |
/// | V V
/// | TakeOffer TakerCommit
/// | |____________|
/// | |
/// V V
/// RestoringSwapd SwapdLaunched
/// |___________________|
/// |
/// V
/// SwapdRunning
/// |
/// V
/// End
/// StartRestore StartMaker StartTaker
/// | | |
/// | | ____|____
/// | | | |
/// | V | V
/// | MakeOffer | TakerConnect
/// | | | |
/// | V V V
/// | TakerCommit TakeOffer
/// | |____________|
/// | |
/// V V
/// RestoringSwapd SwapdLaunched
/// |__________________|
/// |
/// V
/// SwapdRunning
/// |
/// V
/// End
/// ```
#[derive(Display)]
pub enum TradeStateMachine {
Expand Down

0 comments on commit ed4247f

Please sign in to comment.