tx · 7dm32yV1cPE9e3ZdD3TSp1K33oSUkK7YTN4DwLjue5mU 3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA: -0.02300000 Waves 2023.03.14 11:15 [2489456] smart account 3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA > SELF 0.00000000 Waves
{ "type": 13, "id": "7dm32yV1cPE9e3ZdD3TSp1K33oSUkK7YTN4DwLjue5mU", "fee": 2300000, "feeAssetId": null, "timestamp": 1678781737285, "version": 2, "chainId": 84, "sender": "3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA", "senderPublicKey": "D46gQxzmdzdCTYRg6dMcwFoUrc6ZmxF6GKd5ZoTkvzp1", "proofs": [ "22KrXJzBzxRnJNd5hR2WMyzjXPHj3tP37EFCNrth5nkjq9btjDzD8VnzYM5gxcJJo1z7MFu5eiPCkD74TsGh97oZ" ], "script": "base64:BgLEFQgCEgMKAQgSABIECgIIARIHCgUICAgIARIECgIICBIFCgMICAESBAoCCAgSAwoBARIDCgEBEgQKAggIEgQKAggEEgASAwoBARIAEgQKAggIEgQKAggIEgQKAggIIglzZXBhcmF0b3IiDnBvb2xXZWlnaHRNdWx0Ig9tYXhEZXB0aERlZmF1bHQiFmZpbmFsaXphdGlvblN0YWdlVG90YWwiF2ZpbmFsaXphdGlvblN0YWdlU2hhcmVzIg5rZXlFcG9jaExlbmd0aCIRa2V5RXBvY2hMZW5ndGhOZXciFWtleUVwb2NoTGVuZ3RoQnlFcG9jaCIFZXBvY2giD2tleUN1cnJlbnRFcG9jaCILa2V5TWF4RGVwdGgiImtleVZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCITa2V5Qm9vc3RpbmdDb250cmFjdCISa2V5U3Rha2luZ0NvbnRyYWN0IhRrZXlGaW5hbGl6YXRpb25TdGFnZSILa2V5TmV4dFBvb2wiC2tleU5leHRVc2VyIg5rZXlTdGFydEhlaWdodCIRa2V5Q3VycmVud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ljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmN0CWJvZHlCeXRlcwkAkQMCCAUCY3QGcHJvb2ZzAAAFAmN2kCt4wA==", "height": 2489456, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A4Y8NgoKZAi6bn8LtwQQ2u2MaLzM4gE5GEyU9V4s5CAm Next: 5sxn6MPQ4bXP2paRo5nsofkeoVNTebTgeWMgDgeKC6XH Diff:
Old | New | Differences | |
---|---|---|---|
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | - | func J (z,i) = { | |
81 | - | let K = z | |
82 | - | let B = K._1 | |
83 | - | let C = K._2 | |
80 | + | func J (K,i) = makeString(["%s%s%d", "votingResultStaked", K, toString(i)], a) | |
81 | + | ||
82 | + | ||
83 | + | func L (z,i) = { | |
84 | + | let M = z | |
85 | + | let B = M._1 | |
86 | + | let C = M._2 | |
84 | 87 | makeString(["%s%s%s%d", "poolShare", B, C, toString(i)], a) | |
85 | 88 | } | |
86 | 89 | ||
87 | 90 | ||
88 | - | func | |
91 | + | func N (i) = makeString(["%s%d", "totalVotes", toString(i)], a) | |
89 | 92 | ||
90 | 93 | ||
91 | - | func M (E,N,O) = { | |
92 | - | let P = makeString(["mandatory ", toString(E), ".", N, " is not defined"], "") | |
94 | + | func O (K,P) = makeString(["%s%s%s", "staked", P, K], a) | |
95 | + | ||
96 | + | ||
97 | + | func Q (R) = makeString(["voting_emission.ride:", R], " ") | |
98 | + | ||
99 | + | ||
100 | + | func S (R) = throw(Q(R)) | |
101 | + | ||
102 | + | ||
103 | + | func T (E,U,V) = { | |
104 | + | let W = makeString(["mandatory ", toString(E), ".", U, " is not defined"], "") | |
93 | 105 | valueOrErrorMessage({ | |
94 | - | let | |
95 | - | if ($isInstanceOf( | |
106 | + | let X = V | |
107 | + | if ($isInstanceOf(X, "String")) | |
96 | 108 | then { | |
97 | - | let | |
98 | - | getString(E, | |
109 | + | let Y = X | |
110 | + | getString(E, U) | |
99 | 111 | } | |
100 | - | else if ($isInstanceOf( | |
112 | + | else if ($isInstanceOf(X, "Int")) | |
101 | 113 | then { | |
102 | - | let | |
103 | - | getInteger(E, | |
114 | + | let Z = X | |
115 | + | getInteger(E, U) | |
104 | 116 | } | |
105 | 117 | else throw("invalid entry type") | |
106 | - | }, | |
118 | + | }, W) | |
107 | 119 | } | |
108 | 120 | ||
109 | 121 | ||
110 | - | func | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
113 | - | then | |
114 | - | else throw(($getType( | |
122 | + | func aa (E,U) = { | |
123 | + | let ab = T(E, U, "") | |
124 | + | if ($isInstanceOf(ab, "String")) | |
125 | + | then ab | |
126 | + | else throw(($getType(ab) + " couldn't be cast to String")) | |
115 | 127 | } | |
116 | 128 | ||
117 | 129 | ||
118 | - | func | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
121 | - | then | |
122 | - | else throw(($getType( | |
130 | + | func ac (E,U) = { | |
131 | + | let ab = T(E, U, 0) | |
132 | + | if ($isInstanceOf(ab, "Int")) | |
133 | + | then ab | |
134 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
123 | 135 | } | |
124 | 136 | ||
125 | 137 | ||
126 | - | func | |
138 | + | func ad (z) = ((z._1 + a) + z._2) | |
127 | 139 | ||
128 | 140 | ||
129 | - | func | |
130 | - | let | |
131 | - | if ((size( | |
132 | - | then $Tuple2( | |
141 | + | func ae (Y) = { | |
142 | + | let af = split(Y, a) | |
143 | + | if ((size(af) == 2)) | |
144 | + | then $Tuple2(af[0], af[1]) | |
133 | 145 | else throw("invalid pool string") | |
134 | 146 | } | |
135 | 147 | ||
136 | 148 | ||
137 | - | func | |
138 | - | func | |
149 | + | func ag (B,C) = { | |
150 | + | func ah (ai) = ("%s%s%s__mappings__baseAsset2internalId__" + ai) | |
139 | 151 | ||
140 | - | func | |
152 | + | func aj (ak,al) = (((("%d%d%s%s__" + toString(ak)) + "__") + toString(al)) + "__mappings__poolAssets2PoolContract") | |
141 | 153 | ||
142 | - | func | |
154 | + | func am (an) = (("%s%s%s__" + an) + "__mappings__poolContract2LpAsset") | |
143 | 155 | ||
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | | |
156 | + | let ao = addressFromStringValue(aa(this, m)) | |
157 | + | let ap = ac(ao, ah(B)) | |
158 | + | let aq = ac(ao, ah(C)) | |
159 | + | let an = aa(ao, aj(ap, aq)) | |
160 | + | let ar = aa(ao, am(an)) | |
161 | + | ar | |
150 | 162 | } | |
151 | 163 | ||
152 | 164 | ||
153 | - | func | |
154 | - | let | |
155 | - | let B = | |
156 | - | let C = | |
157 | - | let | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
160 | - | then | |
161 | - | else throw(($getType( | |
165 | + | func as (z) = { | |
166 | + | let at = z | |
167 | + | let B = at._1 | |
168 | + | let C = at._2 | |
169 | + | let ao = addressFromStringValue(aa(this, m)) | |
170 | + | let ab = invoke(ao, "checkWxEmissionPoolLabel", [B, C], nil) | |
171 | + | if ($isInstanceOf(ab, "Boolean")) | |
172 | + | then ab | |
173 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
162 | 174 | } | |
163 | 175 | ||
164 | 176 | ||
165 | - | let | |
177 | + | let au = "pools" | |
166 | 178 | ||
167 | - | func | |
168 | - | let | |
169 | - | let B = | |
170 | - | let C = | |
179 | + | func av (z) = { | |
180 | + | let aw = z | |
181 | + | let B = aw._1 | |
182 | + | let C = aw._2 | |
171 | 183 | makeString(["votes", B, C], a) | |
172 | 184 | } | |
173 | 185 | ||
174 | 186 | ||
175 | - | func | |
176 | - | let | |
187 | + | func ax (ay) = { | |
188 | + | let az = if ((ay == au)) | |
177 | 189 | then "%s%s" | |
178 | 190 | else "%s%s%s%s" | |
179 | - | makeString([ | |
191 | + | makeString([az, ay, "head"], a) | |
180 | 192 | } | |
181 | 193 | ||
182 | 194 | ||
183 | - | func | |
184 | - | let | |
195 | + | func aA (ay) = { | |
196 | + | let az = if ((ay == au)) | |
185 | 197 | then "%s%s" | |
186 | 198 | else "%s%s%s%s" | |
187 | - | makeString([ | |
199 | + | makeString([az, ay, "size"], a) | |
188 | 200 | } | |
189 | 201 | ||
190 | 202 | ||
191 | - | func | |
192 | - | let | |
203 | + | func aB (ay,aC) = { | |
204 | + | let az = if ((ay == au)) | |
193 | 205 | then "%s%s%s%s" | |
194 | 206 | else "%s%s%s%s%s" | |
195 | - | makeString([ | |
207 | + | makeString([az, ay, aC, "prev"], a) | |
196 | 208 | } | |
197 | 209 | ||
198 | 210 | ||
199 | - | func | |
200 | - | let | |
211 | + | func aD (ay,aC) = { | |
212 | + | let az = if ((ay == au)) | |
201 | 213 | then "%s%s%s%s" | |
202 | 214 | else "%s%s%s%s%s" | |
203 | - | makeString([ | |
215 | + | makeString([az, ay, aC, "next"], a) | |
204 | 216 | } | |
205 | 217 | ||
206 | 218 | ||
207 | - | func | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (if (( | |
219 | + | func aE (ay,aC) = { | |
220 | + | let aF = getString(this, ax(ay)) | |
221 | + | let aG = getString(this, aB(ay, aC)) | |
222 | + | let aH = getString(this, aD(ay, aC)) | |
223 | + | if (if ((aC == valueOrElse(aF, ""))) | |
212 | 224 | then true | |
213 | - | else ( | |
225 | + | else (aG != unit)) | |
214 | 226 | then true | |
215 | - | else ( | |
227 | + | else (aH != unit) | |
216 | 228 | } | |
217 | 229 | ||
218 | 230 | ||
219 | - | func | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
231 | + | func aI (ay,aC) = { | |
232 | + | let aF = getString(this, ax(ay)) | |
233 | + | let aJ = valueOrElse(getInteger(this, aA(ay)), 0) | |
234 | + | let aK = if (!(aE(ay, aC))) | |
223 | 235 | then true | |
224 | 236 | else throw("Node exists") | |
225 | - | if (( | |
226 | - | then (([IntegerEntry( | |
227 | - | then [StringEntry( | |
228 | - | else nil)) ++ [StringEntry( | |
237 | + | if ((aK == aK)) | |
238 | + | then (([IntegerEntry(aA(ay), (aJ + 1))] ++ (if ((aF != unit)) | |
239 | + | then [StringEntry(aD(ay, aC), value(aF)), StringEntry(aB(ay, value(aF)), aC)] | |
240 | + | else nil)) ++ [StringEntry(ax(ay), aC)]) | |
229 | 241 | else throw("Strict value is not equal to itself.") | |
230 | 242 | } | |
231 | 243 | ||
232 | 244 | ||
233 | - | func | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | ([IntegerEntry( | |
239 | - | then ( | |
245 | + | func aL (ay,aC) = { | |
246 | + | let aF = getString(this, ax(ay)) | |
247 | + | let aJ = valueOrElse(getInteger(this, aA(ay)), 0) | |
248 | + | let aG = getString(this, aB(ay, aC)) | |
249 | + | let aH = getString(this, aD(ay, aC)) | |
250 | + | ([IntegerEntry(aA(ay), (aJ - 1))] ++ (if (if ((aG != unit)) | |
251 | + | then (aH != unit) | |
240 | 252 | else false) | |
241 | - | then [StringEntry( | |
242 | - | else if (( | |
243 | - | then [StringEntry( | |
244 | - | else if (( | |
245 | - | then [DeleteEntry( | |
246 | - | else if (( | |
247 | - | then [DeleteEntry( | |
248 | - | else throw(((("invalid node: " + | |
253 | + | then [StringEntry(aD(ay, value(aG)), value(aH)), StringEntry(aB(ay, value(aH)), value(aG)), DeleteEntry(aB(ay, aC)), DeleteEntry(aD(ay, aC))] | |
254 | + | else if ((aH != unit)) | |
255 | + | then [StringEntry(ax(ay), value(aH)), DeleteEntry(aD(ay, aC)), DeleteEntry(aB(ay, value(aH)))] | |
256 | + | else if ((aG != unit)) | |
257 | + | then [DeleteEntry(aB(ay, aC)), DeleteEntry(aD(ay, value(aG)))] | |
258 | + | else if ((aC == valueOrElse(aF, ""))) | |
259 | + | then [DeleteEntry(ax(ay))] | |
260 | + | else throw(((("invalid node: " + ay) + ".") + aC)))) | |
249 | 261 | } | |
250 | 262 | ||
251 | 263 | ||
252 | - | func | |
264 | + | func aM () = "%s__managerPublicKey" | |
253 | 265 | ||
254 | 266 | ||
255 | - | func | |
267 | + | func aN () = "%s__pendingManagerPublicKey" | |
256 | 268 | ||
257 | 269 | ||
258 | - | func | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
270 | + | func aO () = { | |
271 | + | let X = getString(aM()) | |
272 | + | if ($isInstanceOf(X, "String")) | |
261 | 273 | then { | |
262 | - | let | |
263 | - | fromBase58String( | |
274 | + | let aP = X | |
275 | + | fromBase58String(aP) | |
264 | 276 | } | |
265 | - | else if ($isInstanceOf( | |
277 | + | else if ($isInstanceOf(X, "Unit")) | |
266 | 278 | then unit | |
267 | 279 | else throw("Match error") | |
268 | 280 | } | |
269 | 281 | ||
270 | 282 | ||
271 | - | func | |
272 | - | let | |
273 | - | if ($isInstanceOf( | |
283 | + | func aQ () = { | |
284 | + | let X = getString(aN()) | |
285 | + | if ($isInstanceOf(X, "String")) | |
274 | 286 | then { | |
275 | - | let | |
276 | - | fromBase58String( | |
287 | + | let aP = X | |
288 | + | fromBase58String(aP) | |
277 | 289 | } | |
278 | - | else if ($isInstanceOf( | |
290 | + | else if ($isInstanceOf(X, "Unit")) | |
279 | 291 | then unit | |
280 | 292 | else throw("Match error") | |
281 | 293 | } | |
282 | 294 | ||
283 | 295 | ||
284 | - | let | |
296 | + | let aR = throw("Permission denied") | |
285 | 297 | ||
286 | - | func | |
298 | + | func aS (aT) = if ((aT.caller == this)) | |
287 | 299 | then true | |
288 | - | else | |
300 | + | else aR | |
289 | 301 | ||
290 | 302 | ||
291 | - | func | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
303 | + | func aU (aT) = { | |
304 | + | let X = aO() | |
305 | + | if ($isInstanceOf(X, "ByteVector")) | |
294 | 306 | then { | |
295 | - | let | |
296 | - | if (( | |
307 | + | let aV = X | |
308 | + | if ((aT.callerPublicKey == aV)) | |
297 | 309 | then true | |
298 | - | else | |
310 | + | else aR | |
299 | 311 | } | |
300 | - | else if ($isInstanceOf( | |
301 | - | then | |
312 | + | else if ($isInstanceOf(X, "Unit")) | |
313 | + | then aS(aT) | |
302 | 314 | else throw("Match error") | |
303 | 315 | } | |
304 | 316 | ||
305 | 317 | ||
306 | - | @Callable( | |
307 | - | func setManager ( | |
308 | - | let | |
309 | - | if (( | |
318 | + | @Callable(aT) | |
319 | + | func setManager (aW) = { | |
320 | + | let aX = aU(aT) | |
321 | + | if ((aX == aX)) | |
310 | 322 | then { | |
311 | - | let | |
312 | - | if (( | |
313 | - | then [StringEntry( | |
323 | + | let aY = fromBase58String(aW) | |
324 | + | if ((aY == aY)) | |
325 | + | then [StringEntry(aN(), aW)] | |
314 | 326 | else throw("Strict value is not equal to itself.") | |
315 | 327 | } | |
316 | 328 | else throw("Strict value is not equal to itself.") | |
318 | 330 | ||
319 | 331 | ||
320 | 332 | ||
321 | - | @Callable( | |
333 | + | @Callable(aT) | |
322 | 334 | func confirmManager () = { | |
323 | - | let | |
324 | - | let | |
335 | + | let aZ = aQ() | |
336 | + | let ba = if (isDefined(aZ)) | |
325 | 337 | then true | |
326 | 338 | else throw("No pending manager") | |
327 | - | if (( | |
339 | + | if ((ba == ba)) | |
328 | 340 | then { | |
329 | - | let | |
341 | + | let bb = if ((aT.callerPublicKey == value(aZ))) | |
330 | 342 | then true | |
331 | 343 | else throw("You are not pending manager") | |
332 | - | if (( | |
333 | - | then [StringEntry( | |
344 | + | if ((bb == bb)) | |
345 | + | then [StringEntry(aM(), toBase58String(value(aZ))), DeleteEntry(aN())] | |
334 | 346 | else throw("Strict value is not equal to itself.") | |
335 | 347 | } | |
336 | 348 | else throw("Strict value is not equal to itself.") | |
338 | 350 | ||
339 | 351 | ||
340 | 352 | ||
341 | - | @Callable( | |
342 | - | func getUserGwxAmountAtHeight ( | |
343 | - | let | |
353 | + | @Callable(aT) | |
354 | + | func getUserGwxAmountAtHeight (bc,bd) = { | |
355 | + | let be = valueOrErrorMessage(addressFromString(aa(this, n)), "invalid boosting contract address") | |
344 | 356 | $Tuple2(nil, { | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
347 | - | then | |
348 | - | else throw(($getType( | |
357 | + | let ab = invoke(be, "getUserGwxAmountAtHeightREADONLY", [bc, bd], nil) | |
358 | + | if ($isInstanceOf(ab, "Int")) | |
359 | + | then ab | |
360 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
349 | 361 | }) | |
350 | 362 | } | |
351 | 363 | ||
352 | 364 | ||
353 | 365 | ||
354 | - | @Callable( | |
355 | - | func constructor ( | |
356 | - | let | |
366 | + | @Callable(aT) | |
367 | + | func constructor (ao,bf,bg,bh,bi) = { | |
368 | + | let bj = [aU(aT), if ((addressFromString(ao) != unit)) | |
357 | 369 | then true | |
358 | - | else "invalid factory contract address", if ((addressFromString( | |
370 | + | else "invalid factory contract address", if ((addressFromString(bf) != unit)) | |
359 | 371 | then true | |
360 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
372 | + | else "invalid voting emission candidate contract address", if ((addressFromString(bg) != unit)) | |
361 | 373 | then true | |
362 | - | else "invalid boosting contract address", if ((addressFromString( | |
374 | + | else "invalid boosting contract address", if ((addressFromString(bh) != unit)) | |
363 | 375 | then true | |
364 | - | else "invalid staking contract address", if (( | |
376 | + | else "invalid staking contract address", if ((bi > 0)) | |
365 | 377 | then true | |
366 | 378 | else throw("invalid epoch length")] | |
367 | - | if (( | |
368 | - | then $Tuple2([StringEntry(m, | |
379 | + | if ((bj == bj)) | |
380 | + | then $Tuple2([StringEntry(m, ao), StringEntry(l, bf), StringEntry(n, bg), StringEntry(o, bh), IntegerEntry(f, bi)], unit) | |
369 | 381 | else throw("Strict value is not equal to itself.") | |
370 | 382 | } | |
371 | 383 | ||
372 | 384 | ||
373 | 385 | ||
374 | - | @Callable( | |
386 | + | @Callable(aT) | |
375 | 387 | func create (B,C) = { | |
376 | - | let | |
388 | + | let bj = [if ((toBase58String(aT.caller.bytes) == valueOrElse(getString(this, l), ""))) | |
377 | 389 | then true | |
378 | - | else | |
379 | - | if (( | |
390 | + | else aU(aT)] | |
391 | + | if ((bj == bj)) | |
380 | 392 | then { | |
381 | 393 | let z = $Tuple2(B, C) | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
394 | + | let bk = ([BooleanEntry(y(z), true)] ++ aI(au, ad(z))) | |
395 | + | let bl = (getInteger(this, j) == unit) | |
396 | + | let bm = if (bl) | |
385 | 397 | then { | |
386 | 398 | let i = 0 | |
387 | 399 | [IntegerEntry(j, i), IntegerEntry(w(i), height), IntegerEntry(s, height), IntegerEntry(t, i), IntegerEntry(u, height)] | |
388 | 400 | } | |
389 | 401 | else nil | |
390 | - | $Tuple2(( | |
402 | + | $Tuple2((bk ++ bm), unit) | |
391 | 403 | } | |
392 | 404 | else throw("Strict value is not equal to itself.") | |
393 | 405 | } | |
394 | 406 | ||
395 | 407 | ||
396 | 408 | ||
397 | - | @Callable( | |
398 | - | func vote (B,C, | |
409 | + | @Callable(aT) | |
410 | + | func vote (B,C,bn) = { | |
399 | 411 | let z = $Tuple2(B, C) | |
400 | 412 | let i = valueOrElse(getInteger(this, j), 0) | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | if ($isInstanceOf( | |
412 | - | then | |
413 | - | else throw(($getType( | |
413 | + | let bo = ac(this, w(i)) | |
414 | + | let bi = ac(this, f) | |
415 | + | let bp = (bo + bi) | |
416 | + | let bq = getInteger(this, p) | |
417 | + | let br = valueOrElse(getInteger(this, D(aT.caller, i)), 0) | |
418 | + | let bs = valueOrElse(getInteger(this, F(z, aT.caller, i)), 0) | |
419 | + | let bt = valueOrElse(getInteger(this, H(z, i)), 0) | |
420 | + | let bu = valueOrElse(getInteger(this, N(i)), 0) | |
421 | + | let bv = { | |
422 | + | let ab = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(aT.caller.bytes), bp], nil) | |
423 | + | if ($isInstanceOf(ab, "Int")) | |
424 | + | then ab | |
425 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
414 | 426 | } | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
427 | + | let bw = (bv - br) | |
428 | + | let bx = (bs + bn) | |
429 | + | let by = as(z) | |
430 | + | let bj = [if ((getBoolean(y(z)) != unit)) | |
419 | 431 | then true | |
420 | - | else throw("invalid assets"), if (( | |
432 | + | else throw("invalid assets"), if ((bp > height)) | |
421 | 433 | then true | |
422 | - | else throw("invalid height"), if (( | |
434 | + | else throw("invalid height"), if ((bq == unit)) | |
423 | 435 | then true | |
424 | - | else throw("finalization in progress"), if (( | |
436 | + | else throw("finalization in progress"), if ((bv > 0)) | |
425 | 437 | then true | |
426 | - | else throw("you do not have gWX"), if (if (( | |
427 | - | then ( | |
438 | + | else throw("you do not have gWX"), if (if ((bn > 0)) | |
439 | + | then (bw >= bn) | |
428 | 440 | else false) | |
429 | 441 | then true | |
430 | - | else throw("invalid amount"), if ( | |
442 | + | else throw("invalid amount"), if (by) | |
431 | 443 | then true | |
432 | 444 | else throw("pool hasn't WX_EMISSION label")] | |
433 | - | if (( | |
445 | + | if ((bj == bj)) | |
434 | 446 | then { | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
447 | + | let bz = av(z) | |
448 | + | let P = toString(aT.caller) | |
449 | + | let bA = if (aE(bz, P)) | |
438 | 450 | then nil | |
439 | - | else | |
440 | - | $Tuple2(([IntegerEntry(D( | |
451 | + | else aI(bz, P) | |
452 | + | $Tuple2(([IntegerEntry(D(aT.caller, i), (br + bn)), IntegerEntry(F(z, aT.caller, i), bx), IntegerEntry(H(z, i), (bt + bn)), IntegerEntry(N(i), (bu + bn))] ++ bA), unit) | |
441 | 453 | } | |
442 | 454 | else throw("Strict value is not equal to itself.") | |
443 | 455 | } | |
444 | 456 | ||
445 | 457 | ||
446 | 458 | ||
447 | - | @Callable( | |
459 | + | @Callable(aT) | |
448 | 460 | func cancelVote (B,C) = { | |
449 | 461 | let z = $Tuple2(B, C) | |
450 | 462 | let i = valueOrElse(getInteger(this, j), 0) | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
463 | + | let bo = ac(this, w(i)) | |
464 | + | let bi = ac(this, f) | |
465 | + | let bp = (bo + bi) | |
466 | + | let bq = getInteger(this, p) | |
467 | + | let br = valueOrElse(getInteger(this, D(aT.caller, i)), 0) | |
468 | + | let bs = valueOrElse(getInteger(this, F(z, aT.caller, i)), 0) | |
469 | + | let bt = valueOrElse(getInteger(this, H(z, i)), 0) | |
470 | + | let bu = valueOrElse(getInteger(this, N(i)), 0) | |
471 | + | let bj = [if ((getBoolean(y(z)) != unit)) | |
460 | 472 | then true | |
461 | - | else throw("invalid assets"), if (( | |
473 | + | else throw("invalid assets"), if ((bp > height)) | |
462 | 474 | then true | |
463 | - | else throw("invalid height"), if (( | |
475 | + | else throw("invalid height"), if ((bq == unit)) | |
464 | 476 | then true | |
465 | - | else throw("finalization in progress"), if (( | |
477 | + | else throw("finalization in progress"), if ((bs > 0)) | |
466 | 478 | then true | |
467 | 479 | else throw("no vote")] | |
468 | - | if (( | |
480 | + | if ((bj == bj)) | |
469 | 481 | then { | |
470 | - | let | |
471 | - | let | |
472 | - | $Tuple2(([IntegerEntry(D( | |
482 | + | let bz = av(z) | |
483 | + | let P = toString(aT.caller) | |
484 | + | $Tuple2(([IntegerEntry(D(aT.caller, i), max([(br - bs), 0])), DeleteEntry(F(z, aT.caller, i)), IntegerEntry(H(z, i), (bt - bs)), IntegerEntry(N(i), (bu - bs))] ++ aL(bz, P)), unit) | |
473 | 485 | } | |
474 | 486 | else throw("Strict value is not equal to itself.") | |
475 | 487 | } | |
476 | 488 | ||
477 | 489 | ||
478 | 490 | ||
479 | - | @Callable( | |
480 | - | func setEpochLength ( | |
481 | - | let | |
491 | + | @Callable(aT) | |
492 | + | func setEpochLength (bB) = { | |
493 | + | let bj = [aU(aT), if ((bB > 0)) | |
482 | 494 | then true | |
483 | 495 | else throw("invalid epoch length")] | |
484 | - | if (( | |
485 | - | then $Tuple2([IntegerEntry(g, | |
496 | + | if ((bj == bj)) | |
497 | + | then $Tuple2([IntegerEntry(g, bB)], unit) | |
486 | 498 | else throw("Strict value is not equal to itself.") | |
487 | 499 | } | |
488 | 500 | ||
489 | 501 | ||
490 | 502 | ||
491 | - | @Callable( | |
492 | - | func setMaxDepth ( | |
493 | - | let | |
503 | + | @Callable(aT) | |
504 | + | func setMaxDepth (bC) = { | |
505 | + | let bj = [aU(aT), if ((bC > 0)) | |
494 | 506 | then true | |
495 | 507 | else throw("invalid max depth")] | |
496 | - | if (( | |
497 | - | then $Tuple2([IntegerEntry(k, | |
508 | + | if ((bj == bj)) | |
509 | + | then $Tuple2([IntegerEntry(k, bC)], unit) | |
498 | 510 | else throw("Strict value is not equal to itself.") | |
499 | 511 | } | |
500 | 512 | ||
501 | 513 | ||
502 | 514 | ||
503 | - | @Callable( | |
504 | - | func processVoteINTERNAL ( | |
505 | - | let | |
506 | - | if (( | |
515 | + | @Callable(aT) | |
516 | + | func processVoteINTERNAL (bD,P) = { | |
517 | + | let aX = aS(aT) | |
518 | + | if ((aX == aX)) | |
507 | 519 | then { | |
508 | - | let | |
509 | - | let i = | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
520 | + | let bc = valueOrErrorMessage(addressFromString(P), ("processVoteINTERNAL: invalid user address " + P)) | |
521 | + | let i = ac(this, j) | |
522 | + | let bE = (i - 1) | |
523 | + | let bi = ac(this, f) | |
524 | + | let bo = ac(this, w(i)) | |
525 | + | let bp = (bo + bi) | |
526 | + | let bF = ac(this, w(bE)) | |
527 | + | let bG = ac(this, h(bE)) | |
528 | + | let bH = (bF + bG) | |
529 | + | let bI = if ((bE >= 0)) | |
518 | 530 | then true | |
519 | 531 | else throw("processVoteINTERNAL: invalid previous epoch") | |
520 | - | if (( | |
532 | + | if ((bI == bI)) | |
521 | 533 | then { | |
522 | - | let z = | |
523 | - | let | |
524 | - | let B = | |
525 | - | let C = | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if ($isInstanceOf( | |
530 | - | then | |
531 | - | else throw(($getType( | |
534 | + | let z = ae(bD) | |
535 | + | let bJ = z | |
536 | + | let B = bJ._1 | |
537 | + | let C = bJ._2 | |
538 | + | let by = as(z) | |
539 | + | let bv = { | |
540 | + | let ab = invoke(this, "getUserGwxAmountAtHeight", [P, bp], nil) | |
541 | + | if ($isInstanceOf(ab, "Int")) | |
542 | + | then ab | |
543 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
532 | 544 | } | |
533 | - | let | |
534 | - | let | |
535 | - | if ($isInstanceOf( | |
536 | - | then | |
537 | - | else throw(($getType( | |
545 | + | let bK = { | |
546 | + | let ab = invoke(this, "getUserGwxAmountAtHeight", [P, bH], nil) | |
547 | + | if ($isInstanceOf(ab, "Int")) | |
548 | + | then ab | |
549 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
538 | 550 | } | |
539 | - | let bn = valueOrElse(getInteger(L(i)), 0) | |
540 | - | let bF = valueOrElse(getInteger(H(z, i)), 0) | |
541 | - | let bG = valueOrErrorMessage(getInteger(F(z, aV, by)), (((("processVoteINTERNAL " + bx) + " ") + bt) + ": no previous vote")) | |
542 | - | let bk = valueOrElse(getInteger(this, D(aV, i)), 0) | |
543 | - | let bq = if ((bE > 0)) | |
544 | - | then fraction(bG, bo, bE) | |
551 | + | let bu = valueOrElse(getInteger(N(i)), 0) | |
552 | + | let bL = valueOrElse(getInteger(H(z, i)), 0) | |
553 | + | let bM = valueOrErrorMessage(getInteger(F(z, bc, bE)), (((("processVoteINTERNAL " + bD) + " ") + P) + ": no previous vote")) | |
554 | + | let br = valueOrElse(getInteger(this, D(bc, i)), 0) | |
555 | + | let K = ag(B, C) | |
556 | + | let bN = valueOrElse(getInteger(J(K, bE)), 0) | |
557 | + | let bh = addressFromStringValue(aa(this, o)) | |
558 | + | let bO = valueOrElse(getInteger(bh, O(K, P)), 0) | |
559 | + | let bP = if ((bO == 0)) | |
560 | + | then nil | |
561 | + | else [IntegerEntry(J(K, bE), (bN + bM))] | |
562 | + | let bx = if ((bK > 0)) | |
563 | + | then fraction(bM, bv, bK) | |
545 | 564 | else 0 | |
546 | - | let | |
547 | - | then | |
565 | + | let bQ = if (if ((bx > 0)) | |
566 | + | then by | |
548 | 567 | else false) | |
549 | - | then [IntegerEntry(F(z, | |
550 | - | else | |
551 | - | $Tuple2( | |
568 | + | then [IntegerEntry(F(z, bc, i), bx), IntegerEntry(N(i), (bu + bx)), IntegerEntry(H(z, i), (bL + bx)), IntegerEntry(D(bc, i), (br + bx))] | |
569 | + | else aL(av(z), P) | |
570 | + | $Tuple2((bQ ++ bP), unit) | |
552 | 571 | } | |
553 | 572 | else throw("Strict value is not equal to itself.") | |
554 | 573 | } | |
557 | 576 | ||
558 | 577 | ||
559 | 578 | ||
560 | - | @Callable( | |
561 | - | func processPoolINTERNAL ( | |
562 | - | let | |
563 | - | if (( | |
579 | + | @Callable(aT) | |
580 | + | func processPoolINTERNAL (bD,bR) = { | |
581 | + | let aX = aS(aT) | |
582 | + | if ((aX == aX)) | |
564 | 583 | then { | |
565 | - | let | |
566 | - | let | |
567 | - | if ( | |
568 | - | then | |
569 | - | else ( | |
584 | + | let bS = { | |
585 | + | let bT = ac(this, j) | |
586 | + | if (bR) | |
587 | + | then bT | |
588 | + | else (bT - 1) | |
570 | 589 | } | |
571 | - | let | |
590 | + | let bI = if ((bS >= 0)) | |
572 | 591 | then true | |
573 | 592 | else throw("processPoolINTERNAL: invalid target epoch") | |
574 | - | if (( | |
593 | + | if ((bI == bI)) | |
575 | 594 | then { | |
576 | - | let z = | |
577 | - | let | |
578 | - | let B = | |
579 | - | let C = | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | if ($isInstanceOf( | |
586 | - | then | |
587 | - | else throw(($getType( | |
595 | + | let z = ae(bD) | |
596 | + | let bU = z | |
597 | + | let B = bU._1 | |
598 | + | let C = bU._2 | |
599 | + | let bh = addressFromStringValue(aa(this, o)) | |
600 | + | let ao = addressFromStringValue(aa(this, m)) | |
601 | + | let ar = ag(B, C) | |
602 | + | let bV = { | |
603 | + | let ab = invoke(bh, "usersListTraversal", [ar], nil) | |
604 | + | if ($isInstanceOf(ab, "Boolean")) | |
605 | + | then ab | |
606 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
588 | 607 | } | |
589 | - | if (( | |
590 | - | then if ( | |
608 | + | if ((bV == bV)) | |
609 | + | then if (bV) | |
591 | 610 | then $Tuple2(nil, true) | |
592 | 611 | else { | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
612 | + | let by = as(z) | |
613 | + | let bu = valueOrElse(getInteger(this, N(bS)), 0) | |
614 | + | let bL = valueOrElse(getInteger(this, H(z, bS)), 0) | |
615 | + | let bW = if (if ((bu == 0)) | |
597 | 616 | then true | |
598 | - | else !( | |
617 | + | else !(by)) | |
599 | 618 | then 0 | |
600 | - | else fraction( | |
601 | - | let | |
602 | - | if (( | |
619 | + | else fraction(bL, b, bu) | |
620 | + | let bX = invoke(ao, "modifyWeight", [ar, bW], nil) | |
621 | + | if ((bX == bX)) | |
603 | 622 | then { | |
604 | - | let | |
623 | + | let bY = if (if (by) | |
605 | 624 | then true | |
606 | - | else | |
625 | + | else bR) | |
607 | 626 | then nil | |
608 | - | else ([DeleteEntry(y(z))] ++ | |
609 | - | $Tuple2(([IntegerEntry( | |
627 | + | else ([DeleteEntry(y(z))] ++ aL(au, bD)) | |
628 | + | $Tuple2(([IntegerEntry(L(z, bS), bW)] ++ bY), false) | |
610 | 629 | } | |
611 | 630 | else throw("Strict value is not equal to itself.") | |
612 | 631 | } | |
619 | 638 | ||
620 | 639 | ||
621 | 640 | ||
622 | - | @Callable( | |
641 | + | @Callable(aT) | |
623 | 642 | func finalizeHelper () = { | |
624 | - | let | |
643 | + | let bR = valueOrElse(getBoolean(v), false) | |
625 | 644 | let i = valueOrElse(getInteger(this, j), 0) | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | if (if (if ((height >= | |
632 | - | then ( | |
645 | + | let bZ = (i - 1) | |
646 | + | let bo = ac(this, w(i)) | |
647 | + | let bi = ac(this, f) | |
648 | + | let bp = (bo + bi) | |
649 | + | let bq = getInteger(this, p) | |
650 | + | if (if (if ((height >= bp)) | |
651 | + | then (bq == unit) | |
633 | 652 | else false) | |
634 | - | then !( | |
653 | + | then !(bR) | |
635 | 654 | else false) | |
636 | 655 | then { | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ($isInstanceOf( | |
656 | + | let ca = (i + 1) | |
657 | + | let cb = getInteger(this, g) | |
658 | + | let cc = { | |
659 | + | let X = cb | |
660 | + | if ($isInstanceOf(X, "Int")) | |
642 | 661 | then { | |
643 | - | let | |
644 | - | [IntegerEntry(f, | |
662 | + | let bB = X | |
663 | + | [IntegerEntry(f, bB), DeleteEntry(g)] | |
645 | 664 | } | |
646 | - | else if ($isInstanceOf( | |
665 | + | else if ($isInstanceOf(X, "Unit")) | |
647 | 666 | then nil | |
648 | 667 | else throw("Match error") | |
649 | 668 | } | |
650 | - | $Tuple2(([IntegerEntry(w( | |
669 | + | $Tuple2(([IntegerEntry(w(ca), height), IntegerEntry(s, height), IntegerEntry(j, ca), IntegerEntry(p, d), IntegerEntry(h(i), bi)] ++ cc), true) | |
651 | 670 | } | |
652 | - | else if (if ( | |
653 | - | then ( | |
671 | + | else if (if (bR) | |
672 | + | then (bq == unit) | |
654 | 673 | else false) | |
655 | 674 | then $Tuple2([IntegerEntry(p, e)], true) | |
656 | - | else if (( | |
675 | + | else if ((bq == unit)) | |
657 | 676 | then $Tuple2(nil, false) | |
658 | - | else if (( | |
677 | + | else if ((bq == d)) | |
659 | 678 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | if ($isInstanceOf( | |
679 | + | let cd = getString(q) | |
680 | + | let ce = getString(r) | |
681 | + | let X = cd | |
682 | + | if ($isInstanceOf(X, "Unit")) | |
664 | 683 | then { | |
665 | - | let | |
666 | - | if ($isInstanceOf( | |
684 | + | let cf = getString(ax(au)) | |
685 | + | if ($isInstanceOf(cf, "Unit")) | |
667 | 686 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
668 | - | else if ($isInstanceOf( | |
687 | + | else if ($isInstanceOf(cf, "String")) | |
669 | 688 | then { | |
670 | - | let | |
671 | - | $Tuple2([StringEntry(q, | |
689 | + | let cg = cf | |
690 | + | $Tuple2([StringEntry(q, cg)], true) | |
672 | 691 | } | |
673 | 692 | else throw("Match error") | |
674 | 693 | } | |
675 | - | else if ($isInstanceOf( | |
694 | + | else if ($isInstanceOf(X, "String")) | |
676 | 695 | then { | |
677 | - | let | |
678 | - | let z = | |
679 | - | let | |
680 | - | let | |
681 | - | if ($isInstanceOf( | |
682 | - | then getString( | |
683 | - | else if ($isInstanceOf( | |
696 | + | let bD = X | |
697 | + | let z = ae(bD) | |
698 | + | let ch = { | |
699 | + | let cf = ce | |
700 | + | if ($isInstanceOf(cf, "Unit")) | |
701 | + | then getString(ax(av(z))) | |
702 | + | else if ($isInstanceOf(cf, "String")) | |
684 | 703 | then { | |
685 | - | let | |
686 | - | let | |
687 | - | if (( | |
704 | + | let ci = cf | |
705 | + | let cj = getString(aD(av(z), ci)) | |
706 | + | if ((cj == cj)) | |
688 | 707 | then { | |
689 | - | let | |
690 | - | if (( | |
691 | - | then | |
708 | + | let ck = invoke(this, "processVoteINTERNAL", [bD, ci], nil) | |
709 | + | if ((ck == ck)) | |
710 | + | then cj | |
692 | 711 | else throw("Strict value is not equal to itself.") | |
693 | 712 | } | |
694 | 713 | else throw("Strict value is not equal to itself.") | |
695 | 714 | } | |
696 | 715 | else throw("Match error") | |
697 | 716 | } | |
698 | - | let | |
699 | - | if ($isInstanceOf( | |
717 | + | let cf = ch | |
718 | + | if ($isInstanceOf(cf, "Unit")) | |
700 | 719 | then { | |
701 | - | let | |
702 | - | let | |
703 | - | if ($isInstanceOf( | |
720 | + | let cl = getString(aD(au, bD)) | |
721 | + | let cm = cl | |
722 | + | if ($isInstanceOf(cm, "Unit")) | |
704 | 723 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
705 | - | else if ($isInstanceOf( | |
724 | + | else if ($isInstanceOf(cm, "String")) | |
706 | 725 | then { | |
707 | - | let | |
708 | - | $Tuple2([StringEntry(q, | |
726 | + | let aP = cm | |
727 | + | $Tuple2([StringEntry(q, aP), DeleteEntry(r)], true) | |
709 | 728 | } | |
710 | 729 | else throw("Match error") | |
711 | 730 | } | |
712 | - | else if ($isInstanceOf( | |
731 | + | else if ($isInstanceOf(cf, "String")) | |
713 | 732 | then { | |
714 | - | let | |
715 | - | $Tuple2([StringEntry(r, | |
733 | + | let cn = cf | |
734 | + | $Tuple2([StringEntry(r, cn)], true) | |
716 | 735 | } | |
717 | 736 | else throw("Match error") | |
718 | 737 | } | |
719 | 738 | else throw("Match error") | |
720 | 739 | } | |
721 | - | else if (( | |
740 | + | else if ((bq == e)) | |
722 | 741 | then { | |
723 | - | let | |
724 | - | let | |
725 | - | if ($isInstanceOf( | |
742 | + | let cd = getString(q) | |
743 | + | let X = cd | |
744 | + | if ($isInstanceOf(X, "Unit")) | |
726 | 745 | then { | |
727 | - | let | |
728 | - | if ($isInstanceOf( | |
746 | + | let cf = getString(ax(au)) | |
747 | + | if ($isInstanceOf(cf, "Unit")) | |
729 | 748 | then { | |
730 | - | let | |
749 | + | let bQ = if (bR) | |
731 | 750 | then [DeleteEntry(p), DeleteEntry(v)] | |
732 | - | else [DeleteEntry(p), BooleanEntry(x( | |
733 | - | $Tuple2( | |
751 | + | else [DeleteEntry(p), BooleanEntry(x(bZ), true), IntegerEntry(t, i), IntegerEntry(u, bo)] | |
752 | + | $Tuple2(bQ, true) | |
734 | 753 | } | |
735 | - | else if ($isInstanceOf( | |
754 | + | else if ($isInstanceOf(cf, "String")) | |
736 | 755 | then { | |
737 | - | let | |
738 | - | $Tuple2([StringEntry(q, | |
756 | + | let co = cf | |
757 | + | $Tuple2([StringEntry(q, co)], true) | |
739 | 758 | } | |
740 | 759 | else throw("Match error") | |
741 | 760 | } | |
742 | - | else if ($isInstanceOf( | |
761 | + | else if ($isInstanceOf(X, "String")) | |
743 | 762 | then { | |
744 | - | let | |
745 | - | let | |
746 | - | if (( | |
763 | + | let bD = X | |
764 | + | let cl = getString(aD(au, bD)) | |
765 | + | if ((cl == cl)) | |
747 | 766 | then { | |
748 | - | let | |
749 | - | let | |
750 | - | if ($isInstanceOf( | |
751 | - | then | |
752 | - | else throw(($getType( | |
767 | + | let bV = { | |
768 | + | let ab = invoke(this, "processPoolINTERNAL", [bD, bR], nil) | |
769 | + | if ($isInstanceOf(ab, "Boolean")) | |
770 | + | then ab | |
771 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
753 | 772 | } | |
754 | - | if (( | |
755 | - | then if ( | |
773 | + | if ((bV == bV)) | |
774 | + | then if (bV) | |
756 | 775 | then $Tuple2(nil, true) | |
757 | 776 | else { | |
758 | - | let | |
759 | - | if ($isInstanceOf( | |
777 | + | let cf = cl | |
778 | + | if ($isInstanceOf(cf, "Unit")) | |
760 | 779 | then { | |
761 | - | let | |
780 | + | let bQ = if (bR) | |
762 | 781 | then [DeleteEntry(p), DeleteEntry(v), DeleteEntry(q)] | |
763 | - | else [DeleteEntry(p), BooleanEntry(x( | |
764 | - | $Tuple2( | |
782 | + | else [DeleteEntry(p), BooleanEntry(x(bZ), true), IntegerEntry(t, i), IntegerEntry(u, bo), DeleteEntry(q)] | |
783 | + | $Tuple2(bQ, true) | |
765 | 784 | } | |
766 | - | else if ($isInstanceOf( | |
785 | + | else if ($isInstanceOf(cf, "String")) | |
767 | 786 | then { | |
768 | - | let | |
769 | - | $Tuple2([StringEntry(q, | |
787 | + | let co = cf | |
788 | + | $Tuple2([StringEntry(q, co)], true) | |
770 | 789 | } | |
771 | 790 | else throw("Match error") | |
772 | 791 | } | |
781 | 800 | ||
782 | 801 | ||
783 | 802 | ||
784 | - | @Callable( | |
785 | - | func finalizeWrapper ( | |
786 | - | let | |
787 | - | let | |
788 | - | if ($isInstanceOf( | |
789 | - | then | |
790 | - | else throw(($getType( | |
803 | + | @Callable(aT) | |
804 | + | func finalizeWrapper (cp) = { | |
805 | + | let cq = { | |
806 | + | let ab = invoke(this, "finalizeHelper", nil, nil) | |
807 | + | if ($isInstanceOf(ab, "Boolean")) | |
808 | + | then ab | |
809 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
791 | 810 | } | |
792 | - | if (( | |
793 | - | then if (!( | |
794 | - | then if (( | |
811 | + | if ((cq == cq)) | |
812 | + | then if (!(cq)) | |
813 | + | then if ((cp == 0)) | |
795 | 814 | then throw("Current voting is not over yet") | |
796 | 815 | else $Tuple2(nil, unit) | |
797 | 816 | else { | |
798 | - | let | |
799 | - | if (( | |
817 | + | let cr = valueOrElse(getInteger(this, k), c) | |
818 | + | if ((cr > cp)) | |
800 | 819 | then { | |
801 | - | let | |
802 | - | if (( | |
820 | + | let cs = invoke(this, "finalizeWrapper", [(cp + 1)], nil) | |
821 | + | if ((cs == cs)) | |
803 | 822 | then $Tuple2(nil, unit) | |
804 | 823 | else throw("Strict value is not equal to itself.") | |
805 | 824 | } | |
810 | 829 | ||
811 | 830 | ||
812 | 831 | ||
813 | - | @Callable( | |
832 | + | @Callable(aT) | |
814 | 833 | func finalize () = { | |
815 | - | let | |
816 | - | if (( | |
834 | + | let cs = invoke(this, "finalizeWrapper", [0], nil) | |
835 | + | if ((cs == cs)) | |
817 | 836 | then $Tuple2(nil, unit) | |
818 | 837 | else throw("Strict value is not equal to itself.") | |
819 | 838 | } | |
820 | 839 | ||
821 | 840 | ||
822 | 841 | ||
823 | - | @Callable( | |
824 | - | func containsNodeREADONLY ( | |
842 | + | @Callable(aT) | |
843 | + | func containsNodeREADONLY (ay,aC) = $Tuple2(nil, aE(ay, aC)) | |
825 | 844 | ||
826 | 845 | ||
827 | 846 | ||
828 | - | @Callable( | |
829 | - | func insertNode ( | |
830 | - | let | |
831 | - | if (( | |
832 | - | then $Tuple2( | |
847 | + | @Callable(aT) | |
848 | + | func insertNode (ay,aC) = { | |
849 | + | let aX = aU(aT) | |
850 | + | if ((aX == aX)) | |
851 | + | then $Tuple2(aI(ay, aC), unit) | |
833 | 852 | else throw("Strict value is not equal to itself.") | |
834 | 853 | } | |
835 | 854 | ||
836 | 855 | ||
837 | 856 | ||
838 | - | @Callable( | |
839 | - | func deleteNode ( | |
840 | - | let | |
841 | - | if (( | |
842 | - | then $Tuple2( | |
857 | + | @Callable(aT) | |
858 | + | func deleteNode (ay,aC) = { | |
859 | + | let aX = aU(aT) | |
860 | + | if ((aX == aX)) | |
861 | + | then $Tuple2(aL(ay, aC), unit) | |
843 | 862 | else throw("Strict value is not equal to itself.") | |
844 | 863 | } | |
845 | 864 | ||
846 | 865 | ||
847 | - | @Verifier( | |
848 | - | func | |
849 | - | let | |
850 | - | let | |
851 | - | if ($isInstanceOf( | |
866 | + | @Verifier(ct) | |
867 | + | func cu () = { | |
868 | + | let cv = { | |
869 | + | let X = aO() | |
870 | + | if ($isInstanceOf(X, "ByteVector")) | |
852 | 871 | then { | |
853 | - | let | |
854 | - | | |
872 | + | let aV = X | |
873 | + | aV | |
855 | 874 | } | |
856 | - | else if ($isInstanceOf( | |
857 | - | then | |
875 | + | else if ($isInstanceOf(X, "Unit")) | |
876 | + | then ct.senderPublicKey | |
858 | 877 | else throw("Match error") | |
859 | 878 | } | |
860 | - | sigVerify( | |
879 | + | sigVerify(ct.bodyBytes, ct.proofs[0], cv) | |
861 | 880 | } | |
862 | 881 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | 10 | let d = 0 | |
11 | 11 | ||
12 | 12 | let e = 1 | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "epochLength"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s%s", "epochLength__new"], a) | |
17 | 17 | ||
18 | 18 | func h (i) = makeString(["%s%d", "epochLength", toString(i)], a) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let j = makeString(["%s", "currentEpoch"], a) | |
22 | 22 | ||
23 | 23 | let k = makeString(["%s", "maxDepth"], a) | |
24 | 24 | ||
25 | 25 | let l = makeString(["%s", "votingEmissionCandidateContract"], a) | |
26 | 26 | ||
27 | 27 | let m = makeString(["%s", "factoryContract"], a) | |
28 | 28 | ||
29 | 29 | let n = makeString(["%s", "boostingContract"], a) | |
30 | 30 | ||
31 | 31 | let o = makeString(["%s", "stakingContract"], a) | |
32 | 32 | ||
33 | 33 | let p = makeString(["%s", "finalizationStage"], a) | |
34 | 34 | ||
35 | 35 | let q = makeString(["%s", "nextPool"], a) | |
36 | 36 | ||
37 | 37 | let r = makeString(["%s", "nextUser"], a) | |
38 | 38 | ||
39 | 39 | let s = makeString(["%s", "startHeight"], a) | |
40 | 40 | ||
41 | 41 | let t = makeString(["%s", "currentEpochUi"], a) | |
42 | 42 | ||
43 | 43 | let u = makeString(["%s", "startHeightUi"], a) | |
44 | 44 | ||
45 | 45 | let v = makeString(["%s", "force"], a) | |
46 | 46 | ||
47 | 47 | func w (i) = makeString(["%s%d", "startHeight", toString(i)], a) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (i) = makeString(["%s%d", "finalized", toString(i)], a) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (z) = { | |
54 | 54 | let A = z | |
55 | 55 | let B = A._1 | |
56 | 56 | let C = A._2 | |
57 | 57 | makeString(["%s%s%s", "inList", B, C], a) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func D (E,i) = makeString(["%s%s%d", "used", toString(E), toString(i)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func F (z,E,i) = { | |
65 | 65 | let G = z | |
66 | 66 | let B = G._1 | |
67 | 67 | let C = G._2 | |
68 | 68 | makeString(["%s%s%s%s%d", "vote", B, C, toString(E), toString(i)], a) | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func H (z,i) = { | |
73 | 73 | let I = z | |
74 | 74 | let B = I._1 | |
75 | 75 | let C = I._2 | |
76 | 76 | makeString(["%s%s%s%d", "votingResult", B, C, toString(i)], a) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | - | func J (z,i) = { | |
81 | - | let K = z | |
82 | - | let B = K._1 | |
83 | - | let C = K._2 | |
80 | + | func J (K,i) = makeString(["%s%s%d", "votingResultStaked", K, toString(i)], a) | |
81 | + | ||
82 | + | ||
83 | + | func L (z,i) = { | |
84 | + | let M = z | |
85 | + | let B = M._1 | |
86 | + | let C = M._2 | |
84 | 87 | makeString(["%s%s%s%d", "poolShare", B, C, toString(i)], a) | |
85 | 88 | } | |
86 | 89 | ||
87 | 90 | ||
88 | - | func | |
91 | + | func N (i) = makeString(["%s%d", "totalVotes", toString(i)], a) | |
89 | 92 | ||
90 | 93 | ||
91 | - | func M (E,N,O) = { | |
92 | - | let P = makeString(["mandatory ", toString(E), ".", N, " is not defined"], "") | |
94 | + | func O (K,P) = makeString(["%s%s%s", "staked", P, K], a) | |
95 | + | ||
96 | + | ||
97 | + | func Q (R) = makeString(["voting_emission.ride:", R], " ") | |
98 | + | ||
99 | + | ||
100 | + | func S (R) = throw(Q(R)) | |
101 | + | ||
102 | + | ||
103 | + | func T (E,U,V) = { | |
104 | + | let W = makeString(["mandatory ", toString(E), ".", U, " is not defined"], "") | |
93 | 105 | valueOrErrorMessage({ | |
94 | - | let | |
95 | - | if ($isInstanceOf( | |
106 | + | let X = V | |
107 | + | if ($isInstanceOf(X, "String")) | |
96 | 108 | then { | |
97 | - | let | |
98 | - | getString(E, | |
109 | + | let Y = X | |
110 | + | getString(E, U) | |
99 | 111 | } | |
100 | - | else if ($isInstanceOf( | |
112 | + | else if ($isInstanceOf(X, "Int")) | |
101 | 113 | then { | |
102 | - | let | |
103 | - | getInteger(E, | |
114 | + | let Z = X | |
115 | + | getInteger(E, U) | |
104 | 116 | } | |
105 | 117 | else throw("invalid entry type") | |
106 | - | }, | |
118 | + | }, W) | |
107 | 119 | } | |
108 | 120 | ||
109 | 121 | ||
110 | - | func | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
113 | - | then | |
114 | - | else throw(($getType( | |
122 | + | func aa (E,U) = { | |
123 | + | let ab = T(E, U, "") | |
124 | + | if ($isInstanceOf(ab, "String")) | |
125 | + | then ab | |
126 | + | else throw(($getType(ab) + " couldn't be cast to String")) | |
115 | 127 | } | |
116 | 128 | ||
117 | 129 | ||
118 | - | func | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
121 | - | then | |
122 | - | else throw(($getType( | |
130 | + | func ac (E,U) = { | |
131 | + | let ab = T(E, U, 0) | |
132 | + | if ($isInstanceOf(ab, "Int")) | |
133 | + | then ab | |
134 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
123 | 135 | } | |
124 | 136 | ||
125 | 137 | ||
126 | - | func | |
138 | + | func ad (z) = ((z._1 + a) + z._2) | |
127 | 139 | ||
128 | 140 | ||
129 | - | func | |
130 | - | let | |
131 | - | if ((size( | |
132 | - | then $Tuple2( | |
141 | + | func ae (Y) = { | |
142 | + | let af = split(Y, a) | |
143 | + | if ((size(af) == 2)) | |
144 | + | then $Tuple2(af[0], af[1]) | |
133 | 145 | else throw("invalid pool string") | |
134 | 146 | } | |
135 | 147 | ||
136 | 148 | ||
137 | - | func | |
138 | - | func | |
149 | + | func ag (B,C) = { | |
150 | + | func ah (ai) = ("%s%s%s__mappings__baseAsset2internalId__" + ai) | |
139 | 151 | ||
140 | - | func | |
152 | + | func aj (ak,al) = (((("%d%d%s%s__" + toString(ak)) + "__") + toString(al)) + "__mappings__poolAssets2PoolContract") | |
141 | 153 | ||
142 | - | func | |
154 | + | func am (an) = (("%s%s%s__" + an) + "__mappings__poolContract2LpAsset") | |
143 | 155 | ||
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | | |
156 | + | let ao = addressFromStringValue(aa(this, m)) | |
157 | + | let ap = ac(ao, ah(B)) | |
158 | + | let aq = ac(ao, ah(C)) | |
159 | + | let an = aa(ao, aj(ap, aq)) | |
160 | + | let ar = aa(ao, am(an)) | |
161 | + | ar | |
150 | 162 | } | |
151 | 163 | ||
152 | 164 | ||
153 | - | func | |
154 | - | let | |
155 | - | let B = | |
156 | - | let C = | |
157 | - | let | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
160 | - | then | |
161 | - | else throw(($getType( | |
165 | + | func as (z) = { | |
166 | + | let at = z | |
167 | + | let B = at._1 | |
168 | + | let C = at._2 | |
169 | + | let ao = addressFromStringValue(aa(this, m)) | |
170 | + | let ab = invoke(ao, "checkWxEmissionPoolLabel", [B, C], nil) | |
171 | + | if ($isInstanceOf(ab, "Boolean")) | |
172 | + | then ab | |
173 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
162 | 174 | } | |
163 | 175 | ||
164 | 176 | ||
165 | - | let | |
177 | + | let au = "pools" | |
166 | 178 | ||
167 | - | func | |
168 | - | let | |
169 | - | let B = | |
170 | - | let C = | |
179 | + | func av (z) = { | |
180 | + | let aw = z | |
181 | + | let B = aw._1 | |
182 | + | let C = aw._2 | |
171 | 183 | makeString(["votes", B, C], a) | |
172 | 184 | } | |
173 | 185 | ||
174 | 186 | ||
175 | - | func | |
176 | - | let | |
187 | + | func ax (ay) = { | |
188 | + | let az = if ((ay == au)) | |
177 | 189 | then "%s%s" | |
178 | 190 | else "%s%s%s%s" | |
179 | - | makeString([ | |
191 | + | makeString([az, ay, "head"], a) | |
180 | 192 | } | |
181 | 193 | ||
182 | 194 | ||
183 | - | func | |
184 | - | let | |
195 | + | func aA (ay) = { | |
196 | + | let az = if ((ay == au)) | |
185 | 197 | then "%s%s" | |
186 | 198 | else "%s%s%s%s" | |
187 | - | makeString([ | |
199 | + | makeString([az, ay, "size"], a) | |
188 | 200 | } | |
189 | 201 | ||
190 | 202 | ||
191 | - | func | |
192 | - | let | |
203 | + | func aB (ay,aC) = { | |
204 | + | let az = if ((ay == au)) | |
193 | 205 | then "%s%s%s%s" | |
194 | 206 | else "%s%s%s%s%s" | |
195 | - | makeString([ | |
207 | + | makeString([az, ay, aC, "prev"], a) | |
196 | 208 | } | |
197 | 209 | ||
198 | 210 | ||
199 | - | func | |
200 | - | let | |
211 | + | func aD (ay,aC) = { | |
212 | + | let az = if ((ay == au)) | |
201 | 213 | then "%s%s%s%s" | |
202 | 214 | else "%s%s%s%s%s" | |
203 | - | makeString([ | |
215 | + | makeString([az, ay, aC, "next"], a) | |
204 | 216 | } | |
205 | 217 | ||
206 | 218 | ||
207 | - | func | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (if (( | |
219 | + | func aE (ay,aC) = { | |
220 | + | let aF = getString(this, ax(ay)) | |
221 | + | let aG = getString(this, aB(ay, aC)) | |
222 | + | let aH = getString(this, aD(ay, aC)) | |
223 | + | if (if ((aC == valueOrElse(aF, ""))) | |
212 | 224 | then true | |
213 | - | else ( | |
225 | + | else (aG != unit)) | |
214 | 226 | then true | |
215 | - | else ( | |
227 | + | else (aH != unit) | |
216 | 228 | } | |
217 | 229 | ||
218 | 230 | ||
219 | - | func | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
231 | + | func aI (ay,aC) = { | |
232 | + | let aF = getString(this, ax(ay)) | |
233 | + | let aJ = valueOrElse(getInteger(this, aA(ay)), 0) | |
234 | + | let aK = if (!(aE(ay, aC))) | |
223 | 235 | then true | |
224 | 236 | else throw("Node exists") | |
225 | - | if (( | |
226 | - | then (([IntegerEntry( | |
227 | - | then [StringEntry( | |
228 | - | else nil)) ++ [StringEntry( | |
237 | + | if ((aK == aK)) | |
238 | + | then (([IntegerEntry(aA(ay), (aJ + 1))] ++ (if ((aF != unit)) | |
239 | + | then [StringEntry(aD(ay, aC), value(aF)), StringEntry(aB(ay, value(aF)), aC)] | |
240 | + | else nil)) ++ [StringEntry(ax(ay), aC)]) | |
229 | 241 | else throw("Strict value is not equal to itself.") | |
230 | 242 | } | |
231 | 243 | ||
232 | 244 | ||
233 | - | func | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | ([IntegerEntry( | |
239 | - | then ( | |
245 | + | func aL (ay,aC) = { | |
246 | + | let aF = getString(this, ax(ay)) | |
247 | + | let aJ = valueOrElse(getInteger(this, aA(ay)), 0) | |
248 | + | let aG = getString(this, aB(ay, aC)) | |
249 | + | let aH = getString(this, aD(ay, aC)) | |
250 | + | ([IntegerEntry(aA(ay), (aJ - 1))] ++ (if (if ((aG != unit)) | |
251 | + | then (aH != unit) | |
240 | 252 | else false) | |
241 | - | then [StringEntry( | |
242 | - | else if (( | |
243 | - | then [StringEntry( | |
244 | - | else if (( | |
245 | - | then [DeleteEntry( | |
246 | - | else if (( | |
247 | - | then [DeleteEntry( | |
248 | - | else throw(((("invalid node: " + | |
253 | + | then [StringEntry(aD(ay, value(aG)), value(aH)), StringEntry(aB(ay, value(aH)), value(aG)), DeleteEntry(aB(ay, aC)), DeleteEntry(aD(ay, aC))] | |
254 | + | else if ((aH != unit)) | |
255 | + | then [StringEntry(ax(ay), value(aH)), DeleteEntry(aD(ay, aC)), DeleteEntry(aB(ay, value(aH)))] | |
256 | + | else if ((aG != unit)) | |
257 | + | then [DeleteEntry(aB(ay, aC)), DeleteEntry(aD(ay, value(aG)))] | |
258 | + | else if ((aC == valueOrElse(aF, ""))) | |
259 | + | then [DeleteEntry(ax(ay))] | |
260 | + | else throw(((("invalid node: " + ay) + ".") + aC)))) | |
249 | 261 | } | |
250 | 262 | ||
251 | 263 | ||
252 | - | func | |
264 | + | func aM () = "%s__managerPublicKey" | |
253 | 265 | ||
254 | 266 | ||
255 | - | func | |
267 | + | func aN () = "%s__pendingManagerPublicKey" | |
256 | 268 | ||
257 | 269 | ||
258 | - | func | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
270 | + | func aO () = { | |
271 | + | let X = getString(aM()) | |
272 | + | if ($isInstanceOf(X, "String")) | |
261 | 273 | then { | |
262 | - | let | |
263 | - | fromBase58String( | |
274 | + | let aP = X | |
275 | + | fromBase58String(aP) | |
264 | 276 | } | |
265 | - | else if ($isInstanceOf( | |
277 | + | else if ($isInstanceOf(X, "Unit")) | |
266 | 278 | then unit | |
267 | 279 | else throw("Match error") | |
268 | 280 | } | |
269 | 281 | ||
270 | 282 | ||
271 | - | func | |
272 | - | let | |
273 | - | if ($isInstanceOf( | |
283 | + | func aQ () = { | |
284 | + | let X = getString(aN()) | |
285 | + | if ($isInstanceOf(X, "String")) | |
274 | 286 | then { | |
275 | - | let | |
276 | - | fromBase58String( | |
287 | + | let aP = X | |
288 | + | fromBase58String(aP) | |
277 | 289 | } | |
278 | - | else if ($isInstanceOf( | |
290 | + | else if ($isInstanceOf(X, "Unit")) | |
279 | 291 | then unit | |
280 | 292 | else throw("Match error") | |
281 | 293 | } | |
282 | 294 | ||
283 | 295 | ||
284 | - | let | |
296 | + | let aR = throw("Permission denied") | |
285 | 297 | ||
286 | - | func | |
298 | + | func aS (aT) = if ((aT.caller == this)) | |
287 | 299 | then true | |
288 | - | else | |
300 | + | else aR | |
289 | 301 | ||
290 | 302 | ||
291 | - | func | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
303 | + | func aU (aT) = { | |
304 | + | let X = aO() | |
305 | + | if ($isInstanceOf(X, "ByteVector")) | |
294 | 306 | then { | |
295 | - | let | |
296 | - | if (( | |
307 | + | let aV = X | |
308 | + | if ((aT.callerPublicKey == aV)) | |
297 | 309 | then true | |
298 | - | else | |
310 | + | else aR | |
299 | 311 | } | |
300 | - | else if ($isInstanceOf( | |
301 | - | then | |
312 | + | else if ($isInstanceOf(X, "Unit")) | |
313 | + | then aS(aT) | |
302 | 314 | else throw("Match error") | |
303 | 315 | } | |
304 | 316 | ||
305 | 317 | ||
306 | - | @Callable( | |
307 | - | func setManager ( | |
308 | - | let | |
309 | - | if (( | |
318 | + | @Callable(aT) | |
319 | + | func setManager (aW) = { | |
320 | + | let aX = aU(aT) | |
321 | + | if ((aX == aX)) | |
310 | 322 | then { | |
311 | - | let | |
312 | - | if (( | |
313 | - | then [StringEntry( | |
323 | + | let aY = fromBase58String(aW) | |
324 | + | if ((aY == aY)) | |
325 | + | then [StringEntry(aN(), aW)] | |
314 | 326 | else throw("Strict value is not equal to itself.") | |
315 | 327 | } | |
316 | 328 | else throw("Strict value is not equal to itself.") | |
317 | 329 | } | |
318 | 330 | ||
319 | 331 | ||
320 | 332 | ||
321 | - | @Callable( | |
333 | + | @Callable(aT) | |
322 | 334 | func confirmManager () = { | |
323 | - | let | |
324 | - | let | |
335 | + | let aZ = aQ() | |
336 | + | let ba = if (isDefined(aZ)) | |
325 | 337 | then true | |
326 | 338 | else throw("No pending manager") | |
327 | - | if (( | |
339 | + | if ((ba == ba)) | |
328 | 340 | then { | |
329 | - | let | |
341 | + | let bb = if ((aT.callerPublicKey == value(aZ))) | |
330 | 342 | then true | |
331 | 343 | else throw("You are not pending manager") | |
332 | - | if (( | |
333 | - | then [StringEntry( | |
344 | + | if ((bb == bb)) | |
345 | + | then [StringEntry(aM(), toBase58String(value(aZ))), DeleteEntry(aN())] | |
334 | 346 | else throw("Strict value is not equal to itself.") | |
335 | 347 | } | |
336 | 348 | else throw("Strict value is not equal to itself.") | |
337 | 349 | } | |
338 | 350 | ||
339 | 351 | ||
340 | 352 | ||
341 | - | @Callable( | |
342 | - | func getUserGwxAmountAtHeight ( | |
343 | - | let | |
353 | + | @Callable(aT) | |
354 | + | func getUserGwxAmountAtHeight (bc,bd) = { | |
355 | + | let be = valueOrErrorMessage(addressFromString(aa(this, n)), "invalid boosting contract address") | |
344 | 356 | $Tuple2(nil, { | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
347 | - | then | |
348 | - | else throw(($getType( | |
357 | + | let ab = invoke(be, "getUserGwxAmountAtHeightREADONLY", [bc, bd], nil) | |
358 | + | if ($isInstanceOf(ab, "Int")) | |
359 | + | then ab | |
360 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
349 | 361 | }) | |
350 | 362 | } | |
351 | 363 | ||
352 | 364 | ||
353 | 365 | ||
354 | - | @Callable( | |
355 | - | func constructor ( | |
356 | - | let | |
366 | + | @Callable(aT) | |
367 | + | func constructor (ao,bf,bg,bh,bi) = { | |
368 | + | let bj = [aU(aT), if ((addressFromString(ao) != unit)) | |
357 | 369 | then true | |
358 | - | else "invalid factory contract address", if ((addressFromString( | |
370 | + | else "invalid factory contract address", if ((addressFromString(bf) != unit)) | |
359 | 371 | then true | |
360 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
372 | + | else "invalid voting emission candidate contract address", if ((addressFromString(bg) != unit)) | |
361 | 373 | then true | |
362 | - | else "invalid boosting contract address", if ((addressFromString( | |
374 | + | else "invalid boosting contract address", if ((addressFromString(bh) != unit)) | |
363 | 375 | then true | |
364 | - | else "invalid staking contract address", if (( | |
376 | + | else "invalid staking contract address", if ((bi > 0)) | |
365 | 377 | then true | |
366 | 378 | else throw("invalid epoch length")] | |
367 | - | if (( | |
368 | - | then $Tuple2([StringEntry(m, | |
379 | + | if ((bj == bj)) | |
380 | + | then $Tuple2([StringEntry(m, ao), StringEntry(l, bf), StringEntry(n, bg), StringEntry(o, bh), IntegerEntry(f, bi)], unit) | |
369 | 381 | else throw("Strict value is not equal to itself.") | |
370 | 382 | } | |
371 | 383 | ||
372 | 384 | ||
373 | 385 | ||
374 | - | @Callable( | |
386 | + | @Callable(aT) | |
375 | 387 | func create (B,C) = { | |
376 | - | let | |
388 | + | let bj = [if ((toBase58String(aT.caller.bytes) == valueOrElse(getString(this, l), ""))) | |
377 | 389 | then true | |
378 | - | else | |
379 | - | if (( | |
390 | + | else aU(aT)] | |
391 | + | if ((bj == bj)) | |
380 | 392 | then { | |
381 | 393 | let z = $Tuple2(B, C) | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
394 | + | let bk = ([BooleanEntry(y(z), true)] ++ aI(au, ad(z))) | |
395 | + | let bl = (getInteger(this, j) == unit) | |
396 | + | let bm = if (bl) | |
385 | 397 | then { | |
386 | 398 | let i = 0 | |
387 | 399 | [IntegerEntry(j, i), IntegerEntry(w(i), height), IntegerEntry(s, height), IntegerEntry(t, i), IntegerEntry(u, height)] | |
388 | 400 | } | |
389 | 401 | else nil | |
390 | - | $Tuple2(( | |
402 | + | $Tuple2((bk ++ bm), unit) | |
391 | 403 | } | |
392 | 404 | else throw("Strict value is not equal to itself.") | |
393 | 405 | } | |
394 | 406 | ||
395 | 407 | ||
396 | 408 | ||
397 | - | @Callable( | |
398 | - | func vote (B,C, | |
409 | + | @Callable(aT) | |
410 | + | func vote (B,C,bn) = { | |
399 | 411 | let z = $Tuple2(B, C) | |
400 | 412 | let i = valueOrElse(getInteger(this, j), 0) | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | if ($isInstanceOf( | |
412 | - | then | |
413 | - | else throw(($getType( | |
413 | + | let bo = ac(this, w(i)) | |
414 | + | let bi = ac(this, f) | |
415 | + | let bp = (bo + bi) | |
416 | + | let bq = getInteger(this, p) | |
417 | + | let br = valueOrElse(getInteger(this, D(aT.caller, i)), 0) | |
418 | + | let bs = valueOrElse(getInteger(this, F(z, aT.caller, i)), 0) | |
419 | + | let bt = valueOrElse(getInteger(this, H(z, i)), 0) | |
420 | + | let bu = valueOrElse(getInteger(this, N(i)), 0) | |
421 | + | let bv = { | |
422 | + | let ab = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(aT.caller.bytes), bp], nil) | |
423 | + | if ($isInstanceOf(ab, "Int")) | |
424 | + | then ab | |
425 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
414 | 426 | } | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
427 | + | let bw = (bv - br) | |
428 | + | let bx = (bs + bn) | |
429 | + | let by = as(z) | |
430 | + | let bj = [if ((getBoolean(y(z)) != unit)) | |
419 | 431 | then true | |
420 | - | else throw("invalid assets"), if (( | |
432 | + | else throw("invalid assets"), if ((bp > height)) | |
421 | 433 | then true | |
422 | - | else throw("invalid height"), if (( | |
434 | + | else throw("invalid height"), if ((bq == unit)) | |
423 | 435 | then true | |
424 | - | else throw("finalization in progress"), if (( | |
436 | + | else throw("finalization in progress"), if ((bv > 0)) | |
425 | 437 | then true | |
426 | - | else throw("you do not have gWX"), if (if (( | |
427 | - | then ( | |
438 | + | else throw("you do not have gWX"), if (if ((bn > 0)) | |
439 | + | then (bw >= bn) | |
428 | 440 | else false) | |
429 | 441 | then true | |
430 | - | else throw("invalid amount"), if ( | |
442 | + | else throw("invalid amount"), if (by) | |
431 | 443 | then true | |
432 | 444 | else throw("pool hasn't WX_EMISSION label")] | |
433 | - | if (( | |
445 | + | if ((bj == bj)) | |
434 | 446 | then { | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
447 | + | let bz = av(z) | |
448 | + | let P = toString(aT.caller) | |
449 | + | let bA = if (aE(bz, P)) | |
438 | 450 | then nil | |
439 | - | else | |
440 | - | $Tuple2(([IntegerEntry(D( | |
451 | + | else aI(bz, P) | |
452 | + | $Tuple2(([IntegerEntry(D(aT.caller, i), (br + bn)), IntegerEntry(F(z, aT.caller, i), bx), IntegerEntry(H(z, i), (bt + bn)), IntegerEntry(N(i), (bu + bn))] ++ bA), unit) | |
441 | 453 | } | |
442 | 454 | else throw("Strict value is not equal to itself.") | |
443 | 455 | } | |
444 | 456 | ||
445 | 457 | ||
446 | 458 | ||
447 | - | @Callable( | |
459 | + | @Callable(aT) | |
448 | 460 | func cancelVote (B,C) = { | |
449 | 461 | let z = $Tuple2(B, C) | |
450 | 462 | let i = valueOrElse(getInteger(this, j), 0) | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
463 | + | let bo = ac(this, w(i)) | |
464 | + | let bi = ac(this, f) | |
465 | + | let bp = (bo + bi) | |
466 | + | let bq = getInteger(this, p) | |
467 | + | let br = valueOrElse(getInteger(this, D(aT.caller, i)), 0) | |
468 | + | let bs = valueOrElse(getInteger(this, F(z, aT.caller, i)), 0) | |
469 | + | let bt = valueOrElse(getInteger(this, H(z, i)), 0) | |
470 | + | let bu = valueOrElse(getInteger(this, N(i)), 0) | |
471 | + | let bj = [if ((getBoolean(y(z)) != unit)) | |
460 | 472 | then true | |
461 | - | else throw("invalid assets"), if (( | |
473 | + | else throw("invalid assets"), if ((bp > height)) | |
462 | 474 | then true | |
463 | - | else throw("invalid height"), if (( | |
475 | + | else throw("invalid height"), if ((bq == unit)) | |
464 | 476 | then true | |
465 | - | else throw("finalization in progress"), if (( | |
477 | + | else throw("finalization in progress"), if ((bs > 0)) | |
466 | 478 | then true | |
467 | 479 | else throw("no vote")] | |
468 | - | if (( | |
480 | + | if ((bj == bj)) | |
469 | 481 | then { | |
470 | - | let | |
471 | - | let | |
472 | - | $Tuple2(([IntegerEntry(D( | |
482 | + | let bz = av(z) | |
483 | + | let P = toString(aT.caller) | |
484 | + | $Tuple2(([IntegerEntry(D(aT.caller, i), max([(br - bs), 0])), DeleteEntry(F(z, aT.caller, i)), IntegerEntry(H(z, i), (bt - bs)), IntegerEntry(N(i), (bu - bs))] ++ aL(bz, P)), unit) | |
473 | 485 | } | |
474 | 486 | else throw("Strict value is not equal to itself.") | |
475 | 487 | } | |
476 | 488 | ||
477 | 489 | ||
478 | 490 | ||
479 | - | @Callable( | |
480 | - | func setEpochLength ( | |
481 | - | let | |
491 | + | @Callable(aT) | |
492 | + | func setEpochLength (bB) = { | |
493 | + | let bj = [aU(aT), if ((bB > 0)) | |
482 | 494 | then true | |
483 | 495 | else throw("invalid epoch length")] | |
484 | - | if (( | |
485 | - | then $Tuple2([IntegerEntry(g, | |
496 | + | if ((bj == bj)) | |
497 | + | then $Tuple2([IntegerEntry(g, bB)], unit) | |
486 | 498 | else throw("Strict value is not equal to itself.") | |
487 | 499 | } | |
488 | 500 | ||
489 | 501 | ||
490 | 502 | ||
491 | - | @Callable( | |
492 | - | func setMaxDepth ( | |
493 | - | let | |
503 | + | @Callable(aT) | |
504 | + | func setMaxDepth (bC) = { | |
505 | + | let bj = [aU(aT), if ((bC > 0)) | |
494 | 506 | then true | |
495 | 507 | else throw("invalid max depth")] | |
496 | - | if (( | |
497 | - | then $Tuple2([IntegerEntry(k, | |
508 | + | if ((bj == bj)) | |
509 | + | then $Tuple2([IntegerEntry(k, bC)], unit) | |
498 | 510 | else throw("Strict value is not equal to itself.") | |
499 | 511 | } | |
500 | 512 | ||
501 | 513 | ||
502 | 514 | ||
503 | - | @Callable( | |
504 | - | func processVoteINTERNAL ( | |
505 | - | let | |
506 | - | if (( | |
515 | + | @Callable(aT) | |
516 | + | func processVoteINTERNAL (bD,P) = { | |
517 | + | let aX = aS(aT) | |
518 | + | if ((aX == aX)) | |
507 | 519 | then { | |
508 | - | let | |
509 | - | let i = | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
520 | + | let bc = valueOrErrorMessage(addressFromString(P), ("processVoteINTERNAL: invalid user address " + P)) | |
521 | + | let i = ac(this, j) | |
522 | + | let bE = (i - 1) | |
523 | + | let bi = ac(this, f) | |
524 | + | let bo = ac(this, w(i)) | |
525 | + | let bp = (bo + bi) | |
526 | + | let bF = ac(this, w(bE)) | |
527 | + | let bG = ac(this, h(bE)) | |
528 | + | let bH = (bF + bG) | |
529 | + | let bI = if ((bE >= 0)) | |
518 | 530 | then true | |
519 | 531 | else throw("processVoteINTERNAL: invalid previous epoch") | |
520 | - | if (( | |
532 | + | if ((bI == bI)) | |
521 | 533 | then { | |
522 | - | let z = | |
523 | - | let | |
524 | - | let B = | |
525 | - | let C = | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if ($isInstanceOf( | |
530 | - | then | |
531 | - | else throw(($getType( | |
534 | + | let z = ae(bD) | |
535 | + | let bJ = z | |
536 | + | let B = bJ._1 | |
537 | + | let C = bJ._2 | |
538 | + | let by = as(z) | |
539 | + | let bv = { | |
540 | + | let ab = invoke(this, "getUserGwxAmountAtHeight", [P, bp], nil) | |
541 | + | if ($isInstanceOf(ab, "Int")) | |
542 | + | then ab | |
543 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
532 | 544 | } | |
533 | - | let | |
534 | - | let | |
535 | - | if ($isInstanceOf( | |
536 | - | then | |
537 | - | else throw(($getType( | |
545 | + | let bK = { | |
546 | + | let ab = invoke(this, "getUserGwxAmountAtHeight", [P, bH], nil) | |
547 | + | if ($isInstanceOf(ab, "Int")) | |
548 | + | then ab | |
549 | + | else throw(($getType(ab) + " couldn't be cast to Int")) | |
538 | 550 | } | |
539 | - | let bn = valueOrElse(getInteger(L(i)), 0) | |
540 | - | let bF = valueOrElse(getInteger(H(z, i)), 0) | |
541 | - | let bG = valueOrErrorMessage(getInteger(F(z, aV, by)), (((("processVoteINTERNAL " + bx) + " ") + bt) + ": no previous vote")) | |
542 | - | let bk = valueOrElse(getInteger(this, D(aV, i)), 0) | |
543 | - | let bq = if ((bE > 0)) | |
544 | - | then fraction(bG, bo, bE) | |
551 | + | let bu = valueOrElse(getInteger(N(i)), 0) | |
552 | + | let bL = valueOrElse(getInteger(H(z, i)), 0) | |
553 | + | let bM = valueOrErrorMessage(getInteger(F(z, bc, bE)), (((("processVoteINTERNAL " + bD) + " ") + P) + ": no previous vote")) | |
554 | + | let br = valueOrElse(getInteger(this, D(bc, i)), 0) | |
555 | + | let K = ag(B, C) | |
556 | + | let bN = valueOrElse(getInteger(J(K, bE)), 0) | |
557 | + | let bh = addressFromStringValue(aa(this, o)) | |
558 | + | let bO = valueOrElse(getInteger(bh, O(K, P)), 0) | |
559 | + | let bP = if ((bO == 0)) | |
560 | + | then nil | |
561 | + | else [IntegerEntry(J(K, bE), (bN + bM))] | |
562 | + | let bx = if ((bK > 0)) | |
563 | + | then fraction(bM, bv, bK) | |
545 | 564 | else 0 | |
546 | - | let | |
547 | - | then | |
565 | + | let bQ = if (if ((bx > 0)) | |
566 | + | then by | |
548 | 567 | else false) | |
549 | - | then [IntegerEntry(F(z, | |
550 | - | else | |
551 | - | $Tuple2( | |
568 | + | then [IntegerEntry(F(z, bc, i), bx), IntegerEntry(N(i), (bu + bx)), IntegerEntry(H(z, i), (bL + bx)), IntegerEntry(D(bc, i), (br + bx))] | |
569 | + | else aL(av(z), P) | |
570 | + | $Tuple2((bQ ++ bP), unit) | |
552 | 571 | } | |
553 | 572 | else throw("Strict value is not equal to itself.") | |
554 | 573 | } | |
555 | 574 | else throw("Strict value is not equal to itself.") | |
556 | 575 | } | |
557 | 576 | ||
558 | 577 | ||
559 | 578 | ||
560 | - | @Callable( | |
561 | - | func processPoolINTERNAL ( | |
562 | - | let | |
563 | - | if (( | |
579 | + | @Callable(aT) | |
580 | + | func processPoolINTERNAL (bD,bR) = { | |
581 | + | let aX = aS(aT) | |
582 | + | if ((aX == aX)) | |
564 | 583 | then { | |
565 | - | let | |
566 | - | let | |
567 | - | if ( | |
568 | - | then | |
569 | - | else ( | |
584 | + | let bS = { | |
585 | + | let bT = ac(this, j) | |
586 | + | if (bR) | |
587 | + | then bT | |
588 | + | else (bT - 1) | |
570 | 589 | } | |
571 | - | let | |
590 | + | let bI = if ((bS >= 0)) | |
572 | 591 | then true | |
573 | 592 | else throw("processPoolINTERNAL: invalid target epoch") | |
574 | - | if (( | |
593 | + | if ((bI == bI)) | |
575 | 594 | then { | |
576 | - | let z = | |
577 | - | let | |
578 | - | let B = | |
579 | - | let C = | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | if ($isInstanceOf( | |
586 | - | then | |
587 | - | else throw(($getType( | |
595 | + | let z = ae(bD) | |
596 | + | let bU = z | |
597 | + | let B = bU._1 | |
598 | + | let C = bU._2 | |
599 | + | let bh = addressFromStringValue(aa(this, o)) | |
600 | + | let ao = addressFromStringValue(aa(this, m)) | |
601 | + | let ar = ag(B, C) | |
602 | + | let bV = { | |
603 | + | let ab = invoke(bh, "usersListTraversal", [ar], nil) | |
604 | + | if ($isInstanceOf(ab, "Boolean")) | |
605 | + | then ab | |
606 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
588 | 607 | } | |
589 | - | if (( | |
590 | - | then if ( | |
608 | + | if ((bV == bV)) | |
609 | + | then if (bV) | |
591 | 610 | then $Tuple2(nil, true) | |
592 | 611 | else { | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
612 | + | let by = as(z) | |
613 | + | let bu = valueOrElse(getInteger(this, N(bS)), 0) | |
614 | + | let bL = valueOrElse(getInteger(this, H(z, bS)), 0) | |
615 | + | let bW = if (if ((bu == 0)) | |
597 | 616 | then true | |
598 | - | else !( | |
617 | + | else !(by)) | |
599 | 618 | then 0 | |
600 | - | else fraction( | |
601 | - | let | |
602 | - | if (( | |
619 | + | else fraction(bL, b, bu) | |
620 | + | let bX = invoke(ao, "modifyWeight", [ar, bW], nil) | |
621 | + | if ((bX == bX)) | |
603 | 622 | then { | |
604 | - | let | |
623 | + | let bY = if (if (by) | |
605 | 624 | then true | |
606 | - | else | |
625 | + | else bR) | |
607 | 626 | then nil | |
608 | - | else ([DeleteEntry(y(z))] ++ | |
609 | - | $Tuple2(([IntegerEntry( | |
627 | + | else ([DeleteEntry(y(z))] ++ aL(au, bD)) | |
628 | + | $Tuple2(([IntegerEntry(L(z, bS), bW)] ++ bY), false) | |
610 | 629 | } | |
611 | 630 | else throw("Strict value is not equal to itself.") | |
612 | 631 | } | |
613 | 632 | else throw("Strict value is not equal to itself.") | |
614 | 633 | } | |
615 | 634 | else throw("Strict value is not equal to itself.") | |
616 | 635 | } | |
617 | 636 | else throw("Strict value is not equal to itself.") | |
618 | 637 | } | |
619 | 638 | ||
620 | 639 | ||
621 | 640 | ||
622 | - | @Callable( | |
641 | + | @Callable(aT) | |
623 | 642 | func finalizeHelper () = { | |
624 | - | let | |
643 | + | let bR = valueOrElse(getBoolean(v), false) | |
625 | 644 | let i = valueOrElse(getInteger(this, j), 0) | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | if (if (if ((height >= | |
632 | - | then ( | |
645 | + | let bZ = (i - 1) | |
646 | + | let bo = ac(this, w(i)) | |
647 | + | let bi = ac(this, f) | |
648 | + | let bp = (bo + bi) | |
649 | + | let bq = getInteger(this, p) | |
650 | + | if (if (if ((height >= bp)) | |
651 | + | then (bq == unit) | |
633 | 652 | else false) | |
634 | - | then !( | |
653 | + | then !(bR) | |
635 | 654 | else false) | |
636 | 655 | then { | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ($isInstanceOf( | |
656 | + | let ca = (i + 1) | |
657 | + | let cb = getInteger(this, g) | |
658 | + | let cc = { | |
659 | + | let X = cb | |
660 | + | if ($isInstanceOf(X, "Int")) | |
642 | 661 | then { | |
643 | - | let | |
644 | - | [IntegerEntry(f, | |
662 | + | let bB = X | |
663 | + | [IntegerEntry(f, bB), DeleteEntry(g)] | |
645 | 664 | } | |
646 | - | else if ($isInstanceOf( | |
665 | + | else if ($isInstanceOf(X, "Unit")) | |
647 | 666 | then nil | |
648 | 667 | else throw("Match error") | |
649 | 668 | } | |
650 | - | $Tuple2(([IntegerEntry(w( | |
669 | + | $Tuple2(([IntegerEntry(w(ca), height), IntegerEntry(s, height), IntegerEntry(j, ca), IntegerEntry(p, d), IntegerEntry(h(i), bi)] ++ cc), true) | |
651 | 670 | } | |
652 | - | else if (if ( | |
653 | - | then ( | |
671 | + | else if (if (bR) | |
672 | + | then (bq == unit) | |
654 | 673 | else false) | |
655 | 674 | then $Tuple2([IntegerEntry(p, e)], true) | |
656 | - | else if (( | |
675 | + | else if ((bq == unit)) | |
657 | 676 | then $Tuple2(nil, false) | |
658 | - | else if (( | |
677 | + | else if ((bq == d)) | |
659 | 678 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | if ($isInstanceOf( | |
679 | + | let cd = getString(q) | |
680 | + | let ce = getString(r) | |
681 | + | let X = cd | |
682 | + | if ($isInstanceOf(X, "Unit")) | |
664 | 683 | then { | |
665 | - | let | |
666 | - | if ($isInstanceOf( | |
684 | + | let cf = getString(ax(au)) | |
685 | + | if ($isInstanceOf(cf, "Unit")) | |
667 | 686 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
668 | - | else if ($isInstanceOf( | |
687 | + | else if ($isInstanceOf(cf, "String")) | |
669 | 688 | then { | |
670 | - | let | |
671 | - | $Tuple2([StringEntry(q, | |
689 | + | let cg = cf | |
690 | + | $Tuple2([StringEntry(q, cg)], true) | |
672 | 691 | } | |
673 | 692 | else throw("Match error") | |
674 | 693 | } | |
675 | - | else if ($isInstanceOf( | |
694 | + | else if ($isInstanceOf(X, "String")) | |
676 | 695 | then { | |
677 | - | let | |
678 | - | let z = | |
679 | - | let | |
680 | - | let | |
681 | - | if ($isInstanceOf( | |
682 | - | then getString( | |
683 | - | else if ($isInstanceOf( | |
696 | + | let bD = X | |
697 | + | let z = ae(bD) | |
698 | + | let ch = { | |
699 | + | let cf = ce | |
700 | + | if ($isInstanceOf(cf, "Unit")) | |
701 | + | then getString(ax(av(z))) | |
702 | + | else if ($isInstanceOf(cf, "String")) | |
684 | 703 | then { | |
685 | - | let | |
686 | - | let | |
687 | - | if (( | |
704 | + | let ci = cf | |
705 | + | let cj = getString(aD(av(z), ci)) | |
706 | + | if ((cj == cj)) | |
688 | 707 | then { | |
689 | - | let | |
690 | - | if (( | |
691 | - | then | |
708 | + | let ck = invoke(this, "processVoteINTERNAL", [bD, ci], nil) | |
709 | + | if ((ck == ck)) | |
710 | + | then cj | |
692 | 711 | else throw("Strict value is not equal to itself.") | |
693 | 712 | } | |
694 | 713 | else throw("Strict value is not equal to itself.") | |
695 | 714 | } | |
696 | 715 | else throw("Match error") | |
697 | 716 | } | |
698 | - | let | |
699 | - | if ($isInstanceOf( | |
717 | + | let cf = ch | |
718 | + | if ($isInstanceOf(cf, "Unit")) | |
700 | 719 | then { | |
701 | - | let | |
702 | - | let | |
703 | - | if ($isInstanceOf( | |
720 | + | let cl = getString(aD(au, bD)) | |
721 | + | let cm = cl | |
722 | + | if ($isInstanceOf(cm, "Unit")) | |
704 | 723 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
705 | - | else if ($isInstanceOf( | |
724 | + | else if ($isInstanceOf(cm, "String")) | |
706 | 725 | then { | |
707 | - | let | |
708 | - | $Tuple2([StringEntry(q, | |
726 | + | let aP = cm | |
727 | + | $Tuple2([StringEntry(q, aP), DeleteEntry(r)], true) | |
709 | 728 | } | |
710 | 729 | else throw("Match error") | |
711 | 730 | } | |
712 | - | else if ($isInstanceOf( | |
731 | + | else if ($isInstanceOf(cf, "String")) | |
713 | 732 | then { | |
714 | - | let | |
715 | - | $Tuple2([StringEntry(r, | |
733 | + | let cn = cf | |
734 | + | $Tuple2([StringEntry(r, cn)], true) | |
716 | 735 | } | |
717 | 736 | else throw("Match error") | |
718 | 737 | } | |
719 | 738 | else throw("Match error") | |
720 | 739 | } | |
721 | - | else if (( | |
740 | + | else if ((bq == e)) | |
722 | 741 | then { | |
723 | - | let | |
724 | - | let | |
725 | - | if ($isInstanceOf( | |
742 | + | let cd = getString(q) | |
743 | + | let X = cd | |
744 | + | if ($isInstanceOf(X, "Unit")) | |
726 | 745 | then { | |
727 | - | let | |
728 | - | if ($isInstanceOf( | |
746 | + | let cf = getString(ax(au)) | |
747 | + | if ($isInstanceOf(cf, "Unit")) | |
729 | 748 | then { | |
730 | - | let | |
749 | + | let bQ = if (bR) | |
731 | 750 | then [DeleteEntry(p), DeleteEntry(v)] | |
732 | - | else [DeleteEntry(p), BooleanEntry(x( | |
733 | - | $Tuple2( | |
751 | + | else [DeleteEntry(p), BooleanEntry(x(bZ), true), IntegerEntry(t, i), IntegerEntry(u, bo)] | |
752 | + | $Tuple2(bQ, true) | |
734 | 753 | } | |
735 | - | else if ($isInstanceOf( | |
754 | + | else if ($isInstanceOf(cf, "String")) | |
736 | 755 | then { | |
737 | - | let | |
738 | - | $Tuple2([StringEntry(q, | |
756 | + | let co = cf | |
757 | + | $Tuple2([StringEntry(q, co)], true) | |
739 | 758 | } | |
740 | 759 | else throw("Match error") | |
741 | 760 | } | |
742 | - | else if ($isInstanceOf( | |
761 | + | else if ($isInstanceOf(X, "String")) | |
743 | 762 | then { | |
744 | - | let | |
745 | - | let | |
746 | - | if (( | |
763 | + | let bD = X | |
764 | + | let cl = getString(aD(au, bD)) | |
765 | + | if ((cl == cl)) | |
747 | 766 | then { | |
748 | - | let | |
749 | - | let | |
750 | - | if ($isInstanceOf( | |
751 | - | then | |
752 | - | else throw(($getType( | |
767 | + | let bV = { | |
768 | + | let ab = invoke(this, "processPoolINTERNAL", [bD, bR], nil) | |
769 | + | if ($isInstanceOf(ab, "Boolean")) | |
770 | + | then ab | |
771 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
753 | 772 | } | |
754 | - | if (( | |
755 | - | then if ( | |
773 | + | if ((bV == bV)) | |
774 | + | then if (bV) | |
756 | 775 | then $Tuple2(nil, true) | |
757 | 776 | else { | |
758 | - | let | |
759 | - | if ($isInstanceOf( | |
777 | + | let cf = cl | |
778 | + | if ($isInstanceOf(cf, "Unit")) | |
760 | 779 | then { | |
761 | - | let | |
780 | + | let bQ = if (bR) | |
762 | 781 | then [DeleteEntry(p), DeleteEntry(v), DeleteEntry(q)] | |
763 | - | else [DeleteEntry(p), BooleanEntry(x( | |
764 | - | $Tuple2( | |
782 | + | else [DeleteEntry(p), BooleanEntry(x(bZ), true), IntegerEntry(t, i), IntegerEntry(u, bo), DeleteEntry(q)] | |
783 | + | $Tuple2(bQ, true) | |
765 | 784 | } | |
766 | - | else if ($isInstanceOf( | |
785 | + | else if ($isInstanceOf(cf, "String")) | |
767 | 786 | then { | |
768 | - | let | |
769 | - | $Tuple2([StringEntry(q, | |
787 | + | let co = cf | |
788 | + | $Tuple2([StringEntry(q, co)], true) | |
770 | 789 | } | |
771 | 790 | else throw("Match error") | |
772 | 791 | } | |
773 | 792 | else throw("Strict value is not equal to itself.") | |
774 | 793 | } | |
775 | 794 | else throw("Strict value is not equal to itself.") | |
776 | 795 | } | |
777 | 796 | else throw("Match error") | |
778 | 797 | } | |
779 | 798 | else throw("finalization is broken") | |
780 | 799 | } | |
781 | 800 | ||
782 | 801 | ||
783 | 802 | ||
784 | - | @Callable( | |
785 | - | func finalizeWrapper ( | |
786 | - | let | |
787 | - | let | |
788 | - | if ($isInstanceOf( | |
789 | - | then | |
790 | - | else throw(($getType( | |
803 | + | @Callable(aT) | |
804 | + | func finalizeWrapper (cp) = { | |
805 | + | let cq = { | |
806 | + | let ab = invoke(this, "finalizeHelper", nil, nil) | |
807 | + | if ($isInstanceOf(ab, "Boolean")) | |
808 | + | then ab | |
809 | + | else throw(($getType(ab) + " couldn't be cast to Boolean")) | |
791 | 810 | } | |
792 | - | if (( | |
793 | - | then if (!( | |
794 | - | then if (( | |
811 | + | if ((cq == cq)) | |
812 | + | then if (!(cq)) | |
813 | + | then if ((cp == 0)) | |
795 | 814 | then throw("Current voting is not over yet") | |
796 | 815 | else $Tuple2(nil, unit) | |
797 | 816 | else { | |
798 | - | let | |
799 | - | if (( | |
817 | + | let cr = valueOrElse(getInteger(this, k), c) | |
818 | + | if ((cr > cp)) | |
800 | 819 | then { | |
801 | - | let | |
802 | - | if (( | |
820 | + | let cs = invoke(this, "finalizeWrapper", [(cp + 1)], nil) | |
821 | + | if ((cs == cs)) | |
803 | 822 | then $Tuple2(nil, unit) | |
804 | 823 | else throw("Strict value is not equal to itself.") | |
805 | 824 | } | |
806 | 825 | else $Tuple2(nil, unit) | |
807 | 826 | } | |
808 | 827 | else throw("Strict value is not equal to itself.") | |
809 | 828 | } | |
810 | 829 | ||
811 | 830 | ||
812 | 831 | ||
813 | - | @Callable( | |
832 | + | @Callable(aT) | |
814 | 833 | func finalize () = { | |
815 | - | let | |
816 | - | if (( | |
834 | + | let cs = invoke(this, "finalizeWrapper", [0], nil) | |
835 | + | if ((cs == cs)) | |
817 | 836 | then $Tuple2(nil, unit) | |
818 | 837 | else throw("Strict value is not equal to itself.") | |
819 | 838 | } | |
820 | 839 | ||
821 | 840 | ||
822 | 841 | ||
823 | - | @Callable( | |
824 | - | func containsNodeREADONLY ( | |
842 | + | @Callable(aT) | |
843 | + | func containsNodeREADONLY (ay,aC) = $Tuple2(nil, aE(ay, aC)) | |
825 | 844 | ||
826 | 845 | ||
827 | 846 | ||
828 | - | @Callable( | |
829 | - | func insertNode ( | |
830 | - | let | |
831 | - | if (( | |
832 | - | then $Tuple2( | |
847 | + | @Callable(aT) | |
848 | + | func insertNode (ay,aC) = { | |
849 | + | let aX = aU(aT) | |
850 | + | if ((aX == aX)) | |
851 | + | then $Tuple2(aI(ay, aC), unit) | |
833 | 852 | else throw("Strict value is not equal to itself.") | |
834 | 853 | } | |
835 | 854 | ||
836 | 855 | ||
837 | 856 | ||
838 | - | @Callable( | |
839 | - | func deleteNode ( | |
840 | - | let | |
841 | - | if (( | |
842 | - | then $Tuple2( | |
857 | + | @Callable(aT) | |
858 | + | func deleteNode (ay,aC) = { | |
859 | + | let aX = aU(aT) | |
860 | + | if ((aX == aX)) | |
861 | + | then $Tuple2(aL(ay, aC), unit) | |
843 | 862 | else throw("Strict value is not equal to itself.") | |
844 | 863 | } | |
845 | 864 | ||
846 | 865 | ||
847 | - | @Verifier( | |
848 | - | func | |
849 | - | let | |
850 | - | let | |
851 | - | if ($isInstanceOf( | |
866 | + | @Verifier(ct) | |
867 | + | func cu () = { | |
868 | + | let cv = { | |
869 | + | let X = aO() | |
870 | + | if ($isInstanceOf(X, "ByteVector")) | |
852 | 871 | then { | |
853 | - | let | |
854 | - | | |
872 | + | let aV = X | |
873 | + | aV | |
855 | 874 | } | |
856 | - | else if ($isInstanceOf( | |
857 | - | then | |
875 | + | else if ($isInstanceOf(X, "Unit")) | |
876 | + | then ct.senderPublicKey | |
858 | 877 | else throw("Match error") | |
859 | 878 | } | |
860 | - | sigVerify( | |
879 | + | sigVerify(ct.bodyBytes, ct.proofs[0], cv) | |
861 | 880 | } | |
862 | 881 |
github/deemru/w8io/169f3d6 317.76 ms ◑