tx · 1SHEThSbMm22yGPpsmBjbAmHpoCYVUZYuyBEcS6HisH 3NA9EqBLzdqVk3HeXo8bCZps9Brxtyu9qB2: -0.01400000 Waves 2020.04.07 11:02 [943601] smart account 3NA9EqBLzdqVk3HeXo8bCZps9Brxtyu9qB2 > SELF 0.00000000 Waves
{ "type": 13, "id": "1SHEThSbMm22yGPpsmBjbAmHpoCYVUZYuyBEcS6HisH", "fee": 1400000, "feeAssetId": null, "timestamp": 1586246602503, "version": 1, "sender": "3NA9EqBLzdqVk3HeXo8bCZps9Brxtyu9qB2", "senderPublicKey": "HiegtwzYYT7w7bmyj9gnGHmfXgGYCMBW6dKshoBik5b5", "proofs": [ "2KKdZJZof6DnbqYmEFmuCEUJ3JNw6C7rHHNhfLibr5XLjvtBZknKxjJc7XdmyeAhcwuVfHJR8xvYvuZSXHU8c9mZ" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIICBIHCgUBCAgIAQAAAAMAAAAABkFDVElWRQAAAAAAAAAAAQAAAAAJUkVDT1ZFUkVEAAAAAAAAAAACAAAAAAhERUNFQVNFRAAAAAAAAAAAAwAAAAIAAAABaQEAAAALdXBkYXRlSW5mb3MAAAACAAAABGNpdHkAAAAFaW50cm8EAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAVfbmFtZQUAAAAEY2l0eQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGX2ludHJvBQAAAAVpbnRybwUAAAADbmlsAAAAAWkBAAAADWFkZFVwZGF0ZUNhc2UAAAAFAAAAAmlkAAAABmdlbmRlcgAAAANhZ2UAAAAIbG9jYXRpb24AAAAGc3RhdHVzBAAAAAxvd25lckFkZHJlc3MJAAQlA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AIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAHX2dlbmRlcgUAAAAGZ2VuZGVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABF9hZ2UFAAAAA2FnZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAAlfbG9jYXRpb24FAAAACGxvY2F0aW9uCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAAB19zdGF0dXMFAAAADHN0cmluZ1N0YXR1cwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAAC19jb3VudGVyTnVtBQAAAAlwYXRpZW50SUQFAAAAA25pbAAAAABnzw99", "chainId": 84, "height": 943601, "spentComplexity": 0 } View: original | compacted Prev: 6cZP8G4rC591CipNZZxWwSmW5T21XgC2jAE2UDBSbbwq Next: none Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | else throw("Wrong status") | |
46 | 46 | if ((r == "Wrong status")) | |
47 | 47 | then throw("Wrong status") | |
48 | - | else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), d.transactionId), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)]) | |
48 | + | else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), toBase58String(d.transactionId)), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)]) | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1 | |
5 | 5 | ||
6 | 6 | let b = 2 | |
7 | 7 | ||
8 | 8 | let c = 3 | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func updateInfos (e,f) = { | |
12 | 12 | let g = d.caller | |
13 | 13 | WriteSet([DataEntry((toString(g) + "_name"), e), DataEntry((toString(g) + "_intro"), f)]) | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | ||
18 | 18 | @Callable(d) | |
19 | 19 | func addUpdateCase (h,i,j,k,l) = { | |
20 | 20 | let g = toString(d.caller) | |
21 | 21 | let m = { | |
22 | 22 | let n = getInteger(this, (g + "_counterNum")) | |
23 | 23 | if ($isInstanceOf(n, "Int")) | |
24 | 24 | then { | |
25 | 25 | let o = n | |
26 | 26 | o | |
27 | 27 | } | |
28 | 28 | else 0 | |
29 | 29 | } | |
30 | 30 | let p = { | |
31 | 31 | let n = getInteger(this, (((g + "_patient_") + toString(h)) + "_ID")) | |
32 | 32 | if ($isInstanceOf(n, "Int")) | |
33 | 33 | then { | |
34 | 34 | let q = n | |
35 | 35 | q | |
36 | 36 | } | |
37 | 37 | else (m + 1) | |
38 | 38 | } | |
39 | 39 | let r = if ((l == a)) | |
40 | 40 | then "active" | |
41 | 41 | else if ((l == b)) | |
42 | 42 | then "recovered" | |
43 | 43 | else if ((l == c)) | |
44 | 44 | then "deceased" | |
45 | 45 | else throw("Wrong status") | |
46 | 46 | if ((r == "Wrong status")) | |
47 | 47 | then throw("Wrong status") | |
48 | - | else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), d.transactionId), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)]) | |
48 | + | else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), toBase58String(d.transactionId)), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)]) | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 |
github/deemru/w8io/169f3d6 37.52 ms ◑