gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] 01/02: more state machines


From: gnunet
Subject: [taler-docs] 01/02: more state machines
Date: Wed, 15 Jul 2020 15:09:22 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository docs.

commit 7291d52d015b7ddb391102dfdf5d0c1ac4f52ea9
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jul 12 13:46:45 2020 +0200

    more state machines
---
 Makefile    | 10 ++++++++--
 deposit.dot | 27 +++++++++++++++++++++++++++
 reserve.dot | 12 ++++++++++++
 3 files changed, 47 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 358aef5..5b6a8dd 100644
--- a/Makefile
+++ b/Makefile
@@ -53,8 +53,14 @@ clean:
 
 arch-api.png: arch-api.dot
        dot -Tpng arch-api.dot > arch-api.png
-
-diagrams: arch-api.png
+coin.png: coin.dot
+       dot -Tpng coin.dot > coin.png
+deposit.png: deposit.dot
+       dot -Tpng deposit.dot > deposit.png
+reserve.png: reserve.dot
+       dot -Tpng reserve.dot > reserve.png
+
+diagrams: arch-api.png coin.png
 
 
 # The html-linked builder does not support caching, so we
diff --git a/deposit.dot b/deposit.dot
new file mode 100644
index 0000000..aa275ab
--- /dev/null
+++ b/deposit.dot
@@ -0,0 +1,27 @@
+digraph Deposit {
+
+  deposited [color=blue, label="deposit created", shape="box"];
+  ready [color=blue, label="deposit ready", shape="box"];
+  due [color=blue, label="deposit due", shape="box"];
+  tiny [color=blue, label="deposit tiny", shape="box"];
+  done [color=blue, label="deposit done", shape="doublecircle"];
+  wtid [color=blue, label="pending transfer", shape="box"];
+  finished [color=blue, label="finished transfer", shape="doublecircle"];
+
+  pay->deposited;
+  deposited->ready [style=dotted];
+  deposited->refund;
+  refund->deposited;
+  refund->ready;
+  refund->done;
+  ready->due [style=dotted];
+  ready->refund;
+  ready->tiny [style=dotted];
+  due->aggregate;
+  ready->aggregate;
+  tiny->aggregate;
+  aggregate->done;
+  aggregate->wtid;
+  wtid->transfer;
+  transfer->finished;
+}
diff --git a/reserve.dot b/reserve.dot
new file mode 100644
index 0000000..e98abe6
--- /dev/null
+++ b/reserve.dot
@@ -0,0 +1,12 @@
+digraph Reserve {
+
+  filled [color=blue, label="filled reserve", shape="box"];
+  drained [color=blue, label="drained reserve", shape="doublecircle"];
+
+  transfer->filled;
+  filled->withdraw;
+  withdraw->drained;
+  withdraw->filled;
+  filled->close;
+  close->drained;
+}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]