tx · H3ZSDMGN1dgM7yXvooAtXsZ1qAymHLdbbK4QDkw47PHz 3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM: -0.01400000 Waves 2020.04.07 13:04 [943725] smart account 3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM > SELF 0.00000000 Waves
{ "type": 13, "id": "H3ZSDMGN1dgM7yXvooAtXsZ1qAymHLdbbK4QDkw47PHz", "fee": 1400000, "feeAssetId": null, "timestamp": 1586253894104, "version": 1, "sender": "3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM", "senderPublicKey": "DBaFJJsmpYsJTJHfqCaVLcZnbUjhBVHE4TwZKWGjLWJK", "proofs": [ "4pFvx5Wgj5tUeTMs9Cph63QzP13TLao1HwxXLzzojY8ZK72kEjeThdir6endsTuxabL7Fyn6dTEcRsHiXiDkgsXp" ], "script": "base64:AAIDAAAAAAAAABIIARIECgIICBIICgYBCAgICAEAAAAAAAAAAgAAAAFpAQAAAAt1cGRhdGVJbmZvcwAAAAIAAAAEY2l0eQAAAAVpbnRybwQAAAAMb3duZXJBZGRyZXNzCAUAAAABaQAAAAZjYWxsZXIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABBQAAAAxvd25lckFkZHJlc3MCAAAABV9uYW1lBQAAAARjaXR5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAZfaW50cm8FAAAABWludHJvBQAAAANuaWwAAAABaQEAAAANYWRkVXBkYXRlQ2FzZQAAAAYAAAALaWRlbnRpZmlhbnQAAAAGZ2VuZGVyAAAAA2FnZQAAAAhsb2NhdGlvbgAAAANwZWMAAAAGc3RhdHVzBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAAApjb3VudGVyTnVtBAAAAAckbWF0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lbmRlcgUAAAAGZ2VuZGVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABF9hZ2UFAAAAA2FnZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAARfcGVjBQAAAANwZWMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAJX2xvY2F0aW9uBQAAAAhsb2NhdGlvbgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAAdfc3RhdHVzBQAAAAZzdGF0dXMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQUAAAANdXBkYXRlQ291bnRlcgUAAAADbmlsAAAAAERiRy8=", "chainId": 84, "height": 943725, "spentComplexity": 0 } View: original | compacted Prev: Fv6mxww4PX7i3ysNEnNAe5cgxYVCsRNxpaBYTWCquPM7 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | let p = if ((e == 0)) | |
36 | 36 | then k | |
37 | 37 | else n | |
38 | - | if ((j != 5)) | |
39 | - | then throw(("status = " + toString(j))) | |
40 | - | else if (if (if ((j != 1)) | |
41 | - | then true | |
42 | - | else (j != 2)) | |
43 | - | then true | |
44 | - | else (j != 3)) | |
45 | - | then throw("Wrong status") | |
46 | - | else WriteSet([DataEntry((((d + "_patient_") + toString(n)) + "_identifiant"), n), DataEntry((((d + "_patient_") + toString(n)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(n)) + "_age"), g), DataEntry((((d + "_patient_") + toString(n)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(n)) + "_location"), h), DataEntry((((d + "_patient_") + toString(n)) + "_status"), j), DataEntry((d + "_counterNum"), p)]) | |
38 | + | if (if (if ((j != 1)) | |
39 | + | then (j != 2) | |
40 | + | else false) | |
41 | + | then (j != 3) | |
42 | + | else false) | |
43 | + | then throw("Wrong status") | |
44 | + | else WriteSet([DataEntry((((d + "_patient_") + toString(n)) + "_identifiant"), n), DataEntry((((d + "_patient_") + toString(n)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(n)) + "_age"), g), DataEntry((((d + "_patient_") + toString(n)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(n)) + "_location"), h), DataEntry((((d + "_patient_") + toString(n)) + "_status"), j), DataEntry((d + "_counterNum"), p)]) | |
47 | 45 | } | |
48 | 46 | ||
49 | 47 |
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) = { | |
16 | 16 | let d = toString(a.caller) | |
17 | 17 | let k = { | |
18 | 18 | let l = getInteger(this, (d + "_counterNum")) | |
19 | 19 | if ($isInstanceOf(l, "Int")) | |
20 | 20 | then { | |
21 | 21 | let m = l | |
22 | 22 | (m + 1) | |
23 | 23 | } | |
24 | 24 | else 1 | |
25 | 25 | } | |
26 | 26 | let n = { | |
27 | 27 | let l = getInteger(this, (((d + "_patient_") + toString(e)) + "_identifiant")) | |
28 | 28 | if ($isInstanceOf(l, "Int")) | |
29 | 29 | then { | |
30 | 30 | let o = l | |
31 | 31 | o | |
32 | 32 | } | |
33 | 33 | else k | |
34 | 34 | } | |
35 | 35 | let p = if ((e == 0)) | |
36 | 36 | then k | |
37 | 37 | else n | |
38 | - | if ((j != 5)) | |
39 | - | then throw(("status = " + toString(j))) | |
40 | - | else if (if (if ((j != 1)) | |
41 | - | then true | |
42 | - | else (j != 2)) | |
43 | - | then true | |
44 | - | else (j != 3)) | |
45 | - | then throw("Wrong status") | |
46 | - | else WriteSet([DataEntry((((d + "_patient_") + toString(n)) + "_identifiant"), n), DataEntry((((d + "_patient_") + toString(n)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(n)) + "_age"), g), DataEntry((((d + "_patient_") + toString(n)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(n)) + "_location"), h), DataEntry((((d + "_patient_") + toString(n)) + "_status"), j), DataEntry((d + "_counterNum"), p)]) | |
38 | + | if (if (if ((j != 1)) | |
39 | + | then (j != 2) | |
40 | + | else false) | |
41 | + | then (j != 3) | |
42 | + | else false) | |
43 | + | then throw("Wrong status") | |
44 | + | else WriteSet([DataEntry((((d + "_patient_") + toString(n)) + "_identifiant"), n), DataEntry((((d + "_patient_") + toString(n)) + "_gender"), f), DataEntry((((d + "_patient_") + toString(n)) + "_age"), g), DataEntry((((d + "_patient_") + toString(n)) + "_pec"), i), DataEntry((((d + "_patient_") + toString(n)) + "_location"), h), DataEntry((((d + "_patient_") + toString(n)) + "_status"), j), DataEntry((d + "_counterNum"), p)]) | |
47 | 45 | } | |
48 | 46 | ||
49 | 47 |
github/deemru/w8io/026f985 20.35 ms ◑