tx · 5H9uRzgWs3sD9c4KvGy3b8E5AMTYXzRGvaZNEarKDPmj

3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy:  -0.01000000 Waves

2022.01.29 21:58 [1900618] smart account 3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy > SELF 0.00000000 Waves

{ "type": 13, "id": "5H9uRzgWs3sD9c4KvGy3b8E5AMTYXzRGvaZNEarKDPmj", "fee": 1000000, "feeAssetId": null, "timestamp": 1643482720470, "version": 2, "chainId": 84, "sender": "3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy", "senderPublicKey": "4S8F79Me9f9R6fzGZZjKBNfF79og2MpdmnNgfxQpwNEF", "proofs": [ "2k9ygV62PVkqVVAg9MfNpVTcShgKGqtgAjDdV6HqKmWZNwnkthXK8w9bu5HDACxhxauFAZHFGE85f32LHZxD7fH8" ], "script": "base64:AAIFAAAAAAAAAEIIAhIECgIICBIDCgEIGgYKAWESAWkaCAoBYhIDbm9tGgsKAWMSBmVsZXZlcxoHCgFkEgJ0eBoLCgFlEgZ2ZXJpZnkAAAAAAAAAAgAAAAFhAQAAABNjcmVhdGVPck1vZGlmeUNsYXNzAAAAAgAAAAFiAAAAAWMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAAAWICAAAAAV8JAAQlAAAAAQgFAAAAAWEAAAAGY2FsbGVyBQAAAAFjBQAAAANuaWwAAAABYQEAAAALZGVsZXRlQ2xhc3MAAAABAAAAAWIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACCQABLAAAAAIFAAAAAWICAAAAAV8JAAQlAAAAAQgFAAAAAWEAAAAGY2FsbGVyBQAAAANuaWwAAAABAAAAAWQBAAAAAWUAAAAABqUJ5Zs=", "height": 1900618, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gq627RZfpb5n51nyHLXAWzWANdnqMsDT1YefKuGLghHm Next: 4WV3iZdozTp7icRZKq9LWo4RfQPKumpfT9SEcYkHakcH Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let estEnCours = "estEnCours"
5-
6-let classeEnCours = "classeEnCours"
7-
8-func getClassName (nom,professeur) = ((nom + "_") + toString(professeur))
9-
10-
11-func getEtudiant () = 0
124
135
146 @Callable(i)
15-func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
7+func createOrModifyClass (nom,eleves) = [StringEntry(((nom + "_") + toString(i.caller)), eleves)]
168
179
1810
1911 @Callable(i)
20-func deleteClass (nom) = [DeleteEntry(getClassName(nom, i.caller))]
21-
22-
23-
24-@Callable(i)
25-func faireAppel (classe,eleves) = [StringEntry(classeEnCours, getClassName(classe, i.caller)), BooleanEntry(estEnCours, true)]
26-
27-
28-
29-@Callable(i)
30-func arreterCours () = [StringEntry(classeEnCours, ""), BooleanEntry(estEnCours, false)]
12+func deleteClass (nom) = [DeleteEntry(((nom + "_") + toString(i.caller)))]
3113
3214
3315 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let estEnCours = "estEnCours"
5-
6-let classeEnCours = "classeEnCours"
7-
8-func getClassName (nom,professeur) = ((nom + "_") + toString(professeur))
9-
10-
11-func getEtudiant () = 0
124
135
146 @Callable(i)
15-func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
7+func createOrModifyClass (nom,eleves) = [StringEntry(((nom + "_") + toString(i.caller)), eleves)]
168
179
1810
1911 @Callable(i)
20-func deleteClass (nom) = [DeleteEntry(getClassName(nom, i.caller))]
21-
22-
23-
24-@Callable(i)
25-func faireAppel (classe,eleves) = [StringEntry(classeEnCours, getClassName(classe, i.caller)), BooleanEntry(estEnCours, true)]
26-
27-
28-
29-@Callable(i)
30-func arreterCours () = [StringEntry(classeEnCours, ""), BooleanEntry(estEnCours, false)]
12+func deleteClass (nom) = [DeleteEntry(((nom + "_") + toString(i.caller)))]
3113
3214
3315 @Verifier(tx)
3416 func verify () = true
3517

github/deemru/w8io/169f3d6 
53.22 ms