tx · FKtwyScjFZs2RedCY7zYQxpVb7uXM41KwykpApdfVhLJ

3N48Q743PKQTUd2PzrWopm3duBnTmV2drNC:  -0.01400000 Waves

2020.04.23 11:21 [966871] smart account 3N48Q743PKQTUd2PzrWopm3duBnTmV2drNC > SELF 0.00000000 Waves

{ "type": 13, "id": "FKtwyScjFZs2RedCY7zYQxpVb7uXM41KwykpApdfVhLJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1587630095333, "version": 1, "sender": "3N48Q743PKQTUd2PzrWopm3duBnTmV2drNC", "senderPublicKey": "DtgcuFeJCEpayJZvfYkM9WMxVLR2secZksKefiFpsT5k", "proofs": [ "BQmcvgPjca1xuPeSMxiCf9vag9EVoyBgUY1vhDuVNzTZGxLeTZkKSf2hLH7mkGjBqqo1cKpbY8vMSQY83V3eHQf" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIICBIJCgcBCAEICAEBAAAAAAAAAAIAAAABaQEAAAALdXBkYXRlSW5mb3MAAAACAAAABG5hbWUAAAAFaW50cm8EAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAVfbmFtZQUAAAAEbmFtZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGX2ludHJvBQAAAAVpbnRybwUAAAADbmlsAAAAAWkBAAAADWFkZFVwZGF0ZUNhc2UAAAAHAAAAC2lkZW50aWZpYW50AAAABmdlbmRlcgAAAANhZ2UAAAAIbG9jYXRpb24AAAADcGVjAAAABnN0YXR1cwAAAARkYXRlBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAABFjdXJyZW50Q291bnRlck51bQQAAAAHJG1hdGNoMAkABBoA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AAAAQUAAAAJcGF0aWVudElEAgAAAAdfc3RhdHVzBQAAAAZzdGF0dXMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAFX2RhdGUFAAAABGRhdGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAFX2pzb24FAAAABGpzb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQUAAAANdXBkYXRlQ291bnRlcgUAAAADbmlsAAAAAHpaCE4=", "chainId": 84, "height": 966871, "spentComplexity": 0 } View: original | compacted Prev: 3UKHk4SkBBp3ck3pw1i8kf7WzUTkv5i6JbMoQq5jNTpZ Next: none Diff:
OldNewDifferences
1818 case c: Int =>
1919 c
2020 case _ =>
21- 1
21+ 0
2222 }
2323 let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(identifiant)) + "_identifiant")) {
2424 case p: Int =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func updateInfos (name,intro) = {
88 let ownerAddress = i.caller
99 WriteSet([DataEntry((toString(ownerAddress) + "_name"), name), DataEntry((toString(ownerAddress) + "_intro"), intro)])
1010 }
1111
1212
1313
1414 @Callable(i)
1515 func addUpdateCase (identifiant,gender,age,location,pec,status,date) = {
1616 let ownerAddress = toString(i.caller)
1717 let currentCounterNum = match getInteger(this, (ownerAddress + "_counterNum")) {
1818 case c: Int =>
1919 c
2020 case _ =>
21- 1
21+ 0
2222 }
2323 let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(identifiant)) + "_identifiant")) {
2424 case p: Int =>
2525 p
2626 case _ =>
2727 (currentCounterNum + 1)
2828 }
2929 let json = (((((((((((((("{\"identifiant\":\"" + toString(patientID)) + "\",\"gender\":\"") + gender) + "\",\"age\":\"") + toString(age)) + "\",\"pec\":\"") + pec) + "\",\"location\":\"") + location) + "\",\"date\":\"") + toString(date)) + "\",\"status\":\"") + toString(status)) + "\"}")
3030 let updateCounter = if ((identifiant == 0))
3131 then (currentCounterNum + 1)
3232 else currentCounterNum
3333 if (if ((status != 1))
3434 then (status != 2)
3535 else false)
3636 then throw("Wrong status")
3737 else WriteSet([DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_identifiant"), patientID), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_gender"), gender), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_age"), age), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_pec"), pec), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_location"), location), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_status"), status), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_date"), date), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_json"), json), DataEntry((ownerAddress + "_counterNum"), updateCounter)])
3838 }
3939
4040

github/deemru/w8io/026f985 
30.88 ms