summaryrefslogtreecommitdiff
path: root/images/transaction-push-credit-states.dot
blob: c51da308b5e85baf62966a5588f2368ce7a39a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
digraph G {

  initial[label="", shape="circle", xlabel="peer-push-credit"];
  pending_download[label="pending(download)"];
  pending_user[label="dialog", shape="box"];
  pending_merge[label="merge"];
  pending_merge_kyc[label="merge-kyc"];
  pending_withdraw[label="withdraw"];
  pending_withdraw_kyc[label="withdraw-kyc"];
  pending_withdraw_aml[label="withdraw-aml"];

  subgraph {
    rank=same;
    pending_merge; pending_withdraw_kyc; pending_withdraw_aml;
  }

  done[label="done", shape="box"];

  initial->pending_download;

  pending_download->pending_user [color=green];

  pending_user->pending_merge [color="blue", label="OK"];

  pending_merge->pending_withdraw [color=green];
  pending_merge->pending_merge_kyc [color=red];

  pending_merge_kyc->pending_merge [color="green"];

  pending_withdraw->pending_withdraw_kyc [color=red];
  pending_withdraw->pending_withdraw_aml [color=red];
  pending_withdraw->done [color=green];

  pending_withdraw_kyc->pending_withdraw [color="green"];

  pending_withdraw_aml->pending_withdraw [color="green"];
}