From ed4247f160a06fd62682f44a36f16c0b1b149d55 Mon Sep 17 00:00:00 2001 From: TheCharlatan <seb.kung@gmail.com> Date: Wed, 30 Nov 2022 17:31:19 +0100 Subject: [PATCH] TSM: Update diagram --- src/farcasterd/trade_state_machine.rs | 38 ++++++++++++++------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/farcasterd/trade_state_machine.rs b/src/farcasterd/trade_state_machine.rs index ac116104a..7714a0a08 100644 --- a/src/farcasterd/trade_state_machine.rs +++ b/src/farcasterd/trade_state_machine.rs @@ -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 {