tx · GaRvXMakAWhu7AHyGhjXyQcbaAKzox9vJjmWqC5YSujr 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6: -0.01000000 Waves 2021.06.10 14:25 [1564210] smart account 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6 > SELF 0.00000000 Waves
{ "type": 13, "id": "GaRvXMakAWhu7AHyGhjXyQcbaAKzox9vJjmWqC5YSujr", "fee": 1000000, "feeAssetId": null, "timestamp": 1623324345088, "version": 2, "chainId": 84, "sender": "3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6", "senderPublicKey": "G6gPQLsHXcXB4mNCeRfD2nra9dBGiPpeXEKYz1oWTzZ1", "proofs": [ "4wgb6xaEXwrfCNWnRM1gifUekp23XRdgUas7tEbn7WYR6uMdttWwwmRm2pzyF8zfT8VSZbdx44q4AR5mxuF6HZse" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAABktvb3BTQwAAAAAEAAAACWx3QWRyZXNzZQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAAtrb29wQWRyZXNzZQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQEAAAAgNzM7g+ft1rsIwSSa48oebLgh9isOFkcEWda8ieIeiDIEAAAACnNlYXJjaEtleTECAAAANE5taW4tSmFocl8yMDE5LzIwMjBfQXVzYnJpbmd1bmdzdGVjaG5pay1IRi1hbmdlcGFzc3QEAAAACnNlYXJjaEtleTICAAAAHU5taW4tSmFocl8yM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mUKBJ4=", "height": 1564210, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BkL6rt2azUHxQB1GLThbaZndXkTPjie61sj8jLtERYap Next: C6uNve2ymgkRnvzzYvi3BBmyrZ78kMLiBWQtdWWNcH21 Diff:
Old | New | Differences | |
---|---|---|---|
30 | 30 | if ((checkLw == checkKoop)) | |
31 | 31 | then if ((lwData1 == koopData1)) | |
32 | 32 | then if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
33 | - | then [StringEntry("testOutput", " | |
34 | - | else [StringEntry("testOutput", " | |
33 | + | then [StringEntry("testOutput", "Ausbringungstechnik und NO3_30-60 Werte werden mit jeweils 0,01 Wave gefördert"), ScriptTransfer(lwAdresse, 2000000, i.feeAssetId)] | |
34 | + | else [StringEntry("testOutput", "Ausbringungstechnik wird mit 0,01 Wave gefördert"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
35 | 35 | else if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
36 | - | then [StringEntry("testOutput", " | |
37 | - | else throw("Werte sind alle Unterschliedlich!") | |
36 | + | then [StringEntry("testOutput", "NO3_30-60 wird mit 0,01 Wave gefördert"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
37 | + | else throw("Abgefragte Werte sind alle Unterschliedlich!") | |
38 | 38 | else throw("Koop ist unterschiedlich") | |
39 | 39 | } | |
40 | 40 |
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(base58'4iUjYybNCz33sFqfvqUfnimcf8Ur4xGRAdFWQbpntrEu') | |
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 | - | then [StringEntry("testOutput", " | |
34 | - | else [StringEntry("testOutput", " | |
33 | + | then [StringEntry("testOutput", "Ausbringungstechnik und NO3_30-60 Werte werden mit jeweils 0,01 Wave gefördert"), ScriptTransfer(lwAdresse, 2000000, i.feeAssetId)] | |
34 | + | else [StringEntry("testOutput", "Ausbringungstechnik wird mit 0,01 Wave gefördert"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
35 | 35 | else if ((parseIntValue(lwData2) >= parseIntValue(koopData2))) | |
36 | - | then [StringEntry("testOutput", " | |
37 | - | else throw("Werte sind alle Unterschliedlich!") | |
36 | + | then [StringEntry("testOutput", "NO3_30-60 wird mit 0,01 Wave gefördert"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
37 | + | else throw("Abgefragte Werte sind alle Unterschliedlich!") | |
38 | 38 | else throw("Koop ist unterschiedlich") | |
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 25.49 ms ◑