Skip to content

Instantly share code, notes, and snippets.

@justinbarry
Last active October 16, 2019 19:56
Show Gist options
  • Save justinbarry/0637cf84f7351ac86c16a2cbde800974 to your computer and use it in GitHub Desktop.
Save justinbarry/0637cf84f7351ac86c16a2cbde800974 to your computer and use it in GitHub Desktop.
gnosis ui workflow
@startuml
title Gnosis Safe UI flow
(*) --> "Login"
--> "Check for Safe Address with Registry Contract"
--> "Address exists in registry?"
If "" then
--> [Yes] "Return safe address to UI"
else
--> [No] "Check localstorage for gnosis safe address" as a1
Endif
a1 --> "Address exists?"
if "" then
--> [Yes] "Call relay endpont /v1/safes/{address}/"
--> if "" then
--> [200] "Valid Address?" as a4
if "" then
--> [Good address] "Return safe address to UI"
--> "SDK: syncUserData(safeAddress)"
--> "UI: check for funds"
--> (*)
else
--> [Bad Address] "Clear localstorage address"
Endif
else
--> [404] "We have an expired relay transaction"
--> "Clear localstorage address"
Endif
else
--> [No] "Clear localstorage address"
--> "Create safe with relay"
--> "stored safe address in localstorage"
--> a4
Endif
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment