tx · Gq627RZfpb5n51nyHLXAWzWANdnqMsDT1YefKuGLghHm

3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy:  -0.01000000 Waves

2022.01.28 19:09 [1899014] smart account 3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy > SELF 0.00000000 Waves

{ "type": 13, "id": "Gq627RZfpb5n51nyHLXAWzWANdnqMsDT1YefKuGLghHm", "fee": 1000000, "feeAssetId": null, "timestamp": 1643386168279, "version": 2, "chainId": 84, "sender": "3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy", "senderPublicKey": "4S8F79Me9f9R6fzGZZjKBNfF79og2MpdmnNgfxQpwNEF", "proofs": [ "7Yit9yArGXoukFTwQPhBvjFa3xDzqBb8Zmfmg9ERiKfQFmWow2vvY4UMPzTSWuvxr7B6NsWYLXx988jgVSoqaz1" ], "script": "base64:AAIFAAAAAAAAALIIAhIECgIICBIDCgEIEgQKAggYEgAaDwoBYRIKZXN0RW5Db3VycxoSCgFiEg1jbGFzc2VFbkNvdXJzGhEKAWMSDGdldENsYXNzTmFtZRoICgFkEgNub20aDwoBZRIKcHJvZmVzc2V1choQCgFmEgtnZXRFdHVkaWFudBoGCgFnEgFpGgsKAWgSBmVsZXZlcxoLCgFpEgZjbGFzc2UaBwoBahICdHgaCwoBaxIGdmVyaWZ5AAAABAAAAAABYQIAAAAKZXN0RW5Db3VycwAAAAABYgIAAAANY2xhc3NlRW5Db3VycwEAAAABYwAAAAIAAAABZAAAAAFlCQABLAAAAAIJAAEsAAAAAgUAAAABZAIAAAABXwkABCUAAAABBQAAAAFlAQAAAAFmAAAAAAAAAAAAAAAAAAAAAAQAAAABZwEAAAATY3JlYXRlT3JNb2RpZnlDbGFzcwAAAAIAAAABZAAAAAFoCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAAFjAAAAAgUAAAABZAgFAAAAAWcAAAAGY2FsbGVyBQAAAAFoBQAAAANuaWwAAAABZwEAAAALZGVsZXRlQ2xhc3MAAAABAAAAAWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAAWMAAAACBQAAAAFkCAUAAAABZwAAAAZjYWxsZXIFAAAAA25pbAAAAAFnAQAAAApmYWlyZUFwcGVsAAAAAgAAAAFpAAAAAWgJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAABYgkBAAAAAWMAAAACBQAAAAFpCAUAAAABZwAAAAZjYWxsZXIJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAAAWEGBQAAAANuaWwAAAABZwEAAAAMYXJyZXRlckNvdXJzAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAFiAgAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAAAWEHBQAAAANuaWwAAAABAAAAAWoBAAAAAWsAAAAABgA2s94=", "height": 1899014, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6hMLV4pFFPAddDjSg81YZjhaNCwoAZGsS1ijBt94Dm4a Next: 5H9uRzgWs3sD9c4KvGy3b8E5AMTYXzRGvaZNEarKDPmj 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
412
513
614 @Callable(i)
7-func createOrModifyClass (nom,eleves) = [StringEntry(((nom + "_") + toString(i.caller)), eleves)]
15+func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
816
917
1018
1119 @Callable(i)
12-func deleteClass (nom) = [DeleteEntry(((nom + "_") + toString(i.caller)))]
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)]
1331
1432
1533 @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
412
513
614 @Callable(i)
7-func createOrModifyClass (nom,eleves) = [StringEntry(((nom + "_") + toString(i.caller)), eleves)]
15+func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
816
917
1018
1119 @Callable(i)
12-func deleteClass (nom) = [DeleteEntry(((nom + "_") + toString(i.caller)))]
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)]
1331
1432
1533 @Verifier(tx)
1634 func verify () = true
1735

github/deemru/w8io/026f985 
48.13 ms