tx · 5fTyf5jEGugEawj1YEF3jMMpfzXecam3WLWwAia2XP6v

3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf:  -0.01000000 Waves

2022.02.04 18:23 [1909053] smart account 3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf > SELF 0.00000000 Waves

{ "type": 13, "id": "5fTyf5jEGugEawj1YEF3jMMpfzXecam3WLWwAia2XP6v", "fee": 1000000, "feeAssetId": null, "timestamp": 1643988235984, "version": 2, "chainId": 84, "sender": "3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf", "senderPublicKey": "5ate1da9rhtGuHpuEAd28pTGh1GpM8SUthHy4JD2hPeL", "proofs": [ "46S7hcA5SaAVEGVS3EoXShQRAD2DhHiLYsf8EsFv1tZUek13fppP2rWeQF8B9BpWiiUX7YxDACkHvitjgcEMSpdv" ], "script": "base64:AAIFAAAAAAAAABwIAhIECgIICBIDCgEIEgMKAQgSBAoCCBgSABIAAAAABgAAAAAKZXN0RW5Db3VycwIAAAAKZXN0RW5Db3VycwAAAAANY2xhc3NlRW5Db3VycwIAAAANY2xhc3NlRW5Db3VycwAAAAAPbm9kZVZhbGlkYXRyaWNlAgAAAA12YWxpZGF0b3JOb2RlAQAAAAxnZXRDbGFzc05hbWUAAAACAAAAA25vbQAAAApwcm9mZXNzZXVyCQABLAAAAAIJAAEsAAAAAgUAAAADbm9tAgAAAAFfCQAEJQAAAAEFAAAACnByb2Zlc3NldXIBAAAADHZhbGlkZXJFbGV2ZQAAAAIAAAADYWNjAAAAAWUEAAAADnN0dWRlbnRBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQABLwAAAAIFAAAAAWUAAAAAAAAAACMEAAAADXN0dWRlbnRTdGF0dXMJAQAAAAl0YWtlUmlnaHQAAAACBQAAAAFlCQAAZQAAAAIJAAExAAAAAQUAAAABZQAAAAAAAAAAIgQAAAADcmVzCQAD/AAAAAQFAAAADnN0dWRlbnRBZGRyZXNzAgAAABJ2YWxpZG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NlZ0RuTG1yQ01kTUJHajljX2Fic2VudAUAAAADbmlsBAAAAAFlCQABkQAAAAIFAAAACGFkcmVzc2VzAAAAAAAAAAAABAAAAARsaXN0CQAEUQAAAAIFAAAACGFkcmVzc2VzAAAAAAAAAAAABAAAAA5zdHVkZW50QWRkcmVzcwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkAAS8AAAACBQAAAAFlAAAAAAAAAAAjBAAAAA1zdHVkZW50U3RhdHVzCQEAAAAJdGFrZVJpZ2h0AAAAAgUAAAABZQkAAGUAAAACCQABMQAAAAEFAAAAAWUAAAAAAAAAACQEAAAAA3JlcwkAA/wAAAAEBQAAAA5zdHVkZW50QWRkcmVzcwIAAAASdmFsaWRhdGlvblByZXNlbmNlCQAETAAAAAIFAAAADXN0dWRlbnRTdGF0dXMJAARMAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTgpAAAAAQUAAAAPbm9kZVZhbGlkYXRyaWNlCQAETAAAAAIFAAAABGxpc3QFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAANyZXMFAAAAA3JlcwQAAAAHJG1hdGNoMAUAAAADcmVzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAFAAAAA25pbAkAAAIAAAABAgAAABdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAMYXJyZXRlckNvdXJzAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA1jbGFzc2VFbkNvdXJzAgAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACmVzdEVuQ291cnMHBQAAAANuaWwAAAAA0bEAqA==", "height": 1909053, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4AWG8csNWjarix7SEaPgPnNzBCZ1bVxvM616JsnFUjjK Next: none Diff:
OldNewDifferences
7373
7474 @Callable(i)
7575 func faireAppelEleve () = {
76- let adresses = ["3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_présent", "3NBK2yEvvn5RyuLiDoSegDnLmrCMdMBGj9c_présent"]
76+ let adresses = ["3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_absent", "3NBK2yEvvn5RyuLiDoSegDnLmrCMdMBGj9c_absent"]
7777 let e = adresses[0]
7878 let list = removeByIndex(adresses, 0)
7979 let studentAddress = addressFromStringValue(take(e, 35))
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))
2626 let res = invoke(studentAddress, "validationPresence", [studentStatus, getStringValue(nodeValidatrice)], nil)
2727 if ((res == res))
2828 then match res {
2929 case t: Int =>
3030 t
3131 case _ =>
3232 throw("Incorrect invoke result")
3333 }
3434 else throw("Strict value is not equal to itself.")
3535 }
3636
3737
3838 @Callable(i)
3939 func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
4040
4141
4242
4343 @Callable(i)
4444 func deleteClass (nom) = [DeleteEntry(getClassName(nom, i.caller))]
4545
4646
4747
4848 @Callable(i)
4949 func ajouterValidateur (address) = [StringEntry(nodeValidatrice, address)]
5050
5151
5252
5353 @Callable(i)
5454 func faireAppel (classe,eleves) = {
5555 let leasedEtudiants = {
5656 let $l = eleves
5757 let $s = size($l)
5858 let $acc0 = nil
5959 func $f0_1 ($a,$i) = if (($i >= $s))
6060 then $a
6161 else validerEleve($a, $l[$i])
6262
6363 func $f0_2 ($a,$i) = if (($i >= $s))
6464 then $a
6565 else throw("List size exceeds 30")
6666
6767 $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)
6868 }
6969 [StringEntry(classeEnCours, getClassName(classe, i.caller)), BooleanEntry(estEnCours, true)]
7070 }
7171
7272
7373
7474 @Callable(i)
7575 func faireAppelEleve () = {
76- let adresses = ["3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_présent", "3NBK2yEvvn5RyuLiDoSegDnLmrCMdMBGj9c_présent"]
76+ let adresses = ["3N5RAMPJE4xs7mfEqKaHmhuWgVjXbK6dfGc_absent", "3NBK2yEvvn5RyuLiDoSegDnLmrCMdMBGj9c_absent"]
7777 let e = adresses[0]
7878 let list = removeByIndex(adresses, 0)
7979 let studentAddress = addressFromStringValue(take(e, 35))
8080 let studentStatus = takeRight(e, (size(e) - 36))
8181 let res = invoke(studentAddress, "validationPresence", [studentStatus, getStringValue(nodeValidatrice), list], nil)
8282 if ((res == res))
8383 then match res {
8484 case t: Int =>
8585 nil
8686 case _ =>
8787 throw("Incorrect invoke result")
8888 }
8989 else throw("Strict value is not equal to itself.")
9090 }
9191
9292
9393
9494 @Callable(i)
9595 func arreterCours () = [StringEntry(classeEnCours, ""), BooleanEntry(estEnCours, false)]
9696
9797

github/deemru/w8io/169f3d6 
28.40 ms