tx · Hps3VeAsTZgsjndozhKdkqKMkX3Ke5WV5bCRaAEJKKqq

3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3:  -0.00300000 Waves

2022.09.10 04:42 [2222372] smart account 3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3 > SELF 0.00000000 Waves

{ "type": 13, "id": "Hps3VeAsTZgsjndozhKdkqKMkX3Ke5WV5bCRaAEJKKqq", "fee": 300000, "feeAssetId": null, "timestamp": 1662774166287, "version": 2, "chainId": 84, "sender": "3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3", "senderPublicKey": "FHr6uMfBbxn4GZjwwoxAzVr4fi6xcUvKCKfa5Mctet21", "proofs": [ "3QA2VLjjCwEB5AGK1NHfSb2nu6y1WZTAonghaASds2hHusYLsjXeXpfU3Cdc9aWiLjpbMTzgKkxu4wKFzSFuCnw2" ], "script": "base64:AAIDAAAAAAAAAA0IARIJCgcBCAEICAEBAAAAAAAAAAEAAAABaQEAAAANYWRkVXBkYXRlQ2FzZQAAAAcAAAALaWRlbnRpZmlhbnQAAAAGZ2VuZGVyAAAAA2FnZQAAAAhsb2NhdGlvbgAAAANwZWMAAAAGc3RhdHVzAAAABGRhdGUEAAAADG93bmVyQWRkcmVzcwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAAEWN1cnJlbnRDb3VudGVyTnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFjBQAAAAckbWF0Y2gwBQAAAAFjAAAAAAAAAAAABAAAAAlwYXRpZW50SUQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAALaWRlbnR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gkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAFX2pzb24FAAAABGpzb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQUAAAANdXBkYXRlQ291bnRlcgUAAAADbmlsAAAAAIiKoOk=", "height": 2222372, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5EqXYpbxC8N8hfS9NerGwBVgzC4E78sBntHEdxeJrmaZ Next: eDSNauVGZJuuVf9YCfmejbrkZT8uJGxaAovMcRRbxji Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func addUpdateCase (identifiant,gender,age,location,pec,status,date) = {
88 let ownerAddress = toString(i.caller)
99 let currentCounterNum = match getInteger(this, (ownerAddress + "_counterNum")) {
1010 case c: Int =>
1111 c
1212 case _ =>
1313 0
1414 }
1515 let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(identifiant)) + "_identifiant")) {
1616 case p: Int =>
1717 p
1818 case _ =>
1919 (currentCounterNum + 1)
2020 }
2121 let json = (((((((((((((("{\"identifiant\":\"" + toString(patientID)) + "\",\"gender\":\"") + gender) + "\",\"age\":\"") + toString(age)) + "\",\"pec\":\"") + pec) + "\",\"location\":\"") + location) + "\",\"date\":\"") + toString(date)) + "\",\"status\":\"") + toString(status)) + "\"}")
2222 let updateCounter = if ((identifiant == 0))
2323 then (currentCounterNum + 1)
2424 else currentCounterNum
2525 if (if (if ((status != 1))
2626 then (status != 2)
2727 else false)
2828 then (status != 3)
2929 else false)
3030 then throw("Wrong status")
3131 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)])
3232 }
3333
3434

github/deemru/w8io/169f3d6 
27.00 ms