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