tx · 4kaotRMjVT8amCvF1AVBv4JujqcnRUuLUfimaUsZR2my

3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy:  -0.01000000 Waves

2022.02.08 13:24 [1914523] smart account 3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy > SELF 0.00000000 Waves

{ "type": 13, "id": "4kaotRMjVT8amCvF1AVBv4JujqcnRUuLUfimaUsZR2my", "fee": 1000000, "feeAssetId": null, "timestamp": 1644315895826, "version": 2, "chainId": 84, "sender": "3NB5aspKqF3QnFUwAHVRq6vk6v2UqBGMMDy", "senderPublicKey": "4S8F79Me9f9R6fzGZZjKBNfF79og2MpdmnNgfxQpwNEF", "proofs": [ "5oGZ89RhdXdCdfP8FeZY7xZzMqN8rTurpUS1EpK6kKxB5DXHSCW3kUX3NkMq4K9WwQGsmZvmGaecNo9V8yjt4uQX" ], "script": "base64:AAIFAAAAAAAAABwIAhIECgIICBIDCgEIEgMKAQgSBAoCCBgSABIAAAAABgAAAAAKZXN0RW5Db3VycwIAAAAKZXN0RW5Db3VycwAAAAANY2xhc3NlRW5Db3VycwIAAAANY2xhc3NlRW5Db3VycwAAAAAPbm9kZVZhbGlkYXRyaWNlAgAAAA12YWxpZGF0b3JOb2RlAQAAAAxnZXRDbGFzc05hbWUAAAACAAAAA25vbQAAAApwcm9mZXNzZXVyCQABLAAAAAIJAAEsAAAAAgUAAAADbm9tAgAAAAFfCQAEJQAAAAEFAAAACnByb2Zlc3NldXIBAAAADHZhbGlkZXJFbGV2ZQAAAAIAAAADYWNjAAAAAWUEAAAADnN0dWRlbnRBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQABLwAAAAIFAAAAAWUAAAAAAAAAACMEAAAADXN0dWRlbnRTdGF0dXMJAQAAAAl0YWtlUmlnaHQAAAACBQAAAAFlCQAAZQAAAAIJAAExAAAAAQUAAAABZQAAAAAAAAAAIgQAAAADcmVzCQAD/AAAAAQFAAAADnN0dWRlbnRBZGRyZXN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WUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAMYXJyZXRlckNvdXJzAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA1jbGFzc2VFbkNvdXJzAgAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACmVzdEVuQ291cnMHBQAAAANuaWwAAAAAtypc4Q==", "height": 1914523, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4p8iLQAAyAJczK9CkkLCE6oB8Rsjx91GvrVF6vbJojMq Next: 6uZxAZLecYiN59Mf9kgAmyUXQD1QXNZ71BuJhEfQpVrK 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 unit
2727 }
2828
2929
3030 @Callable(i)
3131 func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
3232
3333
3434
3535 @Callable(i)
3636 func deleteClass (nom) = [DeleteEntry(getClassName(nom, i.caller))]
3737
3838
3939
4040 @Callable(i)
4141 func ajouterValidateur (address) = [StringEntry(nodeValidatrice, address)]
4242
4343
4444
4545 @Callable(i)
4646 func faireAppel (classe,eleves) = {
4747 let leasedEtudiants = {
4848 let $l = eleves
4949 let $s = size($l)
5050 let $acc0 = nil
5151 func $f0_1 ($a,$i) = if (($i >= $s))
5252 then $a
5353 else validerEleve($a, $l[$i])
5454
5555 func $f0_2 ($a,$i) = if (($i >= $s))
5656 then $a
5757 else throw("List size exceeds 30")
5858
5959 $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)
6060 }
6161 [StringEntry(classeEnCours, getClassName(classe, i.caller)), BooleanEntry(estEnCours, true)]
6262 }
6363
6464
6565
6666 @Callable(i)
6767 func faireAppelEleve () = {
6868 let res = invoke(addressFromStringValue("3N9bnBDbTLpgTYvhezFE8rSJyMEBBTH927Q"), "validationPresence", ["présent", getStringValue(nodeValidatrice)], nil)
6969 if ((res == res))
7070 then match res {
7171 case t: Int =>
7272 [IntegerEntry("balance_available", t)]
7373 case _ =>
7474 throw("Incorrect invoke result")
7575 }
7676 else throw("Strict value is not equal to itself.")
7777 }
7878
7979
8080
8181 @Callable(i)
8282 func arreterCours () = [StringEntry(classeEnCours, ""), BooleanEntry(estEnCours, false)]
8383
8484

github/deemru/w8io/169f3d6 
36.09 ms