tx · 9o9PeFnQKgJ1JgmECvAa4SUjoF95b9GsrYvC5L3MBfhz 3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc: -0.01000000 Waves 2022.02.04 16:52 [1908955] smart account 3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc > SELF 0.00000000 Waves
{ "type": 13, "id": "9o9PeFnQKgJ1JgmECvAa4SUjoF95b9GsrYvC5L3MBfhz", "fee": 1000000, "feeAssetId": null, "timestamp": 1643982797439, "version": 2, "chainId": 84, "sender": "3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc", "senderPublicKey": "EAog7JJhHByJAZz8XubAMQbtFA3hXBrwbb3goJoVDs4Q", "proofs": [ "4h5ncVGBhxMHfwjdZ4oyN19r9yjM99QEZWhVt5nRfmqFjuYMwPR4AL514f7v1iiwjgvzRUKmwcvNdW4i7beMbXaa" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAcAAAAAC3ByZXNlbmNlS2V5AgAAAAlwcmVzZW5jZXMAAAAACmFic2VuY2VLZXkCAAAACGFic2VuY2VzAAAAAAp0b3RhbENvdXJzAgAAAAp0b3RhbENvdXJzAAAAAApsZWFzZUlkS2V5AgAAAAdsZWFzZUlkAQAAAA1nZXROYlByZXNlbmNlAAAAAAQAAAAKbmJQcmVzZW5jZQkABB8AAAABBQAAAAtwcmVzZW5jZUtleQQAAAAHJG1hdGNoMAUAAAAKbmJQcmVzZW5jZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF0BQAAAAckbWF0Y2gwBQAAAAF0AAAAAAAAAAAAAQAAAApnZXROYkNvdXJzAAAAAAQAAAAHbmJDb3VycwkABB8AAAABBQAAAAp0b3RhbENvdXJzBAAAAAckbWF0Y2gwBQAAAAduYkNvdXJzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAFAAAAAXQAAAAAAAAAAAABAAAADGdldE5iQWJzZW5j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JzZW5jZUtleQkAAGQAAAACBQAAAApuYlByZXNlbmNlAAAAAAAAAAABCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAp0b3RhbENvdXJzCQAAZAAAAAIFAAAAB25iQ291cnMAAAAAAAAAAAEJAARMAAAAAgkBAAAAC0xlYXNlQ2FuY2VsAAAAAQkBAAAAEUBleHRyTmF0aXZlKDEwNTcpAAAAAQUAAAAKbGVhc2VJZEtleQUAAAADbmlsAAAAAAAAAAAAAAAAAMS5gJs=", "height": 1908955, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4AnjzMjYD8mwBgUQ6TJxuFgBAZceJHhiDkio13vEXmSf Full:
Old | New | Differences | |
---|---|---|---|
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) = { | |
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 - 10000000) | |
56 | + | let q = Lease(addressFromStringValue(o), p) | |
57 | + | let r = calculateLeaseId(q) | |
58 | + | $Tuple2([IntegerEntry(a, (f + 1)), IntegerEntry(c, (j + 1)), BinaryEntry(d, r), q], 0) | |
59 | + | } | |
60 | + | else $Tuple2([IntegerEntry(b, (f + 1)), IntegerEntry(c, (j + 1)), LeaseCancel(getBinaryValue(d))], 0) | |
61 | + | } | |
62 | + | ||
63 | + |
github/deemru/w8io/169f3d6 16.86 ms ◑