tx · 3mWAUzxNvGTrT9NCExRf7D1rjCEcz6aiLnZaZGuTRxDw 3NC9j8YCZi8uFosLPfkvfkwyorw2oqxi7h8: -0.01000000 Waves 2022.04.10 22:12 [2002886] smart account 3NC9j8YCZi8uFosLPfkvfkwyorw2oqxi7h8 > SELF 0.00000000 Waves
{ "type": 13, "id": "3mWAUzxNvGTrT9NCExRf7D1rjCEcz6aiLnZaZGuTRxDw", "fee": 1000000, "feeAssetId": null, "timestamp": 1649617933808, "version": 2, "chainId": 84, "sender": "3NC9j8YCZi8uFosLPfkvfkwyorw2oqxi7h8", "senderPublicKey": "37RyW4skRtViZwAk6Ti9wXX9KHjUXDicq8ZPEMV8etz4", "proofs": [ "LkiZ2kJxKSzNNMDKszEZNCbd8Mb6RGcpLdWmh4HjLmS39yJhkVHQ2F9u919FBjjfxXUot7k61CGStpzUV976Dth" ], "script": "base64:AAIFAAAAAAAAAB8IAhIECgIICBIDCgEIEgMKAQgSAwoBCBIECgIIGBIAAAAABAAAAAAKZXN0RW5Db3VycwIAAAAKZXN0RW5Db3VycwAAAAANY2xhc3NlRW5Db3VycwIAAAANY2xhc3NlRW5Db3VycwAAAAAPbm9kZVZhbGlkYXRyaWNlAgAAAA12YWxpZGF0b3JOb2RlAQAAAAxnZXRDbGFzc05hbWUAAAACAAAAA25vbQAAAApwcm9mZXNzZXVyCQABLAAAAAIJAAEsAAAAAgUAAAADbm9tAgAAAAFfCQAEJQAAAAEFAAAACnByb2Zlc3NldXIAAAAGAAAAAWkBAAAAE2NyZWF0ZU9yTW9kaWZ5Q2xhc3MAAAACAAAAA25vbQAAAAZlbGV2ZXMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADGdldENsYXNzTmFtZQAAAAIFAAAAA25vbQgFAAAAAWkAAAAGY2FsbGVyBQAAAAZlbGV2ZXMFAAAAA25pbAAAAAFpAQAAAA5tb2RpZnlTdHVkZW50cwAAAAEAAAAIc3R1ZGVudHMJAARMAAAAAgkBAA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2gwCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAADWNsYXNzZUVuQ291cnMJAQAAAAxnZXRDbGFzc05hbWUAAAACBQAAAAZjbGFzc2UIBQAAAAFpAAAABmNhbGxlcgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAKZXN0RW5Db3VycwYFAAAAA25pbAkAAAIAAAABAgAAABdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAMYXJyZXRlckNvdXJzAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA1jbGFzc2VFbkNvdXJzAgAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACmVzdEVuQ291cnMHBQAAAANuaWwAAAAAse5kOQ==", "height": 2002886, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DwssKQeoUY7tet3PoD1KUmvm6TWxP8ntnXjSqjE5k68k Next: none Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | ||
13 | 13 | @Callable(i) | |
14 | 14 | func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)] | |
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | @Callable(i) | |
19 | + | func modifyStudents (students) = [StringEntry("etudiant", students)] | |
15 | 20 | ||
16 | 21 | ||
17 | 22 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let estEnCours = "estEnCours" | |
5 | 5 | ||
6 | 6 | let classeEnCours = "classeEnCours" | |
7 | 7 | ||
8 | 8 | let nodeValidatrice = "validatorNode" | |
9 | 9 | ||
10 | 10 | func getClassName (nom,professeur) = ((nom + "_") + toString(professeur)) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(i) | |
14 | 14 | func createOrModifyClass (nom,eleves) = [StringEntry(getClassName(nom, i.caller), eleves)] | |
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | @Callable(i) | |
19 | + | func modifyStudents (students) = [StringEntry("etudiant", students)] | |
15 | 20 | ||
16 | 21 | ||
17 | 22 | ||
18 | 23 | @Callable(i) | |
19 | 24 | func deleteClass (nom) = [DeleteEntry(getClassName(nom, i.caller))] | |
20 | 25 | ||
21 | 26 | ||
22 | 27 | ||
23 | 28 | @Callable(i) | |
24 | 29 | func ajouterValidateur (address) = [StringEntry(nodeValidatrice, address)] | |
25 | 30 | ||
26 | 31 | ||
27 | 32 | ||
28 | 33 | @Callable(i) | |
29 | 34 | func faireAppelEleve (classe,adresses) = { | |
30 | 35 | let e = adresses[0] | |
31 | 36 | let list = removeByIndex(adresses, 0) | |
32 | 37 | let studentAddress = addressFromStringValue(take(e, 35)) | |
33 | 38 | let studentStatus = takeRight(e, (size(e) - 36)) | |
34 | 39 | let res = invoke(studentAddress, "validationPresence", [studentStatus, getStringValue(nodeValidatrice), list], nil) | |
35 | 40 | if ((res == res)) | |
36 | 41 | then match res { | |
37 | 42 | case t: Int => | |
38 | 43 | [StringEntry(classeEnCours, getClassName(classe, i.caller)), BooleanEntry(estEnCours, true)] | |
39 | 44 | case _ => | |
40 | 45 | throw("Incorrect invoke result") | |
41 | 46 | } | |
42 | 47 | else throw("Strict value is not equal to itself.") | |
43 | 48 | } | |
44 | 49 | ||
45 | 50 | ||
46 | 51 | ||
47 | 52 | @Callable(i) | |
48 | 53 | func arreterCours () = [StringEntry(classeEnCours, ""), BooleanEntry(estEnCours, false)] | |
49 | 54 | ||
50 | 55 |
github/deemru/w8io/026f985 53.08 ms ◑