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