This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmvp_maker_taker_db.puml
91 lines (72 loc) · 1.72 KB
/
mvp_maker_taker_db.puml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
@startuml
' hide the spot
hide circle
' avoid problems with angled crows feet
skinparam linetype ortho
entity "cfds" as cfds {
id <<PK>> <<auto-increment>>
--
uuid <<unique>>
--
position
initial_price
leverage
settlement_time_interval_hours
quantity
counterparty_network_identity
}
entity "events" as events {
id <<PK>> <<auto-increment>>
--
cfd_id <<FK>>
--
name: text
data: json
timestamp: date
}
cfds }o--|| events
entity "taker::CfdAggregate" as taker_cfd_aggregate {
--
--
start_contract_setup() -> ContractSetupParams
complete_contract_setup() -> Event::Dlc
start_rollover()
complete_rollover()
start_collaborative_settlement()
complete_collaborative_settlement()
start_non_collaborative_settlement()
lock_confirmed()
commit_confirmed()
cet_confirmed()
refund_confirmed()
collaborative_settlement_confirmed()
cet_timelock_expired()
refund_timelock_expired()
oracle_attested()
}
entity "maker::CfdAggregate" as maker_cfd_aggregate {
--
--
start_contract_setup() -> ContractSetupParams
complete_contract_setup() -> Event::Dlc
rollover_requested() -> RolloverParams
accept_rollover()
reject_rollover()
complete_rollover()
collaborative_settlement_requested()
accept_collaborative_settlement()
reject_collaborative_settlement()
complete_collaborative_settlement()
start_non_collaborative_settlement()
lock_confirmed()
commit_confirmed()
cet_confirmed()
refund_confirmed()
collaborative_settlement_confirmed()
cet_timelock_expired()
refund_timelock_expired()
oracle_attested()
}
entity "Event" as taker_event {
}
@enduml