tx · J1cHcUs86eUiuDbX1SehqrPzsERJShxfWi7PGWcQvwC9 3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf: -0.01000000 Waves 2022.02.03 23:58 [1907940] smart account 3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf > SELF 0.00000000 Waves
{ "type": 13, "id": "J1cHcUs86eUiuDbX1SehqrPzsERJShxfWi7PGWcQvwC9", "fee": 1000000, "feeAssetId": null, "timestamp": 1643921907843, "version": 2, "chainId": 84, "sender": "3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf", "senderPublicKey": "5ate1da9rhtGuHpuEAd28pTGh1GpM8SUthHy4JD2hPeL", "proofs": [ "FfBDkiEeKzGmsmss815ja64vLiYPYRTZ7qZfBcEXsLcVCndcwfsXqNCVpsLVmC7kXqXy48GNvAYw2xgV28hXj92" ], "script": "base64:AAIFAAAAAAAAAYcIAhIECgIICBIDCgEIEgMKAQgSBAoCCBgSABIAGg8KAWESCmVzdEVuQ291cnMaEgoBYhINY2xhc3NlRW5Db3VycxoUCgFjEg9ub2RlVmFsaWRhdHJpY2UaEQoBZBIMZ2V0Q2xhc3NOYW1lGggKAWUSA25vbRoPCgFmEgpwcm9mZXNzZXVyGhEKAWcSDHZhbGlkZXJFbGV2ZRoICgFoEgNhY2MaBgoBaRIBZRoTCgFqEg5zdHVkZW50QWRkcmVzcxoSCgFrEg1zdHVkZW50U3RhdHVzGggKAWwSA3JlcxoOCgFtEgl0ZXN0VmFsaWQaBgoBbhIBaRoLCgFvEgZlbGV2ZXMaDAoBcBIHYWRkcmVzcxoLCgFxEgZjbGFzc2UaFAoBchIPbGVhc2VkRXR1ZGlhbnRzGgcKAXMSAiRsGgcKAXQSAiRzGgoKAXUSBSRhY2MwGgoKAXYSBSRmMF8xGgcKAXcSAiRhGgcKAXgSAiRpGgoKAXkSBSRmMF8yGgoKAXoSBWVsZXZlAAAABgAAAAABYQIAAAAKZXN0RW5Db3VycwAAAAABYgIAAAANY2xhc3NlRW5Db3V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AAXYAAAACCQEAAAABdgAAAAIJAQAAAAF2AAAAAgUAAAABdQAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwAAAAAAAAAACAAAAAAAAAAACQAAAAAAAAAACgAAAAAAAAAACwAAAAAAAAAADAAAAAAAAAAADQAAAAAAAAAADgAAAAAAAAAADwAAAAAAAAAAEAAAAAAAAAAAEQAAAAAAAAAAEgAAAAAAAAAAEwAAAAAAAAAAFAAAAAAAAAAAFQAAAAAAAAAAFgAAAAAAAAAAFwAAAAAAAAAAGAAAAAAAAAAAGQAAAAAAAAAAGgAAAAAAAAAAGwAAAAAAAAAAHAAAAAAAAAAAHQAAAAAAAAAAHgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAFiCQEAAAABZAAAAAIFAAAAAXEIBQAAAAFuAAAABmNhbGxlcgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAABYQYFAAAAA25pbAAAAAFuAQAAAA9mYWlyZUFwcGVsRWxldmUAAAAABAAAAAF6CQEAAAABbQAAAAECAAAALDNON2F0NjZrTVNSNjZ3UGtZOHB2bkFjUmc3MTFYS2tSbVc3X3Byw6lzZW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABFiYWxhbmNlX2F2YWlsYWJsZQgJAAPvAAAAAQUAAAAEdGhpcwAAAAlhdmFpbGFibGUFAAAAA25pbAAAAAFuAQAAAAxhcnJldGVyQ291cnMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAAWICAAAAAAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAABYQcFAAAAA25pbAAAAACbIr2v", "height": 1907940, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9cmKu61tee2bVzgM1W7J4Fqapk1dP6qTw9yvCoodFQsM Next: EUh9Qx5FboNKj7Y3uHWj7pChHc73nWJmu7JZEmvi2Fz4 Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | func m (i) = { | |
24 | 24 | let j = addressFromStringValue(take(i, 35)) | |
25 | 25 | let k = takeRight(i, (size(i) - 36)) | |
26 | - | k | |
26 | + | let l = invoke(j, "validationPresence", [k, getStringValue(c)], nil) | |
27 | + | if ((l == l)) | |
28 | + | then unit | |
29 | + | else throw("Strict value is not equal to itself.") | |
27 | 30 | } | |
28 | 31 | ||
29 | 32 | ||
64 | 67 | ||
65 | 68 | ||
66 | 69 | @Callable(n) | |
67 | - | func faireAppelEleve () = [StringEntry("etudiants_address", m("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent")), IntegerEntry("balance_available", wavesBalance(this).available)] | |
70 | + | func faireAppelEleve () = { | |
71 | + | let z = m("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent") | |
72 | + | [IntegerEntry("balance_available", wavesBalance(this).available)] | |
73 | + | } | |
68 | 74 | ||
69 | 75 | ||
70 | 76 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "estEnCours" | |
5 | 5 | ||
6 | 6 | let b = "classeEnCours" | |
7 | 7 | ||
8 | 8 | let c = "validatorNode" | |
9 | 9 | ||
10 | 10 | func d (e,f) = ((e + "_") + toString(f)) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func g (h,i) = { | |
14 | 14 | let j = addressFromStringValue(take(i, 35)) | |
15 | 15 | let k = takeRight(i, (size(i) - 34)) | |
16 | 16 | let l = invoke(j, "validationPresence", [k, getStringValue(c)], nil) | |
17 | 17 | if ((l == l)) | |
18 | 18 | then true | |
19 | 19 | else throw("Strict value is not equal to itself.") | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func m (i) = { | |
24 | 24 | let j = addressFromStringValue(take(i, 35)) | |
25 | 25 | let k = takeRight(i, (size(i) - 36)) | |
26 | - | k | |
26 | + | let l = invoke(j, "validationPresence", [k, getStringValue(c)], nil) | |
27 | + | if ((l == l)) | |
28 | + | then unit | |
29 | + | else throw("Strict value is not equal to itself.") | |
27 | 30 | } | |
28 | 31 | ||
29 | 32 | ||
30 | 33 | @Callable(n) | |
31 | 34 | func createOrModifyClass (e,o) = [StringEntry(d(e, n.caller), o)] | |
32 | 35 | ||
33 | 36 | ||
34 | 37 | ||
35 | 38 | @Callable(n) | |
36 | 39 | func deleteClass (e) = [DeleteEntry(d(e, n.caller))] | |
37 | 40 | ||
38 | 41 | ||
39 | 42 | ||
40 | 43 | @Callable(n) | |
41 | 44 | func ajouterValidateur (p) = [StringEntry(c, p)] | |
42 | 45 | ||
43 | 46 | ||
44 | 47 | ||
45 | 48 | @Callable(n) | |
46 | 49 | func faireAppel (q,o) = { | |
47 | 50 | let r = { | |
48 | 51 | let s = o | |
49 | 52 | let t = size(s) | |
50 | 53 | let u = nil | |
51 | 54 | func v (w,x) = if ((x >= t)) | |
52 | 55 | then w | |
53 | 56 | else g(w, s[x]) | |
54 | 57 | ||
55 | 58 | func y (w,x) = if ((x >= t)) | |
56 | 59 | then w | |
57 | 60 | else throw("List size exceeds 30") | |
58 | 61 | ||
59 | 62 | y(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(u, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
60 | 63 | } | |
61 | 64 | [StringEntry(b, d(q, n.caller)), BooleanEntry(a, true)] | |
62 | 65 | } | |
63 | 66 | ||
64 | 67 | ||
65 | 68 | ||
66 | 69 | @Callable(n) | |
67 | - | func faireAppelEleve () = [StringEntry("etudiants_address", m("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent")), IntegerEntry("balance_available", wavesBalance(this).available)] | |
70 | + | func faireAppelEleve () = { | |
71 | + | let z = m("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent") | |
72 | + | [IntegerEntry("balance_available", wavesBalance(this).available)] | |
73 | + | } | |
68 | 74 | ||
69 | 75 | ||
70 | 76 | ||
71 | 77 | @Callable(n) | |
72 | 78 | func arreterCours () = [StringEntry(b, ""), BooleanEntry(a, false)] | |
73 | 79 | ||
74 | 80 |
github/deemru/w8io/169f3d6 50.22 ms ◑