Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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