-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sequence diagram of assets-registry (#568)
- Loading branch information
Showing
1 changed file
with
42 additions
and
34 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
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 |