tx · 2zNZgdSjaZMHnZC3WQgS3yxzdZh2wz5Gn3tv6f8ixenE

3MtVeh1gKhtmiRaSRZ3qbar9CFSvrxTmcZ3:  -0.01000000 Waves

2022.03.30 11:06 [1986394] smart account 3MtVeh1gKhtmiRaSRZ3qbar9CFSvrxTmcZ3 > SELF 0.00000000 Waves

{ "type": 13, "id": "2zNZgdSjaZMHnZC3WQgS3yxzdZh2wz5Gn3tv6f8ixenE", "fee": 1000000, "feeAssetId": null, "timestamp": 1648627623378, "version": 2, "chainId": 84, "sender": "3MtVeh1gKhtmiRaSRZ3qbar9CFSvrxTmcZ3", "senderPublicKey": "EKVKDJzyg3QpPyNEdvXgroWAhdwFathNqaQYbNURoEf7", "proofs": [ "4BgwaZfxB1hwzPUTs3dyG7WWFQvnwhADQjNW4aXJPaPYCFg73u49sCtyjZEaFu7h2DAj49iyzfNRwEWgnTb2fVLD" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICBgAAAAHAAAAAAtwcmVzZW5jZUtleQIAAAAJcHJlc2VuY2VzAAAAAAphYnNlbmNlS2V5AgAAAAhhYnNlbmNlcwAAAAAKdG90YWxDb3VycwIAAAAKdG90YWxDb3VycwAAAAAKbGVhc2VJZEtleQIAAAAHbGVhc2VJZAEAAAANZ2V0TmJQcmVzZW5jZQAAAAAEAAAACm5iUHJlc2VuY2UJAAQfAAAAAQUAAAALcHJlc2VuY2VLZXkEAAAAByRtYXRjaDAFAAAACm5iUHJlc2VuY2UDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAUAAAABdAAAAAAAAAAAAAEAAAAKZ2V0TmJDb3VycwAAAAAEAAAAB25iQ291cnMJAAQfAAAAAQUAAAAKdG90YWxDb3VycwQAAAAHJG1hdGNoMAUAAAAHbmJDb3VycwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF0BQAAAAckbWF0Y2gwBQAAAAF0AAAAAAAAAAAAAQAAAAxnZ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AAAAAAAAAAAEFAAAAA25pbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAKYWJzZW5jZUtleQkAAGQAAAACBQAAAAluYkFic2VuY2UAAAAAAAAAAAEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAACnRvdGFsQ291cnMJAABkAAAAAgUAAAAHbmJDb3VycwAAAAAAAAAAAQkABEwAAAACCQEAAAALTGVhc2VDYW5jZWwAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1NykAAAABBQAAAApsZWFzZUlkS2V5BQAAAANuaWwAAAAAFgEMgw==", "height": 1986394, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "presences"
5+
6+let b = "absences"
7+
8+let c = "totalCours"
9+
10+let d = "leaseId"
11+
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
21+ }
22+
23+
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
33+ }
34+
35+
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
45+ }
46+
47+
48+@Callable(m)
49+func validationPresence (n,o,p) = {
50+ let f = e()
51+ let j = i()
52+ let l = k()
53+ if ((size(p) > 0))
54+ then {
55+ let q = addressFromStringValue(take(p[0], 35))
56+ let r = takeRight(p[0], (size(p[0]) - 36))
57+ let s = removeByIndex(p, 0)
58+ let t = invoke(q, "validationPresence", [r, o, s], nil)
59+ if ((t == t))
60+ then if ((n == "présent"))
61+ then {
62+ let u = (wavesBalance(this).available - 10000000)
63+ if ((u > 0))
64+ then {
65+ let v = Lease(addressFromStringValue(o), u)
66+ let w = calculateLeaseId(v)
67+ $Tuple2([IntegerEntry(a, (f + 1)), IntegerEntry(c, (j + 1)), BinaryEntry(d, w), v], 0)
68+ }
69+ else $Tuple2([IntegerEntry(a, (f + 1)), IntegerEntry(c, (j + 1))], 0)
70+ }
71+ else $Tuple2([IntegerEntry(b, (l + 1)), IntegerEntry(c, (j + 1)), LeaseCancel(getBinaryValue(d))], 0)
72+ else throw("Strict value is not equal to itself.")
73+ }
74+ else if ((n == "présent"))
75+ then {
76+ let u = (wavesBalance(this).available - 10000000)
77+ if ((u > 0))
78+ then {
79+ let v = Lease(addressFromStringValue(o), u)
80+ let w = calculateLeaseId(v)
81+[IntegerEntry(a, (f + 1)), IntegerEntry(c, (j + 1)), BinaryEntry(d, w), v]
82+ }
83+ else [IntegerEntry(a, (f + 1)), IntegerEntry(c, (j + 1))]
84+ }
85+ else [IntegerEntry(b, (l + 1)), IntegerEntry(c, (j + 1)), LeaseCancel(getBinaryValue(d))]
86+ }
87+
88+

github/deemru/w8io/fabc49c 
25.29 ms