tx · A7iMdoRVk2SCwHCwEtQqb4TgepQuKq9Zj6NKAdPJD6Sb 3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5: -0.01900000 Waves 2024.11.01 19:39 [3352711] smart account 3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5 > SELF 0.00000000 Waves
{ "type": 13, "id": "A7iMdoRVk2SCwHCwEtQqb4TgepQuKq9Zj6NKAdPJD6Sb", "fee": 1900000, "feeAssetId": null, "timestamp": 1730479164459, "version": 2, "chainId": 84, "sender": "3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5", "senderPublicKey": "3ZB9kd3fTB7j5xvuxZe67A7aT4cNTs2gUk1tyFaCdWJ6", "proofs": [ "3MCe5TcySBP55Y7ermj7P7eM6Esbw4QDDHgKNkt4p9gLzsCRKKnLTxDYWREUdvSSZmkiwArcYcaBEcsMLY1tTkkw" ], "script": "base64:BgIWCAISAwoBCBIDCgEIEgMKAQgSAwoBCDABFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABEXRyeUdldEludEV4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwBQFhCQACAQIbUlRHSUU6IFNvbWV0aGluZyB3ZW50IHdyb25nAQlhc0Jvb2xlYW4BBXZhbHVlBAckbWF0Y2gwBQV2YWx1ZQMJAAECBQckbWF0Y2gwAgdCb29sZWFuBAdib29sZWFuBQckbWF0Y2gwBQdib29sZWFuCQACAQIiRkFCOiB3cm9uZyB0eXBlLCBleHBlY3RlZDogQm9vbGVhbgEMdHJ5R2V0U3RyaW5nAQNrZXkJARR0cnlHZXRTdHJpbmdFeHRlcm5hbAIFBHRoaXMFA2tleQAQZGVsYX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R4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCWZpcnN0VXNlcgABAAAEEHNlY29uZFVzZXJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQpzZWNvbmRVc2VyAAEAAAQPdGhpcmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAo677bE=", "height": 3352711, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AjUbuc9yNo62LUB39MsGxKBZkHyfg3GtfuQuQWyTu7gV Next: 56XrT1RJsvEiWBSyi8XFbe73xbnuVTuEp1weMNWgpuSj Diff:
Old | New | Differences | |
---|---|---|---|
207 | 207 | ||
208 | 208 | ||
209 | 209 | func an (ao,ap,aq) = { | |
210 | - | let ar = (P - fraction((P / 2), aq, 100)) | |
211 | - | let as = ag(ar, ao, ap, 1) | |
212 | - | if ((as == 1)) | |
210 | + | let ar = ag(10, ao, ap, 1) | |
211 | + | if ((ar == 1)) | |
213 | 212 | then "phoenix" | |
214 | 213 | else { | |
215 | - | let | |
216 | - | if ((10 > | |
214 | + | let as = ag(1000, ao, ap, 0) | |
215 | + | if ((10 > as)) | |
217 | 216 | then "item!ART-FREEGENE" | |
218 | - | else if ((126 > | |
217 | + | else if ((126 > as)) | |
219 | 218 | then "ar" | |
220 | - | else if ((186 > | |
219 | + | else if ((186 > as)) | |
221 | 220 | then "item!ART-FIRE_ARMOUR" | |
222 | - | else if ((206 > | |
221 | + | else if ((206 > as)) | |
223 | 222 | then "item!ART-FEED5" | |
224 | - | else if ((226 > | |
223 | + | else if ((226 > as)) | |
225 | 224 | then "item!ART-FEED10" | |
226 | - | else if ((246 > | |
225 | + | else if ((246 > as)) | |
227 | 226 | then "item!ART-FEED15" | |
228 | - | else if ((266 > | |
227 | + | else if ((266 > as)) | |
229 | 228 | then "item!ART-FEED20" | |
230 | - | else if ((286 > | |
229 | + | else if ((286 > as)) | |
231 | 230 | then "item!ART-FEED25" | |
232 | - | else if ((296 > | |
231 | + | else if ((296 > as)) | |
233 | 232 | then "item!ART-FEED50" | |
234 | - | else if ((300 > | |
233 | + | else if ((300 > as)) | |
235 | 234 | then "item!ART-FEED100" | |
236 | - | else if ((310 > | |
235 | + | else if ((310 > as)) | |
237 | 236 | then "item!ART-CROWN" | |
238 | - | else if ((350 > | |
237 | + | else if ((350 > as)) | |
239 | 238 | then "incubator" | |
240 | - | else if ((460 > | |
239 | + | else if ((460 > as)) | |
241 | 240 | then if ((50 > aq)) | |
242 | 241 | then "item!ART-BUILTBODY" | |
243 | 242 | else "item!ART-MUTARIUM-D" | |
244 | - | else if ((480 > | |
243 | + | else if ((480 > as)) | |
245 | 244 | then "item!ART-SNAKE" | |
246 | - | else if ((510 > | |
245 | + | else if ((510 > as)) | |
247 | 246 | then "item!ART-ROBODUCK" | |
248 | - | else if ((600 > | |
247 | + | else if ((600 > as)) | |
249 | 248 | then "item!ART-KATANA" | |
250 | - | else if ((650 > | |
249 | + | else if ((650 > as)) | |
251 | 250 | then if ((50 > aq)) | |
252 | 251 | then "item!ART-SCEPTER" | |
253 | 252 | else "item!ART-MUTARIUM-D" | |
254 | - | else if ((710 > | |
253 | + | else if ((710 > as)) | |
255 | 254 | then "item!ART-MUTARIUM-D" | |
256 | - | else if ((720 > | |
255 | + | else if ((720 > as)) | |
257 | 256 | then "item!ART-MUTARIUM-G" | |
258 | - | else if ((890 > | |
257 | + | else if ((890 > as)) | |
259 | 258 | then "duckling_10" | |
260 | - | else if ((960 > | |
259 | + | else if ((960 > as)) | |
261 | 260 | then "duckling_20" | |
262 | 261 | else "duckling_40" | |
263 | 262 | } | |
264 | 263 | } | |
265 | 264 | ||
266 | 265 | ||
267 | - | func | |
266 | + | func at (ad) = { | |
268 | 267 | let ae = value(assetInfo(ad)).name | |
269 | 268 | let X = take(takeRight(ae, 2), 1) | |
270 | 269 | if (if ((X == "G")) | |
275 | 274 | } | |
276 | 275 | ||
277 | 276 | ||
278 | - | func | |
277 | + | func au (h) = { | |
279 | 278 | let d = h | |
280 | 279 | if ($isInstanceOf(d, "Int")) | |
281 | 280 | then { | |
282 | - | let | |
283 | - | | |
281 | + | let av = d | |
282 | + | av | |
284 | 283 | } | |
285 | 284 | else if ($isInstanceOf(d, "String")) | |
286 | 285 | then { | |
287 | - | let | |
288 | - | throw(("RAI: wrong type, expected: Int, but got: " + | |
286 | + | let aw = d | |
287 | + | throw(("RAI: wrong type, expected: Int, but got: " + aw)) | |
289 | 288 | } | |
290 | 289 | else throw("RAI: wrong type, expected: Int") | |
291 | 290 | } | |
292 | 291 | ||
293 | 292 | ||
294 | - | func | |
293 | + | func ax (c) = { | |
295 | 294 | let d = getBoolean(this, c) | |
296 | 295 | if ($isInstanceOf(d, "Boolean")) | |
297 | 296 | then { | |
302 | 301 | } | |
303 | 302 | ||
304 | 303 | ||
305 | - | func | |
304 | + | func ay () = ax("TESTENV") | |
306 | 305 | ||
307 | 306 | ||
308 | - | func | |
309 | - | let | |
310 | - | let aq = Q((((("address_" + b) + "_initTx_") + | |
311 | - | let | |
312 | - | let | |
313 | - | if (( | |
307 | + | func az (aA,b,N,aB) = { | |
308 | + | let aC = Q((((("address_" + b) + "_initTx_") + aA) + "_finishBlock")) | |
309 | + | let aq = Q((((("address_" + b) + "_initTx_") + aA) + "_assetRarity")) | |
310 | + | let aD = j((((("address_" + b) + "_initTx_") + aA) + "_status")) | |
311 | + | let aE = M(N) | |
312 | + | if ((aE == aE)) | |
314 | 313 | then { | |
315 | - | let | |
316 | - | if (( | |
314 | + | let aF = invoke(H(), "recordAction", ["REBIRTH"], nil) | |
315 | + | if ((aF == aF)) | |
317 | 316 | then { | |
318 | - | func | |
317 | + | func aG (b) = fromBase58String(a(b, "static_accessItemAssetId")) | |
319 | 318 | ||
320 | - | func | |
319 | + | func aH (b) = f(b, "static_accessItemPrice") | |
321 | 320 | ||
322 | - | if (( | |
321 | + | if ((aD != "open")) | |
323 | 322 | then throw("rebirth is finished or not open") | |
324 | - | else if (( | |
323 | + | else if ((aC > height)) | |
325 | 324 | then throw("you cannot finish rebirth, yet") | |
326 | 325 | else { | |
327 | - | let | |
328 | - | let ai = | |
329 | - | let | |
326 | + | let aI = an(fromBase58String(aA), aC, aq) | |
327 | + | let ai = aA | |
328 | + | let aJ = if ((indexOf(aI, "perch") != unit)) | |
330 | 329 | then { | |
331 | - | let | |
332 | - | let | |
330 | + | let aK = takeRight(aI, 1) | |
331 | + | let aJ = if (!(aB)) | |
333 | 332 | then { | |
334 | - | let | |
335 | - | if (( | |
336 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
333 | + | let aL = invoke(D(), "addFreePerch", [b, aK, 1], nil) | |
334 | + | if ((aL == aL)) | |
335 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL))] | |
337 | 336 | else throw("Strict value is not equal to itself.") | |
338 | 337 | } | |
339 | 338 | else { | |
340 | - | let | |
341 | - | if (( | |
342 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
339 | + | let aL = invoke(D(), "addFreePerch", [b, aK, 2], nil) | |
340 | + | if ((aL == aL)) | |
341 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result1"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win1"), aI)] | |
343 | 342 | else throw("Strict value is not equal to itself.") | |
344 | 343 | } | |
345 | - | if (( | |
346 | - | then | |
344 | + | if ((aJ == aJ)) | |
345 | + | then aJ | |
347 | 346 | else throw("Strict value is not equal to itself.") | |
348 | 347 | } | |
349 | - | else if (( | |
348 | + | else if ((aI == "incubator")) | |
350 | 349 | then { | |
351 | - | let | |
350 | + | let aJ = if (!(aB)) | |
352 | 351 | then { | |
353 | - | let | |
354 | - | if (( | |
355 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
352 | + | let aL = invoke(B(), "issueFreeDuck", [b, ai], nil) | |
353 | + | if ((aL == aL)) | |
354 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL))] | |
356 | 355 | else throw("Strict value is not equal to itself.") | |
357 | 356 | } | |
358 | 357 | else { | |
359 | - | let | |
360 | - | if (( | |
358 | + | let aL = invoke(B(), "issueFreeDuck", [b, ai], nil) | |
359 | + | if ((aL == aL)) | |
361 | 360 | then { | |
362 | - | let | |
363 | - | if (( | |
364 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
361 | + | let aM = invoke(E(), "issueFreeDuckling", [b, ai, 100], nil) | |
362 | + | if ((aM == aM)) | |
363 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result1"), S(aM)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win1"), "duckling_100")] | |
365 | 364 | else throw("Strict value is not equal to itself.") | |
366 | 365 | } | |
367 | 366 | else throw("Strict value is not equal to itself.") | |
368 | 367 | } | |
369 | - | if (( | |
370 | - | then | |
368 | + | if ((aJ == aJ)) | |
369 | + | then aJ | |
371 | 370 | else throw("Strict value is not equal to itself.") | |
372 | 371 | } | |
373 | - | else if (( | |
372 | + | else if ((aI == "ar")) | |
374 | 373 | then { | |
375 | - | let ad = | |
376 | - | let | |
377 | - | let | |
378 | - | if (( | |
379 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
374 | + | let ad = aG(I()) | |
375 | + | let aN = aH(I()) | |
376 | + | let aO = invoke(I(), "buyAccessItemOther", [b], [AttachedPayment(ad, aN)]) | |
377 | + | if ((aO == aO)) | |
378 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aO))] | |
380 | 379 | else throw("Strict value is not equal to itself.") | |
381 | 380 | } | |
382 | - | else if (( | |
381 | + | else if ((aI == "phoenix")) | |
383 | 382 | then { | |
384 | - | let | |
385 | - | if (( | |
386 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
383 | + | let aO = invoke(B(), "issueJackpot", [b, ai, "WWWWHWTF"], nil) | |
384 | + | if ((aO == aO)) | |
385 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aO))] | |
387 | 386 | else throw("Strict value is not equal to itself.") | |
388 | 387 | } | |
389 | - | else if ((indexOf( | |
388 | + | else if ((indexOf(aI, "duckling") != unit)) | |
390 | 389 | then { | |
391 | - | let | |
392 | - | let | |
393 | - | then (2 * | |
394 | - | else | |
395 | - | let | |
396 | - | if (( | |
397 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
390 | + | let aP = parseIntValue(split(aI, "_")[1]) | |
391 | + | let aQ = if (aB) | |
392 | + | then (2 * aP) | |
393 | + | else aP | |
394 | + | let aO = invoke(E(), "issueFreeDuckling", [b, ai, aQ], nil) | |
395 | + | if ((aO == aO)) | |
396 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aO))] | |
398 | 397 | else throw("Strict value is not equal to itself.") | |
399 | 398 | } | |
400 | - | else if ((indexOf( | |
399 | + | else if ((indexOf(aI, "item") != unit)) | |
401 | 400 | then { | |
402 | - | let | |
403 | - | let | |
401 | + | let aR = split(aI, "!")[1] | |
402 | + | let aJ = if (!(aB)) | |
404 | 403 | then { | |
405 | - | let | |
406 | - | if (( | |
407 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
404 | + | let aL = invoke(G(), "issueArtefactIndex", [aR, b, 0], nil) | |
405 | + | if ((aL == aL)) | |
406 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL))] | |
408 | 407 | else throw("Strict value is not equal to itself.") | |
409 | 408 | } | |
410 | 409 | else { | |
411 | - | let | |
412 | - | if (( | |
410 | + | let aL = invoke(G(), "issueArtefactIndex", [aR, b, 0], nil) | |
411 | + | if ((aL == aL)) | |
413 | 412 | then { | |
414 | - | let | |
415 | - | if (( | |
416 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
413 | + | let aM = invoke(G(), "issueArtefactIndex", [aR, b, 1], nil) | |
414 | + | if ((aM == aM)) | |
415 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aM)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win1"), aI)] | |
417 | 416 | else throw("Strict value is not equal to itself.") | |
418 | 417 | } | |
419 | 418 | else throw("Strict value is not equal to itself.") | |
420 | 419 | } | |
421 | - | if (( | |
422 | - | then | |
420 | + | if ((aJ == aJ)) | |
421 | + | then aJ | |
423 | 422 | else throw("Strict value is not equal to itself.") | |
424 | 423 | } | |
425 | 424 | else throw("RFB: Some error occured, please contact the admins!") | |
426 | - | (( | |
425 | + | ((aJ ++ [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win"), aI), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_status"), "finish")]) ++ aE) | |
427 | 426 | } | |
428 | 427 | } | |
429 | 428 | else throw("Strict value is not equal to itself.") | |
432 | 431 | } | |
433 | 432 | ||
434 | 433 | ||
435 | - | @Callable( | |
436 | - | func configureOracle ( | |
434 | + | @Callable(aS) | |
435 | + | func configureOracle (aT) = if ((aS.caller != this)) | |
437 | 436 | then throw("RCU: admin only") | |
438 | - | else [StringEntry("static_oracleAddress", | |
437 | + | else [StringEntry("static_oracleAddress", aT)] | |
439 | 438 | ||
440 | 439 | ||
441 | 440 | ||
442 | - | @Callable( | |
443 | - | func initRebirth ( | |
444 | - | let | |
445 | - | let ad = value( | |
446 | - | let | |
447 | - | let b = toString( | |
448 | - | if (( | |
441 | + | @Callable(aS) | |
442 | + | func initRebirth (aU) = { | |
443 | + | let aV = aS.payments[0] | |
444 | + | let ad = value(aV.assetId) | |
445 | + | let aA = toBase58String(aS.transactionId) | |
446 | + | let b = toString(aS.caller) | |
447 | + | if ((aV.amount != 1)) | |
449 | 448 | then throw("NFT is not attached") | |
450 | 449 | else { | |
451 | - | let | |
452 | - | if (( | |
450 | + | let aW = au(invoke(H(), "useCoupons", [O], nil)) | |
451 | + | if ((aW == aW)) | |
453 | 452 | then { | |
454 | - | let | |
455 | - | let | |
456 | - | if (( | |
453 | + | let aX = (O - aW) | |
454 | + | let aE = M(aS.payments[1]) | |
455 | + | if ((aE == aE)) | |
457 | 456 | then { | |
458 | - | let N = if (( | |
457 | + | let N = if ((aX != 0)) | |
459 | 458 | then { | |
460 | - | let | |
461 | - | if (( | |
459 | + | let aY = value(aS.payments[2]) | |
460 | + | if ((aY.assetId != A())) | |
462 | 461 | then throw("You need to attach EGG tokens as fee") | |
463 | - | else if (( | |
464 | - | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString( | |
462 | + | else if ((aX > aY.amount)) | |
463 | + | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(aX))) | |
465 | 464 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | if (( | |
465 | + | let aZ = fraction(aX, 5, 100) | |
466 | + | let ba = g(invoke(K(), "refPayment", [aU], [AttachedPayment(A(), aZ)])) | |
467 | + | if ((ba == ba)) | |
469 | 468 | then { | |
470 | - | let | |
471 | - | then ( | |
472 | - | else | |
473 | - | let | |
474 | - | if (( | |
475 | - | then | |
469 | + | let bb = if (ba) | |
470 | + | then (aX - aZ) | |
471 | + | else aX | |
472 | + | let bc = invoke(J(), "burnAttachedPayments", nil, [AttachedPayment(A(), bb)]) | |
473 | + | if ((bc == bc)) | |
474 | + | then aX | |
476 | 475 | else throw("Strict value is not equal to itself.") | |
477 | 476 | } | |
478 | 477 | else throw("Strict value is not equal to itself.") | |
481 | 480 | else 0 | |
482 | 481 | if ((N == N)) | |
483 | 482 | then { | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | if (( | |
489 | - | then ([IntegerEntry((((("address_" + b) + "_initTx_") + | |
483 | + | let bd = ac(ad) | |
484 | + | let be = bd._1 | |
485 | + | let bf = bd._2 | |
486 | + | let aO = invoke(at(ad), "reduceRarity", [toBase58String(ad), be], nil) | |
487 | + | if ((aO == aO)) | |
488 | + | then ([IntegerEntry((((("address_" + b) + "_initTx_") + aA) + "_finishBlock"), (height + k)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_status"), "open"), IntegerEntry((((("address_" + b) + "_initTx_") + aA) + "_assetRarity"), bf), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_assetId"), toBase58String(ad))] ++ aE) | |
490 | 489 | else throw("Strict value is not equal to itself.") | |
491 | 490 | } | |
492 | 491 | else throw("Strict value is not equal to itself.") | |
499 | 498 | ||
500 | 499 | ||
501 | 500 | ||
502 | - | @Callable( | |
503 | - | func finishRebirth ( | |
501 | + | @Callable(aS) | |
502 | + | func finishRebirth (aA) = az(aA, toString(aS.caller), aS.payments[0], false) | |
504 | 503 | ||
505 | 504 | ||
506 | 505 | ||
507 | - | @Callable( | |
508 | - | func finishRebirthDouble ( | |
509 | - | then ( | |
506 | + | @Callable(aS) | |
507 | + | func finishRebirthDouble (aA) = if (!(if ((size(aS.payments) == 2)) | |
508 | + | then (aS.payments[0].amount == 1) | |
510 | 509 | else false)) | |
511 | 510 | then throw("Invalid payment") | |
512 | 511 | else { | |
513 | - | let ad = value( | |
514 | - | let | |
515 | - | if (( | |
516 | - | then if (( | |
517 | - | then ([Burn(ad, 1)] ++ aA | |
512 | + | let ad = value(aS.payments[0].assetId) | |
513 | + | let bg = S(invoke(G(), "checkArtefactDetails", [toBase58String(ad)], nil)) | |
514 | + | if ((bg == bg)) | |
515 | + | then if ((bg == "ART-GIFT_DOUBL")) | |
516 | + | then ([Burn(ad, 1)] ++ az(aA, toString(aS.caller), aS.payments[1], true)) | |
518 | 517 | else throw("Error! Wrong item attached to double rewards!") | |
519 | 518 | else throw("Strict value is not equal to itself.") | |
520 | 519 | } | |
521 | 520 | ||
522 | 521 | ||
523 | 522 | @Verifier(ao) | |
524 | - | func | |
523 | + | func bh () = if (ay()) | |
525 | 524 | then sigVerify(ao.bodyBytes, ao.proofs[0], ao.senderPublicKey) | |
526 | 525 | else { | |
527 | - | let bj = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
528 | - | let bk = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
529 | - | let bl = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
526 | + | let bi = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
527 | + | let bj = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
528 | + | let bk = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
529 | + | let bl = if (sigVerify(ao.bodyBytes, ao.proofs[0], bi)) | |
530 | + | then 1 | |
531 | + | else if (sigVerify(ao.bodyBytes, ao.proofs[1], bi)) | |
532 | + | then 1 | |
533 | + | else if (sigVerify(ao.bodyBytes, ao.proofs[2], bi)) | |
534 | + | then 1 | |
535 | + | else 0 | |
530 | 536 | let bm = if (sigVerify(ao.bodyBytes, ao.proofs[0], bj)) | |
531 | 537 | then 1 | |
532 | 538 | else if (sigVerify(ao.bodyBytes, ao.proofs[1], bj)) | |
541 | 547 | else if (sigVerify(ao.bodyBytes, ao.proofs[2], bk)) | |
542 | 548 | then 1 | |
543 | 549 | else 0 | |
544 | - | let bo = if (sigVerify(ao.bodyBytes, ao.proofs[0], bl)) | |
545 | - | then 1 | |
546 | - | else if (sigVerify(ao.bodyBytes, ao.proofs[1], bl)) | |
547 | - | then 1 | |
548 | - | else if (sigVerify(ao.bodyBytes, ao.proofs[2], bl)) | |
549 | - | then 1 | |
550 | - | else 0 | |
551 | - | let bp = ((bm + bn) + bo) | |
550 | + | let bo = ((bl + bm) + bn) | |
552 | 551 | let d = ao | |
553 | - | ( | |
552 | + | (bo >= 2) | |
554 | 553 | } | |
555 | 554 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = { | |
5 | 5 | let d = getString(b, c) | |
6 | 6 | if ($isInstanceOf(d, "String")) | |
7 | 7 | then { | |
8 | 8 | let e = d | |
9 | 9 | e | |
10 | 10 | } | |
11 | 11 | else "" | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (b,c) = { | |
16 | 16 | let d = getInteger(b, c) | |
17 | 17 | if ($isInstanceOf(d, "Int")) | |
18 | 18 | then { | |
19 | 19 | let e = d | |
20 | 20 | e | |
21 | 21 | } | |
22 | 22 | else throw("RTGIE: Something went wrong") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func g (h) = { | |
27 | 27 | let d = h | |
28 | 28 | if ($isInstanceOf(d, "Boolean")) | |
29 | 29 | then { | |
30 | 30 | let i = d | |
31 | 31 | i | |
32 | 32 | } | |
33 | 33 | else throw("FAB: wrong type, expected: Boolean") | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func j (c) = a(this, c) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | let k = 2 | |
41 | 41 | ||
42 | 42 | func l () = "static_oracleAddress" | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func m () = "static_eggAssetId" | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func n () = "static_incubatorAddress" | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func o () = "static_breederAddress" | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func p () = "static_farmingAddressNew" | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func q () = "static_babyDuckAddress" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func r () = "static_gameDappAddress" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func s () = "static_itemsAddress" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func t () = "static_couponsAddress" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func u () = "static_huntAddress" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func v () = "static_burnAddress" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func w () = "static_refContractAddress" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func x () = "static_extraFee" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func y () = "static_feeAggregator" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func z () = Address(fromBase58String(j(l()))) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func A () = fromBase58String(a(z(), m())) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func B () = Address(fromBase58String(a(z(), n()))) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func C () = Address(fromBase58String(a(z(), o()))) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func D () = Address(fromBase58String(a(z(), p()))) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func E () = Address(fromBase58String(a(z(), q()))) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func F () = Address(fromBase58String(a(z(), r()))) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func G () = Address(fromBase58String(a(z(), s()))) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func H () = Address(fromBase58String(a(z(), t()))) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func I () = Address(fromBase58String(a(z(), u()))) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func J () = Address(fromBase58String(a(z(), v()))) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func K () = Address(fromBase58String(a(z(), w()))) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func L () = Address(fromBase58String(a(z(), y()))) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func M (N) = if (isDefined(N.assetId)) | |
124 | 124 | then throw("RCAP: Please attach waves") | |
125 | 125 | else { | |
126 | 126 | let O = getIntegerValue(z(), x()) | |
127 | 127 | if ((N.amount != O)) | |
128 | 128 | then throw((("RCAP: Please attach exactly " + toString(O)) + " amount of wavelets")) | |
129 | 129 | else [ScriptTransfer(L(), O, unit)] | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | let P = 1000 | |
134 | 134 | ||
135 | 135 | func Q (c) = { | |
136 | 136 | let d = getInteger(this, c) | |
137 | 137 | if ($isInstanceOf(d, "Int")) | |
138 | 138 | then { | |
139 | 139 | let R = d | |
140 | 140 | R | |
141 | 141 | } | |
142 | 142 | else 0 | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func S (h) = { | |
147 | 147 | let d = h | |
148 | 148 | if ($isInstanceOf(d, "String")) | |
149 | 149 | then { | |
150 | 150 | let T = d | |
151 | 151 | T | |
152 | 152 | } | |
153 | 153 | else if ($isInstanceOf(d, "Int")) | |
154 | 154 | then { | |
155 | 155 | let T = d | |
156 | 156 | throw("wrong type, expected: String, got: Int") | |
157 | 157 | } | |
158 | 158 | else if ($isInstanceOf(d, "Unit")) | |
159 | 159 | then { | |
160 | 160 | let T = d | |
161 | 161 | throw("wrong type, expected: String, got: Unit") | |
162 | 162 | } | |
163 | 163 | else throw("wrong type, expected: String") | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | let O = Q("currentPrice") | |
168 | 168 | ||
169 | 169 | func U (V) = if (contains(V, "0")) | |
170 | 170 | then "" | |
171 | 171 | else V | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func W (X) = if ((X == "G")) | |
175 | 175 | then B() | |
176 | 176 | else C() | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func Y (Z,X) = { | |
180 | 180 | let aa = getIntegerValue(W(X), (("stats_" + Z) + "_quantity")) | |
181 | 181 | let ab = pow((10000 / aa), 4, 5, 1, 2, FLOOR) | |
182 | 182 | if ((ab > 0)) | |
183 | 183 | then ab | |
184 | 184 | else 2 | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func ac (ad) = if (if ((value(assetInfo(ad)).issuer == C())) | |
189 | 189 | then true | |
190 | 190 | else (value(assetInfo(ad)).issuer == B())) | |
191 | 191 | then { | |
192 | 192 | let ae = value(assetInfo(ad)).name | |
193 | 193 | let X = take(takeRight(ae, 2), 1) | |
194 | 194 | let af = S(invoke(C(), "getGenFromName", [ae], nil)) | |
195 | 195 | if ((af == af)) | |
196 | 196 | then $Tuple2(af, Y(af, X)) | |
197 | 197 | else throw("Strict value is not equal to itself.") | |
198 | 198 | } | |
199 | 199 | else throw("not valid NFT") | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func ag (ah,ai,aj,ak) = { | |
203 | 203 | let al = value(blockInfoByHeight((aj - 1))) | |
204 | 204 | let am = sha256((ai + value(al.vrf))) | |
205 | 205 | (toInt(am, (ak * 8)) % ah) | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func an (ao,ap,aq) = { | |
210 | - | let ar = (P - fraction((P / 2), aq, 100)) | |
211 | - | let as = ag(ar, ao, ap, 1) | |
212 | - | if ((as == 1)) | |
210 | + | let ar = ag(10, ao, ap, 1) | |
211 | + | if ((ar == 1)) | |
213 | 212 | then "phoenix" | |
214 | 213 | else { | |
215 | - | let | |
216 | - | if ((10 > | |
214 | + | let as = ag(1000, ao, ap, 0) | |
215 | + | if ((10 > as)) | |
217 | 216 | then "item!ART-FREEGENE" | |
218 | - | else if ((126 > | |
217 | + | else if ((126 > as)) | |
219 | 218 | then "ar" | |
220 | - | else if ((186 > | |
219 | + | else if ((186 > as)) | |
221 | 220 | then "item!ART-FIRE_ARMOUR" | |
222 | - | else if ((206 > | |
221 | + | else if ((206 > as)) | |
223 | 222 | then "item!ART-FEED5" | |
224 | - | else if ((226 > | |
223 | + | else if ((226 > as)) | |
225 | 224 | then "item!ART-FEED10" | |
226 | - | else if ((246 > | |
225 | + | else if ((246 > as)) | |
227 | 226 | then "item!ART-FEED15" | |
228 | - | else if ((266 > | |
227 | + | else if ((266 > as)) | |
229 | 228 | then "item!ART-FEED20" | |
230 | - | else if ((286 > | |
229 | + | else if ((286 > as)) | |
231 | 230 | then "item!ART-FEED25" | |
232 | - | else if ((296 > | |
231 | + | else if ((296 > as)) | |
233 | 232 | then "item!ART-FEED50" | |
234 | - | else if ((300 > | |
233 | + | else if ((300 > as)) | |
235 | 234 | then "item!ART-FEED100" | |
236 | - | else if ((310 > | |
235 | + | else if ((310 > as)) | |
237 | 236 | then "item!ART-CROWN" | |
238 | - | else if ((350 > | |
237 | + | else if ((350 > as)) | |
239 | 238 | then "incubator" | |
240 | - | else if ((460 > | |
239 | + | else if ((460 > as)) | |
241 | 240 | then if ((50 > aq)) | |
242 | 241 | then "item!ART-BUILTBODY" | |
243 | 242 | else "item!ART-MUTARIUM-D" | |
244 | - | else if ((480 > | |
243 | + | else if ((480 > as)) | |
245 | 244 | then "item!ART-SNAKE" | |
246 | - | else if ((510 > | |
245 | + | else if ((510 > as)) | |
247 | 246 | then "item!ART-ROBODUCK" | |
248 | - | else if ((600 > | |
247 | + | else if ((600 > as)) | |
249 | 248 | then "item!ART-KATANA" | |
250 | - | else if ((650 > | |
249 | + | else if ((650 > as)) | |
251 | 250 | then if ((50 > aq)) | |
252 | 251 | then "item!ART-SCEPTER" | |
253 | 252 | else "item!ART-MUTARIUM-D" | |
254 | - | else if ((710 > | |
253 | + | else if ((710 > as)) | |
255 | 254 | then "item!ART-MUTARIUM-D" | |
256 | - | else if ((720 > | |
255 | + | else if ((720 > as)) | |
257 | 256 | then "item!ART-MUTARIUM-G" | |
258 | - | else if ((890 > | |
257 | + | else if ((890 > as)) | |
259 | 258 | then "duckling_10" | |
260 | - | else if ((960 > | |
259 | + | else if ((960 > as)) | |
261 | 260 | then "duckling_20" | |
262 | 261 | else "duckling_40" | |
263 | 262 | } | |
264 | 263 | } | |
265 | 264 | ||
266 | 265 | ||
267 | - | func | |
266 | + | func at (ad) = { | |
268 | 267 | let ae = value(assetInfo(ad)).name | |
269 | 268 | let X = take(takeRight(ae, 2), 1) | |
270 | 269 | if (if ((X == "G")) | |
271 | 270 | then true | |
272 | 271 | else (X == "J")) | |
273 | 272 | then B() | |
274 | 273 | else C() | |
275 | 274 | } | |
276 | 275 | ||
277 | 276 | ||
278 | - | func | |
277 | + | func au (h) = { | |
279 | 278 | let d = h | |
280 | 279 | if ($isInstanceOf(d, "Int")) | |
281 | 280 | then { | |
282 | - | let | |
283 | - | | |
281 | + | let av = d | |
282 | + | av | |
284 | 283 | } | |
285 | 284 | else if ($isInstanceOf(d, "String")) | |
286 | 285 | then { | |
287 | - | let | |
288 | - | throw(("RAI: wrong type, expected: Int, but got: " + | |
286 | + | let aw = d | |
287 | + | throw(("RAI: wrong type, expected: Int, but got: " + aw)) | |
289 | 288 | } | |
290 | 289 | else throw("RAI: wrong type, expected: Int") | |
291 | 290 | } | |
292 | 291 | ||
293 | 292 | ||
294 | - | func | |
293 | + | func ax (c) = { | |
295 | 294 | let d = getBoolean(this, c) | |
296 | 295 | if ($isInstanceOf(d, "Boolean")) | |
297 | 296 | then { | |
298 | 297 | let R = d | |
299 | 298 | R | |
300 | 299 | } | |
301 | 300 | else false | |
302 | 301 | } | |
303 | 302 | ||
304 | 303 | ||
305 | - | func | |
304 | + | func ay () = ax("TESTENV") | |
306 | 305 | ||
307 | 306 | ||
308 | - | func | |
309 | - | let | |
310 | - | let aq = Q((((("address_" + b) + "_initTx_") + | |
311 | - | let | |
312 | - | let | |
313 | - | if (( | |
307 | + | func az (aA,b,N,aB) = { | |
308 | + | let aC = Q((((("address_" + b) + "_initTx_") + aA) + "_finishBlock")) | |
309 | + | let aq = Q((((("address_" + b) + "_initTx_") + aA) + "_assetRarity")) | |
310 | + | let aD = j((((("address_" + b) + "_initTx_") + aA) + "_status")) | |
311 | + | let aE = M(N) | |
312 | + | if ((aE == aE)) | |
314 | 313 | then { | |
315 | - | let | |
316 | - | if (( | |
314 | + | let aF = invoke(H(), "recordAction", ["REBIRTH"], nil) | |
315 | + | if ((aF == aF)) | |
317 | 316 | then { | |
318 | - | func | |
317 | + | func aG (b) = fromBase58String(a(b, "static_accessItemAssetId")) | |
319 | 318 | ||
320 | - | func | |
319 | + | func aH (b) = f(b, "static_accessItemPrice") | |
321 | 320 | ||
322 | - | if (( | |
321 | + | if ((aD != "open")) | |
323 | 322 | then throw("rebirth is finished or not open") | |
324 | - | else if (( | |
323 | + | else if ((aC > height)) | |
325 | 324 | then throw("you cannot finish rebirth, yet") | |
326 | 325 | else { | |
327 | - | let | |
328 | - | let ai = | |
329 | - | let | |
326 | + | let aI = an(fromBase58String(aA), aC, aq) | |
327 | + | let ai = aA | |
328 | + | let aJ = if ((indexOf(aI, "perch") != unit)) | |
330 | 329 | then { | |
331 | - | let | |
332 | - | let | |
330 | + | let aK = takeRight(aI, 1) | |
331 | + | let aJ = if (!(aB)) | |
333 | 332 | then { | |
334 | - | let | |
335 | - | if (( | |
336 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
333 | + | let aL = invoke(D(), "addFreePerch", [b, aK, 1], nil) | |
334 | + | if ((aL == aL)) | |
335 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL))] | |
337 | 336 | else throw("Strict value is not equal to itself.") | |
338 | 337 | } | |
339 | 338 | else { | |
340 | - | let | |
341 | - | if (( | |
342 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
339 | + | let aL = invoke(D(), "addFreePerch", [b, aK, 2], nil) | |
340 | + | if ((aL == aL)) | |
341 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result1"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win1"), aI)] | |
343 | 342 | else throw("Strict value is not equal to itself.") | |
344 | 343 | } | |
345 | - | if (( | |
346 | - | then | |
344 | + | if ((aJ == aJ)) | |
345 | + | then aJ | |
347 | 346 | else throw("Strict value is not equal to itself.") | |
348 | 347 | } | |
349 | - | else if (( | |
348 | + | else if ((aI == "incubator")) | |
350 | 349 | then { | |
351 | - | let | |
350 | + | let aJ = if (!(aB)) | |
352 | 351 | then { | |
353 | - | let | |
354 | - | if (( | |
355 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
352 | + | let aL = invoke(B(), "issueFreeDuck", [b, ai], nil) | |
353 | + | if ((aL == aL)) | |
354 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL))] | |
356 | 355 | else throw("Strict value is not equal to itself.") | |
357 | 356 | } | |
358 | 357 | else { | |
359 | - | let | |
360 | - | if (( | |
358 | + | let aL = invoke(B(), "issueFreeDuck", [b, ai], nil) | |
359 | + | if ((aL == aL)) | |
361 | 360 | then { | |
362 | - | let | |
363 | - | if (( | |
364 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
361 | + | let aM = invoke(E(), "issueFreeDuckling", [b, ai, 100], nil) | |
362 | + | if ((aM == aM)) | |
363 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result1"), S(aM)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win1"), "duckling_100")] | |
365 | 364 | else throw("Strict value is not equal to itself.") | |
366 | 365 | } | |
367 | 366 | else throw("Strict value is not equal to itself.") | |
368 | 367 | } | |
369 | - | if (( | |
370 | - | then | |
368 | + | if ((aJ == aJ)) | |
369 | + | then aJ | |
371 | 370 | else throw("Strict value is not equal to itself.") | |
372 | 371 | } | |
373 | - | else if (( | |
372 | + | else if ((aI == "ar")) | |
374 | 373 | then { | |
375 | - | let ad = | |
376 | - | let | |
377 | - | let | |
378 | - | if (( | |
379 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
374 | + | let ad = aG(I()) | |
375 | + | let aN = aH(I()) | |
376 | + | let aO = invoke(I(), "buyAccessItemOther", [b], [AttachedPayment(ad, aN)]) | |
377 | + | if ((aO == aO)) | |
378 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aO))] | |
380 | 379 | else throw("Strict value is not equal to itself.") | |
381 | 380 | } | |
382 | - | else if (( | |
381 | + | else if ((aI == "phoenix")) | |
383 | 382 | then { | |
384 | - | let | |
385 | - | if (( | |
386 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
383 | + | let aO = invoke(B(), "issueJackpot", [b, ai, "WWWWHWTF"], nil) | |
384 | + | if ((aO == aO)) | |
385 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aO))] | |
387 | 386 | else throw("Strict value is not equal to itself.") | |
388 | 387 | } | |
389 | - | else if ((indexOf( | |
388 | + | else if ((indexOf(aI, "duckling") != unit)) | |
390 | 389 | then { | |
391 | - | let | |
392 | - | let | |
393 | - | then (2 * | |
394 | - | else | |
395 | - | let | |
396 | - | if (( | |
397 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
390 | + | let aP = parseIntValue(split(aI, "_")[1]) | |
391 | + | let aQ = if (aB) | |
392 | + | then (2 * aP) | |
393 | + | else aP | |
394 | + | let aO = invoke(E(), "issueFreeDuckling", [b, ai, aQ], nil) | |
395 | + | if ((aO == aO)) | |
396 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aO))] | |
398 | 397 | else throw("Strict value is not equal to itself.") | |
399 | 398 | } | |
400 | - | else if ((indexOf( | |
399 | + | else if ((indexOf(aI, "item") != unit)) | |
401 | 400 | then { | |
402 | - | let | |
403 | - | let | |
401 | + | let aR = split(aI, "!")[1] | |
402 | + | let aJ = if (!(aB)) | |
404 | 403 | then { | |
405 | - | let | |
406 | - | if (( | |
407 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
404 | + | let aL = invoke(G(), "issueArtefactIndex", [aR, b, 0], nil) | |
405 | + | if ((aL == aL)) | |
406 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL))] | |
408 | 407 | else throw("Strict value is not equal to itself.") | |
409 | 408 | } | |
410 | 409 | else { | |
411 | - | let | |
412 | - | if (( | |
410 | + | let aL = invoke(G(), "issueArtefactIndex", [aR, b, 0], nil) | |
411 | + | if ((aL == aL)) | |
413 | 412 | then { | |
414 | - | let | |
415 | - | if (( | |
416 | - | then [StringEntry((((("address_" + b) + "_initTx_") + | |
413 | + | let aM = invoke(G(), "issueArtefactIndex", [aR, b, 1], nil) | |
414 | + | if ((aM == aM)) | |
415 | + | then [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aL)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_result"), S(aM)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win1"), aI)] | |
417 | 416 | else throw("Strict value is not equal to itself.") | |
418 | 417 | } | |
419 | 418 | else throw("Strict value is not equal to itself.") | |
420 | 419 | } | |
421 | - | if (( | |
422 | - | then | |
420 | + | if ((aJ == aJ)) | |
421 | + | then aJ | |
423 | 422 | else throw("Strict value is not equal to itself.") | |
424 | 423 | } | |
425 | 424 | else throw("RFB: Some error occured, please contact the admins!") | |
426 | - | (( | |
425 | + | ((aJ ++ [StringEntry((((("address_" + b) + "_initTx_") + aA) + "_win"), aI), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_status"), "finish")]) ++ aE) | |
427 | 426 | } | |
428 | 427 | } | |
429 | 428 | else throw("Strict value is not equal to itself.") | |
430 | 429 | } | |
431 | 430 | else throw("Strict value is not equal to itself.") | |
432 | 431 | } | |
433 | 432 | ||
434 | 433 | ||
435 | - | @Callable( | |
436 | - | func configureOracle ( | |
434 | + | @Callable(aS) | |
435 | + | func configureOracle (aT) = if ((aS.caller != this)) | |
437 | 436 | then throw("RCU: admin only") | |
438 | - | else [StringEntry("static_oracleAddress", | |
437 | + | else [StringEntry("static_oracleAddress", aT)] | |
439 | 438 | ||
440 | 439 | ||
441 | 440 | ||
442 | - | @Callable( | |
443 | - | func initRebirth ( | |
444 | - | let | |
445 | - | let ad = value( | |
446 | - | let | |
447 | - | let b = toString( | |
448 | - | if (( | |
441 | + | @Callable(aS) | |
442 | + | func initRebirth (aU) = { | |
443 | + | let aV = aS.payments[0] | |
444 | + | let ad = value(aV.assetId) | |
445 | + | let aA = toBase58String(aS.transactionId) | |
446 | + | let b = toString(aS.caller) | |
447 | + | if ((aV.amount != 1)) | |
449 | 448 | then throw("NFT is not attached") | |
450 | 449 | else { | |
451 | - | let | |
452 | - | if (( | |
450 | + | let aW = au(invoke(H(), "useCoupons", [O], nil)) | |
451 | + | if ((aW == aW)) | |
453 | 452 | then { | |
454 | - | let | |
455 | - | let | |
456 | - | if (( | |
453 | + | let aX = (O - aW) | |
454 | + | let aE = M(aS.payments[1]) | |
455 | + | if ((aE == aE)) | |
457 | 456 | then { | |
458 | - | let N = if (( | |
457 | + | let N = if ((aX != 0)) | |
459 | 458 | then { | |
460 | - | let | |
461 | - | if (( | |
459 | + | let aY = value(aS.payments[2]) | |
460 | + | if ((aY.assetId != A())) | |
462 | 461 | then throw("You need to attach EGG tokens as fee") | |
463 | - | else if (( | |
464 | - | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString( | |
462 | + | else if ((aX > aY.amount)) | |
463 | + | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(aX))) | |
465 | 464 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | if (( | |
465 | + | let aZ = fraction(aX, 5, 100) | |
466 | + | let ba = g(invoke(K(), "refPayment", [aU], [AttachedPayment(A(), aZ)])) | |
467 | + | if ((ba == ba)) | |
469 | 468 | then { | |
470 | - | let | |
471 | - | then ( | |
472 | - | else | |
473 | - | let | |
474 | - | if (( | |
475 | - | then | |
469 | + | let bb = if (ba) | |
470 | + | then (aX - aZ) | |
471 | + | else aX | |
472 | + | let bc = invoke(J(), "burnAttachedPayments", nil, [AttachedPayment(A(), bb)]) | |
473 | + | if ((bc == bc)) | |
474 | + | then aX | |
476 | 475 | else throw("Strict value is not equal to itself.") | |
477 | 476 | } | |
478 | 477 | else throw("Strict value is not equal to itself.") | |
479 | 478 | } | |
480 | 479 | } | |
481 | 480 | else 0 | |
482 | 481 | if ((N == N)) | |
483 | 482 | then { | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | if (( | |
489 | - | then ([IntegerEntry((((("address_" + b) + "_initTx_") + | |
483 | + | let bd = ac(ad) | |
484 | + | let be = bd._1 | |
485 | + | let bf = bd._2 | |
486 | + | let aO = invoke(at(ad), "reduceRarity", [toBase58String(ad), be], nil) | |
487 | + | if ((aO == aO)) | |
488 | + | then ([IntegerEntry((((("address_" + b) + "_initTx_") + aA) + "_finishBlock"), (height + k)), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_status"), "open"), IntegerEntry((((("address_" + b) + "_initTx_") + aA) + "_assetRarity"), bf), StringEntry((((("address_" + b) + "_initTx_") + aA) + "_assetId"), toBase58String(ad))] ++ aE) | |
490 | 489 | else throw("Strict value is not equal to itself.") | |
491 | 490 | } | |
492 | 491 | else throw("Strict value is not equal to itself.") | |
493 | 492 | } | |
494 | 493 | else throw("Strict value is not equal to itself.") | |
495 | 494 | } | |
496 | 495 | else throw("Strict value is not equal to itself.") | |
497 | 496 | } | |
498 | 497 | } | |
499 | 498 | ||
500 | 499 | ||
501 | 500 | ||
502 | - | @Callable( | |
503 | - | func finishRebirth ( | |
501 | + | @Callable(aS) | |
502 | + | func finishRebirth (aA) = az(aA, toString(aS.caller), aS.payments[0], false) | |
504 | 503 | ||
505 | 504 | ||
506 | 505 | ||
507 | - | @Callable( | |
508 | - | func finishRebirthDouble ( | |
509 | - | then ( | |
506 | + | @Callable(aS) | |
507 | + | func finishRebirthDouble (aA) = if (!(if ((size(aS.payments) == 2)) | |
508 | + | then (aS.payments[0].amount == 1) | |
510 | 509 | else false)) | |
511 | 510 | then throw("Invalid payment") | |
512 | 511 | else { | |
513 | - | let ad = value( | |
514 | - | let | |
515 | - | if (( | |
516 | - | then if (( | |
517 | - | then ([Burn(ad, 1)] ++ aA | |
512 | + | let ad = value(aS.payments[0].assetId) | |
513 | + | let bg = S(invoke(G(), "checkArtefactDetails", [toBase58String(ad)], nil)) | |
514 | + | if ((bg == bg)) | |
515 | + | then if ((bg == "ART-GIFT_DOUBL")) | |
516 | + | then ([Burn(ad, 1)] ++ az(aA, toString(aS.caller), aS.payments[1], true)) | |
518 | 517 | else throw("Error! Wrong item attached to double rewards!") | |
519 | 518 | else throw("Strict value is not equal to itself.") | |
520 | 519 | } | |
521 | 520 | ||
522 | 521 | ||
523 | 522 | @Verifier(ao) | |
524 | - | func | |
523 | + | func bh () = if (ay()) | |
525 | 524 | then sigVerify(ao.bodyBytes, ao.proofs[0], ao.senderPublicKey) | |
526 | 525 | else { | |
527 | - | let bj = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
528 | - | let bk = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
529 | - | let bl = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
526 | + | let bi = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
527 | + | let bj = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
528 | + | let bk = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
529 | + | let bl = if (sigVerify(ao.bodyBytes, ao.proofs[0], bi)) | |
530 | + | then 1 | |
531 | + | else if (sigVerify(ao.bodyBytes, ao.proofs[1], bi)) | |
532 | + | then 1 | |
533 | + | else if (sigVerify(ao.bodyBytes, ao.proofs[2], bi)) | |
534 | + | then 1 | |
535 | + | else 0 | |
530 | 536 | let bm = if (sigVerify(ao.bodyBytes, ao.proofs[0], bj)) | |
531 | 537 | then 1 | |
532 | 538 | else if (sigVerify(ao.bodyBytes, ao.proofs[1], bj)) | |
533 | 539 | then 1 | |
534 | 540 | else if (sigVerify(ao.bodyBytes, ao.proofs[2], bj)) | |
535 | 541 | then 1 | |
536 | 542 | else 0 | |
537 | 543 | let bn = if (sigVerify(ao.bodyBytes, ao.proofs[0], bk)) | |
538 | 544 | then 1 | |
539 | 545 | else if (sigVerify(ao.bodyBytes, ao.proofs[1], bk)) | |
540 | 546 | then 1 | |
541 | 547 | else if (sigVerify(ao.bodyBytes, ao.proofs[2], bk)) | |
542 | 548 | then 1 | |
543 | 549 | else 0 | |
544 | - | let bo = if (sigVerify(ao.bodyBytes, ao.proofs[0], bl)) | |
545 | - | then 1 | |
546 | - | else if (sigVerify(ao.bodyBytes, ao.proofs[1], bl)) | |
547 | - | then 1 | |
548 | - | else if (sigVerify(ao.bodyBytes, ao.proofs[2], bl)) | |
549 | - | then 1 | |
550 | - | else 0 | |
551 | - | let bp = ((bm + bn) + bo) | |
550 | + | let bo = ((bl + bm) + bn) | |
552 | 551 | let d = ao | |
553 | - | ( | |
552 | + | (bo >= 2) | |
554 | 553 | } | |
555 | 554 |
github/deemru/w8io/169f3d6 186.07 ms ◑