tx · HzBMSnoFxKaPuSF3FGfck87qfDnwTRPhN4wxbtaFXJou 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE: -0.02200000 Waves 2023.06.13 16:31 [2620967] smart account 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE > SELF 0.00000000 Waves
{ "type": 13, "id": "HzBMSnoFxKaPuSF3FGfck87qfDnwTRPhN4wxbtaFXJou", "fee": 2200000, "feeAssetId": null, "timestamp": 1686663122546, "version": 2, "chainId": 84, "sender": "3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE", "senderPublicKey": "6t3vrhP1jCmG7CeKBmL8hUibtdP3cMXGC2XtPYEPPC5w", "proofs": [ "63GTykGCgz1sEd7Gd5Y8ENrvuQawFTDBztmDPPXY2LCZJDaUoJ8DxT7Fof3iv9aQF7St3ssfdg7adt3QKARux7vJ" ], "script": "base64:BgIrCAISBQoDCAEIEgMKAQgSBAoCCAQSAwoBCBIDCgEIEgUKAwgBCBIECgIIAS8ACXNlcGFyYXRvcgICX18ABU1VTFQ4AIDC1y8BB3dyYXBFcnIBA21zZwkAuQkCCQDMCAICGHZvdGluZ192ZXJpZmllZF92Mi5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQVhc0ludAEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIDSW50BAZ2YWxJbnQFByRtYXRjaDAFBnZhbEludAkAAgECG0ZhaWxlZCB0byBjYXN0IGludG8gSW50ZWdlcgEQZ2V0SW50ZWdlck9yWmVybwIHYWRkcmVzcwNrZXkJAQt2YWx1ZU9yRWxzZQIJAJoIAgUHYWRkcmVzcwUDa2V5AAABEGdldEludGVnZXJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJoIAgUHYWRkcmVzcwUDa2V5CQEHd3JhcEVycgEJAKwCAgUDa2V5Ag8gaXMg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JpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXld29li", "height": 2620967, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 54bZEzydrBwoceZ3aWWjkF75NZVRJcZC4d8uP2aEWgb Next: 5qZB1QnbYTeRULbt6RD5vY9rLsiMSkgmfYtofo2wD67C Diff:
Old | New | Differences | |
---|---|---|---|
200 | 200 | let aP = value(aN.amount) | |
201 | 201 | let aQ = getIntegerValue(C) | |
202 | 202 | let aR = getIntegerValue(B) | |
203 | + | let aS = { | |
204 | + | let aT = invoke(u, "isVerifiedREADONLY", [E], nil) | |
205 | + | if ($isInstanceOf(aT, "Boolean")) | |
206 | + | then aT | |
207 | + | else throw(($getType(aT) + " couldn't be cast to Boolean")) | |
208 | + | } | |
203 | 209 | let az = [if (if ((aL >= aQ)) | |
204 | 210 | then (aR >= aL) | |
205 | 211 | else false) | |
206 | 212 | then true | |
207 | - | else e("invalid periodLength"), if ((aP > (aL * U))) | |
213 | + | else e("invalid periodLength"), if ((aS == false)) | |
214 | + | then true | |
215 | + | else e("token already verified"), if ((aP > (aL * U))) | |
208 | 216 | then true | |
209 | 217 | else e("not enough wx for given period"), if ((aP >= getIntegerValue(V))) | |
210 | 218 | then true | |
211 | 219 | else e("payment less then min for suggest")] | |
212 | 220 | if ((az == az)) | |
213 | 221 | then { | |
214 | - | let | |
215 | - | let aw = getInteger( | |
216 | - | let | |
222 | + | let aU = L(E) | |
223 | + | let aw = getInteger(aU) | |
224 | + | let aV = if (isDefined(aw)) | |
217 | 225 | then (value(aw) + 1) | |
218 | 226 | else 0 | |
219 | - | let | |
227 | + | let aW = if ((size(aK.payments) > 1)) | |
220 | 228 | then { | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | $Tuple4(true, | |
229 | + | let aX = aK.payments[1] | |
230 | + | let aY = toBase58String(value(aX.assetId)) | |
231 | + | let aZ = value(aX.amount) | |
232 | + | $Tuple4(true, aY, aZ, [StringEntry(D(E, aV), aY), IntegerEntry(I(E, aV), aZ)]) | |
225 | 233 | } | |
226 | 234 | else $Tuple4(false, "EMPTY", 0, nil) | |
227 | - | let Z = | |
228 | - | let aa = | |
229 | - | let ab = | |
230 | - | let | |
235 | + | let Z = aW._1 | |
236 | + | let aa = aW._2 | |
237 | + | let ab = aW._3 | |
238 | + | let ba = aW._4 | |
231 | 239 | let ag = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
232 | 240 | let as = Y(Z, aa, ab, "verification", "inProgress", height, (height + aL), ag, 0, 0) | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | if (( | |
237 | - | then ([IntegerEntry( | |
241 | + | let bb = valueOrElse(getInteger(J), 0) | |
242 | + | let bc = (aP - bb) | |
243 | + | let bd = invoke(u, "createOrUpdate", [E, aM, false], nil) | |
244 | + | if ((bd == bd)) | |
245 | + | then ([IntegerEntry(aU, aV), StringEntry(R(E, aV), toString(aK.caller)), StringEntry(X(E, aV), as), Burn(aO, bc)] ++ ba) | |
238 | 246 | else throw("Strict value is not equal to itself.") | |
239 | 247 | } | |
240 | 248 | else throw("Strict value is not equal to itself.") | |
244 | 252 | ||
245 | 253 | @Callable(aK) | |
246 | 254 | func suggestRemove (E) = { | |
247 | - | let | |
248 | - | let | |
255 | + | let be = aj(toString(aK.caller), height) | |
256 | + | let bf = getIntegerValue(K) | |
249 | 257 | let aN = aK.payments[0] | |
250 | 258 | let aO = value(aN.assetId) | |
251 | 259 | let aP = value(aN.amount) | |
252 | - | let az = [if ((bc >= bd)) | |
260 | + | let aS = { | |
261 | + | let aT = invoke(u, "isVerifiedREADONLY", [E], nil) | |
262 | + | if ($isInstanceOf(aT, "Boolean")) | |
263 | + | then aT | |
264 | + | else throw(($getType(aT) + " couldn't be cast to Boolean")) | |
265 | + | } | |
266 | + | let az = [if (aS) | |
267 | + | then true | |
268 | + | else e("token not verified"), if ((be >= bf)) | |
253 | 269 | then true | |
254 | 270 | else e("not enough gWXes"), if ((aP >= getIntegerValue(W))) | |
255 | 271 | then true | |
256 | 272 | else e("payment less then min for suggest")] | |
257 | 273 | if ((az == az)) | |
258 | 274 | then { | |
259 | - | let | |
260 | - | let aw = getInteger( | |
261 | - | let | |
275 | + | let aU = L(E) | |
276 | + | let aw = getInteger(aU) | |
277 | + | let aV = if (isDefined(aw)) | |
262 | 278 | then (value(aw) + 1) | |
263 | 279 | else 0 | |
264 | 280 | let aL = valueOrErrorMessage(getInteger(A), c("periodLengthRemove not set")) | |
265 | 281 | let af = (height + aL) | |
266 | 282 | let ag = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
267 | 283 | let as = Y(false, "EMPTY", 0, "deverification", "inProgress", height, (height + aL), ag, 0, 0) | |
268 | - | [IntegerEntry( | |
284 | + | [IntegerEntry(aU, aV), StringEntry(R(E, aV), toString(aK.caller)), StringEntry(X(E, aV), as)] | |
269 | 285 | } | |
270 | 286 | else throw("Strict value is not equal to itself.") | |
271 | 287 | } | |
274 | 290 | ||
275 | 291 | @Callable(aK) | |
276 | 292 | func vote (E,P) = { | |
277 | - | let | |
278 | - | let aw = valueOrErrorMessage(getInteger( | |
293 | + | let aU = L(E) | |
294 | + | let aw = valueOrErrorMessage(getInteger(aU), c("voting does not exist")) | |
279 | 295 | let as = av(E, aw) | |
280 | 296 | if ((as == as)) | |
281 | 297 | then { | |
282 | - | let | |
283 | - | let | |
298 | + | let bg = as._2 | |
299 | + | let bh = aj(toString(aK.caller), bg) | |
284 | 300 | let aC = M(E, aw, aK.caller) | |
285 | 301 | let az = [if ((getString(aC) == unit)) | |
286 | 302 | then true | |
287 | - | else e("You have already voted"), if (( | |
303 | + | else e("You have already voted"), if ((bh > 0)) | |
288 | 304 | then true | |
289 | 305 | else throw("You'll not have gWX at the end of voting")] | |
290 | 306 | if ((az == az)) | |
293 | 309 | let at = ar(aF) | |
294 | 310 | let ah = at._9 | |
295 | 311 | let ai = at._10 | |
296 | - | let | |
297 | - | then $Tuple2((ah + | |
298 | - | else $Tuple2(ah, (ai + | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
312 | + | let bi = if (P) | |
313 | + | then $Tuple2((ah + bh), ai) | |
314 | + | else $Tuple2(ah, (ai + bh)) | |
315 | + | let bj = bi._1 | |
316 | + | let bk = bi._2 | |
317 | + | let bl = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bj, bk) | |
318 | + | let bm = { | |
303 | 319 | let h = getString(D(E, aw)) | |
304 | 320 | if ($isInstanceOf(h, "String")) | |
305 | 321 | then { | |
306 | - | let | |
307 | - | [StringEntry(G(aK.caller, E, aw), O(P, | |
322 | + | let bn = h | |
323 | + | [StringEntry(G(aK.caller, E, aw), O(P, bh))] | |
308 | 324 | } | |
309 | 325 | else if ($isInstanceOf(h, "Unit")) | |
310 | 326 | then nil | |
311 | 327 | else throw("Match error") | |
312 | 328 | } | |
313 | - | ([StringEntry(aC, O(P, | |
329 | + | ([StringEntry(aC, O(P, bh)), StringEntry(X(E, aw), bl)] ++ bm) | |
314 | 330 | } | |
315 | 331 | else throw("Strict value is not equal to itself.") | |
316 | 332 | } | |
321 | 337 | ||
322 | 338 | @Callable(aK) | |
323 | 339 | func cancelVote (E) = { | |
324 | - | let | |
325 | - | let aw = valueOrErrorMessage(getInteger( | |
340 | + | let aU = L(E) | |
341 | + | let aw = valueOrErrorMessage(getInteger(aU), c("voting does not exist")) | |
326 | 342 | let aC = M(E, aw, aK.caller) | |
327 | 343 | let aD = valueOrErrorMessage(getString(aC), c("you have not voted")) | |
328 | 344 | let aE = split(aD, a) | |
342 | 358 | let at = ar(aF) | |
343 | 359 | let ah = at._9 | |
344 | 360 | let ai = at._10 | |
345 | - | let | |
361 | + | let bo = if ((P == "true")) | |
346 | 362 | then $Tuple2((ah - Q), ai) | |
347 | 363 | else $Tuple2(ah, (ai - Q)) | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | [StringEntry(X(E, aw), | |
364 | + | let bj = bo._1 | |
365 | + | let bk = bo._2 | |
366 | + | let bl = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bj, bk) | |
367 | + | [StringEntry(X(E, aw), bl), DeleteEntry(aC), DeleteEntry(G(aK.caller, E, aw))] | |
352 | 368 | } | |
353 | 369 | else throw("Strict value is not equal to itself.") | |
354 | 370 | } | |
359 | 375 | ||
360 | 376 | @Callable(aK) | |
361 | 377 | func finalize (E) = { | |
362 | - | let | |
363 | - | let aw = valueOrElse(getInteger( | |
364 | - | let | |
365 | - | let | |
378 | + | let aU = L(E) | |
379 | + | let aw = valueOrElse(getInteger(aU), 0) | |
380 | + | let bp = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
381 | + | let bq = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
366 | 382 | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
367 | 383 | let at = ar(aF) | |
368 | 384 | let ac = at._4 | |
369 | 385 | let ad = at._5 | |
370 | 386 | let af = at._7 | |
371 | - | let | |
387 | + | let br = at._8 | |
372 | 388 | let ah = at._9 | |
373 | 389 | let ai = at._10 | |
374 | 390 | let az = [if ((ad == "inProgress")) | |
378 | 394 | else e("voting not finished")] | |
379 | 395 | if ((az == az)) | |
380 | 396 | then { | |
381 | - | let | |
397 | + | let bs = if (if (((ah + ai) >= br)) | |
382 | 398 | then (ah > ai) | |
383 | 399 | else false) | |
384 | 400 | then true | |
385 | 401 | else false | |
386 | - | let | |
402 | + | let bt = if (bs) | |
387 | 403 | then "accepted" | |
388 | 404 | else "rejected" | |
389 | - | let | |
405 | + | let bu = if ((ac == "verification")) | |
390 | 406 | then true | |
391 | 407 | else false | |
392 | - | let | |
408 | + | let bv = if (bs) | |
393 | 409 | then { | |
394 | - | let | |
395 | - | if (( | |
410 | + | let bw = invoke(u, "setVerified", [E, bu], nil) | |
411 | + | if ((bw == bw)) | |
396 | 412 | then { | |
397 | - | let | |
398 | - | [ScriptTransfer(aK.caller, | |
413 | + | let bb = valueOrElse(getInteger(J), 0) | |
414 | + | [ScriptTransfer(aK.caller, bb, x)] | |
399 | 415 | } | |
400 | 416 | else throw("Strict value is not equal to itself.") | |
401 | 417 | } | |
402 | 418 | else nil | |
403 | - | let | |
404 | - | ([StringEntry(X(E, aw), | |
419 | + | let bl = Y(at._1, at._2, at._3, at._4, bt, at._6, at._7, at._8, at._9, at._10) | |
420 | + | ([StringEntry(X(E, aw), bl)] ++ bv) | |
405 | 421 | } | |
406 | 422 | else throw("Strict value is not equal to itself.") | |
407 | 423 | } | |
409 | 425 | ||
410 | 426 | ||
411 | 427 | @Callable(aK) | |
412 | - | func claimREADONLY (E,F, | |
413 | - | let H = valueOrErrorMessage(addressFromString( | |
414 | - | let | |
415 | - | let ab = if (isDefined( | |
428 | + | func claimREADONLY (E,F,bx) = { | |
429 | + | let H = valueOrErrorMessage(addressFromString(bx), c("invalid address")) | |
430 | + | let by = getString(D(E, F)) | |
431 | + | let ab = if (isDefined(by)) | |
416 | 432 | then aA(H, E, F) | |
417 | 433 | else 0 | |
418 | 434 | $Tuple2(nil, ab) | |
422 | 438 | ||
423 | 439 | @Callable(aK) | |
424 | 440 | func claim (E,F) = { | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let az = [if (( | |
441 | + | let bz = aK.caller | |
442 | + | let bA = S(bz, E, F) | |
443 | + | let bB = getInteger(bA) | |
444 | + | let az = [if ((bB == unit)) | |
429 | 445 | then true | |
430 | 446 | else e("already claimed")] | |
431 | 447 | if ((az == az)) | |
432 | 448 | then { | |
433 | - | let ab = if ((aA( | |
434 | - | then aA( | |
449 | + | let ab = if ((aA(bz, E, F) > 0)) | |
450 | + | then aA(bz, E, F) | |
435 | 451 | else e("nothing to claim") | |
436 | - | let | |
437 | - | let | |
452 | + | let by = getString(D(E, F)) | |
453 | + | let bC = if (isDefined(by)) | |
438 | 454 | then { | |
439 | - | let | |
440 | - | [ScriptTransfer( | |
455 | + | let bD = fromBase58String(value(by)) | |
456 | + | [ScriptTransfer(bz, ab, bD), IntegerEntry(bA, ab), DeleteEntry(G(bz, E, F))] | |
441 | 457 | } | |
442 | 458 | else e("nothing to claim") | |
443 | - | | |
459 | + | bC | |
444 | 460 | } | |
445 | 461 | else throw("Strict value is not equal to itself.") | |
446 | 462 | } | |
447 | 463 | ||
448 | 464 | ||
449 | - | @Verifier( | |
450 | - | func | |
451 | - | let | |
465 | + | @Verifier(bE) | |
466 | + | func bF () = { | |
467 | + | let bG = { | |
452 | 468 | let h = ap() | |
453 | 469 | if ($isInstanceOf(h, "ByteVector")) | |
454 | 470 | then { | |
455 | - | let | |
456 | - | | |
471 | + | let bn = h | |
472 | + | bn | |
457 | 473 | } | |
458 | 474 | else if ($isInstanceOf(h, "Unit")) | |
459 | - | then | |
475 | + | then bE.senderPublicKey | |
460 | 476 | else throw("Match error") | |
461 | 477 | } | |
462 | - | sigVerify( | |
478 | + | sigVerify(bE.bodyBytes, bE.proofs[0], bG) | |
463 | 479 | } | |
464 | 480 |
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 | func c (d) = makeString(["voting_verified_v2.ride:", d], " ") | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (d) = throw(c(d)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f (g) = { | |
15 | 15 | let h = g | |
16 | 16 | if ($isInstanceOf(h, "Int")) | |
17 | 17 | then { | |
18 | 18 | let i = h | |
19 | 19 | i | |
20 | 20 | } | |
21 | 21 | else throw("Failed to cast into Integer") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func j (k,l) = valueOrElse(getInteger(k, l), 0) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func m (k,l) = valueOrErrorMessage(getInteger(k, l), c((l + " is not defined"))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func n (k,l) = valueOrElse(getString(k, l), "") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func o (k,l) = valueOrErrorMessage(getString(k, l), c((l + " is not defined"))) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | let p = makeString(["%s", "boostingContract"], a) | |
38 | 38 | ||
39 | 39 | let q = makeString(["%s", "emissionContract"], a) | |
40 | 40 | ||
41 | 41 | let r = makeString(["%s", "assetsStoreContract"], a) | |
42 | 42 | ||
43 | 43 | let s = addressFromStringValue(getStringValue(p)) | |
44 | 44 | ||
45 | 45 | let t = addressFromStringValue(getStringValue(q)) | |
46 | 46 | ||
47 | 47 | let u = addressFromStringValue(getStringValue(r)) | |
48 | 48 | ||
49 | 49 | let v = makeString(["%s", "config"], a) | |
50 | 50 | ||
51 | 51 | let w = split(o(t, v), a)[1] | |
52 | 52 | ||
53 | 53 | let x = fromBase58String(w) | |
54 | 54 | ||
55 | 55 | let y = makeString(["%s%s", "votingThreshold", "add"], a) | |
56 | 56 | ||
57 | 57 | let z = makeString(["%s%s", "votingThreshold", "remove"], a) | |
58 | 58 | ||
59 | 59 | let A = makeString(["%s", "periodLengthRemove"], a) | |
60 | 60 | ||
61 | 61 | let B = makeString(["%s", "maxPeriodLength"], a) | |
62 | 62 | ||
63 | 63 | let C = makeString(["%s", "minPeriodLength"], a) | |
64 | 64 | ||
65 | 65 | func D (E,F) = makeString(["%s%s%d", "votingRewardAssetId", E, toString(F)], a) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func G (H,E,F) = makeString(["%s%s%s%d", "votingReward", toString(H), E, toString(F)], a) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func I (E,F) = makeString(["%s%s%d", "totalVotingReward", E, toString(F)], a) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let J = makeString(["%s", "finalizeCallRewardAmount"], a) | |
75 | 75 | ||
76 | 76 | let K = makeString(["%s", "minSuggestRemoveBalance"], a) | |
77 | 77 | ||
78 | 78 | func L (E) = makeString(["%s%s", "currentIndex", E], a) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func M (E,F,N) = makeString(["%s%s%d%s", "vote", E, toString(F), toString(N)], a) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func O (P,Q) = makeString(["%s%d", toString(P), toString(Q)], a) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func R (E,F) = makeString(["%s%s%d", "suggestIssuer", E, toString(F)], a) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S (H,E,F) = makeString(["%s%s%s%d", "history", toString(H), E, toString(F)], a) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | let T = makeString(["%s", "feePerBlock"], a) | |
94 | 94 | ||
95 | 95 | let U = m(this, T) | |
96 | 96 | ||
97 | 97 | let V = makeString(["%s", "wxMinForSuggestAddAmountRequired"], a) | |
98 | 98 | ||
99 | 99 | let W = makeString(["%s", "wxForSuggestRemoveAmountRequired"], a) | |
100 | 100 | ||
101 | 101 | func X (E,F) = makeString(["%s%s%d", "votingInfo", E, toString(F)], a) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func Y (Z,aa,ab,ac,ad,ae,af,ag,ah,ai) = makeString(["%s%s%d%s%s%d%d%d%d%d", toString(Z), aa, toString(ab), ac, ad, toString(ae), toString(af), toString(ag), toString(ah), toString(ai)], a) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func aj (H,ak) = { | |
108 | 108 | let Q = invoke(s, "getUserGwxAmountAtHeightREADONLY", [H, ak], nil) | |
109 | 109 | f(Q) | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func al () = "%s__managerVaultAddress" | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func am () = "%s__managerPublicKey" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func an () = { | |
120 | 120 | let h = getString(al()) | |
121 | 121 | if ($isInstanceOf(h, "String")) | |
122 | 122 | then { | |
123 | 123 | let ao = h | |
124 | 124 | addressFromStringValue(ao) | |
125 | 125 | } | |
126 | 126 | else this | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ap () = { | |
131 | 131 | let aq = an() | |
132 | 132 | let h = getString(aq, am()) | |
133 | 133 | if ($isInstanceOf(h, "String")) | |
134 | 134 | then { | |
135 | 135 | let ao = h | |
136 | 136 | fromBase58String(ao) | |
137 | 137 | } | |
138 | 138 | else if ($isInstanceOf(h, "Unit")) | |
139 | 139 | then unit | |
140 | 140 | else throw("Match error") | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ar (as) = { | |
145 | 145 | let at = split(as, a) | |
146 | 146 | let au = at[1] | |
147 | 147 | let Z = if ((au == "true")) | |
148 | 148 | then true | |
149 | 149 | else false | |
150 | 150 | let aa = at[2] | |
151 | 151 | let ab = parseIntValue(at[3]) | |
152 | 152 | let ac = at[4] | |
153 | 153 | let ad = at[5] | |
154 | 154 | let ae = parseIntValue(at[6]) | |
155 | 155 | let af = parseIntValue(at[7]) | |
156 | 156 | let ag = parseIntValue(at[8]) | |
157 | 157 | let ah = parseIntValue(at[9]) | |
158 | 158 | let ai = parseIntValue(at[10]) | |
159 | 159 | $Tuple10(Z, aa, ab, ac, ad, ae, af, ag, ah, ai) | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func av (E,aw) = { | |
164 | 164 | let as = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
165 | 165 | let ax = split(as, a) | |
166 | 166 | let ad = ax[5] | |
167 | 167 | let af = valueOrErrorMessage(parseIntValue(ax[7]), c("voting start height not found")) | |
168 | 168 | let ay = valueOrErrorMessage(getString(R(E, aw)), c("voting issuer not found")) | |
169 | 169 | let az = [if ((ad == "inProgress")) | |
170 | 170 | then true | |
171 | 171 | else e("no voting in progress"), if ((af > height)) | |
172 | 172 | then true | |
173 | 173 | else e("voting expired")] | |
174 | 174 | if ((az == az)) | |
175 | 175 | then $Tuple3(ad, af, ay) | |
176 | 176 | else throw("Strict value is not equal to itself.") | |
177 | 177 | } | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aA (aB,E,F) = { | |
181 | 181 | let aC = M(E, F, aB) | |
182 | 182 | let aD = valueOrErrorMessage(getString(aC), c("you have not voted")) | |
183 | 183 | let aE = split(aD, a) | |
184 | 184 | let Q = parseIntValue(aE[2]) | |
185 | 185 | let aF = valueOrErrorMessage(getString(X(E, F)), c("voting info not found")) | |
186 | 186 | let aG = ar(aF) | |
187 | 187 | let ah = aG._9 | |
188 | 188 | let ai = aG._10 | |
189 | 189 | let aH = fraction(Q, b, (ah + ai)) | |
190 | 190 | let aI = valueOrElse(getInteger(I(E, F)), 0) | |
191 | 191 | let aJ = fraction(aH, aI, b, FLOOR) | |
192 | 192 | aJ | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(aK) | |
197 | 197 | func suggestAdd (E,aL,aM) = { | |
198 | 198 | let aN = aK.payments[0] | |
199 | 199 | let aO = value(aN.assetId) | |
200 | 200 | let aP = value(aN.amount) | |
201 | 201 | let aQ = getIntegerValue(C) | |
202 | 202 | let aR = getIntegerValue(B) | |
203 | + | let aS = { | |
204 | + | let aT = invoke(u, "isVerifiedREADONLY", [E], nil) | |
205 | + | if ($isInstanceOf(aT, "Boolean")) | |
206 | + | then aT | |
207 | + | else throw(($getType(aT) + " couldn't be cast to Boolean")) | |
208 | + | } | |
203 | 209 | let az = [if (if ((aL >= aQ)) | |
204 | 210 | then (aR >= aL) | |
205 | 211 | else false) | |
206 | 212 | then true | |
207 | - | else e("invalid periodLength"), if ((aP > (aL * U))) | |
213 | + | else e("invalid periodLength"), if ((aS == false)) | |
214 | + | then true | |
215 | + | else e("token already verified"), if ((aP > (aL * U))) | |
208 | 216 | then true | |
209 | 217 | else e("not enough wx for given period"), if ((aP >= getIntegerValue(V))) | |
210 | 218 | then true | |
211 | 219 | else e("payment less then min for suggest")] | |
212 | 220 | if ((az == az)) | |
213 | 221 | then { | |
214 | - | let | |
215 | - | let aw = getInteger( | |
216 | - | let | |
222 | + | let aU = L(E) | |
223 | + | let aw = getInteger(aU) | |
224 | + | let aV = if (isDefined(aw)) | |
217 | 225 | then (value(aw) + 1) | |
218 | 226 | else 0 | |
219 | - | let | |
227 | + | let aW = if ((size(aK.payments) > 1)) | |
220 | 228 | then { | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | $Tuple4(true, | |
229 | + | let aX = aK.payments[1] | |
230 | + | let aY = toBase58String(value(aX.assetId)) | |
231 | + | let aZ = value(aX.amount) | |
232 | + | $Tuple4(true, aY, aZ, [StringEntry(D(E, aV), aY), IntegerEntry(I(E, aV), aZ)]) | |
225 | 233 | } | |
226 | 234 | else $Tuple4(false, "EMPTY", 0, nil) | |
227 | - | let Z = | |
228 | - | let aa = | |
229 | - | let ab = | |
230 | - | let | |
235 | + | let Z = aW._1 | |
236 | + | let aa = aW._2 | |
237 | + | let ab = aW._3 | |
238 | + | let ba = aW._4 | |
231 | 239 | let ag = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
232 | 240 | let as = Y(Z, aa, ab, "verification", "inProgress", height, (height + aL), ag, 0, 0) | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | if (( | |
237 | - | then ([IntegerEntry( | |
241 | + | let bb = valueOrElse(getInteger(J), 0) | |
242 | + | let bc = (aP - bb) | |
243 | + | let bd = invoke(u, "createOrUpdate", [E, aM, false], nil) | |
244 | + | if ((bd == bd)) | |
245 | + | then ([IntegerEntry(aU, aV), StringEntry(R(E, aV), toString(aK.caller)), StringEntry(X(E, aV), as), Burn(aO, bc)] ++ ba) | |
238 | 246 | else throw("Strict value is not equal to itself.") | |
239 | 247 | } | |
240 | 248 | else throw("Strict value is not equal to itself.") | |
241 | 249 | } | |
242 | 250 | ||
243 | 251 | ||
244 | 252 | ||
245 | 253 | @Callable(aK) | |
246 | 254 | func suggestRemove (E) = { | |
247 | - | let | |
248 | - | let | |
255 | + | let be = aj(toString(aK.caller), height) | |
256 | + | let bf = getIntegerValue(K) | |
249 | 257 | let aN = aK.payments[0] | |
250 | 258 | let aO = value(aN.assetId) | |
251 | 259 | let aP = value(aN.amount) | |
252 | - | let az = [if ((bc >= bd)) | |
260 | + | let aS = { | |
261 | + | let aT = invoke(u, "isVerifiedREADONLY", [E], nil) | |
262 | + | if ($isInstanceOf(aT, "Boolean")) | |
263 | + | then aT | |
264 | + | else throw(($getType(aT) + " couldn't be cast to Boolean")) | |
265 | + | } | |
266 | + | let az = [if (aS) | |
267 | + | then true | |
268 | + | else e("token not verified"), if ((be >= bf)) | |
253 | 269 | then true | |
254 | 270 | else e("not enough gWXes"), if ((aP >= getIntegerValue(W))) | |
255 | 271 | then true | |
256 | 272 | else e("payment less then min for suggest")] | |
257 | 273 | if ((az == az)) | |
258 | 274 | then { | |
259 | - | let | |
260 | - | let aw = getInteger( | |
261 | - | let | |
275 | + | let aU = L(E) | |
276 | + | let aw = getInteger(aU) | |
277 | + | let aV = if (isDefined(aw)) | |
262 | 278 | then (value(aw) + 1) | |
263 | 279 | else 0 | |
264 | 280 | let aL = valueOrErrorMessage(getInteger(A), c("periodLengthRemove not set")) | |
265 | 281 | let af = (height + aL) | |
266 | 282 | let ag = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
267 | 283 | let as = Y(false, "EMPTY", 0, "deverification", "inProgress", height, (height + aL), ag, 0, 0) | |
268 | - | [IntegerEntry( | |
284 | + | [IntegerEntry(aU, aV), StringEntry(R(E, aV), toString(aK.caller)), StringEntry(X(E, aV), as)] | |
269 | 285 | } | |
270 | 286 | else throw("Strict value is not equal to itself.") | |
271 | 287 | } | |
272 | 288 | ||
273 | 289 | ||
274 | 290 | ||
275 | 291 | @Callable(aK) | |
276 | 292 | func vote (E,P) = { | |
277 | - | let | |
278 | - | let aw = valueOrErrorMessage(getInteger( | |
293 | + | let aU = L(E) | |
294 | + | let aw = valueOrErrorMessage(getInteger(aU), c("voting does not exist")) | |
279 | 295 | let as = av(E, aw) | |
280 | 296 | if ((as == as)) | |
281 | 297 | then { | |
282 | - | let | |
283 | - | let | |
298 | + | let bg = as._2 | |
299 | + | let bh = aj(toString(aK.caller), bg) | |
284 | 300 | let aC = M(E, aw, aK.caller) | |
285 | 301 | let az = [if ((getString(aC) == unit)) | |
286 | 302 | then true | |
287 | - | else e("You have already voted"), if (( | |
303 | + | else e("You have already voted"), if ((bh > 0)) | |
288 | 304 | then true | |
289 | 305 | else throw("You'll not have gWX at the end of voting")] | |
290 | 306 | if ((az == az)) | |
291 | 307 | then { | |
292 | 308 | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
293 | 309 | let at = ar(aF) | |
294 | 310 | let ah = at._9 | |
295 | 311 | let ai = at._10 | |
296 | - | let | |
297 | - | then $Tuple2((ah + | |
298 | - | else $Tuple2(ah, (ai + | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
312 | + | let bi = if (P) | |
313 | + | then $Tuple2((ah + bh), ai) | |
314 | + | else $Tuple2(ah, (ai + bh)) | |
315 | + | let bj = bi._1 | |
316 | + | let bk = bi._2 | |
317 | + | let bl = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bj, bk) | |
318 | + | let bm = { | |
303 | 319 | let h = getString(D(E, aw)) | |
304 | 320 | if ($isInstanceOf(h, "String")) | |
305 | 321 | then { | |
306 | - | let | |
307 | - | [StringEntry(G(aK.caller, E, aw), O(P, | |
322 | + | let bn = h | |
323 | + | [StringEntry(G(aK.caller, E, aw), O(P, bh))] | |
308 | 324 | } | |
309 | 325 | else if ($isInstanceOf(h, "Unit")) | |
310 | 326 | then nil | |
311 | 327 | else throw("Match error") | |
312 | 328 | } | |
313 | - | ([StringEntry(aC, O(P, | |
329 | + | ([StringEntry(aC, O(P, bh)), StringEntry(X(E, aw), bl)] ++ bm) | |
314 | 330 | } | |
315 | 331 | else throw("Strict value is not equal to itself.") | |
316 | 332 | } | |
317 | 333 | else throw("Strict value is not equal to itself.") | |
318 | 334 | } | |
319 | 335 | ||
320 | 336 | ||
321 | 337 | ||
322 | 338 | @Callable(aK) | |
323 | 339 | func cancelVote (E) = { | |
324 | - | let | |
325 | - | let aw = valueOrErrorMessage(getInteger( | |
340 | + | let aU = L(E) | |
341 | + | let aw = valueOrErrorMessage(getInteger(aU), c("voting does not exist")) | |
326 | 342 | let aC = M(E, aw, aK.caller) | |
327 | 343 | let aD = valueOrErrorMessage(getString(aC), c("you have not voted")) | |
328 | 344 | let aE = split(aD, a) | |
329 | 345 | let P = aE[1] | |
330 | 346 | let Q = parseIntValue(aE[2]) | |
331 | 347 | let as = av(E, aw) | |
332 | 348 | if ((as == as)) | |
333 | 349 | then { | |
334 | 350 | let az = [if (if ((P == "true")) | |
335 | 351 | then true | |
336 | 352 | else (P == "false")) | |
337 | 353 | then true | |
338 | 354 | else e("invalid vote")] | |
339 | 355 | if ((az == az)) | |
340 | 356 | then { | |
341 | 357 | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
342 | 358 | let at = ar(aF) | |
343 | 359 | let ah = at._9 | |
344 | 360 | let ai = at._10 | |
345 | - | let | |
361 | + | let bo = if ((P == "true")) | |
346 | 362 | then $Tuple2((ah - Q), ai) | |
347 | 363 | else $Tuple2(ah, (ai - Q)) | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | [StringEntry(X(E, aw), | |
364 | + | let bj = bo._1 | |
365 | + | let bk = bo._2 | |
366 | + | let bl = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bj, bk) | |
367 | + | [StringEntry(X(E, aw), bl), DeleteEntry(aC), DeleteEntry(G(aK.caller, E, aw))] | |
352 | 368 | } | |
353 | 369 | else throw("Strict value is not equal to itself.") | |
354 | 370 | } | |
355 | 371 | else throw("Strict value is not equal to itself.") | |
356 | 372 | } | |
357 | 373 | ||
358 | 374 | ||
359 | 375 | ||
360 | 376 | @Callable(aK) | |
361 | 377 | func finalize (E) = { | |
362 | - | let | |
363 | - | let aw = valueOrElse(getInteger( | |
364 | - | let | |
365 | - | let | |
378 | + | let aU = L(E) | |
379 | + | let aw = valueOrElse(getInteger(aU), 0) | |
380 | + | let bp = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
381 | + | let bq = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
366 | 382 | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
367 | 383 | let at = ar(aF) | |
368 | 384 | let ac = at._4 | |
369 | 385 | let ad = at._5 | |
370 | 386 | let af = at._7 | |
371 | - | let | |
387 | + | let br = at._8 | |
372 | 388 | let ah = at._9 | |
373 | 389 | let ai = at._10 | |
374 | 390 | let az = [if ((ad == "inProgress")) | |
375 | 391 | then true | |
376 | 392 | else e("voting not in progress"), if ((height >= af)) | |
377 | 393 | then true | |
378 | 394 | else e("voting not finished")] | |
379 | 395 | if ((az == az)) | |
380 | 396 | then { | |
381 | - | let | |
397 | + | let bs = if (if (((ah + ai) >= br)) | |
382 | 398 | then (ah > ai) | |
383 | 399 | else false) | |
384 | 400 | then true | |
385 | 401 | else false | |
386 | - | let | |
402 | + | let bt = if (bs) | |
387 | 403 | then "accepted" | |
388 | 404 | else "rejected" | |
389 | - | let | |
405 | + | let bu = if ((ac == "verification")) | |
390 | 406 | then true | |
391 | 407 | else false | |
392 | - | let | |
408 | + | let bv = if (bs) | |
393 | 409 | then { | |
394 | - | let | |
395 | - | if (( | |
410 | + | let bw = invoke(u, "setVerified", [E, bu], nil) | |
411 | + | if ((bw == bw)) | |
396 | 412 | then { | |
397 | - | let | |
398 | - | [ScriptTransfer(aK.caller, | |
413 | + | let bb = valueOrElse(getInteger(J), 0) | |
414 | + | [ScriptTransfer(aK.caller, bb, x)] | |
399 | 415 | } | |
400 | 416 | else throw("Strict value is not equal to itself.") | |
401 | 417 | } | |
402 | 418 | else nil | |
403 | - | let | |
404 | - | ([StringEntry(X(E, aw), | |
419 | + | let bl = Y(at._1, at._2, at._3, at._4, bt, at._6, at._7, at._8, at._9, at._10) | |
420 | + | ([StringEntry(X(E, aw), bl)] ++ bv) | |
405 | 421 | } | |
406 | 422 | else throw("Strict value is not equal to itself.") | |
407 | 423 | } | |
408 | 424 | ||
409 | 425 | ||
410 | 426 | ||
411 | 427 | @Callable(aK) | |
412 | - | func claimREADONLY (E,F, | |
413 | - | let H = valueOrErrorMessage(addressFromString( | |
414 | - | let | |
415 | - | let ab = if (isDefined( | |
428 | + | func claimREADONLY (E,F,bx) = { | |
429 | + | let H = valueOrErrorMessage(addressFromString(bx), c("invalid address")) | |
430 | + | let by = getString(D(E, F)) | |
431 | + | let ab = if (isDefined(by)) | |
416 | 432 | then aA(H, E, F) | |
417 | 433 | else 0 | |
418 | 434 | $Tuple2(nil, ab) | |
419 | 435 | } | |
420 | 436 | ||
421 | 437 | ||
422 | 438 | ||
423 | 439 | @Callable(aK) | |
424 | 440 | func claim (E,F) = { | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let az = [if (( | |
441 | + | let bz = aK.caller | |
442 | + | let bA = S(bz, E, F) | |
443 | + | let bB = getInteger(bA) | |
444 | + | let az = [if ((bB == unit)) | |
429 | 445 | then true | |
430 | 446 | else e("already claimed")] | |
431 | 447 | if ((az == az)) | |
432 | 448 | then { | |
433 | - | let ab = if ((aA( | |
434 | - | then aA( | |
449 | + | let ab = if ((aA(bz, E, F) > 0)) | |
450 | + | then aA(bz, E, F) | |
435 | 451 | else e("nothing to claim") | |
436 | - | let | |
437 | - | let | |
452 | + | let by = getString(D(E, F)) | |
453 | + | let bC = if (isDefined(by)) | |
438 | 454 | then { | |
439 | - | let | |
440 | - | [ScriptTransfer( | |
455 | + | let bD = fromBase58String(value(by)) | |
456 | + | [ScriptTransfer(bz, ab, bD), IntegerEntry(bA, ab), DeleteEntry(G(bz, E, F))] | |
441 | 457 | } | |
442 | 458 | else e("nothing to claim") | |
443 | - | | |
459 | + | bC | |
444 | 460 | } | |
445 | 461 | else throw("Strict value is not equal to itself.") | |
446 | 462 | } | |
447 | 463 | ||
448 | 464 | ||
449 | - | @Verifier( | |
450 | - | func | |
451 | - | let | |
465 | + | @Verifier(bE) | |
466 | + | func bF () = { | |
467 | + | let bG = { | |
452 | 468 | let h = ap() | |
453 | 469 | if ($isInstanceOf(h, "ByteVector")) | |
454 | 470 | then { | |
455 | - | let | |
456 | - | | |
471 | + | let bn = h | |
472 | + | bn | |
457 | 473 | } | |
458 | 474 | else if ($isInstanceOf(h, "Unit")) | |
459 | - | then | |
475 | + | then bE.senderPublicKey | |
460 | 476 | else throw("Match error") | |
461 | 477 | } | |
462 | - | sigVerify( | |
478 | + | sigVerify(bE.bodyBytes, bE.proofs[0], bG) | |
463 | 479 | } | |
464 | 480 |
github/deemru/w8io/169f3d6 89.60 ms ◑