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