tx · 8eLRQXcWLGvVDbZLUFe89MxCMCNbzwzDGT9i73eUSN5S 3N7ruXSyaQsbwbvxKVrpm7FikuWVNWq9zah: -0.01400000 Waves 2020.04.14 17:22 [954204] smart account 3N7ruXSyaQsbwbvxKVrpm7FikuWVNWq9zah > SELF 0.00000000 Waves
{ "type": 13, "id": "8eLRQXcWLGvVDbZLUFe89MxCMCNbzwzDGT9i73eUSN5S", "fee": 1400000, "feeAssetId": null, "timestamp": 1586874171239, "version": 1, "sender": "3N7ruXSyaQsbwbvxKVrpm7FikuWVNWq9zah", "senderPublicKey": "8tNH1CuhzXndPWgB2Ft4UrXajPeuZMmfsqqUw6p2GNgy", "proofs": [ "5VDMtqPzgF3gBJLkm9EcEssDHL64e8efmN9jzankany2U84CHhFt1NFQfmTxVKGA8bhyy8prxbP2uf4H1QrNKUMu" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIICBIJCgcBCAEICAEBAAAAAAAAAAIAAAABaQEAAAALdXBkYXRlSW5mb3MAAAACAAAABGNpdHkAAAAFaW50cm8EAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAVfbmFtZQUAAAAEY2l0eQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGX2ludHJvBQAAAAVpbnRybwUAAAADbmlsAAAAAWkBAAAADWFkZFVwZGF0ZUNhc2UAAAAHAAAAC2lkZW50aWZpYW50AAAABmdlbmRlcgAAAANhZ2UAAAAIbG9jYXRpb24AAAADcGVjAAAABnN0YXR1cwAAAARkYXRlBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAAApjb3VudGVyTnVtBAAAAAckbWF0Y2gw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AAAQUAAAAJcGF0aWVudElEAgAAAAdfc3RhdHVzBQAAAAZzdGF0dXMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAFX2RhdGUFAAAABGRhdGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAFX2pzb24FAAAABGpzb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQUAAAANdXBkYXRlQ291bnRlcgUAAAADbmlsAAAAAPmk5Uc=", "chainId": 84, "height": 954204, "spentComplexity": 0 } View: original | compacted Prev: 8m8nyU5ZFXcBXjVi3H1b1fJ7iMp1yuvbJTG488S1VowM Next: none 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(a) | |
7 | 7 | func updateInfos (b,c) = { | |
8 | 8 | let d = a.caller | |
9 | 9 | WriteSet([DataEntry((toString(d) + "_name"), b), DataEntry((toString(d) + "_intro"), c)]) | |
10 | 10 | } | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | ||
14 | 14 | @Callable(a) | |
15 | 15 | func addUpdateCase (e,f,g,h,i,j,k) = { | |
16 | 16 | let d = toString(a.caller) | |
17 | 17 | let l = { | |
18 | 18 | let m = getInteger(this, (d + "_counterNum")) | |
19 | 19 | if ($isInstanceOf(m, "Int")) | |
20 | 20 | then { | |
21 | 21 | let n = m | |
22 | 22 | (n + 1) | |
23 | 23 | } | |
24 | 24 | else 1 | |
25 | 25 | } | |
26 | 26 | let o = { | |
27 | 27 | let m = getInteger(this, (((d + "_patient_") + toString(e)) + "_identifiant")) | |
28 | 28 | if ($isInstanceOf(m, "Int")) | |
29 | 29 | then { | |
30 | 30 | let p = m | |
31 | 31 | p | |
32 | 32 | } | |
33 | 33 | else l | |
34 | 34 | } | |
35 | 35 | let q = (((((((((((((("{\"identifiant\":\"" + toString(o)) + "\",\"gender\":\"") + f) + "\",\"age\":\"") + toString(g)) + "\",\"pec\":\"") + i) + "\",\"location\":\"") + h) + "\",\"date\":\"") + toString(k)) + "\",\"status\":\"") + toString(j)) + "\"}") | |
36 | 36 | let r = if ((e == 0)) | |
37 | 37 | then l | |
38 | 38 | else o | |
39 | 39 | if (if (if ((j != 1)) | |
40 | 40 | then (j != 2) | |
41 | 41 | else false) | |
42 | 42 | then (j != 3) | |
43 | 43 | else false) | |
44 | 44 | then throw("Wrong status") | |
45 | 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)]) | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 |
github/deemru/w8io/169f3d6 40.68 ms ◑