tx · 7iA2pLjzCmVT3RJZzZ2rWD4djaMxWFHadmUc8j8k5Uy5

3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf:  -0.01000000 Waves

2022.02.04 17:08 [1908973] smart account 3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf > SELF 0.00000000 Waves

{ "type": 13, "id": "7iA2pLjzCmVT3RJZzZ2rWD4djaMxWFHadmUc8j8k5Uy5", "fee": 1000000, "feeAssetId": null, "timestamp": 1643983694997, "version": 2, "chainId": 84, "sender": "3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf", "senderPublicKey": "5ate1da9rhtGuHpuEAd28pTGh1GpM8SUthHy4JD2hPeL", "proofs": [ "MCbPaEm68M4gR7XYwh7tKkgqsaWoMuDZykSRp3GopdxF9MM5g8aXRnQdMFzkFQoyLKYkZUg6qQpgvcdE8EoeEfG" ], "script": "base64:AAIFAAAAAAAAABwIAhIECgIICBIDCgEIEgMKAQgSBAoCCBgSABIAAAAABgAAAAAKZXN0RW5Db3VycwIAAAAKZXN0RW5Db3VycwAAAAANY2xhc3NlRW5Db3VycwIAAAANY2xhc3NlRW5Db3VycwAAAAAPbm9kZVZhbGlkYXRyaWNlAgAAAA12YWxpZGF0b3JOb2RlAQAAAAxnZXRDbGFzc05hbWUAAAACAAAAA25vbQAAAApwcm9mZXNzZXVyCQABLAAAAAIJAAEsAAAAAgUAAAADbm9tAgAAAAFfCQAEJQAAAAEFAAAACnByb2Zlc3NldXIBAAAADHZhbGlkZXJFbGV2ZQAAAAIAAAADYWNjAAAAAWUEAAAADnN0dWRlbnRBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQABLwAAAAIFAAAAAWUAAAAAAAAAACMEAAAADXN0dWRlbnRTdGF0dXMJAQAAAAl0YWtlUmlnaHQAAAACBQAAAAFlCQAAZQAAAAIJAAExAAAAAQUAAAABZQAAAAAAAAAAIgQAAAADcmVzCQAD/AAAAAQFAAAADnN0dWRlbnRBZGRyZXNzA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YXJyZXRlckNvdXJzAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA1jbGFzc2VFbkNvdXJzAgAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACmVzdEVuQ291cnMHBQAAAANuaWwAAAAAI0EYzA==", "height": 1908973, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FQ7NDtkkyLj9svE5ZxmsJFmUQdyYsAnDX6VewqTtTjCk Next: 69LmamXizN3SjWjzB5BkfR8ib9gwxcGXYgzNTjBMyzzm Diff:
OldNewDifferences
2323 func testValid (e) = {
2424 let studentAddress = addressFromStringValue(take(e, 35))
2525 let studentStatus = takeRight(e, (size(e) - 36))
26- unit
26+ let res = invoke(studentAddress, "validationPresence", [studentStatus, getStringValue(nodeValidatrice)], nil)
27+ if ((res == res))
28+ then match res {
29+ case t: Int =>
30+ t
31+ case _ =>
32+ throw("Incorrect invoke result")
33+ }
34+ else throw("Strict value is not equal to itself.")
2735 }
2836
2937
6573
6674 @Callable(i)
6775 func faireAppelEleve () = {
68- let res = invoke(addressFromStringValue("3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q"), "validationPresence", ["présent", getStringValue(nodeValidatrice)], nil)
69- if ((res == res))
70- then match res {
71- case t: Int =>
72-[IntegerEntry("balance_available", t)]
73- case _ =>
74- throw("Incorrect invoke result")
75- }
76- else throw("Strict value is not equal to itself.")
76+ let a = testValid("3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_présent")
77+ nil
7778 }
7879
7980
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let estEnCours = "estEnCours"
55
66 let classeEnCours = "classeEnCours"
77
88 let nodeValidatrice = "validatorNode"
99
1010 func getClassName (nom,professeur) = ((nom + "_") + toString(professeur))
1111
1212
1313 func validerEleve (acc,e) = {
1414 let studentAddress = addressFromStringValue(take(e, 35))
1515 let studentStatus = takeRight(e, (size(e) - 34))
1616 let res = invoke(studentAddress, "validationPresence", [studentStatus, getStringValue(nodeValidatrice)], nil)
1717 if ((res == res))
1818 then true
1919 else throw("Strict value is not equal to itself.")
2020 }
2121
2222
2323 func testValid (e) = {
2424 let studentAddress = addressFromStringValue(take(e, 35))
2525 let studentStatus = takeRight(e, (size(e) - 36))
26- unit
26+ let res = invoke(studentAddress, "validationPresence", [studentStatus, getStringValue(nodeValidatrice)], nil)
27+ if ((res == res))
28+ then match res {
29+ case t: Int =>
30+ t
31+ case _ =>
32+ throw("Incorrect invoke result")
33+ }
34+ else throw("Strict value is not equal to itself.")
2735 }
2836
2937
3038 @Callable(i)
3139 func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
3240
3341
3442
3543 @Callable(i)
3644 func deleteClass (nom) = [DeleteEntry(getClassName(nom, i.caller))]
3745
3846
3947
4048 @Callable(i)
4149 func ajouterValidateur (address) = [StringEntry(nodeValidatrice, address)]
4250
4351
4452
4553 @Callable(i)
4654 func faireAppel (classe,eleves) = {
4755 let leasedEtudiants = {
4856 let $l = eleves
4957 let $s = size($l)
5058 let $acc0 = nil
5159 func $f0_1 ($a,$i) = if (($i >= $s))
5260 then $a
5361 else validerEleve($a, $l[$i])
5462
5563 func $f0_2 ($a,$i) = if (($i >= $s))
5664 then $a
5765 else throw("List size exceeds 30")
5866
5967 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
6068 }
6169 [StringEntry(classeEnCours, getClassName(classe, i.caller)), BooleanEntry(estEnCours, true)]
6270 }
6371
6472
6573
6674 @Callable(i)
6775 func faireAppelEleve () = {
68- let res = invoke(addressFromStringValue("3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q"), "validationPresence", ["présent", getStringValue(nodeValidatrice)], nil)
69- if ((res == res))
70- then match res {
71- case t: Int =>
72-[IntegerEntry("balance_available", t)]
73- case _ =>
74- throw("Incorrect invoke result")
75- }
76- else throw("Strict value is not equal to itself.")
76+ let a = testValid("3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_présent")
77+ nil
7778 }
7879
7980
8081
8182 @Callable(i)
8283 func arreterCours () = [StringEntry(classeEnCours, ""), BooleanEntry(estEnCours, false)]
8384
8485

github/deemru/w8io/169f3d6 
35.65 ms