tx · GrZiNbUm74NXecTTfj92BGPqqKidtggiUbuzvRbHqs3Z 3MyhFh2hSze8zf3w3oi3yeUGJ9DcG3ZtSJU: -0.04000000 Waves 2020.09.25 15:19 [1192836] smart account 3MyhFh2hSze8zf3w3oi3yeUGJ9DcG3ZtSJU > SELF 0.00000000 Waves
{ "type": 13, "id": "GrZiNbUm74NXecTTfj92BGPqqKidtggiUbuzvRbHqs3Z", "fee": 4000000, "feeAssetId": null, "timestamp": 1601036469183, "version": 2, "chainId": 84, "sender": "3MyhFh2hSze8zf3w3oi3yeUGJ9DcG3ZtSJU", "senderPublicKey": "28D83CzZK1cuqxneGZ6Da53FJCNdtCVupah94P8aS3fm", "proofs": [ "3GYzorFnWvhubogSxChSiRjqiGCnsbDL1Tm7uw7a7Jxge17fvUkw3MMTEv5sMMjUrQUYPpjBdEkENmoW5gd5GfQ" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACQEAAAAZZ2V0QWJ3YXNzZXJNZW5nZUh5ZHJhdWxpawAAAAEAAAAJcHVibGljS2V5BAAAABZBYndhc3Nlck1lbmdlSHlkcmF1bGlrBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJcHVibGljS2V5AgAAAAxfd2Fzc2VybWVuZ2UDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQD//////////wUAAAAWQWJ3YXNzZXJNZW5nZUh5ZHJhdWxpawEAAAANZ2V0VG9ja0ZyYWNodAAAAAEAAAAJcHVibGljS2V5BAAAAAp0b2NrRnJhY2h0BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJcHVibGljS2V5AgAAAApfVE9DZnJhY2h0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEA//////////8FAAAACnRvY2tGcmFjaHQBAAAAE2dldFN0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AAC2t1bmRlTnVtbWVyBQAAAANuaWwJAAACAAAAAQIAAAAVRmVsZGVyIHVudm9sbHN0w6RuZGlnAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAYGv6UJiw==", "height": 1192836, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7v7cvizebvYAfX5FTZDgG7gaJzs9JT9QS9HvfVVy28vF Next: 8T3YxW3k13wQqZUuyA31Q5muT5EFq5ejMu9MTCWjJjVd Diff:
Old | New | Differences | |
---|---|---|---|
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getKostenStelle (publicKey) = { | |
160 | - | let kostenStelle = match getInteger(this, (publicKey + "_ | |
160 | + | let kostenStelle = match getInteger(this, (publicKey + "_kostenstelle")) { | |
161 | 161 | case a: Int => | |
162 | 162 | a | |
163 | 163 | case _ => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getAbwasserMengeHydraulik (publicKey) = { | |
5 | 5 | let AbwasserMengeHydraulik = match getInteger(this, (publicKey + "_wassermenge")) { | |
6 | 6 | case a: Int => | |
7 | 7 | a | |
8 | 8 | case _ => | |
9 | 9 | -1 | |
10 | 10 | } | |
11 | 11 | AbwasserMengeHydraulik | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func getTockFracht (publicKey) = { | |
16 | 16 | let tockFracht = match getInteger(this, (publicKey + "_TOCfracht")) { | |
17 | 17 | case a: Int => | |
18 | 18 | a | |
19 | 19 | case _ => | |
20 | 20 | -1 | |
21 | 21 | } | |
22 | 22 | tockFracht | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func getStickStoffFracht (publicKey) = { | |
27 | 27 | let stickStoffFracht = match getInteger(this, (publicKey + "_Nfracht")) { | |
28 | 28 | case a: Int => | |
29 | 29 | a | |
30 | 30 | case _ => | |
31 | 31 | -1 | |
32 | 32 | } | |
33 | 33 | stickStoffFracht | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func getSonstigeFrachten (publicKey) = { | |
38 | 38 | let AOXfracht = match getInteger(this, (publicKey + "_AOXfracht")) { | |
39 | 39 | case a: Int => | |
40 | 40 | a | |
41 | 41 | case _ => | |
42 | 42 | -1 | |
43 | 43 | } | |
44 | 44 | let Kupferfracht = match getInteger(this, (publicKey + "_Kupferfracht")) { | |
45 | 45 | case a: Int => | |
46 | 46 | a | |
47 | 47 | case _ => | |
48 | 48 | -1 | |
49 | 49 | } | |
50 | 50 | let Zinkfracht = match getInteger(this, (publicKey + "_Zinkfracht")) { | |
51 | 51 | case a: Int => | |
52 | 52 | a | |
53 | 53 | case _ => | |
54 | 54 | -1 | |
55 | 55 | } | |
56 | 56 | let Nickelfracht = match getInteger(this, (publicKey + "_Nickelfracht")) { | |
57 | 57 | case a: Int => | |
58 | 58 | a | |
59 | 59 | case _ => | |
60 | 60 | -1 | |
61 | 61 | } | |
62 | 62 | let Aromatenfracht = match getInteger(this, (publicKey + "_Aromatenfracht")) { | |
63 | 63 | case a: Int => | |
64 | 64 | a | |
65 | 65 | case _ => | |
66 | 66 | -1 | |
67 | 67 | } | |
68 | 68 | let Chromfracht = match getInteger(this, (publicKey + "_Chromfracht")) { | |
69 | 69 | case a: Int => | |
70 | 70 | a | |
71 | 71 | case _ => | |
72 | 72 | -1 | |
73 | 73 | } | |
74 | 74 | let Feststofffracht = match getInteger(this, (publicKey + "_Feststofffracht")) { | |
75 | 75 | case a: Int => | |
76 | 76 | a | |
77 | 77 | case _ => | |
78 | 78 | -1 | |
79 | 79 | } | |
80 | 80 | let formaldehydfracht = match getInteger(this, (publicKey + "_formaldehydfracht")) { | |
81 | 81 | case a: Int => | |
82 | 82 | a | |
83 | 83 | case _ => | |
84 | 84 | -1 | |
85 | 85 | } | |
86 | 86 | let quecksilberfracht = match getInteger(this, (publicKey + "_quecksilberfracht")) { | |
87 | 87 | case a: Int => | |
88 | 88 | a | |
89 | 89 | case _ => | |
90 | 90 | -1 | |
91 | 91 | } | |
92 | 92 | let phosohorfracht = match getInteger(this, (publicKey + "_phosohorfracht")) { | |
93 | 93 | case a: Int => | |
94 | 94 | a | |
95 | 95 | case _ => | |
96 | 96 | -1 | |
97 | 97 | } | |
98 | 98 | let cadmiumfracht = match getInteger(this, (publicKey + "_cadmiumfracht")) { | |
99 | 99 | case a: Int => | |
100 | 100 | a | |
101 | 101 | case _ => | |
102 | 102 | -1 | |
103 | 103 | } | |
104 | 104 | let flourfracht = match getInteger(this, (publicKey + "_flourfracht")) { | |
105 | 105 | case a: Int => | |
106 | 106 | a | |
107 | 107 | case _ => | |
108 | 108 | -1 | |
109 | 109 | } | |
110 | 110 | let bleifracht = match getInteger(this, (publicKey + "_bleifracht")) { | |
111 | 111 | case a: Int => | |
112 | 112 | a | |
113 | 113 | case _ => | |
114 | 114 | -1 | |
115 | 115 | } | |
116 | 116 | ((((((((((((AOXfracht + Kupferfracht) + Zinkfracht) + Nickelfracht) + Aromatenfracht) + Chromfracht) + Feststofffracht) + formaldehydfracht) + quecksilberfracht) + phosohorfracht) + cadmiumfracht) + flourfracht) + bleifracht) | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getAbwasserAnalytik (publicKey) = { | |
121 | 121 | let laborSonderLeistungen = match getInteger(this, (publicKey + "_labor-sonder-leistungen")) { | |
122 | 122 | case a: Int => | |
123 | 123 | a | |
124 | 124 | case _ => | |
125 | 125 | -1 | |
126 | 126 | } | |
127 | 127 | let standardAnalytik = match getInteger(this, (publicKey + "_standard-analytik")) { | |
128 | 128 | case a: Int => | |
129 | 129 | a | |
130 | 130 | case _ => | |
131 | 131 | -1 | |
132 | 132 | } | |
133 | 133 | (laborSonderLeistungen + standardAnalytik) | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getBesonderHeiten (publicKey) = { | |
138 | 138 | let besonderHeiten = match getInteger(this, (publicKey + "_kosten-abwasser-reinigung")) { | |
139 | 139 | case a: Int => | |
140 | 140 | a | |
141 | 141 | case _ => | |
142 | 142 | -1 | |
143 | 143 | } | |
144 | 144 | besonderHeiten | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getSonderVereinbarung (publicKey) = { | |
149 | 149 | let FestStofffracht = match getInteger(this, (publicKey + "_Feststofffracht")) { | |
150 | 150 | case a: Int => | |
151 | 151 | a | |
152 | 152 | case _ => | |
153 | 153 | -1 | |
154 | 154 | } | |
155 | 155 | ((FestStofffracht * 8318) / 500) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getKostenStelle (publicKey) = { | |
160 | - | let kostenStelle = match getInteger(this, (publicKey + "_ | |
160 | + | let kostenStelle = match getInteger(this, (publicKey + "_kostenstelle")) { | |
161 | 161 | case a: Int => | |
162 | 162 | a | |
163 | 163 | case _ => | |
164 | 164 | -1 | |
165 | 165 | } | |
166 | 166 | kostenStelle | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getKundeNummer (publicKey) = { | |
171 | 171 | let kundeNummer = match getInteger(this, (publicKey + "_kundeNr")) { | |
172 | 172 | case a: Int => | |
173 | 173 | a | |
174 | 174 | case _ => | |
175 | 175 | -1 | |
176 | 176 | } | |
177 | 177 | kundeNummer | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | @Callable(i) | |
182 | 182 | func abasNeu () = { | |
183 | 183 | let publicKey = toBase58String(i.callerPublicKey) | |
184 | 184 | let abwasserMengeHydraulik = getAbwasserMengeHydraulik(publicKey) | |
185 | 185 | let tocFracht = getTockFracht(publicKey) | |
186 | 186 | let stickStoffFracht = getStickStoffFracht(publicKey) | |
187 | 187 | let sonstigeFrachten = getSonstigeFrachten(publicKey) | |
188 | 188 | let abwasserAnalytikSonstLeistungen = getAbwasserAnalytik(publicKey) | |
189 | 189 | let besonderheiten = getBesonderHeiten(publicKey) | |
190 | 190 | let sonderVereinbarung = getSonderVereinbarung(publicKey) | |
191 | 191 | let kostenStelle = getKostenStelle(publicKey) | |
192 | 192 | let kundeNummer = getKundeNummer(publicKey) | |
193 | 193 | if (if (if (if (if (if (if (if (if ((abwasserMengeHydraulik >= -2)) | |
194 | 194 | then (tocFracht >= -2) | |
195 | 195 | else false) | |
196 | 196 | then (stickStoffFracht >= -2) | |
197 | 197 | else false) | |
198 | 198 | then (sonstigeFrachten >= -2) | |
199 | 199 | else false) | |
200 | 200 | then (abwasserAnalytikSonstLeistungen >= -2) | |
201 | 201 | else false) | |
202 | 202 | then (besonderheiten >= -2) | |
203 | 203 | else false) | |
204 | 204 | then (sonderVereinbarung >= -2) | |
205 | 205 | else false) | |
206 | 206 | then (kundeNummer >= -2) | |
207 | 207 | else false) | |
208 | 208 | then (kostenStelle >= -2) | |
209 | 209 | else false) | |
210 | 210 | then [IntegerEntry((publicKey + "_ABAS_Neu_abwasserMengeHydraulik_Menge"), abwasserMengeHydraulik), IntegerEntry((publicKey + "_ABAS_Neu_tocFracht_Menge"), tocFracht), IntegerEntry((publicKey + "_ABAS_Neu_stickStoffFracht_Menge"), stickStoffFracht), IntegerEntry((publicKey + "_ABAS_Neu_sonstigeFrachten_Menge"), sonstigeFrachten), IntegerEntry((publicKey + "_ABAS_Neu_abwasserAnalytikSonstLeistungen_Menge"), abwasserAnalytikSonstLeistungen), IntegerEntry((publicKey + "_ABAS_Neu_besonderheiten_Menge"), besonderheiten), IntegerEntry((publicKey + "_ABAS_Neu_sonderVereinbarung_Menge"), sonderVereinbarung), IntegerEntry((publicKey + "_ABAS_Neu_EKOSTL"), kostenStelle), IntegerEntry((publicKey + "_ABAS_Neu_Debitor"), kundeNummer)] | |
211 | 211 | else throw("Felder unvollständig") | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Verifier(tx) | |
216 | 216 | func verify () = match tx { | |
217 | 217 | case tx: SetScriptTransaction => | |
218 | 218 | true | |
219 | 219 | case _ => | |
220 | 220 | true | |
221 | 221 | } | |
222 | 222 |
github/deemru/w8io/169f3d6 31.44 ms ◑