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