tx · HqDg4o1pAr1aMVzrguahFoB3CRzfzoj9qZgea98MecXL 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6: -0.01000000 Waves 2021.06.09 16:40 [1562890] smart account 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6 > SELF 0.00000000 Waves
{ "type": 13, "id": "HqDg4o1pAr1aMVzrguahFoB3CRzfzoj9qZgea98MecXL", "fee": 1000000, "feeAssetId": null, "timestamp": 1623246007946, "version": 2, "chainId": 84, "sender": "3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6", "senderPublicKey": "G6gPQLsHXcXB4mNCeRfD2nra9dBGiPpeXEKYz1oWTzZ1", "proofs": [ "k5fnQymjcZ4pcMstB2HQVND4S6CMjcKWep1f7gLArZMV6mudwQbKsxatgd2Dxw9seBNmHm2V9kB4f1AsMEmsTHB" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAAB2NoZWNrQlQAAAAABAAAAAlsd0FkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAALa29vcEFkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAGbAAAAAQIAAAAjM05CcHRMTDdoSmVORXZUVnhIQnFWdFcxY3laMkhuUXdROVYEAAAACnNlYXJjaEtleTECAAAANE5taW4tSmFocl8yMDE5LzIwMjBfQXVzYnJpbmd1bmdzdGVjaG5pay1IRi1hbmdlcGFzc3QEAAAACnNlYXJjaEtleTICAAAAHU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lIGF1cyAyIEFjY291bnRzCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACWx3QWRyZXNzZQAAAAAAAB6EgAgFAAAAAWkAAAAKZmVlQXNzZXRJZAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACnRlc3RPdXRwdXQCAAAAK1ZlcmdsZWljaCBudXIgZGVzIDEuIFdlcnRlcyB3YXIgZXJmb2xncmVpY2gJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAJbHdBZHJlc3NlAAAAAAAAD0JACAUAAAABaQAAAApmZWVBc3NldElkBQAAAANuaWwDCQAAZwAAAAIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAAHbHdEYXRhMgkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAAAlrb29wRGF0YTIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAKdGVzdE91dHB1dAIAAAArVmVyZ2xlaWNoIG51ciBkZXMgMi4gV2VydGVzIHdhciBlcmZvbGdyZWljaAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAlsd0FkcmVzc2UAAAAAAAAPQkAIBQAAAAFpAAAACmZlZUFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAACFXZXJ0ZSBzaW5kIGFsbGUgVW50ZXJzY2hsaWVkbGljaCEJAAACAAAAAQIAAAAYS29vcCBpc3QgdW50ZXJzY2hpZWRsaWNoAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBga/pN00", "height": 1562890, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J5yqVFodXFy31ADijQDZrDswNrXDNAUKLrfGGr9xhA9m Next: Fzj1RYqDG9n1ZzWAXYqoiizHDEw6uU1fNGcHg8QcjvS Diff:
Old | New | Differences | |
---|---|---|---|
16 | 16 | func checkBT () = { | |
17 | 17 | let lwAdresse = addressFromPublicKey(i.callerPublicKey) | |
18 | 18 | let koopAdresse = addressFromPublicKey(toBytes("3NBptLL7hJeNEvTVxHBqVtW1cyZ2HnQwQ9V")) | |
19 | - | let searchKey = "Nmin-Jahr_2019/2020_Ausbringungstechnik-HF-angepasst" | |
19 | + | let searchKey1 = "Nmin-Jahr_2019/2020_Ausbringungstechnik-HF-angepasst" | |
20 | + | let searchKey2 = "Nmin-Jahr_2019/2020_NO3_30-60" | |
20 | 21 | let koopVergleich = "Nmin-Jahr_2019/2020_Kooperationsname" | |
21 | - | let lwData = getDataFromCustomer(lwAdresse, searchKey) | |
22 | - | let koopData = getDataFromCustomer(koopAdresse, searchKey) | |
22 | + | let lwData1 = getDataFromCustomer(lwAdresse, searchKey1) | |
23 | + | let koopData1 = getDataFromCustomer(koopAdresse, searchKey1) | |
24 | + | let lwData2 = getDataFromCustomer(lwAdresse, searchKey2) | |
25 | + | let koopData2 = getDataFromCustomer(koopAdresse, searchKey2) | |
23 | 26 | let checkLw = getDataFromCustomer(lwAdresse, koopVergleich) | |
24 | 27 | let checkKoop = getDataFromCustomer(koopAdresse, koopVergleich) | |
25 | 28 | let index = 0 | |
26 | 29 | let auszahlung = [0] | |
27 | - | if (if ((checkLw == checkKoop)) | |
28 | - | then (lwData == koopData) | |
29 | - | else false) | |
30 | - | then [StringEntry("testOutput", "Vergleiche Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
31 | - | else throw("vergleich der Daten aus 2 Accs hat nicht geklappt") | |
30 | + | if ((checkLw == checkKoop)) | |
31 | + | then if ((lwData1 == koopData1)) | |
32 | + | then if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
33 | + | then [StringEntry("testOutput", "Vergleiche 2 Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 2000000, i.feeAssetId)] | |
34 | + | else [StringEntry("testOutput", "Vergleich nur des 1. Wertes war erfolgreich"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
35 | + | else if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
36 | + | then [StringEntry("testOutput", "Vergleich nur des 2. Wertes war erfolgreich"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
37 | + | else throw("Werte sind alle Unterschliedlich!") | |
38 | + | else throw("Koop ist unterschiedlich") | |
32 | 39 | } | |
33 | 40 | ||
34 | 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 checkBT () = { | |
17 | 17 | let lwAdresse = addressFromPublicKey(i.callerPublicKey) | |
18 | 18 | let koopAdresse = addressFromPublicKey(toBytes("3NBptLL7hJeNEvTVxHBqVtW1cyZ2HnQwQ9V")) | |
19 | - | let searchKey = "Nmin-Jahr_2019/2020_Ausbringungstechnik-HF-angepasst" | |
19 | + | let searchKey1 = "Nmin-Jahr_2019/2020_Ausbringungstechnik-HF-angepasst" | |
20 | + | let searchKey2 = "Nmin-Jahr_2019/2020_NO3_30-60" | |
20 | 21 | let koopVergleich = "Nmin-Jahr_2019/2020_Kooperationsname" | |
21 | - | let lwData = getDataFromCustomer(lwAdresse, searchKey) | |
22 | - | let koopData = getDataFromCustomer(koopAdresse, searchKey) | |
22 | + | let lwData1 = getDataFromCustomer(lwAdresse, searchKey1) | |
23 | + | let koopData1 = getDataFromCustomer(koopAdresse, searchKey1) | |
24 | + | let lwData2 = getDataFromCustomer(lwAdresse, searchKey2) | |
25 | + | let koopData2 = getDataFromCustomer(koopAdresse, searchKey2) | |
23 | 26 | let checkLw = getDataFromCustomer(lwAdresse, koopVergleich) | |
24 | 27 | let checkKoop = getDataFromCustomer(koopAdresse, koopVergleich) | |
25 | 28 | let index = 0 | |
26 | 29 | let auszahlung = [0] | |
27 | - | if (if ((checkLw == checkKoop)) | |
28 | - | then (lwData == koopData) | |
29 | - | else false) | |
30 | - | then [StringEntry("testOutput", "Vergleiche Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
31 | - | else throw("vergleich der Daten aus 2 Accs hat nicht geklappt") | |
30 | + | if ((checkLw == checkKoop)) | |
31 | + | then if ((lwData1 == koopData1)) | |
32 | + | then if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
33 | + | then [StringEntry("testOutput", "Vergleiche 2 Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 2000000, i.feeAssetId)] | |
34 | + | else [StringEntry("testOutput", "Vergleich nur des 1. Wertes war erfolgreich"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
35 | + | else if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
36 | + | then [StringEntry("testOutput", "Vergleich nur des 2. Wertes war erfolgreich"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
37 | + | else throw("Werte sind alle Unterschliedlich!") | |
38 | + | else throw("Koop ist unterschiedlich") | |
32 | 39 | } | |
33 | 40 | ||
34 | 41 | ||
35 | 42 | @Verifier(tx) | |
36 | 43 | func verify () = match tx { | |
37 | 44 | case _: DataTransaction => | |
38 | 45 | true | |
39 | 46 | case _: SetScriptTransaction => | |
40 | 47 | true | |
41 | 48 | case _ => | |
42 | 49 | true | |
43 | 50 | } | |
44 | 51 |
github/deemru/w8io/026f985 35.74 ms ◑