tx · 7iA2pLjzCmVT3RJZzZ2rWD4djaMxWFHadmUc8j8k5Uy5 3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf: -0.01000000 Waves 2022.02.04 17:08 [1908973] smart account 3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf > SELF 0.00000000 Waves
{ "type": 13, "id": "7iA2pLjzCmVT3RJZzZ2rWD4djaMxWFHadmUc8j8k5Uy5", "fee": 1000000, "feeAssetId": null, "timestamp": 1643983694997, "version": 2, "chainId": 84, "sender": "3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf", "senderPublicKey": "5ate1da9rhtGuHpuEAd28pTGh1GpM8SUthHy4JD2hPeL", "proofs": [ "MCbPaEm68M4gR7XYwh7tKkgqsaWoMuDZykSRp3GopdxF9MM5g8aXRnQdMFzkFQoyLKYkZUg6qQpgvcdE8EoeEfG" ], "script": "base64:AAIFAAAAAAAAABwIAhIECgIICBIDCgEIEgMKAQgSBAoCCBgSABIAAAAABgAAAAAKZXN0RW5Db3VycwIAAAAKZXN0RW5Db3VycwAAAAANY2xhc3NlRW5Db3VycwIAAAANY2xhc3NlRW5Db3VycwAAAAAPbm9kZVZhbGlkYXRyaWNlAgAAAA12YWxpZGF0b3JOb2RlAQAAAAxnZXRDbGFzc05hbWUAAAACAAAAA25vbQAAAApwcm9mZXNzZXVyCQABLAAAAAIJAAEsAAAAAgUAAAADbm9tAgAAAAFfCQAEJQAAAAEFAAAACnByb2Zlc3NldXIBAAAADHZhbGlkZXJFbGV2ZQAAAAIAAAADYWNjAAAAAWUEAAAADnN0dWRlbnRBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQABLwAAAAIFAAAAAWUAAAAAAAAAACMEAAAADXN0dWRlbnRTdGF0dXMJAQAAAAl0YWtlUmlnaHQAAAACBQAAAAFlCQAAZQAAAAIJAAExAAAAAQUAAAABZQAAAAAAAAAAIgQAAAADcmVzCQAD/AAAAAQFAAAADnN0dWRlbnRBZGRyZXNzAg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XJyZXRlckNvdXJzAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA1jbGFzc2VFbkNvdXJzAgAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACmVzdEVuQ291cnMHBQAAAANuaWwAAAAAI0EYzA==", "height": 1908973, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FQ7NDtkkyLj9svE5ZxmsJFmUQdyYsAnDX6VewqTtTjCk Next: 69LmamXizN3SjWjzB5BkfR8ib9gwxcGXYgzNTjBMyzzm 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 | - | unit | |
27 | - | } | |
28 | - | ||
29 | - | ||
30 | - | @Callable(n) | |
31 | - | func createOrModifyClass (e,o) = [StringEntry(d(e, n.caller), o)] | |
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | @Callable(n) | |
36 | - | func deleteClass (e) = [DeleteEntry(d(e, n.caller))] | |
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | @Callable(n) | |
41 | - | func ajouterValidateur (p) = [StringEntry(c, p)] | |
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | @Callable(n) | |
46 | - | func faireAppel (q,o) = { | |
47 | - | let r = { | |
48 | - | let s = o | |
49 | - | let t = size(s) | |
50 | - | let u = nil | |
51 | - | func v (w,x) = if ((x >= t)) | |
52 | - | then w | |
53 | - | else g(w, s[x]) | |
54 | - | ||
55 | - | func y (w,x) = if ((x >= t)) | |
56 | - | then w | |
57 | - | else throw("List size exceeds 30") | |
58 | - | ||
59 | - | 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 | - | } | |
61 | - | [StringEntry(b, d(q, n.caller)), BooleanEntry(a, true)] | |
62 | - | } | |
63 | - | ||
64 | - | ||
65 | - | ||
66 | - | @Callable(n) | |
67 | - | func faireAppelEleve () = { | |
68 | - | let l = invoke(addressFromStringValue("3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q"), "validationPresence", ["présent", getStringValue(c)], nil) | |
26 | + | let l = invoke(j, "validationPresence", [k, getStringValue(c)], nil) | |
69 | 27 | if ((l == l)) | |
70 | 28 | then { | |
71 | - | let | |
72 | - | if ($isInstanceOf( | |
29 | + | let n = l | |
30 | + | if ($isInstanceOf(n, "Int")) | |
73 | 31 | then { | |
74 | - | let | |
75 | - | ||
32 | + | let o = n | |
33 | + | o | |
76 | 34 | } | |
77 | 35 | else throw("Incorrect invoke result") | |
78 | 36 | } | |
80 | 38 | } | |
81 | 39 | ||
82 | 40 | ||
41 | + | @Callable(p) | |
42 | + | func createOrModifyClass (e,q) = [StringEntry(d(e, p.caller), q)] | |
83 | 43 | ||
84 | - | @Callable(n) | |
44 | + | ||
45 | + | ||
46 | + | @Callable(p) | |
47 | + | func deleteClass (e) = [DeleteEntry(d(e, p.caller))] | |
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | @Callable(p) | |
52 | + | func ajouterValidateur (r) = [StringEntry(c, r)] | |
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | @Callable(p) | |
57 | + | func faireAppel (s,q) = { | |
58 | + | let t = { | |
59 | + | let u = q | |
60 | + | let v = size(u) | |
61 | + | let w = nil | |
62 | + | func x (y,z) = if ((z >= v)) | |
63 | + | then y | |
64 | + | else g(y, u[z]) | |
65 | + | ||
66 | + | func A (y,z) = if ((z >= v)) | |
67 | + | then y | |
68 | + | else throw("List size exceeds 30") | |
69 | + | ||
70 | + | A(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(w, 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) | |
71 | + | } | |
72 | + | [StringEntry(b, d(s, p.caller)), BooleanEntry(a, true)] | |
73 | + | } | |
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | @Callable(p) | |
78 | + | func faireAppelEleve () = { | |
79 | + | let B = m("3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_présent") | |
80 | + | nil | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | @Callable(p) | |
85 | 86 | func arreterCours () = [StringEntry(b, ""), BooleanEntry(a, false)] | |
86 | 87 | ||
87 | 88 |
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 | - | unit | |
27 | - | } | |
28 | - | ||
29 | - | ||
30 | - | @Callable(n) | |
31 | - | func createOrModifyClass (e,o) = [StringEntry(d(e, n.caller), o)] | |
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | @Callable(n) | |
36 | - | func deleteClass (e) = [DeleteEntry(d(e, n.caller))] | |
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | @Callable(n) | |
41 | - | func ajouterValidateur (p) = [StringEntry(c, p)] | |
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | @Callable(n) | |
46 | - | func faireAppel (q,o) = { | |
47 | - | let r = { | |
48 | - | let s = o | |
49 | - | let t = size(s) | |
50 | - | let u = nil | |
51 | - | func v (w,x) = if ((x >= t)) | |
52 | - | then w | |
53 | - | else g(w, s[x]) | |
54 | - | ||
55 | - | func y (w,x) = if ((x >= t)) | |
56 | - | then w | |
57 | - | else throw("List size exceeds 30") | |
58 | - | ||
59 | - | 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 | - | } | |
61 | - | [StringEntry(b, d(q, n.caller)), BooleanEntry(a, true)] | |
62 | - | } | |
63 | - | ||
64 | - | ||
65 | - | ||
66 | - | @Callable(n) | |
67 | - | func faireAppelEleve () = { | |
68 | - | let l = invoke(addressFromStringValue("3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q"), "validationPresence", ["présent", getStringValue(c)], nil) | |
26 | + | let l = invoke(j, "validationPresence", [k, getStringValue(c)], nil) | |
69 | 27 | if ((l == l)) | |
70 | 28 | then { | |
71 | - | let | |
72 | - | if ($isInstanceOf( | |
29 | + | let n = l | |
30 | + | if ($isInstanceOf(n, "Int")) | |
73 | 31 | then { | |
74 | - | let | |
75 | - | ||
32 | + | let o = n | |
33 | + | o | |
76 | 34 | } | |
77 | 35 | else throw("Incorrect invoke result") | |
78 | 36 | } | |
79 | 37 | else throw("Strict value is not equal to itself.") | |
80 | 38 | } | |
81 | 39 | ||
82 | 40 | ||
41 | + | @Callable(p) | |
42 | + | func createOrModifyClass (e,q) = [StringEntry(d(e, p.caller), q)] | |
83 | 43 | ||
84 | - | @Callable(n) | |
44 | + | ||
45 | + | ||
46 | + | @Callable(p) | |
47 | + | func deleteClass (e) = [DeleteEntry(d(e, p.caller))] | |
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | @Callable(p) | |
52 | + | func ajouterValidateur (r) = [StringEntry(c, r)] | |
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | @Callable(p) | |
57 | + | func faireAppel (s,q) = { | |
58 | + | let t = { | |
59 | + | let u = q | |
60 | + | let v = size(u) | |
61 | + | let w = nil | |
62 | + | func x (y,z) = if ((z >= v)) | |
63 | + | then y | |
64 | + | else g(y, u[z]) | |
65 | + | ||
66 | + | func A (y,z) = if ((z >= v)) | |
67 | + | then y | |
68 | + | else throw("List size exceeds 30") | |
69 | + | ||
70 | + | A(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(w, 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) | |
71 | + | } | |
72 | + | [StringEntry(b, d(s, p.caller)), BooleanEntry(a, true)] | |
73 | + | } | |
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | @Callable(p) | |
78 | + | func faireAppelEleve () = { | |
79 | + | let B = m("3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_présent") | |
80 | + | nil | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | @Callable(p) | |
85 | 86 | func arreterCours () = [StringEntry(b, ""), BooleanEntry(a, false)] | |
86 | 87 | ||
87 | 88 |
github/deemru/w8io/169f3d6 25.40 ms ◑