-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from sotatek-dev/develop
Develop
- Loading branch information
Showing
4 changed files
with
74 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
@startuml 1 | ||
title Admin update tip and daily quota | ||
actor User | ||
boundary fe as "Frontend" | ||
control be as "Backend" | ||
database Database | ||
autonumber | ||
group#LightGreen Admin changes tip, daily quota for Evm/Mina | ||
|
||
User -> fe : Logged in with Evm/Mina wallet | ||
|
||
note right | ||
Both Evm and Mina admin accounts | ||
can changes these settings. | ||
end note | ||
activate fe | ||
fe --> User : show configuration screen | ||
deactivate fe | ||
User -> fe : enter new tip, daily quota value. | ||
activate fe | ||
fe -> be: call api PUT: /api/admin/update-common-config/:configId | ||
activate be | ||
|
||
be -> Database: persist changes | ||
activate Database | ||
Database --> be: update successfully | ||
deactivate Database | ||
be --> fe: api response 201 | ||
deactivate be | ||
fe --> User: popup success | ||
deactivate fe | ||
end | ||
|
||
@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,35 @@ | ||
@startuml 1 | ||
title Admin config min max amount | ||
actor User | ||
boundary fe as "Frontend" | ||
participant wallet as "Metamask/ Auro Wallet" | ||
participant network as "Mina/Eth" | ||
autonumber | ||
group#LightGreen Admin change min max amount to bridge Evm/Mina | ||
|
||
User -> fe : Logged in with Evm/Mina wallet | ||
note right | ||
Evm admin account can change Evm brige | ||
configuration only and so does Mina admin account. | ||
end note | ||
activate fe | ||
fe --> User : show Evm configuration screen | ||
deactivate fe | ||
User -> fe : enter new Min, Max value to Evm/Mina bridge | ||
activate fe | ||
fe -> wallet: trigger wallet for user confirmation | ||
activate wallet | ||
wallet --> User: show estimate fee dialog | ||
User -> wallet: confirm transaction | ||
wallet -> network: submit transaction | ||
activate network | ||
network --> wallet: status success | ||
deactivate network | ||
wallet --> fe: send tx success status | ||
fe --> User: shop pop up success | ||
deactivate fe | ||
deactivate wallet | ||
end | ||
|
||
@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