tx · Huvco4c6qNWa9qLjemU9WGz56d4EcNTiDGDQM9Px1L2s 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6: -0.01000000 Waves 2021.06.09 16:55 [1562905] smart account 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6 > SELF 0.00000000 Waves
{ "type": 13, "id": "Huvco4c6qNWa9qLjemU9WGz56d4EcNTiDGDQM9Px1L2s", "fee": 1000000, "feeAssetId": null, "timestamp": 1623246945591, "version": 2, "chainId": 84, "sender": "3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6", "senderPublicKey": "G6gPQLsHXcXB4mNCeRfD2nra9dBGiPpeXEKYz1oWTzZ1", "proofs": [ "3nTmYMqLvk8CXWMuPjzJsTLZPtJZvCaMTBG1eCChXBBVFZ1eqsgbRq9XkVUqCEn2MvGoD8GznqiNeC1unNttAnR6" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAABktvb3BTQwAAAAAEAAAACWx3QWRyZXNzZQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAAtrb29wQWRyZXNzZQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAZsAAAABAgAAACMzTkJwdExMN2hKZU5FdlRWeEhCcVZ0VzFjeVoySG5Rd1E5VgQAAAAKc2VhcmNoS2V5MQIAAAA0Tm1pbi1KYWhyXzIwMTkvMjAyMF9BdXNicmluZ3VuZ3N0ZWNobmlrLUhGLWFuZ2VwYXNzdAQAAAAKc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0YVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GBo1iQdQ=", "height": 1562905, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2DdH2ZgfZKqcqsv8TeNpVre6it6h7L4SEsKehajT4gB6 Next: Cqaqx5E1v54D6UR2u3vnFDub3yJMuaa9Rv69MYoo7Fub Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | else if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
36 | 36 | then [StringEntry("testOutput", "Vergleich nur des 2. Wertes war erfolgreich"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
37 | 37 | else throw("Werte sind alle Unterschliedlich!") | |
38 | - | else throw(((("Koop ist unterschiedlich, checkLW=" + checkLw) + "| checkKoop=") + checkKoop)) | |
38 | + | else throw((((("Koop ist unterschiedlich, checkLW=" + checkLw) + "| checkKoop=") + checkKoop) + " test ")) | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getDataFromCustomer (adr,key) = { | |
5 | 5 | let data = match getString(adr, key) { | |
6 | 6 | case a: String => | |
7 | 7 | a | |
8 | 8 | case _ => | |
9 | 9 | "" | |
10 | 10 | } | |
11 | 11 | data | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func KoopSC () = { | |
17 | 17 | let lwAdresse = addressFromPublicKey(i.callerPublicKey) | |
18 | 18 | let koopAdresse = addressFromPublicKey(toBytes("3NBptLL7hJeNEvTVxHBqVtW1cyZ2HnQwQ9V")) | |
19 | 19 | let searchKey1 = "Nmin-Jahr_2019/2020_Ausbringungstechnik-HF-angepasst" | |
20 | 20 | let searchKey2 = "Nmin-Jahr_2019/2020_NO3_30-60" | |
21 | 21 | let koopVergleich = "Nmin-Jahr_2019/2020_Kooperationsname" | |
22 | 22 | let lwData1 = getDataFromCustomer(lwAdresse, searchKey1) | |
23 | 23 | let koopData1 = getDataFromCustomer(koopAdresse, searchKey1) | |
24 | 24 | let lwData2 = getDataFromCustomer(lwAdresse, searchKey2) | |
25 | 25 | let koopData2 = getDataFromCustomer(koopAdresse, searchKey2) | |
26 | 26 | let checkLw = getDataFromCustomer(lwAdresse, koopVergleich) | |
27 | 27 | let checkKoop = getDataFromCustomer(koopAdresse, koopVergleich) | |
28 | 28 | let index = 0 | |
29 | 29 | let auszahlung = [0] | |
30 | 30 | if ((checkLw == checkKoop)) | |
31 | 31 | then if ((lwData1 == koopData1)) | |
32 | 32 | then if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
33 | 33 | then [StringEntry("testOutput", "Vergleiche 2 Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 2000000, i.feeAssetId)] | |
34 | 34 | else [StringEntry("testOutput", "Vergleich nur des 1. Wertes war erfolgreich"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
35 | 35 | else if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
36 | 36 | then [StringEntry("testOutput", "Vergleich nur des 2. Wertes war erfolgreich"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
37 | 37 | else throw("Werte sind alle Unterschliedlich!") | |
38 | - | else throw(((("Koop ist unterschiedlich, checkLW=" + checkLw) + "| checkKoop=") + checkKoop)) | |
38 | + | else throw((((("Koop ist unterschiedlich, checkLW=" + checkLw) + "| checkKoop=") + checkKoop) + " test ")) | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Verifier(tx) | |
43 | 43 | func verify () = match tx { | |
44 | 44 | case _: DataTransaction => | |
45 | 45 | true | |
46 | 46 | case _: SetScriptTransaction => | |
47 | 47 | true | |
48 | 48 | case _ => | |
49 | 49 | true | |
50 | 50 | } | |
51 | 51 |
github/deemru/w8io/026f985 26.34 ms ◑