tx · Ffga2KfYKHkzycqePDoaqvePHgKAyM6ksXxpNFhtLw2D

3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q:  -0.01000000 Waves

2022.02.04 00:26 [1907968] smart account 3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q > SELF 0.00000000 Waves

{ "type": 13, "id": "Ffga2KfYKHkzycqePDoaqvePHgKAyM6ksXxpNFhtLw2D", "fee": 1000000, "feeAssetId": null, "timestamp": 1643923607536, "version": 2, "chainId": 84, "sender": "3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q", "senderPublicKey": "5tuiuQhSLUFHipVYrx5LHsWSRaDfEFeJCoXdGBKeuwr1", "proofs": [ "5pYY6FhYV6w1Qk1uMHfqCb9tLgEAmNFTTWkVnJhXNwACz9uBb2SpaB61rNyVepNfDSBkmnBb9DkPRMvjkyAEgk5D" ], "script": "base64:AAIFAAAAAAAAASYIAhIECgIICBoQCgFhEgtwcmVzZW5jZUtleRoPCgFiEgphYnNlbmNlS2V5Gg8KAWMSCnRvdGFsQ291cnMaDwoBZBIKbGVhc2VJZEtleRoSCgFlEg1nZXROYlByZXNlbmNlGg8KAWYSCm5iUHJlc2VuY2UaDAoBZxIHJG1hdGNoMBoGCgFoEgF0Gg8KAWkSCmdldE5iQ291cnMaDAoBahIHbmJDb3VycxoRCgFrEgxnZXROYkFic2VuY2UaDgoBbBIJbmJBYnNlbmNlGgYKAW0SAWkaDQoBbhIIcHJlc2VuY2UaEwoBbxIOYWRkcmVzc1RvTGVhc2UaFAoBcBIPbGVhc2FibGVCYWxhbmNlGgoKAXESBWxlYXNlGgwKAXISB2xlYXNlSWQAAAAHAAAAAAFhAgAAAAlwcmVzZW5jZXMAAAAAAWICAAAACGFic2VuY2VzAAAAAAFjAgAAAAp0b3RhbENvdXJzAAAAAAFkAgAAAAdsZWFzZUlkAQAAAAFlAAAAAAQAAAABZgkABB8AAAABBQAAAAFhBAAAAAFnBQAAAAFmAwkAAAEAAAACBQAAAAFn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AAAtMZWFzZUNhbmNlbAAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDU3KQAAAAEFAAAAAWQFAAAAA25pbAAAAAAxPiV1", "height": 1907968, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3eyMNrcu1MNv1znrrj1TMdS5DjW5Er6ursUeEtJzAmDK Next: DARecZWXwi87dcF5qMFiqDTWp1XXTG34A6rzGCRcfMMs Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "estEnCours"
4+let a = "presences"
55
6-let b = "classeEnCours"
6+let b = "absences"
77
8-let c = "validatorNode"
8+let c = "totalCours"
99
10-func d (e,f) = ((e + "_") + toString(f))
10+let d = "leaseId"
1111
12-
13-func g (h,i) = {
14- let j = addressFromStringValue(take(i, 35))
15- let k = takeRight(i, (size(i) - 34))
16- let l = invoke(j, "validationPresence", [k, getStringValue(c)], nil)
17- if ((l == l))
18- then true
19- else throw("Strict value is not equal to itself.")
12+func e () = {
13+ let f = getInteger(a)
14+ let g = f
15+ if ($isInstanceOf(g, "Int"))
16+ then {
17+ let h = g
18+ h
19+ }
20+ else 0
2021 }
2122
2223
23-func m (i) = {
24- let j = addressFromStringValue(take(i, 35))
25- let k = takeRight(i, (size(i) - 36))
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.")
24+func i () = {
25+ let j = getInteger(c)
26+ let g = j
27+ if ($isInstanceOf(g, "Int"))
28+ then {
29+ let h = g
30+ h
31+ }
32+ else 0
3033 }
3134
3235
33-@Callable(n)
34-func createOrModifyClass (e,o) = [StringEntry(d(e, n.caller), o)]
35-
36-
37-
38-@Callable(n)
39-func deleteClass (e) = [DeleteEntry(d(e, n.caller))]
40-
41-
42-
43-@Callable(n)
44-func ajouterValidateur (p) = [StringEntry(c, p)]
45-
46-
47-
48-@Callable(n)
49-func faireAppel (q,o) = {
50- let r = {
51- let s = o
52- let t = size(s)
53- let u = nil
54- func v (w,x) = if ((x >= t))
55- then w
56- else g(w, s[x])
57-
58- func y (w,x) = if ((x >= t))
59- then w
60- else throw("List size exceeds 30")
61-
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)
63- }
64-[StringEntry(b, d(q, n.caller)), BooleanEntry(a, true)]
36+func k () = {
37+ let l = getInteger(b)
38+ let g = l
39+ if ($isInstanceOf(g, "Int"))
40+ then {
41+ let h = g
42+ h
43+ }
44+ else 0
6545 }
6646
6747
68-
69-@Callable(n)
70-func faireAppelEleve () = {
71- let z = m("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent")
72-[IntegerEntry("balance_available", wavesBalance(this).available)]
48+@Callable(m)
49+func validationPresence (n,o) = {
50+ let f = e()
51+ let j = i()
52+ let l = k()
53+ if ((n == "présent"))
54+ then {
55+ let p = (wavesBalance(this).available - 100000)
56+ let q = Lease(addressFromStringValue(o), p)
57+ let r = calculateLeaseId(q)
58+[IntegerEntry(a, (f + 1)), IntegerEntry(c, (j + 1)), BinaryEntry(d, r), IntegerEntry("balance", p)]
59+ }
60+ else [IntegerEntry(b, (f + 1)), IntegerEntry(c, (j + 1)), LeaseCancel(getBinaryValue(d))]
7361 }
74-
75-
76-
77-@Callable(n)
78-func arreterCours () = [StringEntry(b, ""), BooleanEntry(a, false)]
7962
8063

github/deemru/w8io/169f3d6 
34.97 ms