Skip to content

Commit

Permalink
Update sequence diagram of assets-registry (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
andor0 authored Jan 31, 2022
1 parent 0dd32dc commit 419bcfa
Showing 1 changed file with 42 additions and 34 deletions.
76 changes: 42 additions & 34 deletions frame/assets-registry/local-mapping.plantuml
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
@startuml

box Composable #LightYellow
actor "Root or Collective" as composable_authority
actor "Alice" as alice
actor "Bob" as Bob
participant "Assets Registy" as assets_registry_pallet
end box

note across: Alice and Bob cannot approve an asset mapping candidate

...

composable_authority -> assets_registry_pallet: Set Alice as a local admin
note across: Alice can approve an asset mapping candidate

...

composable_authority -> assets_registry_pallet: Set Bob as a foreign admin
note across: Bob can approve an asset mapping candidate

...

alice -> assets_registry_pallet: Approve an asset mapping candidate with local_asset_id = 1 and foreign_asset_id = 1

...

Bob -> assets_registry_pallet: Approve an asset mapping candidate with local_asset_id = 1 and foreign_asset_id = 1
note over assets_registry_pallet
asset mapping for local_asset_id = 1
and foreign_asset_id = 1 stored
end note

@enduml
@startuml

box Composable #LightYellow
actor "Root or Collective" as composable_authority
actor "Alice" as alice
actor "Bob" as bob
participant "Assets Registy" as assets_registry_pallet
end box

note across: Alice and Bob cannot approve an asset mapping candidate

...

composable_authority -> assets_registry_pallet: Set Alice as a local admin
note across: Alice can approve an asset mapping candidate

...

composable_authority -> assets_registry_pallet: Set Bob as a foreign admin
note across: Bob can approve an asset mapping candidate

...

alice -> assets_registry_pallet: Approve an asset mapping candidate with local_asset_id = x and foreign_asset_id = y

...

bob -> assets_registry_pallet: Approve an asset mapping candidate with local_asset_id = x and foreign_asset_id = y
note over assets_registry_pallet
asset mapping for local_asset_id = x
and foreign_asset_id = y stored
end note

note across: Alice and Bob can set metadata of asset mapping for local_asset_id = x and foreign_asset_id = y

alt
alice -> assets_registry_pallet: Set metadata of asset mapping for local_asset_id = x and foreign asset = y
else
bob -> assets_registry_pallet: Set metadata of asset mapping for local_asset_id = x and foreign asset = y
end

@enduml

0 comments on commit 419bcfa

Please sign in to comment.