tx · Ask62ZaThJG2MrccVRnR7n1ku45Lu4epyPNCBWBZVEZW 3Mrq917T9DgxmZHP2wBRURvA2jUseEGaMqW: -0.02200000 Waves 2024.11.27 21:04 [3390164] smart account 3Mrq917T9DgxmZHP2wBRURvA2jUseEGaMqW > SELF 0.00000000 Waves
{ "type": 13, "id": "Ask62ZaThJG2MrccVRnR7n1ku45Lu4epyPNCBWBZVEZW", "fee": 2200000, "feeAssetId": null, "timestamp": 1732730645091, "version": 2, "chainId": 84, "sender": "3Mrq917T9DgxmZHP2wBRURvA2jUseEGaMqW", "senderPublicKey": "GCo4ZuX1Rm35x7nEMaxmHnkUeRoPqRk9knR7Ga55tMkD", "proofs": [ "3o9oTw13wW614XFhZKF7dpPjnHDhJQenZJ7esD4y3wzmeVrqCRq4sDvcTq17YQ4imUUstChpYVzw8SVR1iUFEKVa" ], "script": "base64:BgIcCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICDIBCWlzVGVzdEVudgAEB3Rlc3RlbnYEByRtYXRjaDAJAJsIAgUEdGhpcwIHVEVTVEVOVgMJAAECBQckbWF0Y2gwAgdCb29sZWFuBAF4BQckbWF0Y2gwBQF4BwUHdGVzdGVudgEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWEFByRtYXRjaDAFAWECAAENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEMdHJ5R2V0U3RyaW5nAQNrZXkJARR0cnlHZXRTdHJpbmdFeHRlcm5hbAIFBHRoaXMFA2tleQEFYXNJbnQBBXZhbHVlBAckbWF0Y2gwBQV2YWx1ZQMJAAECBQckbWF0Y2gwAgNJbnQEA2ludAUHJG1hdGNoMAUDaW50AwkAAQIFByRt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wcm9vZnMAAgUKc2Vjb25kVXNlcgABAAAED3RoaXJkVXNlclNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXRoaXJkVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQl0aGlyZFVzZXIAAQAABA9zaWduYXR1cmVzQ291bnQJAGQCCQBkAgUPZmlyc3RVc2VyU2lnbmVkBRBzZWNvbmRVc2VyU2lnbmVkBQ90aGlyZFVzZXJTaWduZWQEByRtYXRjaDAFAnR4CQBnAgUPc2lnbmF0dXJlc0NvdW50AAI0Wbgt", "height": 3390164, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4qnvd5jc68qCzE3m3VbxDxJDGKqjQHAMhhnWi4P9KuXn Next: none Diff:
Old | New | Differences | |
---|---|---|---|
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | - | let Y = X(K(), H()) | |
192 | + | func Y (Z) = if (if ((value(assetInfo(Z)).issuer == O())) | |
193 | + | then true | |
194 | + | else (value(assetInfo(Z)).issuer == P())) | |
195 | + | then value(assetInfo(Z)).issuer | |
196 | + | else throw("not valid NFT") | |
193 | 197 | ||
194 | - | let Z = X(K(), J()) | |
195 | 198 | ||
196 | - | let aa = X(K(), | |
199 | + | let aa = X(K(), H()) | |
197 | 200 | ||
198 | - | let ab = | |
201 | + | let ab = X(K(), J()) | |
199 | 202 | ||
200 | - | func ac (ad) = if (if ((value(assetInfo(ad)).issuer == O())) | |
203 | + | let ac = X(K(), I()) | |
204 | + | ||
205 | + | let ad = 2 | |
206 | + | ||
207 | + | func ae (Z) = if (if ((value(assetInfo(Z)).issuer == O())) | |
201 | 208 | then true | |
202 | - | else (value(assetInfo( | |
209 | + | else (value(assetInfo(Z)).issuer == P())) | |
203 | 210 | then true | |
204 | 211 | else throw("not valid NFT") | |
205 | 212 | ||
206 | 213 | ||
207 | - | func | |
214 | + | func af (ag) = if (isDefined(ag.assetId)) | |
208 | 215 | then throw("RCAP: Please attach waves") | |
209 | 216 | else { | |
210 | - | let | |
211 | - | if (( | |
212 | - | then throw((("RCAP: Please attach exactly " + toString( | |
213 | - | else [ScriptTransfer(N(), | |
217 | + | let ah = getIntegerValue(K(), w()) | |
218 | + | if ((ag.amount != ah)) | |
219 | + | then throw((("RCAP: Please attach exactly " + toString(ah)) + " amount of wavelets")) | |
220 | + | else [ScriptTransfer(N(), ah, unit)] | |
214 | 221 | } | |
215 | 222 | ||
216 | 223 | ||
217 | - | func | |
218 | - | let | |
219 | - | let | |
220 | - | (toInt( | |
224 | + | func ai (aj,ak,al,am) = { | |
225 | + | let an = value(blockInfoByHeight((al - 1))) | |
226 | + | let ao = sha256((ak + value(an.vrf))) | |
227 | + | (toInt(ao, (am * 8)) % aj) | |
221 | 228 | } | |
222 | 229 | ||
223 | 230 | ||
224 | - | func | |
231 | + | func ap (g) = { | |
225 | 232 | let c = getBoolean(g) | |
226 | 233 | if ($isInstanceOf(c, "Boolean")) | |
227 | 234 | then { | |
232 | 239 | } | |
233 | 240 | ||
234 | 241 | ||
235 | - | func | |
236 | - | let | |
237 | - | let | |
238 | - | if (if (( | |
239 | - | then | |
242 | + | func aq (ar,as,at) = { | |
243 | + | let au = ap("JACKPOT_ENABLED") | |
244 | + | let av = ai(300, ar, as, 1) | |
245 | + | if (if ((av == 1)) | |
246 | + | then au | |
240 | 247 | else false) | |
241 | - | then $Tuple2( | |
248 | + | then $Tuple2(av, "jackpot") | |
242 | 249 | else { | |
243 | - | let au = ah(1000, aq, ar, 0) | |
244 | - | let av = if ((40 > au)) | |
250 | + | let aw = ai(1000, ar, as, 0) | |
251 | + | let ax = if (if ((40 > aw)) | |
252 | + | then ("item!ART-FIRE_SHIELD" != at) | |
253 | + | else false) | |
245 | 254 | then "item!ART-FIRE_SHIELD" | |
246 | - | else if ((80 > au)) | |
255 | + | else if (if ((80 > aw)) | |
256 | + | then ("item!ART-FIRE_TAIL" != at) | |
257 | + | else false) | |
247 | 258 | then "item!ART-FIRE_TAIL" | |
248 | - | else if ((100 > au)) | |
259 | + | else if (if ((100 > aw)) | |
260 | + | then ("item!ART-FREEGENE" != at) | |
261 | + | else false) | |
249 | 262 | then "item!ART-FREEGENE" | |
250 | - | else if ((150 > au)) | |
263 | + | else if (if ((150 > aw)) | |
264 | + | then ("beach_R" != at) | |
265 | + | else false) | |
251 | 266 | then "beach_R" | |
252 | - | else if ((200 > au)) | |
267 | + | else if (if ((200 > aw)) | |
268 | + | then ("beach_S" != at) | |
269 | + | else false) | |
253 | 270 | then "beach_S" | |
254 | - | else if ((250 > au)) | |
271 | + | else if (if ((250 > aw)) | |
272 | + | then ("beach_G" != at) | |
273 | + | else false) | |
255 | 274 | then "beach_G" | |
256 | - | else if ((300 > au)) | |
275 | + | else if (if ((300 > aw)) | |
276 | + | then ("beach_D" != at) | |
277 | + | else false) | |
257 | 278 | then "beach_D" | |
258 | - | else if ((380 > au)) | |
279 | + | else if (if ((380 > aw)) | |
280 | + | then ("item!ART-MUTARIUM-G" != at) | |
281 | + | else false) | |
259 | 282 | then "item!ART-MUTARIUM-G" | |
260 | - | else if ((400 > au)) | |
283 | + | else if (if ((400 > aw)) | |
284 | + | then ("item!ART-FEED5" != at) | |
285 | + | else false) | |
261 | 286 | then "item!ART-FEED5" | |
262 | - | else if ((600 > au)) | |
287 | + | else if (if ((600 > aw)) | |
288 | + | then ("item!ART-FEED10" != at) | |
289 | + | else false) | |
263 | 290 | then "item!ART-FEED10" | |
264 | - | else if ((620 > au)) | |
291 | + | else if (if ((620 > aw)) | |
292 | + | then ("item!ART-FEED15" != at) | |
293 | + | else false) | |
265 | 294 | then "item!ART-FEED15" | |
266 | - | else if ((640 > au)) | |
295 | + | else if (if ((640 > aw)) | |
296 | + | then ("item!ART-FEED20" != at) | |
297 | + | else false) | |
267 | 298 | then "item!ART-FEED20" | |
268 | - | else if ((660 > au)) | |
299 | + | else if (if ((660 > aw)) | |
300 | + | then ("item!ART-FEED25" != at) | |
301 | + | else false) | |
269 | 302 | then "item!ART-FEED25" | |
270 | - | else if ((680 > au)) | |
303 | + | else if (if ((680 > aw)) | |
304 | + | then ("item!ART-FEED50" != at) | |
305 | + | else false) | |
271 | 306 | then "item!ART-FEED50" | |
272 | - | else if ((760 > au)) | |
307 | + | else if (if ((760 > aw)) | |
308 | + | then ("item!ART-FEED100" != at) | |
309 | + | else false) | |
273 | 310 | then "item!ART-FEED100" | |
274 | - | else if ((780 > au)) | |
311 | + | else if (if ((780 > aw)) | |
312 | + | then ("perch_G" != at) | |
313 | + | else false) | |
275 | 314 | then "perch_G" | |
276 | - | else if ((800 > au)) | |
315 | + | else if (if ((800 > aw)) | |
316 | + | then ("perch_Y" != at) | |
317 | + | else false) | |
277 | 318 | then "perch_Y" | |
278 | - | else if ((820 > au)) | |
319 | + | else if (if ((820 > aw)) | |
320 | + | then ("perch_R" != at) | |
321 | + | else false) | |
279 | 322 | then "perch_R" | |
280 | - | else if ((840 > au)) | |
323 | + | else if (if ((840 > aw)) | |
324 | + | then ("perch_B" != at) | |
325 | + | else false) | |
281 | 326 | then "perch_B" | |
282 | - | else if ((880 > au)) | |
327 | + | else if (if ((880 > aw)) | |
328 | + | then ("item!ART-MUTARIUM-D" != at) | |
329 | + | else false) | |
283 | 330 | then "item!ART-MUTARIUM-D" | |
284 | - | else if ((940 > au)) | |
331 | + | else if (if ((940 > aw)) | |
332 | + | then ("incubator" != at) | |
333 | + | else false) | |
285 | 334 | then "incubator" | |
286 | 335 | else "duck_incubator" | |
287 | - | $Tuple2( | |
336 | + | $Tuple2(aw, ax) | |
288 | 337 | } | |
289 | 338 | } | |
290 | 339 | ||
291 | 340 | ||
292 | - | func aw (ax,f,ay,az) = { | |
293 | - | let aA = i((((("address_" + f) + "_initTx_") + ax) + "_finishBlock")) | |
294 | - | let aB = k((((("address_" + f) + "_initTx_") + ax) + "_status")) | |
295 | - | let aC = ae(ay) | |
296 | - | if ((aC == aC)) | |
341 | + | func ay (ar,as) = { | |
342 | + | let aw = ai(2, ar, as, 1) | |
343 | + | if ((aw == 0)) | |
344 | + | then true | |
345 | + | else false | |
346 | + | } | |
347 | + | ||
348 | + | ||
349 | + | func az (aA,f,aB,aC,at,aD) = { | |
350 | + | let aE = i((((("address_" + f) + "_initTx_") + aA) + "_finishBlock")) | |
351 | + | let aF = k((((("address_" + f) + "_initTx_") + aA) + "_status")) | |
352 | + | let aG = af(aB) | |
353 | + | if ((aG == aG)) | |
297 | 354 | then { | |
298 | - | let | |
299 | - | if (( | |
300 | - | then if (( | |
355 | + | let aH = invoke(S(), "recordAction", ["REBIRTHTURTLE"], nil) | |
356 | + | if ((aH == aH)) | |
357 | + | then if ((aF != "open")) | |
301 | 358 | then throw("rebirth is finished or not open") | |
302 | - | else if (( | |
359 | + | else if ((aE > height)) | |
303 | 360 | then throw("you cannot finish rebirth, yet") | |
304 | 361 | else { | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
362 | + | let aI = aq(fromBase58String(aA), aE, at) | |
363 | + | let aJ = aI._2 | |
364 | + | let aK = aI._1 | |
365 | + | let ak = aA | |
366 | + | let ax = if ((indexOf(aJ, "perch") != unit)) | |
310 | 367 | then { | |
311 | - | let | |
312 | - | let | |
368 | + | let aL = takeRight(aJ, 1) | |
369 | + | let aM = if (!(aC)) | |
313 | 370 | then { | |
314 | - | let | |
315 | - | if (( | |
316 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
371 | + | let aN = invoke(U(), "addFreePerch", [f, aL, 1], nil) | |
372 | + | if ((aN == aN)) | |
373 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
317 | 374 | else throw("Strict value is not equal to itself.") | |
318 | 375 | } | |
319 | 376 | else { | |
320 | - | let | |
321 | - | if (( | |
322 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
377 | + | let aN = invoke(U(), "addFreePerch", [f, aL, 2], nil) | |
378 | + | if ((aN == aN)) | |
379 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), aJ)] | |
323 | 380 | else throw("Strict value is not equal to itself.") | |
324 | 381 | } | |
325 | - | if (( | |
326 | - | then | |
382 | + | if ((aM == aM)) | |
383 | + | then aM | |
327 | 384 | else throw("Strict value is not equal to itself.") | |
328 | 385 | } | |
329 | - | else if ((indexOf( | |
386 | + | else if ((indexOf(aJ, "beach") != unit)) | |
330 | 387 | then { | |
331 | - | let | |
332 | - | let | |
388 | + | let aL = takeRight(aJ, 1) | |
389 | + | let aM = if (!(aC)) | |
333 | 390 | then { | |
334 | - | let | |
335 | - | if (( | |
336 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
391 | + | let aN = invoke(T(), "addFreeBeach", [f, aL], nil) | |
392 | + | if ((aN == aN)) | |
393 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
337 | 394 | else throw("Strict value is not equal to itself.") | |
338 | 395 | } | |
339 | 396 | else { | |
340 | - | let | |
341 | - | if (( | |
397 | + | let aN = invoke(T(), "addFreeBeach", [f, aL], nil) | |
398 | + | if ((aN == aN)) | |
342 | 399 | then { | |
343 | - | let | |
344 | - | if (( | |
345 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
400 | + | let aO = invoke(T(), "addFreeBeach", [f, aL], nil) | |
401 | + | if ((aO == aO)) | |
402 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), aJ)] | |
346 | 403 | else throw("Strict value is not equal to itself.") | |
347 | 404 | } | |
348 | 405 | else throw("Strict value is not equal to itself.") | |
349 | 406 | } | |
350 | - | if (( | |
351 | - | then | |
407 | + | if ((aM == aM)) | |
408 | + | then aM | |
352 | 409 | else throw("Strict value is not equal to itself.") | |
353 | 410 | } | |
354 | - | else if (( | |
411 | + | else if ((aJ == "jackpot")) | |
355 | 412 | then { | |
356 | - | let | |
357 | - | if (( | |
358 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
413 | + | let aM = invoke(P(), "issueJackpot", [f, ak, valueOrElse(getString("JACKPOT_NAME"), "WWWWXMAS")], nil) | |
414 | + | if ((aM == aM)) | |
415 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aM))] | |
359 | 416 | else throw("Strict value is not equal to itself.") | |
360 | 417 | } | |
361 | - | else if (( | |
418 | + | else if ((aJ == "incubator")) | |
362 | 419 | then { | |
363 | - | let | |
420 | + | let aM = if (!(aC)) | |
364 | 421 | then { | |
365 | - | let | |
366 | - | if (( | |
367 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
422 | + | let aN = invoke(P(), "issueFreeTurtle", [f, ak], nil) | |
423 | + | if ((aN == aN)) | |
424 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
368 | 425 | else throw("Strict value is not equal to itself.") | |
369 | 426 | } | |
370 | 427 | else { | |
371 | - | let | |
372 | - | if (( | |
428 | + | let aN = invoke(P(), "issueFreeTurtle", [f, ak], nil) | |
429 | + | if ((aN == aN)) | |
373 | 430 | then { | |
374 | - | let | |
375 | - | if (( | |
376 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
431 | + | let aO = invoke(V(), "issueFreeDuckDefinedGenes", [f, ak, "ZZZZZZZZ"], nil) | |
432 | + | if ((aO == aO)) | |
433 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), "duck_incubator")] | |
377 | 434 | else throw("Strict value is not equal to itself.") | |
378 | 435 | } | |
379 | 436 | else throw("Strict value is not equal to itself.") | |
380 | 437 | } | |
381 | - | if (( | |
382 | - | then | |
438 | + | if ((aM == aM)) | |
439 | + | then aM | |
383 | 440 | else throw("Strict value is not equal to itself.") | |
384 | 441 | } | |
385 | - | else if (( | |
442 | + | else if ((aJ == "duck_incubator")) | |
386 | 443 | then { | |
387 | - | let | |
444 | + | let aM = if (!(aC)) | |
388 | 445 | then { | |
389 | - | let | |
390 | - | if (( | |
391 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
446 | + | let aN = invoke(V(), "issueFreeDuckDefinedGenes", [f, ak, "ZZZZZZZZ"], nil) | |
447 | + | if ((aN == aN)) | |
448 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
392 | 449 | else throw("Strict value is not equal to itself.") | |
393 | 450 | } | |
394 | 451 | else { | |
395 | - | let | |
396 | - | if (( | |
452 | + | let aN = invoke(V(), "issueFreeDuckDefinedGenes", [f, ak, "ZZZZZZZZ"], nil) | |
453 | + | if ((aN == aN)) | |
397 | 454 | then { | |
398 | - | let | |
399 | - | if (( | |
400 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
455 | + | let aO = invoke(P(), "issueFreeTurtle", [f, ak], nil) | |
456 | + | if ((aO == aO)) | |
457 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), "incubator")] | |
401 | 458 | else throw("Strict value is not equal to itself.") | |
402 | 459 | } | |
403 | 460 | else throw("Strict value is not equal to itself.") | |
404 | 461 | } | |
405 | - | if (( | |
406 | - | then | |
462 | + | if ((aM == aM)) | |
463 | + | then aM | |
407 | 464 | else throw("Strict value is not equal to itself.") | |
408 | 465 | } | |
409 | - | else if ((indexOf( | |
466 | + | else if ((indexOf(aJ, "item") != unit)) | |
410 | 467 | then { | |
411 | - | let | |
412 | - | let | |
468 | + | let aP = split(aJ, "!")[1] | |
469 | + | let aM = if (!(aC)) | |
413 | 470 | then { | |
414 | - | let | |
415 | - | if (( | |
416 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
471 | + | let aN = invoke(W(), "issueArtefactIndex", [aP, f, 0], nil) | |
472 | + | if ((aN == aN)) | |
473 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
417 | 474 | else throw("Strict value is not equal to itself.") | |
418 | 475 | } | |
419 | 476 | else { | |
420 | - | let | |
421 | - | if (( | |
477 | + | let aN = invoke(W(), "issueArtefactIndex", [aP, f, 0], nil) | |
478 | + | if ((aN == aN)) | |
422 | 479 | then { | |
423 | - | let | |
424 | - | if (( | |
425 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
480 | + | let aO = invoke(W(), "issueArtefactIndex", [aP, f, 1], nil) | |
481 | + | if ((aO == aO)) | |
482 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), aJ)] | |
426 | 483 | else throw("Strict value is not equal to itself.") | |
427 | 484 | } | |
428 | 485 | else throw("Strict value is not equal to itself.") | |
429 | 486 | } | |
430 | - | if (( | |
431 | - | then | |
487 | + | if ((aM == aM)) | |
488 | + | then aM | |
432 | 489 | else throw("Strict value is not equal to itself.") | |
433 | 490 | } | |
434 | 491 | else throw("RFB: Some error occured, please contact the admins!") | |
435 | - | ((av ++ [StringEntry((((("address_" + f) + "_initTx_") + ax) + "_win"), aF), StringEntry((((("address_" + f) + "_initTx_") + ax) + "_status"), "finish"), IntegerEntry((((("address_" + f) + "_initTx_") + ax) + "_random"), aG)]) ++ aC) | |
492 | + | let aQ = if (aD) | |
493 | + | then ay(fromBase58String(aA), aE) | |
494 | + | else false | |
495 | + | let aR = if (aQ) | |
496 | + | then { | |
497 | + | let Z = fromBase58String(getStringValue((((("address_" + f) + "_initTx_") + aA) + "_assetId"))) | |
498 | + | let aS = Y(Z) | |
499 | + | let aT = r(invoke(O(), "getGenFromName", [value(assetInfo(Z)).name], nil)) | |
500 | + | if ((aT == aT)) | |
501 | + | then { | |
502 | + | let aM = invoke(aS, "increaseRarity", [toBase58String(Z), aT], nil) | |
503 | + | if ((aM == aM)) | |
504 | + | then [ScriptTransfer(addressFromStringValue(f), 1, Z)] | |
505 | + | else throw("Strict value is not equal to itself.") | |
506 | + | } | |
507 | + | else throw("Strict value is not equal to itself.") | |
508 | + | } | |
509 | + | else nil | |
510 | + | ((ax ++ [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win"), aJ), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_status"), "finish"), IntegerEntry((((("address_" + f) + "_initTx_") + aA) + "_random"), aK)]) ++ aG) | |
436 | 511 | } | |
437 | 512 | else throw("Strict value is not equal to itself.") | |
438 | 513 | } | |
440 | 515 | } | |
441 | 516 | ||
442 | 517 | ||
443 | - | @Callable( | |
444 | - | func configureOracle ( | |
518 | + | @Callable(aU) | |
519 | + | func configureOracle (aV) = if ((aU.caller != this)) | |
445 | 520 | then throw("RCU: admin only") | |
446 | - | else [StringEntry("static_oracleAddress", | |
521 | + | else [StringEntry("static_oracleAddress", aV)] | |
447 | 522 | ||
448 | 523 | ||
449 | 524 | ||
450 | - | @Callable( | |
451 | - | func initRebirth ( | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let f = toString( | |
458 | - | if (( | |
525 | + | @Callable(aU) | |
526 | + | func initRebirth (aW) = { | |
527 | + | let aX = aU.payments[0] | |
528 | + | let aY = aU.payments[1] | |
529 | + | let aZ = aU.payments[2] | |
530 | + | let Z = value(aX.assetId) | |
531 | + | let aA = toBase58String(aU.transactionId) | |
532 | + | let f = toString(aU.caller) | |
533 | + | if ((aX.amount != 1)) | |
459 | 534 | then throw("NFT is not attached") | |
460 | - | else if (if (( | |
535 | + | else if (if ((aY.amount != ac)) | |
461 | 536 | then true | |
462 | - | else ( | |
537 | + | else (aY.assetId != unit)) | |
463 | 538 | then throw("Wavespayment is not attached or wrong!") | |
464 | - | else if (if (( | |
539 | + | else if (if ((aZ.amount != aa)) | |
465 | 540 | then true | |
466 | - | else ( | |
541 | + | else (aZ.assetId != Q())) | |
467 | 542 | then throw("SpicePayment is not attached or wrong!") | |
468 | 543 | else { | |
469 | - | let | |
470 | - | if (( | |
544 | + | let ba = l(invoke(S(), "useCoupons", [ab], nil)) | |
545 | + | if ((ba == ba)) | |
471 | 546 | then { | |
472 | - | let | |
473 | - | let | |
474 | - | if (( | |
547 | + | let bb = (ab - ba) | |
548 | + | let bc = invoke(T(), "topUpReward", nil, [AttachedPayment(Q(), aZ.amount)]) | |
549 | + | if ((bc == bc)) | |
475 | 550 | then { | |
476 | - | let | |
551 | + | let ag = if ((bb != 0)) | |
477 | 552 | then { | |
478 | - | let | |
479 | - | let | |
480 | - | if (( | |
553 | + | let bd = aU.payments[3] | |
554 | + | let be = value(bd) | |
555 | + | if ((be.assetId != L())) | |
481 | 556 | then throw("You need to attach EGG tokens as fee") | |
482 | - | else if (( | |
483 | - | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString( | |
557 | + | else if ((be.amount != bb)) | |
558 | + | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(bb))) | |
484 | 559 | else { | |
485 | - | let | |
486 | - | let | |
487 | - | if (( | |
560 | + | let bf = fraction(bb, 5, 100) | |
561 | + | let bg = p(invoke(R(), "refPayment", [aW], [AttachedPayment(L(), bf)])) | |
562 | + | if ((bg == bg)) | |
488 | 563 | then { | |
489 | - | let | |
490 | - | then ( | |
491 | - | else | |
492 | - | let | |
493 | - | if (( | |
494 | - | then | |
564 | + | let bh = if (bg) | |
565 | + | then (bb - bf) | |
566 | + | else bb | |
567 | + | let bi = invoke(M(), "burnAttachedPayments", nil, [AttachedPayment(L(), bh)]) | |
568 | + | if ((bi == bi)) | |
569 | + | then bb | |
495 | 570 | else throw("Strict value is not equal to itself.") | |
496 | 571 | } | |
497 | 572 | else throw("Strict value is not equal to itself.") | |
498 | 573 | } | |
499 | 574 | } | |
500 | 575 | else 0 | |
501 | - | if (( | |
576 | + | if ((ag == ag)) | |
502 | 577 | then { | |
503 | - | let | |
504 | - | if (( | |
505 | - | then [IntegerEntry((((("address_" + f) + "_initTx_") + | |
578 | + | let bj = ae(Z) | |
579 | + | if ((bj == bj)) | |
580 | + | then [IntegerEntry((((("address_" + f) + "_initTx_") + aA) + "_finishBlock"), (height + ad)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_status"), "open"), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_assetId"), toBase58String(Z)), ScriptTransfer(N(), aY.amount, unit)] | |
506 | 581 | else throw("Strict value is not equal to itself.") | |
507 | 582 | } | |
508 | 583 | else throw("Strict value is not equal to itself.") | |
515 | 590 | ||
516 | 591 | ||
517 | 592 | ||
518 | - | @Callable( | |
519 | - | func finishRebirth ( | |
593 | + | @Callable(aU) | |
594 | + | func finishRebirth (aA) = az(aA, toString(aU.caller), aU.payments[0], false, "", false) | |
520 | 595 | ||
521 | 596 | ||
522 | 597 | ||
523 | - | @Callable( | |
524 | - | func finishRebirthDouble ( | |
525 | - | then ( | |
598 | + | @Callable(aU) | |
599 | + | func finishRebirthDouble (aA) = if (!(if ((size(aU.payments) == 2)) | |
600 | + | then (aU.payments[0].amount == 1) | |
526 | 601 | else false)) | |
527 | 602 | then throw("Invalid payment") | |
528 | 603 | else { | |
529 | - | let | |
530 | - | let | |
531 | - | if (( | |
532 | - | then if (( | |
533 | - | then ([Burn( | |
604 | + | let Z = value(aU.payments[0].assetId) | |
605 | + | let bk = r(invoke(W(), "checkArtefactDetails", [toBase58String(Z)], nil)) | |
606 | + | if ((bk == bk)) | |
607 | + | then if ((bk == "ART-GIFT_DOUBL")) | |
608 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], true, "", false)) | |
534 | 609 | else throw("Error! Wrong item attached to double rewards!") | |
535 | 610 | else throw("Strict value is not equal to itself.") | |
536 | 611 | } | |
537 | 612 | ||
538 | 613 | ||
539 | - | @Verifier(aq) | |
540 | - | func bd () = if (a()) | |
541 | - | then sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey) | |
614 | + | ||
615 | + | @Callable(aU) | |
616 | + | func finishRebirthItem (aA,bl) = if (if ((size(aU.payments) == 2)) | |
617 | + | then (aU.payments[0].amount == 1) | |
618 | + | else false) | |
619 | + | then { | |
620 | + | let Z = value(aU.payments[0].assetId) | |
621 | + | let bk = r(invoke(W(), "checkArtefactDetails", [toBase58String(Z)], nil)) | |
622 | + | if ((bk == bk)) | |
623 | + | then if ((bk == "ART-HWERASE")) | |
624 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], false, bl, false)) | |
625 | + | else if ((bk == "ART-HWRESCUE")) | |
626 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], false, "", true)) | |
627 | + | else if ((bk == "ART-GIFT_DOUBL")) | |
628 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], true, "", false)) | |
629 | + | else throw("Error! Wrong item attached ") | |
630 | + | else throw("Strict value is not equal to itself.") | |
631 | + | } | |
632 | + | else if ((size(aU.payments) == 1)) | |
633 | + | then az(aA, toString(aU.caller), aU.payments[0], false, "", false) | |
634 | + | else throw("Invalid payments") | |
635 | + | ||
636 | + | ||
637 | + | @Verifier(ar) | |
638 | + | func bm () = if (a()) | |
639 | + | then sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey) | |
542 | 640 | else { | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
641 | + | let bn = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
642 | + | let bo = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
643 | + | let bp = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
644 | + | let bq = if (sigVerify(ar.bodyBytes, ar.proofs[0], bn)) | |
547 | 645 | then 1 | |
548 | - | else if (sigVerify( | |
646 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[1], bn)) | |
549 | 647 | then 1 | |
550 | - | else if (sigVerify( | |
648 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[2], bn)) | |
551 | 649 | then 1 | |
552 | 650 | else 0 | |
553 | - | let | |
651 | + | let br = if (sigVerify(ar.bodyBytes, ar.proofs[0], bo)) | |
554 | 652 | then 1 | |
555 | - | else if (sigVerify( | |
653 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[1], bo)) | |
556 | 654 | then 1 | |
557 | - | else if (sigVerify( | |
655 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[2], bo)) | |
558 | 656 | then 1 | |
559 | 657 | else 0 | |
560 | - | let | |
658 | + | let bs = if (sigVerify(ar.bodyBytes, ar.proofs[0], bp)) | |
561 | 659 | then 1 | |
562 | - | else if (sigVerify( | |
660 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[1], bp)) | |
563 | 661 | then 1 | |
564 | - | else if (sigVerify( | |
662 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[2], bp)) | |
565 | 663 | then 1 | |
566 | 664 | else 0 | |
567 | - | let | |
568 | - | let c = | |
569 | - | ( | |
665 | + | let bt = ((bq + br) + bs) | |
666 | + | let c = ar | |
667 | + | (bt >= 2) | |
570 | 668 | } | |
571 | 669 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = { | |
5 | 5 | let b = { | |
6 | 6 | let c = getBoolean(this, "TESTENV") | |
7 | 7 | if ($isInstanceOf(c, "Boolean")) | |
8 | 8 | then { | |
9 | 9 | let d = c | |
10 | 10 | d | |
11 | 11 | } | |
12 | 12 | else false | |
13 | 13 | } | |
14 | 14 | b | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func e (f,g) = { | |
19 | 19 | let c = getString(f, g) | |
20 | 20 | if ($isInstanceOf(c, "String")) | |
21 | 21 | then { | |
22 | 22 | let h = c | |
23 | 23 | h | |
24 | 24 | } | |
25 | 25 | else "" | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func i (g) = { | |
30 | 30 | let c = getInteger(this, g) | |
31 | 31 | if ($isInstanceOf(c, "Int")) | |
32 | 32 | then { | |
33 | 33 | let j = c | |
34 | 34 | j | |
35 | 35 | } | |
36 | 36 | else 0 | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func k (g) = e(this, g) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func l (m) = { | |
44 | 44 | let c = m | |
45 | 45 | if ($isInstanceOf(c, "Int")) | |
46 | 46 | then { | |
47 | 47 | let n = c | |
48 | 48 | n | |
49 | 49 | } | |
50 | 50 | else if ($isInstanceOf(c, "String")) | |
51 | 51 | then { | |
52 | 52 | let o = c | |
53 | 53 | throw(("RAI: wrong type, expected: Int, but got: " + o)) | |
54 | 54 | } | |
55 | 55 | else throw("RAI: wrong type, expected: Int") | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func p (m) = { | |
60 | 60 | let c = m | |
61 | 61 | if ($isInstanceOf(c, "Boolean")) | |
62 | 62 | then { | |
63 | 63 | let q = c | |
64 | 64 | q | |
65 | 65 | } | |
66 | 66 | else throw("FAB: wrong type, expected: Boolean") | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func r (m) = { | |
71 | 71 | let c = m | |
72 | 72 | if ($isInstanceOf(c, "String")) | |
73 | 73 | then { | |
74 | 74 | let s = c | |
75 | 75 | s | |
76 | 76 | } | |
77 | 77 | else if ($isInstanceOf(c, "Int")) | |
78 | 78 | then { | |
79 | 79 | let s = c | |
80 | 80 | throw("wrong type, expected: String, got: Int") | |
81 | 81 | } | |
82 | 82 | else if ($isInstanceOf(c, "Unit")) | |
83 | 83 | then { | |
84 | 84 | let s = c | |
85 | 85 | throw("wrong type, expected: String, got: Unit") | |
86 | 86 | } | |
87 | 87 | else throw("wrong type, expected: String") | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func t () = "static_oracleAddress" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func u () = "static_eggAssetId" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func v () = "static_burnAddress" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func w () = "static_extraFee" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func x () = "static_feeAggregator" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func y () = "static_turtleIncubatorAddress" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func z () = "static_turtleBreederAddress" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func A () = "static_spiceAssetId" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func B () = "static_refContractAddress" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func C () = "static_couponsAddress" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func D () = "static_turtleStakingAddress" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func E () = "static_farmingAddressNew" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func F () = "static_incubatorAddress" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func G () = "static_itemsAddress" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func H () = "static_turtleSpiceRebirthPrice" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func I () = "static_turtleWavesRebirthPrice" | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func J () = "static_turtleEggRebirthPrice" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func K () = Address(fromBase58String(k(t()))) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func L () = fromBase58String(e(K(), u())) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func M () = Address(fromBase58String(e(K(), v()))) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func N () = Address(fromBase58String(e(K(), x()))) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func O () = Address(fromBase58String(e(K(), z()))) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func P () = Address(fromBase58String(e(K(), y()))) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func Q () = fromBase58String(e(K(), A())) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func R () = Address(fromBase58String(e(K(), B()))) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func S () = Address(fromBase58String(e(K(), C()))) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func T () = Address(fromBase58String(e(K(), D()))) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func U () = Address(fromBase58String(e(K(), E()))) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func V () = Address(fromBase58String(e(K(), F()))) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func W () = Address(fromBase58String(e(K(), G()))) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func X (f,g) = { | |
182 | 182 | let c = getInteger(f, g) | |
183 | 183 | if ($isInstanceOf(c, "Int")) | |
184 | 184 | then { | |
185 | 185 | let j = c | |
186 | 186 | j | |
187 | 187 | } | |
188 | 188 | else throw("TR: Value not found in sc!") | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | - | let Y = X(K(), H()) | |
192 | + | func Y (Z) = if (if ((value(assetInfo(Z)).issuer == O())) | |
193 | + | then true | |
194 | + | else (value(assetInfo(Z)).issuer == P())) | |
195 | + | then value(assetInfo(Z)).issuer | |
196 | + | else throw("not valid NFT") | |
193 | 197 | ||
194 | - | let Z = X(K(), J()) | |
195 | 198 | ||
196 | - | let aa = X(K(), | |
199 | + | let aa = X(K(), H()) | |
197 | 200 | ||
198 | - | let ab = | |
201 | + | let ab = X(K(), J()) | |
199 | 202 | ||
200 | - | func ac (ad) = if (if ((value(assetInfo(ad)).issuer == O())) | |
203 | + | let ac = X(K(), I()) | |
204 | + | ||
205 | + | let ad = 2 | |
206 | + | ||
207 | + | func ae (Z) = if (if ((value(assetInfo(Z)).issuer == O())) | |
201 | 208 | then true | |
202 | - | else (value(assetInfo( | |
209 | + | else (value(assetInfo(Z)).issuer == P())) | |
203 | 210 | then true | |
204 | 211 | else throw("not valid NFT") | |
205 | 212 | ||
206 | 213 | ||
207 | - | func | |
214 | + | func af (ag) = if (isDefined(ag.assetId)) | |
208 | 215 | then throw("RCAP: Please attach waves") | |
209 | 216 | else { | |
210 | - | let | |
211 | - | if (( | |
212 | - | then throw((("RCAP: Please attach exactly " + toString( | |
213 | - | else [ScriptTransfer(N(), | |
217 | + | let ah = getIntegerValue(K(), w()) | |
218 | + | if ((ag.amount != ah)) | |
219 | + | then throw((("RCAP: Please attach exactly " + toString(ah)) + " amount of wavelets")) | |
220 | + | else [ScriptTransfer(N(), ah, unit)] | |
214 | 221 | } | |
215 | 222 | ||
216 | 223 | ||
217 | - | func | |
218 | - | let | |
219 | - | let | |
220 | - | (toInt( | |
224 | + | func ai (aj,ak,al,am) = { | |
225 | + | let an = value(blockInfoByHeight((al - 1))) | |
226 | + | let ao = sha256((ak + value(an.vrf))) | |
227 | + | (toInt(ao, (am * 8)) % aj) | |
221 | 228 | } | |
222 | 229 | ||
223 | 230 | ||
224 | - | func | |
231 | + | func ap (g) = { | |
225 | 232 | let c = getBoolean(g) | |
226 | 233 | if ($isInstanceOf(c, "Boolean")) | |
227 | 234 | then { | |
228 | 235 | let j = c | |
229 | 236 | j | |
230 | 237 | } | |
231 | 238 | else false | |
232 | 239 | } | |
233 | 240 | ||
234 | 241 | ||
235 | - | func | |
236 | - | let | |
237 | - | let | |
238 | - | if (if (( | |
239 | - | then | |
242 | + | func aq (ar,as,at) = { | |
243 | + | let au = ap("JACKPOT_ENABLED") | |
244 | + | let av = ai(300, ar, as, 1) | |
245 | + | if (if ((av == 1)) | |
246 | + | then au | |
240 | 247 | else false) | |
241 | - | then $Tuple2( | |
248 | + | then $Tuple2(av, "jackpot") | |
242 | 249 | else { | |
243 | - | let au = ah(1000, aq, ar, 0) | |
244 | - | let av = if ((40 > au)) | |
250 | + | let aw = ai(1000, ar, as, 0) | |
251 | + | let ax = if (if ((40 > aw)) | |
252 | + | then ("item!ART-FIRE_SHIELD" != at) | |
253 | + | else false) | |
245 | 254 | then "item!ART-FIRE_SHIELD" | |
246 | - | else if ((80 > au)) | |
255 | + | else if (if ((80 > aw)) | |
256 | + | then ("item!ART-FIRE_TAIL" != at) | |
257 | + | else false) | |
247 | 258 | then "item!ART-FIRE_TAIL" | |
248 | - | else if ((100 > au)) | |
259 | + | else if (if ((100 > aw)) | |
260 | + | then ("item!ART-FREEGENE" != at) | |
261 | + | else false) | |
249 | 262 | then "item!ART-FREEGENE" | |
250 | - | else if ((150 > au)) | |
263 | + | else if (if ((150 > aw)) | |
264 | + | then ("beach_R" != at) | |
265 | + | else false) | |
251 | 266 | then "beach_R" | |
252 | - | else if ((200 > au)) | |
267 | + | else if (if ((200 > aw)) | |
268 | + | then ("beach_S" != at) | |
269 | + | else false) | |
253 | 270 | then "beach_S" | |
254 | - | else if ((250 > au)) | |
271 | + | else if (if ((250 > aw)) | |
272 | + | then ("beach_G" != at) | |
273 | + | else false) | |
255 | 274 | then "beach_G" | |
256 | - | else if ((300 > au)) | |
275 | + | else if (if ((300 > aw)) | |
276 | + | then ("beach_D" != at) | |
277 | + | else false) | |
257 | 278 | then "beach_D" | |
258 | - | else if ((380 > au)) | |
279 | + | else if (if ((380 > aw)) | |
280 | + | then ("item!ART-MUTARIUM-G" != at) | |
281 | + | else false) | |
259 | 282 | then "item!ART-MUTARIUM-G" | |
260 | - | else if ((400 > au)) | |
283 | + | else if (if ((400 > aw)) | |
284 | + | then ("item!ART-FEED5" != at) | |
285 | + | else false) | |
261 | 286 | then "item!ART-FEED5" | |
262 | - | else if ((600 > au)) | |
287 | + | else if (if ((600 > aw)) | |
288 | + | then ("item!ART-FEED10" != at) | |
289 | + | else false) | |
263 | 290 | then "item!ART-FEED10" | |
264 | - | else if ((620 > au)) | |
291 | + | else if (if ((620 > aw)) | |
292 | + | then ("item!ART-FEED15" != at) | |
293 | + | else false) | |
265 | 294 | then "item!ART-FEED15" | |
266 | - | else if ((640 > au)) | |
295 | + | else if (if ((640 > aw)) | |
296 | + | then ("item!ART-FEED20" != at) | |
297 | + | else false) | |
267 | 298 | then "item!ART-FEED20" | |
268 | - | else if ((660 > au)) | |
299 | + | else if (if ((660 > aw)) | |
300 | + | then ("item!ART-FEED25" != at) | |
301 | + | else false) | |
269 | 302 | then "item!ART-FEED25" | |
270 | - | else if ((680 > au)) | |
303 | + | else if (if ((680 > aw)) | |
304 | + | then ("item!ART-FEED50" != at) | |
305 | + | else false) | |
271 | 306 | then "item!ART-FEED50" | |
272 | - | else if ((760 > au)) | |
307 | + | else if (if ((760 > aw)) | |
308 | + | then ("item!ART-FEED100" != at) | |
309 | + | else false) | |
273 | 310 | then "item!ART-FEED100" | |
274 | - | else if ((780 > au)) | |
311 | + | else if (if ((780 > aw)) | |
312 | + | then ("perch_G" != at) | |
313 | + | else false) | |
275 | 314 | then "perch_G" | |
276 | - | else if ((800 > au)) | |
315 | + | else if (if ((800 > aw)) | |
316 | + | then ("perch_Y" != at) | |
317 | + | else false) | |
277 | 318 | then "perch_Y" | |
278 | - | else if ((820 > au)) | |
319 | + | else if (if ((820 > aw)) | |
320 | + | then ("perch_R" != at) | |
321 | + | else false) | |
279 | 322 | then "perch_R" | |
280 | - | else if ((840 > au)) | |
323 | + | else if (if ((840 > aw)) | |
324 | + | then ("perch_B" != at) | |
325 | + | else false) | |
281 | 326 | then "perch_B" | |
282 | - | else if ((880 > au)) | |
327 | + | else if (if ((880 > aw)) | |
328 | + | then ("item!ART-MUTARIUM-D" != at) | |
329 | + | else false) | |
283 | 330 | then "item!ART-MUTARIUM-D" | |
284 | - | else if ((940 > au)) | |
331 | + | else if (if ((940 > aw)) | |
332 | + | then ("incubator" != at) | |
333 | + | else false) | |
285 | 334 | then "incubator" | |
286 | 335 | else "duck_incubator" | |
287 | - | $Tuple2( | |
336 | + | $Tuple2(aw, ax) | |
288 | 337 | } | |
289 | 338 | } | |
290 | 339 | ||
291 | 340 | ||
292 | - | func aw (ax,f,ay,az) = { | |
293 | - | let aA = i((((("address_" + f) + "_initTx_") + ax) + "_finishBlock")) | |
294 | - | let aB = k((((("address_" + f) + "_initTx_") + ax) + "_status")) | |
295 | - | let aC = ae(ay) | |
296 | - | if ((aC == aC)) | |
341 | + | func ay (ar,as) = { | |
342 | + | let aw = ai(2, ar, as, 1) | |
343 | + | if ((aw == 0)) | |
344 | + | then true | |
345 | + | else false | |
346 | + | } | |
347 | + | ||
348 | + | ||
349 | + | func az (aA,f,aB,aC,at,aD) = { | |
350 | + | let aE = i((((("address_" + f) + "_initTx_") + aA) + "_finishBlock")) | |
351 | + | let aF = k((((("address_" + f) + "_initTx_") + aA) + "_status")) | |
352 | + | let aG = af(aB) | |
353 | + | if ((aG == aG)) | |
297 | 354 | then { | |
298 | - | let | |
299 | - | if (( | |
300 | - | then if (( | |
355 | + | let aH = invoke(S(), "recordAction", ["REBIRTHTURTLE"], nil) | |
356 | + | if ((aH == aH)) | |
357 | + | then if ((aF != "open")) | |
301 | 358 | then throw("rebirth is finished or not open") | |
302 | - | else if (( | |
359 | + | else if ((aE > height)) | |
303 | 360 | then throw("you cannot finish rebirth, yet") | |
304 | 361 | else { | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
362 | + | let aI = aq(fromBase58String(aA), aE, at) | |
363 | + | let aJ = aI._2 | |
364 | + | let aK = aI._1 | |
365 | + | let ak = aA | |
366 | + | let ax = if ((indexOf(aJ, "perch") != unit)) | |
310 | 367 | then { | |
311 | - | let | |
312 | - | let | |
368 | + | let aL = takeRight(aJ, 1) | |
369 | + | let aM = if (!(aC)) | |
313 | 370 | then { | |
314 | - | let | |
315 | - | if (( | |
316 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
371 | + | let aN = invoke(U(), "addFreePerch", [f, aL, 1], nil) | |
372 | + | if ((aN == aN)) | |
373 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
317 | 374 | else throw("Strict value is not equal to itself.") | |
318 | 375 | } | |
319 | 376 | else { | |
320 | - | let | |
321 | - | if (( | |
322 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
377 | + | let aN = invoke(U(), "addFreePerch", [f, aL, 2], nil) | |
378 | + | if ((aN == aN)) | |
379 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), aJ)] | |
323 | 380 | else throw("Strict value is not equal to itself.") | |
324 | 381 | } | |
325 | - | if (( | |
326 | - | then | |
382 | + | if ((aM == aM)) | |
383 | + | then aM | |
327 | 384 | else throw("Strict value is not equal to itself.") | |
328 | 385 | } | |
329 | - | else if ((indexOf( | |
386 | + | else if ((indexOf(aJ, "beach") != unit)) | |
330 | 387 | then { | |
331 | - | let | |
332 | - | let | |
388 | + | let aL = takeRight(aJ, 1) | |
389 | + | let aM = if (!(aC)) | |
333 | 390 | then { | |
334 | - | let | |
335 | - | if (( | |
336 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
391 | + | let aN = invoke(T(), "addFreeBeach", [f, aL], nil) | |
392 | + | if ((aN == aN)) | |
393 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
337 | 394 | else throw("Strict value is not equal to itself.") | |
338 | 395 | } | |
339 | 396 | else { | |
340 | - | let | |
341 | - | if (( | |
397 | + | let aN = invoke(T(), "addFreeBeach", [f, aL], nil) | |
398 | + | if ((aN == aN)) | |
342 | 399 | then { | |
343 | - | let | |
344 | - | if (( | |
345 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
400 | + | let aO = invoke(T(), "addFreeBeach", [f, aL], nil) | |
401 | + | if ((aO == aO)) | |
402 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), aJ)] | |
346 | 403 | else throw("Strict value is not equal to itself.") | |
347 | 404 | } | |
348 | 405 | else throw("Strict value is not equal to itself.") | |
349 | 406 | } | |
350 | - | if (( | |
351 | - | then | |
407 | + | if ((aM == aM)) | |
408 | + | then aM | |
352 | 409 | else throw("Strict value is not equal to itself.") | |
353 | 410 | } | |
354 | - | else if (( | |
411 | + | else if ((aJ == "jackpot")) | |
355 | 412 | then { | |
356 | - | let | |
357 | - | if (( | |
358 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
413 | + | let aM = invoke(P(), "issueJackpot", [f, ak, valueOrElse(getString("JACKPOT_NAME"), "WWWWXMAS")], nil) | |
414 | + | if ((aM == aM)) | |
415 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aM))] | |
359 | 416 | else throw("Strict value is not equal to itself.") | |
360 | 417 | } | |
361 | - | else if (( | |
418 | + | else if ((aJ == "incubator")) | |
362 | 419 | then { | |
363 | - | let | |
420 | + | let aM = if (!(aC)) | |
364 | 421 | then { | |
365 | - | let | |
366 | - | if (( | |
367 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
422 | + | let aN = invoke(P(), "issueFreeTurtle", [f, ak], nil) | |
423 | + | if ((aN == aN)) | |
424 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
368 | 425 | else throw("Strict value is not equal to itself.") | |
369 | 426 | } | |
370 | 427 | else { | |
371 | - | let | |
372 | - | if (( | |
428 | + | let aN = invoke(P(), "issueFreeTurtle", [f, ak], nil) | |
429 | + | if ((aN == aN)) | |
373 | 430 | then { | |
374 | - | let | |
375 | - | if (( | |
376 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
431 | + | let aO = invoke(V(), "issueFreeDuckDefinedGenes", [f, ak, "ZZZZZZZZ"], nil) | |
432 | + | if ((aO == aO)) | |
433 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), "duck_incubator")] | |
377 | 434 | else throw("Strict value is not equal to itself.") | |
378 | 435 | } | |
379 | 436 | else throw("Strict value is not equal to itself.") | |
380 | 437 | } | |
381 | - | if (( | |
382 | - | then | |
438 | + | if ((aM == aM)) | |
439 | + | then aM | |
383 | 440 | else throw("Strict value is not equal to itself.") | |
384 | 441 | } | |
385 | - | else if (( | |
442 | + | else if ((aJ == "duck_incubator")) | |
386 | 443 | then { | |
387 | - | let | |
444 | + | let aM = if (!(aC)) | |
388 | 445 | then { | |
389 | - | let | |
390 | - | if (( | |
391 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
446 | + | let aN = invoke(V(), "issueFreeDuckDefinedGenes", [f, ak, "ZZZZZZZZ"], nil) | |
447 | + | if ((aN == aN)) | |
448 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
392 | 449 | else throw("Strict value is not equal to itself.") | |
393 | 450 | } | |
394 | 451 | else { | |
395 | - | let | |
396 | - | if (( | |
452 | + | let aN = invoke(V(), "issueFreeDuckDefinedGenes", [f, ak, "ZZZZZZZZ"], nil) | |
453 | + | if ((aN == aN)) | |
397 | 454 | then { | |
398 | - | let | |
399 | - | if (( | |
400 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
455 | + | let aO = invoke(P(), "issueFreeTurtle", [f, ak], nil) | |
456 | + | if ((aO == aO)) | |
457 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), "incubator")] | |
401 | 458 | else throw("Strict value is not equal to itself.") | |
402 | 459 | } | |
403 | 460 | else throw("Strict value is not equal to itself.") | |
404 | 461 | } | |
405 | - | if (( | |
406 | - | then | |
462 | + | if ((aM == aM)) | |
463 | + | then aM | |
407 | 464 | else throw("Strict value is not equal to itself.") | |
408 | 465 | } | |
409 | - | else if ((indexOf( | |
466 | + | else if ((indexOf(aJ, "item") != unit)) | |
410 | 467 | then { | |
411 | - | let | |
412 | - | let | |
468 | + | let aP = split(aJ, "!")[1] | |
469 | + | let aM = if (!(aC)) | |
413 | 470 | then { | |
414 | - | let | |
415 | - | if (( | |
416 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
471 | + | let aN = invoke(W(), "issueArtefactIndex", [aP, f, 0], nil) | |
472 | + | if ((aN == aN)) | |
473 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN))] | |
417 | 474 | else throw("Strict value is not equal to itself.") | |
418 | 475 | } | |
419 | 476 | else { | |
420 | - | let | |
421 | - | if (( | |
477 | + | let aN = invoke(W(), "issueArtefactIndex", [aP, f, 0], nil) | |
478 | + | if ((aN == aN)) | |
422 | 479 | then { | |
423 | - | let | |
424 | - | if (( | |
425 | - | then [StringEntry((((("address_" + f) + "_initTx_") + | |
480 | + | let aO = invoke(W(), "issueArtefactIndex", [aP, f, 1], nil) | |
481 | + | if ((aO == aO)) | |
482 | + | then [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result"), r(aN)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_result1"), r(aO)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win1"), aJ)] | |
426 | 483 | else throw("Strict value is not equal to itself.") | |
427 | 484 | } | |
428 | 485 | else throw("Strict value is not equal to itself.") | |
429 | 486 | } | |
430 | - | if (( | |
431 | - | then | |
487 | + | if ((aM == aM)) | |
488 | + | then aM | |
432 | 489 | else throw("Strict value is not equal to itself.") | |
433 | 490 | } | |
434 | 491 | else throw("RFB: Some error occured, please contact the admins!") | |
435 | - | ((av ++ [StringEntry((((("address_" + f) + "_initTx_") + ax) + "_win"), aF), StringEntry((((("address_" + f) + "_initTx_") + ax) + "_status"), "finish"), IntegerEntry((((("address_" + f) + "_initTx_") + ax) + "_random"), aG)]) ++ aC) | |
492 | + | let aQ = if (aD) | |
493 | + | then ay(fromBase58String(aA), aE) | |
494 | + | else false | |
495 | + | let aR = if (aQ) | |
496 | + | then { | |
497 | + | let Z = fromBase58String(getStringValue((((("address_" + f) + "_initTx_") + aA) + "_assetId"))) | |
498 | + | let aS = Y(Z) | |
499 | + | let aT = r(invoke(O(), "getGenFromName", [value(assetInfo(Z)).name], nil)) | |
500 | + | if ((aT == aT)) | |
501 | + | then { | |
502 | + | let aM = invoke(aS, "increaseRarity", [toBase58String(Z), aT], nil) | |
503 | + | if ((aM == aM)) | |
504 | + | then [ScriptTransfer(addressFromStringValue(f), 1, Z)] | |
505 | + | else throw("Strict value is not equal to itself.") | |
506 | + | } | |
507 | + | else throw("Strict value is not equal to itself.") | |
508 | + | } | |
509 | + | else nil | |
510 | + | ((ax ++ [StringEntry((((("address_" + f) + "_initTx_") + aA) + "_win"), aJ), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_status"), "finish"), IntegerEntry((((("address_" + f) + "_initTx_") + aA) + "_random"), aK)]) ++ aG) | |
436 | 511 | } | |
437 | 512 | else throw("Strict value is not equal to itself.") | |
438 | 513 | } | |
439 | 514 | else throw("Strict value is not equal to itself.") | |
440 | 515 | } | |
441 | 516 | ||
442 | 517 | ||
443 | - | @Callable( | |
444 | - | func configureOracle ( | |
518 | + | @Callable(aU) | |
519 | + | func configureOracle (aV) = if ((aU.caller != this)) | |
445 | 520 | then throw("RCU: admin only") | |
446 | - | else [StringEntry("static_oracleAddress", | |
521 | + | else [StringEntry("static_oracleAddress", aV)] | |
447 | 522 | ||
448 | 523 | ||
449 | 524 | ||
450 | - | @Callable( | |
451 | - | func initRebirth ( | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let f = toString( | |
458 | - | if (( | |
525 | + | @Callable(aU) | |
526 | + | func initRebirth (aW) = { | |
527 | + | let aX = aU.payments[0] | |
528 | + | let aY = aU.payments[1] | |
529 | + | let aZ = aU.payments[2] | |
530 | + | let Z = value(aX.assetId) | |
531 | + | let aA = toBase58String(aU.transactionId) | |
532 | + | let f = toString(aU.caller) | |
533 | + | if ((aX.amount != 1)) | |
459 | 534 | then throw("NFT is not attached") | |
460 | - | else if (if (( | |
535 | + | else if (if ((aY.amount != ac)) | |
461 | 536 | then true | |
462 | - | else ( | |
537 | + | else (aY.assetId != unit)) | |
463 | 538 | then throw("Wavespayment is not attached or wrong!") | |
464 | - | else if (if (( | |
539 | + | else if (if ((aZ.amount != aa)) | |
465 | 540 | then true | |
466 | - | else ( | |
541 | + | else (aZ.assetId != Q())) | |
467 | 542 | then throw("SpicePayment is not attached or wrong!") | |
468 | 543 | else { | |
469 | - | let | |
470 | - | if (( | |
544 | + | let ba = l(invoke(S(), "useCoupons", [ab], nil)) | |
545 | + | if ((ba == ba)) | |
471 | 546 | then { | |
472 | - | let | |
473 | - | let | |
474 | - | if (( | |
547 | + | let bb = (ab - ba) | |
548 | + | let bc = invoke(T(), "topUpReward", nil, [AttachedPayment(Q(), aZ.amount)]) | |
549 | + | if ((bc == bc)) | |
475 | 550 | then { | |
476 | - | let | |
551 | + | let ag = if ((bb != 0)) | |
477 | 552 | then { | |
478 | - | let | |
479 | - | let | |
480 | - | if (( | |
553 | + | let bd = aU.payments[3] | |
554 | + | let be = value(bd) | |
555 | + | if ((be.assetId != L())) | |
481 | 556 | then throw("You need to attach EGG tokens as fee") | |
482 | - | else if (( | |
483 | - | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString( | |
557 | + | else if ((be.amount != bb)) | |
558 | + | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(bb))) | |
484 | 559 | else { | |
485 | - | let | |
486 | - | let | |
487 | - | if (( | |
560 | + | let bf = fraction(bb, 5, 100) | |
561 | + | let bg = p(invoke(R(), "refPayment", [aW], [AttachedPayment(L(), bf)])) | |
562 | + | if ((bg == bg)) | |
488 | 563 | then { | |
489 | - | let | |
490 | - | then ( | |
491 | - | else | |
492 | - | let | |
493 | - | if (( | |
494 | - | then | |
564 | + | let bh = if (bg) | |
565 | + | then (bb - bf) | |
566 | + | else bb | |
567 | + | let bi = invoke(M(), "burnAttachedPayments", nil, [AttachedPayment(L(), bh)]) | |
568 | + | if ((bi == bi)) | |
569 | + | then bb | |
495 | 570 | else throw("Strict value is not equal to itself.") | |
496 | 571 | } | |
497 | 572 | else throw("Strict value is not equal to itself.") | |
498 | 573 | } | |
499 | 574 | } | |
500 | 575 | else 0 | |
501 | - | if (( | |
576 | + | if ((ag == ag)) | |
502 | 577 | then { | |
503 | - | let | |
504 | - | if (( | |
505 | - | then [IntegerEntry((((("address_" + f) + "_initTx_") + | |
578 | + | let bj = ae(Z) | |
579 | + | if ((bj == bj)) | |
580 | + | then [IntegerEntry((((("address_" + f) + "_initTx_") + aA) + "_finishBlock"), (height + ad)), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_status"), "open"), StringEntry((((("address_" + f) + "_initTx_") + aA) + "_assetId"), toBase58String(Z)), ScriptTransfer(N(), aY.amount, unit)] | |
506 | 581 | else throw("Strict value is not equal to itself.") | |
507 | 582 | } | |
508 | 583 | else throw("Strict value is not equal to itself.") | |
509 | 584 | } | |
510 | 585 | else throw("Strict value is not equal to itself.") | |
511 | 586 | } | |
512 | 587 | else throw("Strict value is not equal to itself.") | |
513 | 588 | } | |
514 | 589 | } | |
515 | 590 | ||
516 | 591 | ||
517 | 592 | ||
518 | - | @Callable( | |
519 | - | func finishRebirth ( | |
593 | + | @Callable(aU) | |
594 | + | func finishRebirth (aA) = az(aA, toString(aU.caller), aU.payments[0], false, "", false) | |
520 | 595 | ||
521 | 596 | ||
522 | 597 | ||
523 | - | @Callable( | |
524 | - | func finishRebirthDouble ( | |
525 | - | then ( | |
598 | + | @Callable(aU) | |
599 | + | func finishRebirthDouble (aA) = if (!(if ((size(aU.payments) == 2)) | |
600 | + | then (aU.payments[0].amount == 1) | |
526 | 601 | else false)) | |
527 | 602 | then throw("Invalid payment") | |
528 | 603 | else { | |
529 | - | let | |
530 | - | let | |
531 | - | if (( | |
532 | - | then if (( | |
533 | - | then ([Burn( | |
604 | + | let Z = value(aU.payments[0].assetId) | |
605 | + | let bk = r(invoke(W(), "checkArtefactDetails", [toBase58String(Z)], nil)) | |
606 | + | if ((bk == bk)) | |
607 | + | then if ((bk == "ART-GIFT_DOUBL")) | |
608 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], true, "", false)) | |
534 | 609 | else throw("Error! Wrong item attached to double rewards!") | |
535 | 610 | else throw("Strict value is not equal to itself.") | |
536 | 611 | } | |
537 | 612 | ||
538 | 613 | ||
539 | - | @Verifier(aq) | |
540 | - | func bd () = if (a()) | |
541 | - | then sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey) | |
614 | + | ||
615 | + | @Callable(aU) | |
616 | + | func finishRebirthItem (aA,bl) = if (if ((size(aU.payments) == 2)) | |
617 | + | then (aU.payments[0].amount == 1) | |
618 | + | else false) | |
619 | + | then { | |
620 | + | let Z = value(aU.payments[0].assetId) | |
621 | + | let bk = r(invoke(W(), "checkArtefactDetails", [toBase58String(Z)], nil)) | |
622 | + | if ((bk == bk)) | |
623 | + | then if ((bk == "ART-HWERASE")) | |
624 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], false, bl, false)) | |
625 | + | else if ((bk == "ART-HWRESCUE")) | |
626 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], false, "", true)) | |
627 | + | else if ((bk == "ART-GIFT_DOUBL")) | |
628 | + | then ([Burn(Z, 1)] ++ az(aA, toString(aU.caller), aU.payments[1], true, "", false)) | |
629 | + | else throw("Error! Wrong item attached ") | |
630 | + | else throw("Strict value is not equal to itself.") | |
631 | + | } | |
632 | + | else if ((size(aU.payments) == 1)) | |
633 | + | then az(aA, toString(aU.caller), aU.payments[0], false, "", false) | |
634 | + | else throw("Invalid payments") | |
635 | + | ||
636 | + | ||
637 | + | @Verifier(ar) | |
638 | + | func bm () = if (a()) | |
639 | + | then sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey) | |
542 | 640 | else { | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
641 | + | let bn = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
642 | + | let bo = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
643 | + | let bp = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
644 | + | let bq = if (sigVerify(ar.bodyBytes, ar.proofs[0], bn)) | |
547 | 645 | then 1 | |
548 | - | else if (sigVerify( | |
646 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[1], bn)) | |
549 | 647 | then 1 | |
550 | - | else if (sigVerify( | |
648 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[2], bn)) | |
551 | 649 | then 1 | |
552 | 650 | else 0 | |
553 | - | let | |
651 | + | let br = if (sigVerify(ar.bodyBytes, ar.proofs[0], bo)) | |
554 | 652 | then 1 | |
555 | - | else if (sigVerify( | |
653 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[1], bo)) | |
556 | 654 | then 1 | |
557 | - | else if (sigVerify( | |
655 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[2], bo)) | |
558 | 656 | then 1 | |
559 | 657 | else 0 | |
560 | - | let | |
658 | + | let bs = if (sigVerify(ar.bodyBytes, ar.proofs[0], bp)) | |
561 | 659 | then 1 | |
562 | - | else if (sigVerify( | |
660 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[1], bp)) | |
563 | 661 | then 1 | |
564 | - | else if (sigVerify( | |
662 | + | else if (sigVerify(ar.bodyBytes, ar.proofs[2], bp)) | |
565 | 663 | then 1 | |
566 | 664 | else 0 | |
567 | - | let | |
568 | - | let c = | |
569 | - | ( | |
665 | + | let bt = ((bq + br) + bs) | |
666 | + | let c = ar | |
667 | + | (bt >= 2) | |
570 | 668 | } | |
571 | 669 |
github/deemru/w8io/026f985 211.48 ms ◑