tx · 99etcyaPUYB921xWLpSKUfLvqVEG29C7Cng1EeKyZPjZ

3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf:  -0.01000000 Waves

2022.02.03 23:40 [1907922] smart account 3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf > SELF 0.00000000 Waves

{ "type": 13, "id": "99etcyaPUYB921xWLpSKUfLvqVEG29C7Cng1EeKyZPjZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1643920859935, "version": 2, "chainId": 84, "sender": "3MzfaHTFgjznN8zniycq5PZxaenTjwcYLXf", "senderPublicKey": "5ate1da9rhtGuHpuEAd28pTGh1GpM8SUthHy4JD2hPeL", "proofs": [ "5Vcau1skHxAjqwKP7W3GEkn24xPmpaALcELHDTwRdPU98TMazmXAAfBqGWPR4L1qWNLzjqxfLMPM2NSzPhzaKgeo" ], "script": "base64:AAIFAAAAAAAAAXsIAhIECgIICBIDCgEIEgMKAQgSBAoCCBgSABIAGg8KAWESCmVzdEVuQ291cnMaEgoBYhINY2xhc3NlRW5Db3VycxoUCgFjEg9ub2RlVmFsaWRhdHJpY2UaEQoBZBIMZ2V0Q2xhc3NOYW1lGggKAWUSA25vbRoPCgFmEgpwcm9mZXNzZXVyGhEKAWcSDHZhbGlkZXJFbGV2ZRoICgFoEgNhY2MaBgoBaRIBZRoTCgFqEg5zdHVkZW50QWRkcmVzcxoSCgFrEg1zdHVkZW50U3RhdHVzGggKAWwSA3JlcxoOCgFtEgl0ZXN0VmFsaWQaBgoBbhIBaRoLCgFvEgZlbGV2ZXMaDAoBcBIHYWRkcmVzcxoLCgFxEgZjbGFzc2UaFAoBchIPbGVhc2VkRXR1ZGlhbnRzGgcKAXMSAiRsGgcKAXQSAiRzGgoKAXUSBSRhY2MwGgoKAXYSBSRmMF8xGgcKAXcSAiRhGgcKAXgSAiRpGgoKAXkSBSRmMF8yAAAABgAAAAABYQIAAAAKZXN0RW5Db3VycwAAAAABYgIAAAANY2xhc3NlRW5Db3VycwAAAAABYwIAA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plexity": 0 } View: original | compacted Prev: FbsT6VmqaRHWy7yP3pw7VdCUxikJ5Sgg9ghdr66jutu7 Next: 4R2raWoec37a16QZvtoUGMBFDReuTVWZanGyDXteteNm Diff:
OldNewDifferences
6767
6868
6969 @Callable(i)
70-func faireAppelEleve (classe,eleve) = [StringEntry("etudiants_address", testValid("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent")), IntegerEntry("balance_available", wavesBalance(this).available)]
70+func faireAppelEleve () = [StringEntry("etudiants_address", testValid("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent")), IntegerEntry("balance_available", wavesBalance(this).available)]
7171
7272
7373
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) - 34))
2626 let res = invoke(studentAddress, "validationPresence", [studentStatus, getStringValue(nodeValidatrice)], nil)
2727 if ((res == res))
2828 then toString(studentAddress)
2929 else throw("Strict value is not equal to itself.")
3030 }
3131
3232
3333 @Callable(i)
3434 func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)]
3535
3636
3737
3838 @Callable(i)
3939 func deleteClass (nom) = [DeleteEntry(getClassName(nom, i.caller))]
4040
4141
4242
4343 @Callable(i)
4444 func ajouterValidateur (address) = [StringEntry(nodeValidatrice, address)]
4545
4646
4747
4848 @Callable(i)
4949 func faireAppel (classe,eleves) = {
5050 let leasedEtudiants = {
5151 let $l = eleves
5252 let $s = size($l)
5353 let $acc0 = nil
5454 func $f0_1 ($a,$i) = if (($i >= $s))
5555 then $a
5656 else validerEleve($a, $l[$i])
5757
5858 func $f0_2 ($a,$i) = if (($i >= $s))
5959 then $a
6060 else throw("List size exceeds 30")
6161
6262 $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)
6363 }
6464 [StringEntry(classeEnCours, getClassName(classe, i.caller)), BooleanEntry(estEnCours, true)]
6565 }
6666
6767
6868
6969 @Callable(i)
70-func faireAppelEleve (classe,eleve) = [StringEntry("etudiants_address", testValid("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent")), IntegerEntry("balance_available", wavesBalance(this).available)]
70+func faireAppelEleve () = [StringEntry("etudiants_address", testValid("3N7at66kMSR66wPkY8pvnAcRg711XKkRmW7_présent")), IntegerEntry("balance_available", wavesBalance(this).available)]
7171
7272
7373
7474 @Callable(i)
7575 func arreterCours () = [StringEntry(classeEnCours, ""), BooleanEntry(estEnCours, false)]
7676
7777

github/deemru/w8io/169f3d6 
26.13 ms