tx · 3r8CcxPkf2XXMtY19EjkHe71jAJwdPAef7RAGWPruua9

3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR:  -0.01400000 Waves

2022.10.14 14:22 [2271952] smart account 3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR > SELF 0.00000000 Waves

{ "type": 13, "id": "3r8CcxPkf2XXMtY19EjkHe71jAJwdPAef7RAGWPruua9", "fee": 1400000, "feeAssetId": null, "timestamp": 1665746356653, "version": 2, "chainId": 84, "sender": "3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR", "senderPublicKey": "GjnhUMpwQus4JiztKNVi1bLKtwBS2UT3YpxVyqsYB4KG", "proofs": [ "3RFBEhqmMu1cnyNw9TSuZkqiRtScmJTFmaoEg4929XFsS61Ln5Hw6m8sdQYuxnDTq9pD7s2FzEk4tUAW6e5Xei6y" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIICBIJCgcBCAEICAEBAAAAAAAAAAIAAAABaQEAAAALdXBkYXRlSW5mb3MAAAACAAAABG5hbWUAAAAFaW50cm8EAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAVfbmFtZQUAAAAEbmFtZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGX2ludHJvBQAAAAVpbnRybwUAAAADbmlsAAAAAWkBAAAADWFkZFVwZGF0ZUNhc2UAAAAHAAAAC2lkZW50aWZpYW50AAAABmdlbmRlcgAAAANhZ2UAAAAIbG9jYXRpb24AAAADcGVjAAAABnN0YXR1cwAAAARkYXRlBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAABFjdXJyZW50Q291bnRlck51b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CAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAAB19nZW5kZXIFAAAABmdlbmRlcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAARfYWdlBQAAAANhZ2UJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAEX3BlYwUAAAADcGVjCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAACV9sb2NhdGlvbgUAAAAIbG9jYXRpb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAHX3N0YXR1cwUAAAAGc3RhdHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABV9kYXRlBQAAAARkYXRlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAALX2NvdW50ZXJOdW0FAAAADXVwZGF0ZUNvdW50ZXIFAAAAA25pbAAAAAAObQov", "height": 2271952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7XWFqo2kS2bq7GcMRBXatGT8CnMfRao3tGdwSDvr8BE2 Next: Bk8x4497kZb54QMJmrgwRpXcTzCp2iKVJFvw8C93NcT7 Diff:
OldNewDifferences
3232 }
3333 else (l + 1)
3434 }
35- let q = (((((((((((((("{\"identifiant\":\"" + toString(o)) + "\",\"gender\":\"") + f) + "\",\"age\":\"") + toString(g)) + "\",\"pec\":\"") + i) + "\",\"location\":\"") + h) + "\",\"date\":\"") + toString(k)) + "\",\"status\":\"") + toString(j)) + "\"}")
36- let r = if ((e == 0))
35+ let q = if ((e == 0))
3736 then (l + 1)
3837 else l
3938 if (if (if ((j != 1))
4241 then (j != 3)
4342 else false)
4443 then throw("Wrong status")
45- else WriteSet([DataEntry((((d + "_patient_") + toString(o)) + "_identifiant"), o), DataEntry((((d + "_patient_") + toString(o)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(o)) + "_age"), g), DataEntry((((d + "_patient_") + toString(o)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(o)) + "_location"), h), DataEntry((((d + "_patient_") + toString(o)) + "_status"), j), DataEntry((((d + "_patient_") + toString(o)) + "_date"), k), DataEntry((((d + "_patient_") + toString(o)) + "_json"), q), DataEntry((d + "_counterNum"), r)])
44+ else WriteSet([DataEntry((((d + "_patient_") + toString(o)) + "_identifiant"), o), DataEntry((((d + "_patient_") + toString(o)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(o)) + "_age"), g), DataEntry((((d + "_patient_") + toString(o)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(o)) + "_location"), h), DataEntry((((d + "_patient_") + toString(o)) + "_status"), j), DataEntry((((d + "_patient_") + toString(o)) + "_date"), k), DataEntry((d + "_counterNum"), q)])
4645 }
4746
4847
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func updateInfos (b,c) = {
88 let d = a.caller
99 WriteSet([DataEntry((toString(d) + "_name"), b), DataEntry((toString(d) + "_intro"), c)])
1010 }
1111
1212
1313
1414 @Callable(a)
1515 func addUpdateCase (e,f,g,h,i,j,k) = {
1616 let d = toString(a.caller)
1717 let l = {
1818 let m = getInteger(this, (d + "_counterNum"))
1919 if ($isInstanceOf(m, "Int"))
2020 then {
2121 let n = m
2222 n
2323 }
2424 else 0
2525 }
2626 let o = {
2727 let m = getInteger(this, (((d + "_patient_") + toString(e)) + "_identifiant"))
2828 if ($isInstanceOf(m, "Int"))
2929 then {
3030 let p = m
3131 p
3232 }
3333 else (l + 1)
3434 }
35- let q = (((((((((((((("{\"identifiant\":\"" + toString(o)) + "\",\"gender\":\"") + f) + "\",\"age\":\"") + toString(g)) + "\",\"pec\":\"") + i) + "\",\"location\":\"") + h) + "\",\"date\":\"") + toString(k)) + "\",\"status\":\"") + toString(j)) + "\"}")
36- let r = if ((e == 0))
35+ let q = if ((e == 0))
3736 then (l + 1)
3837 else l
3938 if (if (if ((j != 1))
4039 then (j != 2)
4140 else false)
4241 then (j != 3)
4342 else false)
4443 then throw("Wrong status")
45- else WriteSet([DataEntry((((d + "_patient_") + toString(o)) + "_identifiant"), o), DataEntry((((d + "_patient_") + toString(o)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(o)) + "_age"), g), DataEntry((((d + "_patient_") + toString(o)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(o)) + "_location"), h), DataEntry((((d + "_patient_") + toString(o)) + "_status"), j), DataEntry((((d + "_patient_") + toString(o)) + "_date"), k), DataEntry((((d + "_patient_") + toString(o)) + "_json"), q), DataEntry((d + "_counterNum"), r)])
44+ else WriteSet([DataEntry((((d + "_patient_") + toString(o)) + "_identifiant"), o), DataEntry((((d + "_patient_") + toString(o)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(o)) + "_age"), g), DataEntry((((d + "_patient_") + toString(o)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(o)) + "_location"), h), DataEntry((((d + "_patient_") + toString(o)) + "_status"), j), DataEntry((((d + "_patient_") + toString(o)) + "_date"), k), DataEntry((d + "_counterNum"), q)])
4645 }
4746
4847

github/deemru/w8io/026f985 
35.19 ms