-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(mm-bot): add architecture docs(mm-bot): add scenarios
- Loading branch information
Showing
10 changed files
with
102 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@startuml | ||
actor User as U | ||
entity Escrow as E #purple | ||
entity "Payment Registry" as PR #blue | ||
control "Order Processor" as OP | ||
control "Order from Accepted Blocks Processor" as ABP | ||
database Database | ||
|
||
ABP -[#purple]> E : Get Orders from Accepted Blocks | ||
ABP -> Database : Store missing orders | ||
ABP -> OP : Process missing Order | ||
OP -> OP : Processing Order | ||
OP -[#blue]> PR : Process Order | ||
PR -[#blue]> U: Send funds | ||
OP -[#purple]> E : Repay funds | ||
OP -> Database : Store Order as completed | ||
|
||
@enduml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@startuml | ||
actor User as U | ||
entity Escrow as E #purple | ||
entity "Payment Registry" as PR #blue | ||
control "Order Processor" as OP | ||
control "Failed Order Processor" as FOP | ||
database Database | ||
|
||
U -[#purple]> E : Set Order | ||
OP -[#purple]> E : Get Order | ||
OP ->x OP : Processing Order | ||
OP -> Database : Store Order as failed due to error | ||
FOP -> Database : Get failed orders | ||
FOP -> OP : Process failed order | ||
OP -[#blue]> PR : Process Order | ||
PR -[#blue]> U: Send funds | ||
OP -[#purple]> E : Repay funds | ||
OP -> Database : Store Order as completed | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Oops, something went wrong.