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:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# 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 |
---|
4 | 12 | | |
---|
5 | 13 | | |
---|
6 | 14 | | @Callable(i) |
---|
7 | | - | func createOrModifyClass (nom,eleves) = [StringEntry(((nom + "_") + toString(i.caller)), eleves)] |
---|
| 15 | + | func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)] |
---|
8 | 16 | | |
---|
9 | 17 | | |
---|
10 | 18 | | |
---|
11 | 19 | | @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)] |
---|
13 | 31 | | |
---|
14 | 32 | | |
---|
15 | 33 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# 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 |
---|
4 | 12 | | |
---|
5 | 13 | | |
---|
6 | 14 | | @Callable(i) |
---|
7 | | - | func createOrModifyClass (nom,eleves) = [StringEntry(((nom + "_") + toString(i.caller)), eleves)] |
---|
| 15 | + | func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)] |
---|
8 | 16 | | |
---|
9 | 17 | | |
---|
10 | 18 | | |
---|
11 | 19 | | @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)] |
---|
13 | 31 | | |
---|
14 | 32 | | |
---|
15 | 33 | | @Verifier(tx) |
---|
16 | 34 | | func verify () = true |
---|
17 | 35 | | |
---|