tx · 5EqXYpbxC8N8hfS9NerGwBVgzC4E78sBntHEdxeJrmaZ

3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3:  -0.03000000 Waves

2022.09.10 02:35 [2222248] smart account 3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3 > SELF 0.00000000 Waves

{ "type": 13, "id": "5EqXYpbxC8N8hfS9NerGwBVgzC4E78sBntHEdxeJrmaZ", "fee": 3000000, "feeAssetId": null, "timestamp": 1662766528613, "version": 2, "chainId": 84, "sender": "3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3", "senderPublicKey": "FHr6uMfBbxn4GZjwwoxAzVr4fi6xcUvKCKfa5Mctet21", "proofs": [ "iqme4u88Cr6x92eg9T6okGVd7EyBQy6hZhzXAcquKL6rFMgZg8H35Z9L6zVDRkKFMDadCUGARsNaSyeqyeDbXRo" ], "script": "base64:AAIDAAAAAAAAAA0IARIJCgcBCAEICAEBAAAAAAAAAAEAAAABaQEAAAANYWRkVXBkYXRlQ2FzZQAAAAcAAAALaWRlbnRpZmlhbnQAAAAGZ2VuZGVyAAAAA2FnZQAAAAhsb2NhdGlvbgAAAANwZWMAAAAGc3RhdHVzAAAABGRhdGUEAAAADG93bmVyQWRkcmVzcwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAAEWN1cnJlbnRDb3VudGVyTnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFjBQAAAAckbWF0Y2gwBQAAAAFjAAAAAAAAAAAABAAAAAlwYXRpZW50SUQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAALaWRlbnRpZm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ASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAFX2pzb24FAAAABGpzb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQUAAAANdXBkYXRlQ291bnRlcgUAAAADbmlsAAAAAIiKoOk=", "height": 2222248, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6VFYoQwYx4Sybwkagxm7pbg94zSDTVr8ciz6jpkMsuU3 Next: Hps3VeAsTZgsjndozhKdkqKMkX3Ke5WV5bCRaAEJKKqq Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
2-{-# CONTENT_TYPE EXPRESSION #-}
3-sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(a)
7+func addUpdateCase (b,c,d,e,f,g,h) = {
8+ let i = toString(a.caller)
9+ let j = {
10+ let k = getInteger(this, (i + "_counterNum"))
11+ if ($isInstanceOf(k, "Int"))
12+ then {
13+ let l = k
14+ l
15+ }
16+ else 0
17+ }
18+ let m = {
19+ let k = getInteger(this, (((i + "_patient_") + toString(b)) + "_identifiant"))
20+ if ($isInstanceOf(k, "Int"))
21+ then {
22+ let n = k
23+ n
24+ }
25+ else (j + 1)
26+ }
27+ let o = (((((((((((((("{\"identifiant\":\"" + toString(m)) + "\",\"gender\":\"") + c) + "\",\"age\":\"") + toString(d)) + "\",\"pec\":\"") + f) + "\",\"location\":\"") + e) + "\",\"date\":\"") + toString(h)) + "\",\"status\":\"") + toString(g)) + "\"}")
28+ let p = if ((b == 0))
29+ then (j + 1)
30+ else j
31+ if (if (if ((g != 1))
32+ then (g != 2)
33+ else false)
34+ then (g != 3)
35+ else false)
36+ then throw("Wrong status")
37+ else WriteSet([DataEntry((((i + "_patient_") + toString(m)) + "_identifiant"), m), DataEntry((((i + "_patient_") + toString(m)) + "_gender"), c), DataEntry((((i + "_patient_") + toString(m)) + "_age"), d), DataEntry((((i + "_patient_") + toString(m)) + "_pec"), f), DataEntry((((i + "_patient_") + toString(m)) + "_location"), e), DataEntry((((i + "_patient_") + toString(m)) + "_status"), g), DataEntry((((i + "_patient_") + toString(m)) + "_date"), h), DataEntry((((i + "_patient_") + toString(m)) + "_json"), o), DataEntry((i + "_counterNum"), p)])
38+ }
39+
40+

github/deemru/w8io/169f3d6 
44.21 ms