-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiagram.puml
22 lines (21 loc) · 853 Bytes
/
diagram.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@startuml
class RelayChain {
- address owner
- mapping(string => address) chains
--
+ RelayChain()
+ recordDonation(string medicineName, string batchNumber)
+ recordMedicineReceived(address receiver, string medicineName, string batchNumber)
+ updateLogistics(uint256 transportId, string status, string location)
--
+ event ChainRegistered(string chainName, address chainAddress)
+ event DonationRecorded(address indexed from, string medicineName, string batchNumber, uint256 timestamp)kro
+ event MedicineReceived(address indexed receiver, string medicineName, string batchNumber, uint256 timestamp)
+ event LogisticsUpdated(uint256 transportId, string status, string location)
--
# onlyOwner()
# onlyAuthorized(string chainName)
}
RelayChain -> address : owner
RelayChain -> "mapping(string => address)" : chains
@enduml