tx · CP5xMWzGtvAGqQGxfkpsaDMQ9gqgQD8KgeeWEbLJZzRX

3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3:  -0.00300000 Waves

2022.09.13 02:56 [2226578] smart account 3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3 > SELF 0.00000000 Waves

{ "type": 13, "id": "CP5xMWzGtvAGqQGxfkpsaDMQ9gqgQD8KgeeWEbLJZzRX", "fee": 300000, "feeAssetId": null, "timestamp": 1663026999152, "version": 2, "chainId": 84, "sender": "3N7gxDmufLPHyV5Pi3wPhGz6PzJiS9M1Qa3", "senderPublicKey": "FHr6uMfBbxn4GZjwwoxAzVr4fi6xcUvKCKfa5Mctet21", "proofs": [ "23teHbZEmSFLpadEdpNy4rH81RqDDvwjqX2X2Fs67mef8uGU47RvkfXnxTznGRkKzQrD2gBnkQqcKPVm8gYE9AYL" ], "script": "base64:AAIDAAAAAAAAAA0IARIJCgcBCAEICAEBAAAAAAAAAAEAAAABaQEAAAANYWRkVXBkYXRlQ2FzZQAAAAcAAAALaWRlbnRpZmlhbnQAAAAHY3VsdHVyZQAAAANhZ2UAAAAIbG9jYXRpb24AAAADcGVjAAAABnN0YXR1cwAAAARkYXRlBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAABFjdXJyZW50Q291bnRlck51bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAALX2NvdW50ZXJOdW0DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYwUAAAAHJG1hdGNoMAUAAAABYwAAAAAAAAAAAAQAAAAJcGF0aWVudElEBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAAC2lkZW50aWZpYW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AAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAAVfanNvbgUAAAAEanNvbgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAAC19jb3VudGVyTnVtBQAAAA11cGRhdGVDb3VudGVyBQAAAANuaWwAAAAAOUKV9A==", "height": 2226578, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5fRcPKymmfKganoE2diCya2Bc5AzERxrVpFdmsifYChQ Next: 6btorLBr1n59YJ4idM6uAM99ri3PFGP5wrwhJrDJGDDy Diff:
OldNewDifferences
2424 }
2525 else (j + 1)
2626 }
27- let o = (((((((((((((("{\"identifiant\":\"" + toString(m)) + "\",\"gender\":\"") + c) + "\",\"age\":\"") + toString(d)) + "\",\"pec\":\"") + f) + "\",\"location\":\"") + e) + "\",\"date\":\"") + toString(h)) + "\",\"status\":\"") + toString(g)) + "\"}")
27+ let o = (((((((((((((("{\"identifiant\":\"" + toString(m)) + "\",\"culture\":\"") + c) + "\",\"age\":\"") + toString(d)) + "\",\"pec\":\"") + f) + "\",\"location\":\"") + e) + "\",\"date\":\"") + toString(h)) + "\",\"status\":\"") + toString(g)) + "\"}")
2828 let p = if ((b == 0))
2929 then (j + 1)
3030 else j
3434 then (g != 3)
3535 else false)
3636 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)])
37+ else WriteSet([DataEntry((((i + "_patient_") + toString(m)) + "_identifiant"), m), DataEntry((((i + "_patient_") + toString(m)) + "_culture"), 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)])
3838 }
3939
4040
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func addUpdateCase (b,c,d,e,f,g,h) = {
88 let i = toString(a.caller)
99 let j = {
1010 let k = getInteger(this, (i + "_counterNum"))
1111 if ($isInstanceOf(k, "Int"))
1212 then {
1313 let l = k
1414 l
1515 }
1616 else 0
1717 }
1818 let m = {
1919 let k = getInteger(this, (((i + "_patient_") + toString(b)) + "_identifiant"))
2020 if ($isInstanceOf(k, "Int"))
2121 then {
2222 let n = k
2323 n
2424 }
2525 else (j + 1)
2626 }
27- let o = (((((((((((((("{\"identifiant\":\"" + toString(m)) + "\",\"gender\":\"") + c) + "\",\"age\":\"") + toString(d)) + "\",\"pec\":\"") + f) + "\",\"location\":\"") + e) + "\",\"date\":\"") + toString(h)) + "\",\"status\":\"") + toString(g)) + "\"}")
27+ let o = (((((((((((((("{\"identifiant\":\"" + toString(m)) + "\",\"culture\":\"") + c) + "\",\"age\":\"") + toString(d)) + "\",\"pec\":\"") + f) + "\",\"location\":\"") + e) + "\",\"date\":\"") + toString(h)) + "\",\"status\":\"") + toString(g)) + "\"}")
2828 let p = if ((b == 0))
2929 then (j + 1)
3030 else j
3131 if (if (if ((g != 1))
3232 then (g != 2)
3333 else false)
3434 then (g != 3)
3535 else false)
3636 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)])
37+ else WriteSet([DataEntry((((i + "_patient_") + toString(m)) + "_identifiant"), m), DataEntry((((i + "_patient_") + toString(m)) + "_culture"), 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)])
3838 }
3939
4040

github/deemru/w8io/169f3d6 
33.14 ms