tx · 6btorLBr1n59YJ4idM6uAM99ri3PFGP5wrwhJrDJGDDy 3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3: -0.00300000 Waves 2022.09.13 17:58 [2227476] smart account 3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3 > SELF 0.00000000 Waves
{ "type": 13, "id": "6btorLBr1n59YJ4idM6uAM99ri3PFGP5wrwhJrDJGDDy", "fee": 300000, "feeAssetId": null, "timestamp": 1663081090335, "version": 2, "chainId": 84, "sender": "3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3", "senderPublicKey": "FHr6uMfBbxn4GZjwwoxAzVr4fi6xcUvKCKfa5Mctet21", "proofs": [ "51h7NhwLaGJLNAoAaEQtnSe37fxV6xbrQkfyEMySaCSvhjxnLryNBTiRaxBJAw7PEUB6S4RsN2Kkg9Ar1NgwZ2Dp" ], "script": "base64:AAIDAAAAAAAAAA0IARIJCgcBCAEICAEBAAAAAAAAAAEAAAABaQEAAAANYWRkVXBkYXRlQ2FzZQAAAAcAAAALaWRlbnRpZmlhbnQAAAAHY3VsdHVyZQAAAANhZ2UAAAAIbG9jYXRpb24AAAADcGVjAAAABnN0YXR1cwAAAARkYXRlBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAABFjdXJyZW50Q291bnRlck51bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAALX2NvdW50ZXJOdW0DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYwUAAAAHJG1hdGNoMAUAAAABYwAAAAAAAAAAAAQAAAAJcGF0aWVudElEBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAAC2lkZW50aWZpYW50Ag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AIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAAVfanNvbgUAAAAEanNvbgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAAC19jb3VudGVyTnVtBQAAAA11cGRhdGVDb3VudGVyBQAAAANuaWwAAAAAOUKV9A==", "height": 2227476, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CP5xMWzGtvAGqQGxfkpsaDMQ9gqgQD8KgeeWEbLJZzRX Next: 5ixKrXcF6Jb4earH9vQ3whzXhFCTv61AgpVXa2CczzYs Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func addUpdateCase (identifiant,culture,age,location,pec,status,date) = { | |
8 | 8 | let ownerAddress = toString(i.caller) | |
9 | 9 | let currentCounterNum = match getInteger(this, (ownerAddress + "_counterNum")) { | |
10 | 10 | case c: Int => | |
11 | 11 | c | |
12 | 12 | case _ => | |
13 | 13 | 0 | |
14 | 14 | } | |
15 | 15 | let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(identifiant)) + "_identifiant")) { | |
16 | 16 | case p: Int => | |
17 | 17 | p | |
18 | 18 | case _ => | |
19 | 19 | (currentCounterNum + 1) | |
20 | 20 | } | |
21 | 21 | let json = (((((((((((((("{\"identifiant\":\"" + toString(patientID)) + "\",\"culture\":\"") + culture) + "\",\"age\":\"") + toString(age)) + "\",\"pec\":\"") + pec) + "\",\"location\":\"") + location) + "\",\"date\":\"") + toString(date)) + "\",\"status\":\"") + toString(status)) + "\"}") | |
22 | 22 | let updateCounter = if ((identifiant == 0)) | |
23 | 23 | then (currentCounterNum + 1) | |
24 | 24 | else currentCounterNum | |
25 | 25 | if (if (if ((status != 1)) | |
26 | 26 | then (status != 2) | |
27 | 27 | else false) | |
28 | 28 | then (status != 3) | |
29 | 29 | else false) | |
30 | 30 | then throw("Wrong status") | |
31 | 31 | else WriteSet([DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_identifiant"), patientID), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_culture"), culture), 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)]) | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 |
github/deemru/w8io/169f3d6 26.83 ms ◑