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:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAAB2NoZWNrQlQAAAAABAAAAAlsd0FkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAALa29vcEFkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAGbAAAAAQIAAAAjM05CcHRMTDdoSmVORXZUVnhIQnFWdFcxY3laMkhuUXdROVYEAAAACnNlYXJjaEtleTECAAAANE5taW4tSmFocl8yMDE5LzIwMjBfQXVzYnJpbmd1bmdzdGVjaG5pay1IRi1hbmdlcGFzc3QEAAAACnNlYXJjaEtleTICAAAAH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RlIGF1cyAyIEFjY291bnRzCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACWx3QWRyZXNzZQAAAAAAAB6EgAgFAAAAAWkAAAAKZmVlQXNzZXRJZAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACnRlc3RPdXRwdXQCAAAAK1ZlcmdsZWljaCBudXIgZGVzIDEuIFdlcnRlcyB3YXIgZXJmb2xncmVpY2gJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAJbHdBZHJlc3NlAAAAAAAAD0JACAUAAAABaQAAAApmZWVBc3NldElkBQAAAANuaWwDCQAAZwAAAAIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAAHbHdEYXRhMgkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAAAlrb29wRGF0YTIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAKdGVzdE91dHB1dAIAAAArVmVyZ2xlaWNoIG51ciBkZXMgMi4gV2VydGVzIHdhciBlcmZvbGdyZWljaAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAlsd0FkcmVzc2UAAAAAAAAPQkAIBQAAAAFpAAAACmZlZUFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAACFXZXJ0ZSBzaW5kIGFsbGUgVW50ZXJzY2hsaWVkbGljaCEJAAACAAAAAQIAAAAYS29vcCBpc3QgdW50ZXJzY2hpZWRsaWNoAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBga/pN00", "height": 1562890, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J5yqVFodXFy31ADijQDZrDswNrXDNAUKLrfGGr9xhA9m Next: Fzj1RYqDG9n1ZzWAXYqoiizHDEw6uU1fNGcHg8QcjvS Diff:
OldNewDifferences
1616 func checkBT () = {
1717 let lwAdresse = addressFromPublicKey(i.callerPublicKey)
1818 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"
2021 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)
2326 let checkLw = getDataFromCustomer(lwAdresse, koopVergleich)
2427 let checkKoop = getDataFromCustomer(koopAdresse, koopVergleich)
2528 let index = 0
2629 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")
3239 }
3340
3441
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getDataFromCustomer (adr,key) = {
55 let data = match getString(adr, key) {
66 case a: String =>
77 a
88 case _ =>
99 ""
1010 }
1111 data
1212 }
1313
1414
1515 @Callable(i)
1616 func checkBT () = {
1717 let lwAdresse = addressFromPublicKey(i.callerPublicKey)
1818 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"
2021 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)
2326 let checkLw = getDataFromCustomer(lwAdresse, koopVergleich)
2427 let checkKoop = getDataFromCustomer(koopAdresse, koopVergleich)
2528 let index = 0
2629 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")
3239 }
3340
3441
3542 @Verifier(tx)
3643 func verify () = match tx {
3744 case _: DataTransaction =>
3845 true
3946 case _: SetScriptTransaction =>
4047 true
4148 case _ =>
4249 true
4350 }
4451

github/deemru/w8io/026f985 
35.74 ms