tx · FthxRrbD4mpvwvvs5X7nEGjKx6yJXT5EhN1PbvSZLWJm 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.05700000 Waves 2023.05.29 23:38 [2599756] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "FthxRrbD4mpvwvvs5X7nEGjKx6yJXT5EhN1PbvSZLWJm", "fee": 5700000, "feeAssetId": null, "timestamp": 1685392675204, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "46M7beq3deJDKyo57ediGkYYmVppNpunECaUgrKMZiErem9Yx6D9Ch2g43umxgCxvf62jykeNQySpHKN56ZKtqc8" ], "script": "base64:BgKZAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgQKAgEIEgQKAgEBEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgMKAQgSBQoDCAgIEgQKAggIEgMKAQESBQoDAQEIEgMKAQgSAwoBCJ4BAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgANaW5jdWJhdG9yQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM1BFa3RWdXgyUmhjaFNONjNEc0RvNGI0bXo0UXF6S1NlRHYDCQAAAgEBVAUHJG1hdGNoM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nJhaW5Db3VudHMBaQETZ2V0QmFja3BhY2tSRUFET05MWQELZHVja0Fzc2V0SWQJAJQKAgUDbmlsCQC5CQIJAQtnZXRCYWNrcGFjawEJARFrZXlCYWNrcGFja0J5RHVjawEFC2R1Y2tBc3NldElkAgE6AWkBFGdldFdhcmVob3VzZVJFQURPTkxZAQtsYW5kQXNzZXRJZAQFYXNzZXQJAQV2YWx1ZQEJAOwHAQkA2QQBBQtsYW5kQXNzZXRJZAQJbGFuZEluZGV4CQBpAgkBD251bVBpZWNlc0J5U2l6ZQEJAJEDAgkAtQkCCAUFYXNzZXQLZGVzY3JpcHRpb24CAV8FC3JlY0xhbmRTaXplBQVTU0laRQQKaW5mcmFMZXZlbAkBC3ZhbHVlT3JFbHNlAgkAnwgBCQEWa2V5SW5mcmFMZXZlbEJ5QXNzZXRJZAEFC2xhbmRBc3NldElkAAAJAJQKAgUDbmlsCQC6CQIJAQxnZXRXYXJlaG91c2UDCQESa2V5V2FyZWhvdXNlQnlMYW5kAQULbGFuZEFzc2V0SWQFCWxhbmRJbmRleAUKaW5mcmFMZXZlbAIBOgCaRV0q", "height": 2599756, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H8kdpwVBwfn2jzKHiGFZsUE2XvUkXix3UFxEqhQD4pHy Next: HhcmQtpDBkhfc4ABTYY5V24h5T9ui3dc6YjDKiUAoTsQ Diff:
Old | New | Differences | |
---|---|---|---|
178 | 178 | func ak (al) = ("landToAsset_" + al) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func am ( | |
181 | + | func am (an) = ("nftOwner_" + an) | |
182 | 182 | ||
183 | 183 | ||
184 | - | func ao ( | |
184 | + | func ao (an) = ("landCustomNameByAssetId_" + an) | |
185 | 185 | ||
186 | 186 | ||
187 | - | func | |
187 | + | func ap (aq) = ("landByCustomName_" + aq) | |
188 | 188 | ||
189 | 189 | ||
190 | - | func ar ( | |
190 | + | func ar (an) = ("stakedTime_" + an) | |
191 | 191 | ||
192 | 192 | ||
193 | - | func as ( | |
193 | + | func as (an) = ("infraLevel_" + an) | |
194 | 194 | ||
195 | 195 | ||
196 | - | func at (au) = (" | |
196 | + | func at (an,au) = ((("infraLevelByAssetIdAndOwner_" + an) + "_") + au) | |
197 | 197 | ||
198 | 198 | ||
199 | - | func av ( | |
199 | + | func av (an) = ("presaleArtActivated_" + an) | |
200 | 200 | ||
201 | 201 | ||
202 | - | func aw (au) = (" | |
202 | + | func aw (an,au) = ((("presaleArtActivatedByAssetIdAndOwner_" + an) + "_") + au) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func ax ( | |
205 | + | func ax (ay,an) = makeString(["landArtStatus", ay, an], "_") | |
206 | 206 | ||
207 | 207 | ||
208 | - | func | |
208 | + | func az (ay,an,au) = makeString(["landArtStatusByTypeAssetIdAndOwner", ay, an, au], "_") | |
209 | 209 | ||
210 | 210 | ||
211 | - | func | |
211 | + | func aA (aB,an,au) = ((((("stakedTimeByTypeAssetIdAndOwner_" + aB) + "_") + an) + "_") + au) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func | |
214 | + | func aC (aD) = ("wareHouse_" + aD) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func | |
217 | + | func aE (al) = ("landOwner_" + al) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func | |
220 | + | func aF (au) = ("stakedLandsByOwner_" + au) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func | |
223 | + | func aG (an) = ("duckCustomNameByAssetId_" + an) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func | |
226 | + | func aH (ai) = ("accountCustomNameByAddr_" + ai) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func aI (aq) = ("duckByCustomName_" + aq) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func | |
232 | + | func aJ (aq) = ("accountByCustomName_" + aq) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func | |
235 | + | func aK (ai) = ("accRefBy_" + ai) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func | |
238 | + | func aL (ai) = ("accReferrals_" + ai) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func | |
241 | + | func aM () = "oldiesList" | |
242 | 242 | ||
243 | 243 | ||
244 | - | func aN ( | |
244 | + | func aN (an) = ("duckOwner_" + an) | |
245 | 245 | ||
246 | 246 | ||
247 | - | func aO ( | |
247 | + | func aO (au) = ("stakedDuckByOwner_" + au) | |
248 | 248 | ||
249 | 249 | ||
250 | - | func | |
250 | + | func aP (aQ) = ("backPack_" + aQ) | |
251 | 251 | ||
252 | 252 | ||
253 | - | func | |
253 | + | func aR (aQ) = ("duckLocation_" + aQ) | |
254 | 254 | ||
255 | 255 | ||
256 | - | func | |
256 | + | func aS (aQ) = ("duckHealth_" + aQ) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func | |
259 | + | func aT () = "resTypesProportions" | |
260 | 260 | ||
261 | 261 | ||
262 | - | func | |
262 | + | func aU () = "contractsBlocked" | |
263 | 263 | ||
264 | 264 | ||
265 | - | func | |
265 | + | func aV (aW) = ("%s%s__userGwlReleaseTime__" + aW) | |
266 | 266 | ||
267 | 267 | ||
268 | - | func aX ( | |
268 | + | func aX (aD) = ("landOrder_" + aD) | |
269 | 269 | ||
270 | 270 | ||
271 | - | let | |
271 | + | let aY = 0 | |
272 | 272 | ||
273 | - | let | |
273 | + | let aZ = 1 | |
274 | 274 | ||
275 | - | let | |
275 | + | let ba = 2 | |
276 | 276 | ||
277 | - | let | |
277 | + | let bb = 3 | |
278 | 278 | ||
279 | - | let | |
279 | + | let bc = 0 | |
280 | 280 | ||
281 | - | let | |
281 | + | let bd = 1 | |
282 | 282 | ||
283 | - | let | |
283 | + | let be = 2 | |
284 | 284 | ||
285 | - | let | |
285 | + | let bf = 0 | |
286 | 286 | ||
287 | - | let | |
287 | + | let bg = 1 | |
288 | 288 | ||
289 | - | let | |
289 | + | let bh = 2 | |
290 | 290 | ||
291 | - | let | |
291 | + | let bi = 3 | |
292 | 292 | ||
293 | - | let | |
293 | + | let bj = 0 | |
294 | 294 | ||
295 | - | let | |
295 | + | let bk = 1 | |
296 | 296 | ||
297 | - | let | |
297 | + | let bl = 2 | |
298 | 298 | ||
299 | - | let | |
299 | + | let bm = 3 | |
300 | 300 | ||
301 | - | let | |
301 | + | let bn = 4 | |
302 | 302 | ||
303 | - | let | |
303 | + | let bo = 0 | |
304 | 304 | ||
305 | - | let | |
305 | + | let bp = 1 | |
306 | 306 | ||
307 | - | let | |
307 | + | let bq = 2 | |
308 | 308 | ||
309 | - | let | |
309 | + | let br = 3 | |
310 | 310 | ||
311 | - | let | |
311 | + | let bs = 0 | |
312 | 312 | ||
313 | - | let | |
313 | + | let bt = 1 | |
314 | 314 | ||
315 | - | let | |
315 | + | let bu = 2 | |
316 | 316 | ||
317 | - | let | |
317 | + | let bv = 0 | |
318 | 318 | ||
319 | - | let | |
319 | + | let bw = 1 | |
320 | 320 | ||
321 | - | let | |
321 | + | let bx = 2 | |
322 | 322 | ||
323 | - | let | |
323 | + | let by = 3 | |
324 | 324 | ||
325 | - | let | |
325 | + | let bz = 4 | |
326 | 326 | ||
327 | - | let | |
327 | + | let bA = 5 | |
328 | 328 | ||
329 | - | let | |
329 | + | let bB = 6 | |
330 | 330 | ||
331 | - | let | |
331 | + | let bC = [10, 10, 10, 100, 100, 100, 10, 10, 10, 100, 100, 100, 10, 10, 10] | |
332 | 332 | ||
333 | - | func bE (bF) = { | |
334 | - | let c = bF | |
333 | + | func bD (al,bE) = ((i + al) + bE) | |
334 | + | ||
335 | + | ||
336 | + | func bF (bG) = { | |
337 | + | let c = bG | |
335 | 338 | if ($isInstanceOf(c, "String")) | |
336 | 339 | then { | |
337 | - | let | |
338 | - | | |
340 | + | let bH = c | |
341 | + | bH | |
339 | 342 | } | |
340 | 343 | else throw("fail to cast into String") | |
341 | 344 | } | |
342 | 345 | ||
343 | 346 | ||
344 | - | func | |
345 | - | let c = | |
347 | + | func bI (bG) = { | |
348 | + | let c = bG | |
346 | 349 | if ($isInstanceOf(c, "Int")) | |
347 | 350 | then { | |
348 | - | let | |
349 | - | | |
351 | + | let bJ = c | |
352 | + | bJ | |
350 | 353 | } | |
351 | 354 | else throw("fail to cast into Int") | |
352 | 355 | } | |
353 | 356 | ||
354 | 357 | ||
355 | - | func | |
356 | - | let | |
357 | - | if ((0 >= | |
358 | + | func bK (bL,bM) = { | |
359 | + | let bN = (((((bM[0] + bM[1]) + bM[2]) + bM[3]) + bM[4]) + bM[5]) | |
360 | + | if ((0 >= bN)) | |
358 | 361 | then throw("Zero weights sum") | |
359 | 362 | else { | |
360 | - | let | |
361 | - | func | |
363 | + | let bO = fraction(bL, D, bN) | |
364 | + | func bP (bQ,bR) = (bQ :+ fraction(bR, bO, D)) | |
362 | 365 | ||
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | func | |
367 | - | then | |
368 | - | else | |
366 | + | let bS = bM | |
367 | + | let bT = size(bS) | |
368 | + | let bU = nil | |
369 | + | func bV (bW,bX) = if ((bX >= bT)) | |
370 | + | then bW | |
371 | + | else bP(bW, bS[bX]) | |
369 | 372 | ||
370 | - | func | |
371 | - | then | |
373 | + | func bY (bW,bX) = if ((bX >= bT)) | |
374 | + | then bW | |
372 | 375 | else throw("List size exceeds 6") | |
373 | 376 | ||
374 | - | | |
377 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
375 | 378 | } | |
376 | 379 | } | |
377 | 380 | ||
378 | 381 | ||
379 | - | func | |
380 | - | let | |
381 | - | if ((size( | |
382 | + | func bZ (bL) = { | |
383 | + | let ca = split(value(getString(aT())), "_") | |
384 | + | if ((size(ca) != l)) | |
382 | 385 | then throw("Wrong proportions data") | |
383 | 386 | else { | |
384 | - | let | |
385 | - | | |
387 | + | let cb = [parseIntValue(ca[0]), parseIntValue(ca[1]), parseIntValue(ca[2]), parseIntValue(ca[3]), parseIntValue(ca[4]), parseIntValue(ca[5])] | |
388 | + | bK(bL, cb) | |
386 | 389 | } | |
387 | 390 | } | |
388 | 391 | ||
389 | 392 | ||
390 | - | func | |
391 | - | let | |
392 | - | func | |
393 | - | let | |
394 | - | if ((0 > | |
395 | - | then throw(((((("Not enough material idx=" + toString(ad)) + ", you have ") + | |
396 | - | else ( | |
393 | + | func cc (cd,ce,cf) = { | |
394 | + | let cg = bZ(cf) | |
395 | + | func ch (bQ,ad) = { | |
396 | + | let ci = (parseIntValue(ce[ad]) - cg[ad]) | |
397 | + | if ((0 > ci)) | |
398 | + | then throw(((((("Not enough material idx=" + toString(ad)) + ", you have ") + ce[ad]) + ", but need ") + toString(cg[ad]))) | |
399 | + | else (bQ :+ toString(ci)) | |
397 | 400 | } | |
398 | 401 | ||
399 | - | if ( | |
402 | + | if (cd) | |
400 | 403 | then { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | func | |
405 | - | then | |
406 | - | else | |
404 | + | let bS = [0, 1, 2, 3, 4, 5] | |
405 | + | let bT = size(bS) | |
406 | + | let bU = nil | |
407 | + | func bV (bW,bX) = if ((bX >= bT)) | |
408 | + | then bW | |
409 | + | else ch(bW, bS[bX]) | |
407 | 410 | ||
408 | - | func | |
409 | - | then | |
411 | + | func bY (bW,bX) = if ((bX >= bT)) | |
412 | + | then bW | |
410 | 413 | else throw("List size exceeds 6") | |
411 | 414 | ||
412 | - | | |
415 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
413 | 416 | } | |
414 | - | else | |
417 | + | else ce | |
415 | 418 | } | |
416 | 419 | ||
417 | 420 | ||
418 | - | func | |
421 | + | func cj (ck,cl,cm,cn) = if ((size(ck) != l)) | |
419 | 422 | then throw("Wrong proportions data") | |
420 | 423 | else { | |
421 | - | func | |
422 | - | let | |
423 | - | if ((0 > | |
424 | - | then throw(((((((("Panic! Pieces of type=" + toString( | |
425 | - | else ( | |
424 | + | func co (bQ,cp) = { | |
425 | + | let ci = (parseIntValue(ck[cp]) + ((cn * cl[cp]) * cm)) | |
426 | + | if ((0 > ci)) | |
427 | + | then throw(((((((("Panic! Pieces of type=" + toString(cp)) + ", sign=") + toString(cn)) + ", terrainCounts[i]=") + toString(cl[cp])) + ", landSizeIndex=") + toString(cm))) | |
428 | + | else (bQ :+ toString(ci)) | |
426 | 429 | } | |
427 | 430 | ||
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | func | |
433 | - | then | |
434 | - | else | |
431 | + | let cb = { | |
432 | + | let bS = [0, 1, 2, 3, 4, 5] | |
433 | + | let bT = size(bS) | |
434 | + | let bU = nil | |
435 | + | func bV (bW,bX) = if ((bX >= bT)) | |
436 | + | then bW | |
437 | + | else co(bW, bS[bX]) | |
435 | 438 | ||
436 | - | func | |
437 | - | then | |
439 | + | func bY (bW,bX) = if ((bX >= bT)) | |
440 | + | then bW | |
438 | 441 | else throw("List size exceeds 6") | |
439 | 442 | ||
440 | - | | |
443 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
441 | 444 | } | |
442 | - | makeString( | |
445 | + | makeString(cb, "_") | |
443 | 446 | } | |
444 | 447 | ||
445 | 448 | ||
446 | - | func | |
447 | - | let | |
448 | - | | |
449 | + | func cq (cl,cm,cn) = { | |
450 | + | let ck = split(valueOrElse(getString(aT()), "0_0_0_0_0_0"), "_") | |
451 | + | cj(ck, cl, cm, cn) | |
449 | 452 | } | |
450 | 453 | ||
451 | 454 | ||
452 | - | func | |
455 | + | func cr (cs) = [(size(split(cs, "A")) - 1), (size(split(cs, "B")) - 1), (size(split(cs, "C")) - 1), (size(split(cs, "D")) - 1), (size(split(cs, "E")) - 1), (size(split(cs, "F")) - 1)] | |
453 | 456 | ||
454 | 457 | ||
455 | - | func | |
456 | - | let c = | |
458 | + | func ct (bE) = { | |
459 | + | let c = bE | |
457 | 460 | if (("S" == c)) | |
458 | 461 | then m | |
459 | 462 | else if (("M" == c)) | |
468 | 471 | } | |
469 | 472 | ||
470 | 473 | ||
471 | - | func | |
472 | - | func | |
473 | - | then toString((parseIntValue( | |
474 | - | else | |
474 | + | func cu (cv,ad,cw) = { | |
475 | + | func cx (bQ,cp) = (bQ :+ (if ((cp == ad)) | |
476 | + | then toString((parseIntValue(cv[cp]) - cw)) | |
477 | + | else cv[cp])) | |
475 | 478 | ||
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | func | |
481 | - | then | |
482 | - | else | |
479 | + | let cb = { | |
480 | + | let bS = [0, 1, 2, 3, 4, 5] | |
481 | + | let bT = size(bS) | |
482 | + | let bU = nil | |
483 | + | func bV (bW,bX) = if ((bX >= bT)) | |
484 | + | then bW | |
485 | + | else cx(bW, bS[bX]) | |
483 | 486 | ||
484 | - | func | |
485 | - | then | |
487 | + | func bY (bW,bX) = if ((bX >= bT)) | |
488 | + | then bW | |
486 | 489 | else throw("List size exceeds 6") | |
487 | 490 | ||
488 | - | | |
491 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
489 | 492 | } | |
490 | - | makeString( | |
493 | + | makeString(cb, "_") | |
491 | 494 | } | |
492 | 495 | ||
493 | 496 | ||
494 | - | func | |
495 | - | func | |
496 | - | let | |
497 | - | ( | |
497 | + | func cy (cz,cl,cA,cm,cB) = { | |
498 | + | func cC (bQ,cp) = { | |
499 | + | let cD = ((fraction(cA, cB, s) * cl[cp]) * cm) | |
500 | + | (bQ :+ toString((parseIntValue(cz[cp]) + cD))) | |
498 | 501 | } | |
499 | 502 | ||
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | func | |
505 | - | then | |
506 | - | else | |
503 | + | let cb = { | |
504 | + | let bS = [0, 1, 2, 3, 4, 5] | |
505 | + | let bT = size(bS) | |
506 | + | let bU = nil | |
507 | + | func bV (bW,bX) = if ((bX >= bT)) | |
508 | + | then bW | |
509 | + | else cC(bW, bS[bX]) | |
507 | 510 | ||
508 | - | func | |
509 | - | then | |
511 | + | func bY (bW,bX) = if ((bX >= bT)) | |
512 | + | then bW | |
510 | 513 | else throw("List size exceeds 6") | |
511 | 514 | ||
512 | - | | |
515 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
513 | 516 | } | |
514 | - | makeString( | |
517 | + | makeString(cb, "_") | |
515 | 518 | } | |
516 | 519 | ||
517 | 520 | ||
518 | - | func | |
519 | - | func | |
520 | - | let | |
521 | - | $Tuple2(( | |
521 | + | func cE (cl,cA,cm,cB) = { | |
522 | + | func cC (bQ,cp) = { | |
523 | + | let cD = ((fraction(cA, cB, s) * cl[cp]) * cm) | |
524 | + | $Tuple2((bQ._1 :+ cD), (bQ._2 + cD)) | |
522 | 525 | } | |
523 | 526 | ||
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | func | |
528 | - | then | |
529 | - | else | |
527 | + | let bS = [0, 1, 2, 3, 4, 5] | |
528 | + | let bT = size(bS) | |
529 | + | let bU = $Tuple2(nil, 0) | |
530 | + | func bV (bW,bX) = if ((bX >= bT)) | |
531 | + | then bW | |
532 | + | else cC(bW, bS[bX]) | |
530 | 533 | ||
531 | - | func | |
532 | - | then | |
534 | + | func bY (bW,bX) = if ((bX >= bT)) | |
535 | + | then bW | |
533 | 536 | else throw("List size exceeds 6") | |
534 | 537 | ||
535 | - | | |
538 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
536 | 539 | } | |
537 | 540 | ||
538 | 541 | ||
539 | - | func | |
540 | - | let | |
541 | - | let | |
542 | - | if (( | |
543 | - | then $Tuple2(makeString( | |
544 | - | else if (( | |
542 | + | func cF (cG,cH,cI,cJ) = { | |
543 | + | let cK = cI._1 | |
544 | + | let cL = cI._2 | |
545 | + | if ((cL == 0)) | |
546 | + | then $Tuple2(makeString(cG, "_"), makeString(cH, "_")) | |
547 | + | else if ((cJ >= cL)) | |
545 | 548 | then { | |
546 | - | func | |
549 | + | func cM (bQ,cp) = (bQ :+ toString((parseIntValue(cG[cp]) + cK[cp]))) | |
547 | 550 | ||
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | func | |
553 | - | then | |
554 | - | else | |
551 | + | let cb = { | |
552 | + | let bS = [0, 1, 2, 3, 4, 5] | |
553 | + | let bT = size(bS) | |
554 | + | let bU = nil | |
555 | + | func bV (bW,bX) = if ((bX >= bT)) | |
556 | + | then bW | |
557 | + | else cM(bW, bS[bX]) | |
555 | 558 | ||
556 | - | func | |
557 | - | then | |
559 | + | func bY (bW,bX) = if ((bX >= bT)) | |
560 | + | then bW | |
558 | 561 | else throw("List size exceeds 6") | |
559 | 562 | ||
560 | - | | |
563 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
561 | 564 | } | |
562 | - | $Tuple2(makeString( | |
565 | + | $Tuple2(makeString(cb, "_"), makeString(cH, "_")) | |
563 | 566 | } | |
564 | 567 | else { | |
565 | - | func | |
566 | - | let | |
567 | - | $Tuple2(( | |
568 | + | func cN (bQ,cp) = { | |
569 | + | let cO = fraction(cK[cp], cJ, cL) | |
570 | + | $Tuple2((bQ._1 :+ toString((parseIntValue(cG[cp]) + cO))), (bQ._2 :+ toString(((parseIntValue(cH[cp]) + cK[cp]) - cO)))) | |
568 | 571 | } | |
569 | 572 | ||
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | func | |
575 | - | then | |
576 | - | else | |
573 | + | let cb = { | |
574 | + | let bS = [0, 1, 2, 3, 4, 5] | |
575 | + | let bT = size(bS) | |
576 | + | let bU = $Tuple2(nil, nil) | |
577 | + | func bV (bW,bX) = if ((bX >= bT)) | |
578 | + | then bW | |
579 | + | else cN(bW, bS[bX]) | |
577 | 580 | ||
578 | - | func | |
579 | - | then | |
581 | + | func bY (bW,bX) = if ((bX >= bT)) | |
582 | + | then bW | |
580 | 583 | else throw("List size exceeds 6") | |
581 | 584 | ||
582 | - | | |
585 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
583 | 586 | } | |
584 | - | $Tuple2(makeString( | |
587 | + | $Tuple2(makeString(cb._1, "_"), makeString(cb._2, "_")) | |
585 | 588 | } | |
586 | 589 | } | |
587 | 590 | ||
588 | 591 | ||
589 | - | func | |
590 | - | then | |
591 | - | else -( | |
592 | + | func cP (cQ) = if ((cQ >= toBigInt(0))) | |
593 | + | then cQ | |
594 | + | else -(cQ) | |
592 | 595 | ||
593 | 596 | ||
594 | - | let | |
597 | + | let cR = [[1, 4, 9, 10, 15], [5, 8, 13, 14, 15], [6, 9, 14, 15, 16], [4, 7, 8, 13, 18], [1, 6, 7, 15, 19]] | |
595 | 598 | ||
596 | - | func | |
597 | - | let | |
598 | - | let | |
599 | + | func cS (bJ,cT) = { | |
600 | + | let cU = toInt((bJ % G)) | |
601 | + | let cV = if ((cT[0] > cU)) | |
599 | 602 | then "A" | |
600 | - | else if (( | |
603 | + | else if ((cT[1] > cU)) | |
601 | 604 | then "B" | |
602 | - | else if (( | |
605 | + | else if ((cT[2] > cU)) | |
603 | 606 | then "C" | |
604 | - | else if (( | |
607 | + | else if ((cT[3] > cU)) | |
605 | 608 | then "D" | |
606 | - | else if (( | |
609 | + | else if ((cT[4] > cU)) | |
607 | 610 | then "E" | |
608 | 611 | else "F" | |
609 | - | | |
612 | + | cV | |
610 | 613 | } | |
611 | 614 | ||
612 | 615 | ||
613 | - | func | |
614 | - | let | |
615 | - | func | |
616 | + | func cW (cX,cY) = { | |
617 | + | let cZ = cR[cY] | |
618 | + | func da (bQ,bR) = $Tuple2((((((bQ._1 + cS(bQ._2, cZ)) + cS((bQ._2 / G), cZ)) + cS((bQ._2 / H), cZ)) + cS((bQ._2 / I), cZ)) + cS((bQ._2 / J), cZ)), (bQ._2 / K)) | |
616 | 619 | ||
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | func | |
622 | - | then | |
623 | - | else | |
620 | + | let db = { | |
621 | + | let bS = [1, 2, 3, 4, 5] | |
622 | + | let bT = size(bS) | |
623 | + | let bU = $Tuple2("", (cX / F)) | |
624 | + | func bV (bW,bX) = if ((bX >= bT)) | |
625 | + | then bW | |
626 | + | else da(bW, bS[bX]) | |
624 | 627 | ||
625 | - | func | |
626 | - | then | |
628 | + | func bY (bW,bX) = if ((bX >= bT)) | |
629 | + | then bW | |
627 | 630 | else throw("List size exceeds 5") | |
628 | 631 | ||
629 | - | | |
632 | + | bY(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5) | |
630 | 633 | } | |
631 | - | | |
634 | + | db._1 | |
632 | 635 | } | |
633 | 636 | ||
634 | 637 | ||
635 | - | func | |
636 | - | let | |
637 | - | [toString(valueOrElse(parseInt( | |
638 | - | then | |
639 | - | else "0_0_0_0_0_0", if ((size(split( | |
640 | - | then | |
641 | - | else "0_0_0_0_0_0", | |
638 | + | func dc (dd) = { | |
639 | + | let de = split(valueOrElse(getString(dd), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
640 | + | [toString(valueOrElse(parseInt(de[bf]), 0)), if ((size(split(de[bg], "_")) == l)) | |
641 | + | then de[bg] | |
642 | + | else "0_0_0_0_0_0", if ((size(split(de[bh], "_")) == l)) | |
643 | + | then de[bh] | |
644 | + | else "0_0_0_0_0_0", de[bi]] | |
642 | 645 | } | |
643 | 646 | ||
644 | 647 | ||
645 | - | func | |
646 | - | let | |
647 | - | ((v * (parseIntValue( | |
648 | + | func df (dg) = { | |
649 | + | let dh = split(dg, "_") | |
650 | + | ((v * (parseIntValue(dh[1]) + 1)) * parseIntValue(dh[0])) | |
648 | 651 | } | |
649 | 652 | ||
650 | 653 | ||
651 | - | func | |
652 | - | let | |
653 | - | func | |
654 | + | func di (dj) = { | |
655 | + | let dk = dj[bm] | |
656 | + | func dl (bQ,dm) = (bQ + parseIntValue(dm)) | |
654 | 657 | ||
655 | - | func | |
656 | - | let ad = | |
657 | - | let | |
658 | - | let | |
659 | - | $Tuple2((ad + 1), ( | |
658 | + | func dn (bQ,dm) = { | |
659 | + | let ad = bQ._1 | |
660 | + | let do = bC[ad] | |
661 | + | let dp = (((parseIntValue(dm) + do) - 1) / do) | |
662 | + | $Tuple2((ad + 1), (bQ._2 + (dp * E))) | |
660 | 663 | } | |
661 | 664 | ||
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | func | |
667 | - | then | |
668 | - | else | |
665 | + | let dq = { | |
666 | + | let bS = split(dj[bk], "_") | |
667 | + | let bT = size(bS) | |
668 | + | let bU = 0 | |
669 | + | func bV (bW,bX) = if ((bX >= bT)) | |
670 | + | then bW | |
671 | + | else dl(bW, bS[bX]) | |
669 | 672 | ||
670 | - | func | |
671 | - | then | |
673 | + | func bY (bW,bX) = if ((bX >= bT)) | |
674 | + | then bW | |
672 | 675 | else throw("List size exceeds 6") | |
673 | 676 | ||
674 | - | | |
677 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
675 | 678 | } | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | func | |
681 | - | then | |
682 | - | else | |
679 | + | let dr = { | |
680 | + | let bS = split(dj[bl], "_") | |
681 | + | let bT = size(bS) | |
682 | + | let bU = 0 | |
683 | + | func ds (bW,bX) = if ((bX >= bT)) | |
684 | + | then bW | |
685 | + | else dl(bW, bS[bX]) | |
683 | 686 | ||
684 | - | func | |
685 | - | then | |
687 | + | func dt (bW,bX) = if ((bX >= bT)) | |
688 | + | then bW | |
686 | 689 | else throw("List size exceeds 6") | |
687 | 690 | ||
688 | - | ds( | |
691 | + | dt(ds(ds(ds(ds(ds(ds(bU, 0), 1), 2), 3), 4), 5), 6) | |
689 | 692 | } | |
690 | - | let | |
693 | + | let du = if ((dk == "")) | |
691 | 694 | then 0 | |
692 | - | else ( let | |
693 | - | let | |
694 | - | let | |
695 | - | func | |
696 | - | then | |
697 | - | else | |
695 | + | else ( let bS = split_4C(dk, "_") | |
696 | + | let bT = size(bS) | |
697 | + | let bU = $Tuple2(0, 0) | |
698 | + | func dv (bW,bX) = if ((bX >= bT)) | |
699 | + | then bW | |
700 | + | else dn(bW, bS[bX]) | |
698 | 701 | ||
699 | - | func | |
700 | - | then | |
702 | + | func dw (bW,bX) = if ((bX >= bT)) | |
703 | + | then bW | |
701 | 704 | else throw("List size exceeds 50") | |
702 | 705 | ||
703 | - | dv( | |
704 | - | (( | |
706 | + | dw(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(bU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._2 | |
707 | + | ((dq + dr) + du) | |
705 | 708 | } | |
706 | 709 | ||
707 | 710 | ||
708 | - | func | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | then makeString(["0", toString( | |
711 | + | func dx (dy,dz,dA) = { | |
712 | + | let dg = ((toString(dz) + "_") + toString(dA)) | |
713 | + | let dB = df(dg) | |
714 | + | let dC = valueOrElse(getString(dy), (dg + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
715 | + | let dD = split_4C(dC, ":") | |
716 | + | let dE = di(dD) | |
717 | + | let dF = if ((5 > size(dD))) | |
718 | + | then makeString(["0", toString(dE), toString((dB - dE)), toString(dB)], "_") | |
716 | 719 | else { | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | then parseIntValue( | |
721 | - | else | |
722 | - | makeString([toString( | |
720 | + | let dG = split(dD[bn], "_") | |
721 | + | let dH = parseIntValue(dG[bo]) | |
722 | + | let dI = if ((size(dG) > 1)) | |
723 | + | then parseIntValue(dG[bp]) | |
724 | + | else dE | |
725 | + | makeString([toString(dH), toString(dI), toString(((dB - dH) - dI)), toString(dB)], "_") | |
723 | 726 | } | |
724 | - | [ | |
725 | - | then | |
726 | - | else "0_0_0_0_0_0", if ((size(split( | |
727 | - | then | |
728 | - | else "0_0_0_0_0_0", | |
727 | + | [dD[bj], if ((size(split(dD[bk], "_")) == l)) | |
728 | + | then dD[bk] | |
729 | + | else "0_0_0_0_0_0", if ((size(split(dD[bl], "_")) == l)) | |
730 | + | then dD[bl] | |
731 | + | else "0_0_0_0_0_0", dD[bm], dF] | |
729 | 732 | } | |
730 | 733 | ||
731 | 734 | ||
732 | - | func | |
733 | - | let | |
734 | - | let | |
735 | - | (( | |
735 | + | func dJ (dj) = { | |
736 | + | let dK = di(dj) | |
737 | + | let dL = parseIntValue(split(dj[bn], "_")[bo]) | |
738 | + | ((df(dj[bj]) - dK) - dL) | |
736 | 739 | } | |
737 | 740 | ||
738 | 741 | ||
739 | - | func | |
740 | - | let | |
741 | - | then ((( | |
742 | - | else -((((-( | |
743 | - | ( | |
742 | + | func dM (cw,do) = { | |
743 | + | let dp = if ((cw >= 0)) | |
744 | + | then (((cw + do) - 1) / do) | |
745 | + | else -((((-(cw) + do) - 1) / do)) | |
746 | + | (dp * E) | |
744 | 747 | } | |
745 | 748 | ||
746 | 749 | ||
747 | - | func | |
750 | + | func dN (dO,dj,dP) = if ((size(dO) != 3)) | |
748 | 751 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
749 | 752 | else { | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | + | let dQ = split(dO[0], "_") | |
754 | + | let dR = split(dO[1], "_") | |
755 | + | let dS = if ((dO[2] == "")) | |
753 | 756 | then nil | |
754 | - | else split( | |
755 | - | if ((size( | |
757 | + | else split(dO[2], "_") | |
758 | + | if ((size(dQ) != l)) | |
756 | 759 | then throw("All 6 resources should be passed") | |
757 | - | else if ((size( | |
760 | + | else if ((size(dR) != l)) | |
758 | 761 | then throw("All 6 materials should be passed") | |
759 | 762 | else { | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
763 | + | let cJ = dJ(dj) | |
764 | + | let dT = split(dj[bk], "_") | |
765 | + | let dU = split(dj[bl], "_") | |
766 | + | let dV = if ((dj[bm] == "")) | |
764 | 767 | then nil | |
765 | - | else split( | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
768 | + | else split(dj[bm], "_") | |
769 | + | let cH = split(dP[bg], "_") | |
770 | + | let dW = split(dP[bh], "_") | |
771 | + | let dX = if ((dP[bi] == "")) | |
769 | 772 | then nil | |
770 | - | else split( | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | if (( | |
777 | - | then $Tuple4(( | |
778 | - | else if (( | |
779 | - | then if (( | |
780 | - | then throw((((("Attempt to take " + | |
781 | - | else $Tuple4(( | |
782 | - | else if ((-( | |
783 | - | then throw((((("Attempt to take " + toString(-( | |
784 | - | else $Tuple4(( | |
773 | + | else split(dP[bi], "_") | |
774 | + | func dY (bQ,dm) = { | |
775 | + | let cp = bQ._1 | |
776 | + | let dZ = parseIntValue(dm) | |
777 | + | let ea = parseIntValue(dT[cp]) | |
778 | + | let eb = parseIntValue(cH[cp]) | |
779 | + | if ((dZ == 0)) | |
780 | + | then $Tuple4((cp + 1), (bQ._2 :+ dT[cp]), (bQ._3 :+ cH[cp]), bQ._4) | |
781 | + | else if ((dZ > 0)) | |
782 | + | then if ((dZ > eb)) | |
783 | + | then throw((((("Attempt to take " + dm) + " from backpack, but only ") + toString(eb)) + " available")) | |
784 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ea + dZ))), (bQ._3 :+ toString((eb - dZ))), (bQ._4 + dZ)) | |
785 | + | else if ((-(dZ) > ea)) | |
786 | + | then throw((((("Attempt to take " + toString(-(dZ))) + " from warehouse, but only ") + toString(ea)) + " available")) | |
787 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ea + dZ))), (bQ._3 :+ toString((eb - dZ))), (bQ._4 + dZ)) | |
785 | 788 | } | |
786 | 789 | ||
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | func | |
792 | - | then | |
793 | - | else | |
790 | + | let cb = { | |
791 | + | let bS = dQ | |
792 | + | let bT = size(bS) | |
793 | + | let bU = $Tuple4(0, nil, nil, 0) | |
794 | + | func bV (bW,bX) = if ((bX >= bT)) | |
795 | + | then bW | |
796 | + | else dY(bW, bS[bX]) | |
794 | 797 | ||
795 | - | func | |
796 | - | then | |
798 | + | func bY (bW,bX) = if ((bX >= bT)) | |
799 | + | then bW | |
797 | 800 | else throw("List size exceeds 6") | |
798 | 801 | ||
799 | - | | |
802 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
800 | 803 | } | |
801 | - | func | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
807 | - | then $Tuple4(( | |
808 | - | else if (( | |
809 | - | then if (( | |
810 | - | then throw((((("Attempt to take " + | |
811 | - | else $Tuple4(( | |
812 | - | else if ((-( | |
813 | - | then throw((((("Attempt to take " + toString(-( | |
814 | - | else $Tuple4(( | |
804 | + | func ec (bQ,dm) = { | |
805 | + | let cp = bQ._1 | |
806 | + | let dZ = parseIntValue(dm) | |
807 | + | let ed = parseIntValue(dU[cp]) | |
808 | + | let ee = parseIntValue(dW[cp]) | |
809 | + | if ((dZ == 0)) | |
810 | + | then $Tuple4((cp + 1), (bQ._2 :+ dU[cp]), (bQ._3 :+ dW[cp]), bQ._4) | |
811 | + | else if ((dZ > 0)) | |
812 | + | then if ((dZ > ee)) | |
813 | + | then throw((((("Attempt to take " + dm) + " from backpack, but only ") + toString(ee)) + " available")) | |
814 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ed + dZ))), (bQ._3 :+ toString((ee - dZ))), (bQ._4 + dZ)) | |
815 | + | else if ((-(dZ) > ed)) | |
816 | + | then throw((((("Attempt to take " + toString(-(dZ))) + " from warehouse, but only ") + toString(ed)) + " available")) | |
817 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ed + dZ))), (bQ._3 :+ toString((ee - dZ))), (bQ._4 + dZ)) | |
815 | 818 | } | |
816 | 819 | ||
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | func | |
822 | - | then | |
823 | - | else | |
820 | + | let ef = { | |
821 | + | let bS = dR | |
822 | + | let bT = size(bS) | |
823 | + | let bU = $Tuple4(0, nil, nil, cb._4) | |
824 | + | func ds (bW,bX) = if ((bX >= bT)) | |
825 | + | then bW | |
826 | + | else ec(bW, bS[bX]) | |
824 | 827 | ||
825 | - | func | |
826 | - | then | |
828 | + | func dt (bW,bX) = if ((bX >= bT)) | |
829 | + | then bW | |
827 | 830 | else throw("List size exceeds 6") | |
828 | 831 | ||
829 | - | ds( | |
832 | + | dt(ds(ds(ds(ds(ds(ds(bU, 0), 1), 2), 3), 4), 5), 6) | |
830 | 833 | } | |
831 | - | func | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | then parseIntValue( | |
834 | + | func eg (bQ,dm) = { | |
835 | + | let cp = bQ._1 | |
836 | + | let do = bC[cp] | |
837 | + | let dZ = parseIntValue(dm) | |
838 | + | let eh = if ((size(dV) > cp)) | |
839 | + | then parseIntValue(dV[cp]) | |
837 | 840 | else 0 | |
838 | - | let | |
839 | - | then parseIntValue( | |
841 | + | let ei = if ((size(dX) > cp)) | |
842 | + | then parseIntValue(dX[cp]) | |
840 | 843 | else 0 | |
841 | - | if (( | |
842 | - | then $Tuple4(( | |
843 | - | else if (( | |
844 | - | then if (( | |
845 | - | then throw((((("Attempt to take " + | |
844 | + | if ((dZ == 0)) | |
845 | + | then $Tuple4((cp + 1), (bQ._2 :+ toString(eh)), (bQ._3 :+ toString(ei)), bQ._4) | |
846 | + | else if ((dZ > 0)) | |
847 | + | then if ((dZ > ei)) | |
848 | + | then throw((((("Attempt to take " + dm) + " from backpack, but only ") + toString(ei)) + " available")) | |
846 | 849 | else { | |
847 | - | let | |
848 | - | $Tuple4(( | |
850 | + | let ej = (dM((eh + dZ), do) - dM(eh, do)) | |
851 | + | $Tuple4((cp + 1), (bQ._2 :+ toString((eh + dZ))), (bQ._3 :+ toString((ei - dZ))), (bQ._4 + ej)) | |
849 | 852 | } | |
850 | - | else if ((-( | |
851 | - | then throw((((("Attempt to take " + toString(-( | |
853 | + | else if ((-(dZ) > eh)) | |
854 | + | then throw((((("Attempt to take " + toString(-(dZ))) + " from warehouse, but only ") + toString(eh)) + " available")) | |
852 | 855 | else { | |
853 | - | let | |
854 | - | $Tuple4(( | |
856 | + | let ej = (dM((eh + dZ), do) - dM(eh, do)) | |
857 | + | $Tuple4((cp + 1), (bQ._2 :+ toString((eh + dZ))), (bQ._3 :+ toString((ei - dZ))), (bQ._4 + ej)) | |
855 | 858 | } | |
856 | 859 | } | |
857 | 860 | ||
858 | - | let | |
861 | + | let de = if ((size(dS) != 0)) | |
859 | 862 | then { | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | func | |
864 | - | then | |
865 | - | else | |
863 | + | let bS = dS | |
864 | + | let bT = size(bS) | |
865 | + | let bU = $Tuple4(0, nil, nil, ef._4) | |
866 | + | func dv (bW,bX) = if ((bX >= bT)) | |
867 | + | then bW | |
868 | + | else eg(bW, bS[bX]) | |
866 | 869 | ||
867 | - | func | |
868 | - | then | |
870 | + | func dw (bW,bX) = if ((bX >= bT)) | |
871 | + | then bW | |
869 | 872 | else throw("List size exceeds 50") | |
870 | 873 | ||
871 | - | dv( | |
874 | + | dw(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(bU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
872 | 875 | } | |
873 | - | else $Tuple4(0, | |
874 | - | let | |
875 | - | if (( | |
876 | - | then throw((((("Attempt to put total " + toString( | |
877 | - | else $Tuple7(makeString( | |
876 | + | else $Tuple4(0, dV, dX, ef._4) | |
877 | + | let ek = de._4 | |
878 | + | if ((ek > cJ)) | |
879 | + | then throw((((("Attempt to put total " + toString(ek)) + " stuff, but only ") + toString(cJ)) + " warehouse space left")) | |
880 | + | else $Tuple7(makeString(cb._2, "_"), makeString(ef._2, "_"), makeString(de._2, "_"), makeString(cb._3, "_"), makeString(ef._3, "_"), makeString(de._3, "_"), ek) | |
878 | 881 | } | |
879 | 882 | } | |
880 | 883 | ||
881 | 884 | ||
882 | - | func | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | let al = toString( | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | $Tuple2([IntegerEntry(aj(), ( | |
885 | + | func el (em,en) = { | |
886 | + | let aW = toString(em) | |
887 | + | let eo = cP(toBigInt(en)) | |
888 | + | let ep = valueOrElse(getInteger(aj()), (O + 1)) | |
889 | + | let al = toString(ep) | |
890 | + | let cY = toInt((eo % F)) | |
891 | + | let cs = cW(eo, cY) | |
892 | + | let eq = M[cY] | |
893 | + | let er = Issue(bD(al, "S"), makeString([al, "S", cs, eq], "_"), 1, 0, false) | |
894 | + | let an = calculateAssetId(er) | |
895 | + | let es = toBase58String(an) | |
896 | + | $Tuple2([IntegerEntry(aj(), (ep + 1)), er, StringEntry(ak(al), es), StringEntry(am(es), aW), StringEntry(aE(al), aW), IntegerEntry(as(es), 0), IntegerEntry(at(es, aW), 0), ScriptTransfer(em, 1, an)], $Tuple2(es, eq)) | |
894 | 897 | } | |
895 | 898 | ||
896 | 899 | ||
897 | - | func | |
900 | + | func et (cd,em,en,eu,ev) = if (!(sigVerify_8Kb(eu, ev, g))) | |
898 | 901 | then throw("signature does not match") | |
899 | 902 | else { | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | if (( | |
903 | + | let dh = split(toUtf8String(eu), ";") | |
904 | + | let ew = split(split(dh[0], "|")[0], "_") | |
905 | + | let ex = parseIntValue(ew[0]) | |
906 | + | let ey = parseIntValue(ew[1]) | |
907 | + | let ez = split(dh[1], ":") | |
908 | + | let eA = split(ez[0], "_") | |
909 | + | if ((eA[1] != "E")) | |
907 | 910 | then throw("expedition target location type should be E") | |
908 | 911 | else { | |
909 | - | let | |
910 | - | if (if (( | |
912 | + | let eB = parseIntValue(ez[1]) | |
913 | + | if (if ((eB > (lastBlock.timestamp + t))) | |
911 | 914 | then true | |
912 | - | else ((lastBlock.timestamp - t) > | |
915 | + | else ((lastBlock.timestamp - t) > eB)) | |
913 | 916 | then throw("signature outdated") | |
914 | 917 | else { | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | if (( | |
920 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
921 | - | else if ((0 >= | |
918 | + | let aW = toString(em) | |
919 | + | let aQ = valueOrErrorMessage(getString(aO(aW)), "You don't have a duck staked") | |
920 | + | let eC = aS(aQ) | |
921 | + | let eD = valueOrElse(getInteger(eC), 100) | |
922 | + | if ((eD != ex)) | |
923 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(eC), 100))) + " from state does not match one from flight log=") + toString(ex))) | |
924 | + | else if ((0 >= ex)) | |
922 | 925 | then throw("You can't fly with zero health") | |
923 | - | else if ((0 >= | |
924 | - | then $Tuple2(((if (!( | |
925 | - | then [ScriptTransfer( | |
926 | - | else nil) :+ IntegerEntry( | |
926 | + | else if ((0 >= ey)) | |
927 | + | then $Tuple2(((if (!(cd)) | |
928 | + | then [ScriptTransfer(em, B, b)] | |
929 | + | else nil) :+ IntegerEntry(eC, 0)), "") | |
927 | 930 | else { | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | $Tuple2(((( | |
931 | + | let dd = aP(aQ) | |
932 | + | let dP = dc(dd) | |
933 | + | let eE = split(dP[bh], "_") | |
934 | + | let eF = makeString(cc(cd, eE, A), "_") | |
935 | + | let eG = el(em, en) | |
936 | + | let es = eG._2._1 | |
937 | + | $Tuple2((((eG._1 :+ StringEntry(aR(aQ), makeString([eG._2._2, "L", es], "_"))) :+ IntegerEntry(eC, ey)) :+ StringEntry(dd, makeString([dP[bf], dP[bg], eF, dP[bi]], ":"))), es) | |
935 | 938 | } | |
936 | 939 | } | |
937 | 940 | } | |
938 | 941 | } | |
939 | 942 | ||
940 | 943 | ||
941 | - | func | |
942 | - | let | |
943 | - | let | |
944 | - | then | |
944 | + | func eH (aD,eI) = { | |
945 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
946 | + | let eJ = valueOrElse(getInteger(ax(N, aD)), if (valueOrElse(getBoolean(av(aD)), false)) | |
947 | + | then eI | |
945 | 948 | else 0) | |
946 | - | let | |
947 | - | let | |
948 | - | ((r + fraction(r, (( | |
949 | + | let eK = (dA / 6) | |
950 | + | let eL = (dA / 7) | |
951 | + | ((r + fraction(r, ((dA + eK) + (2 * eL)), 5)) + fraction(r, eJ, (eI * 5))) | |
949 | 952 | } | |
950 | 953 | ||
951 | 954 | ||
952 | - | func | |
953 | - | let | |
954 | - | then $Tuple2( | |
955 | + | func eM (ai,eN,eO) = { | |
956 | + | let eP = if ((eN == bs)) | |
957 | + | then $Tuple2(eO, valueOrElse(getString(aO(ai)), "")) | |
955 | 958 | else { | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | if (( | |
960 | - | then throw((("Duck location type is " + | |
961 | - | else $Tuple2( | |
959 | + | let aQ = valueOrErrorMessage(getString(aO(ai)), "You don't have a duck staked") | |
960 | + | let eQ = valueOrElse(getString(aR(aQ)), k) | |
961 | + | let eR = split(value(eQ), "_") | |
962 | + | if ((eR[bd] != "L")) | |
963 | + | then throw((("Duck location type is " + eR[bd]) + ", but should be L")) | |
964 | + | else $Tuple2(eR[be], aQ) | |
962 | 965 | } | |
963 | - | let | |
964 | - | let | |
965 | - | let | |
966 | - | let | |
967 | - | let | |
968 | - | let | |
969 | - | if (( | |
966 | + | let aD = eP._1 | |
967 | + | let eS = eP._2 | |
968 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
969 | + | let eU = ar(aD) | |
970 | + | let eV = valueOrErrorMessage(getInteger(eU), (("Land " + eT.name) + " is not staked")) | |
971 | + | let eW = valueOrErrorMessage(getString(am(aD)), (("NFT " + eT.name) + " is orphaned")) | |
972 | + | if ((eW != ai)) | |
970 | 973 | then throw((i + " is not yours")) | |
971 | 974 | else { | |
972 | - | let | |
973 | - | $Tuple4( | |
975 | + | let eX = split(eT.description, "_") | |
976 | + | $Tuple4(eS, aD, eX, eV) | |
974 | 977 | } | |
975 | 978 | } | |
976 | 979 | ||
977 | 980 | ||
978 | - | func | |
981 | + | func eY (ai,cw,eN,eO) = if ((0 > cw)) | |
979 | 982 | then throw("Negative amount") | |
980 | 983 | else { | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | let | |
985 | - | if ((0 > | |
986 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
984 | + | let eZ = eM(ai, eN, eO) | |
985 | + | let bE = eZ._3[aZ] | |
986 | + | let cl = cr(eZ._3[ba]) | |
987 | + | let cA = (lastBlock.timestamp - eZ._4) | |
988 | + | if ((0 > cA)) | |
989 | + | then throw(((("Saved timestamp is in future, saved = " + toString(eZ._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
987 | 990 | else { | |
988 | - | let | |
989 | - | let | |
990 | - | let | |
991 | - | if (( | |
992 | - | then throw(((("Not enough resources, available = " + toString( | |
991 | + | let eI = ct(bE) | |
992 | + | let fa = eH(eZ._2, eI) | |
993 | + | let fb = fraction(cA, (fa * eI), s) | |
994 | + | if ((cw > fb)) | |
995 | + | then throw(((("Not enough resources, available = " + toString(fb)) + ", requested = ") + toString(cw))) | |
993 | 996 | else { | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | let | |
998 | - | let | |
999 | - | let | |
1000 | - | let | |
1001 | - | let | |
1002 | - | let | |
1003 | - | if (if (( | |
1004 | - | then ( | |
997 | + | let fc = fraction((fb - cw), s, (fa * eI)) | |
998 | + | let fd = (lastBlock.timestamp - fc) | |
999 | + | let dz = (eI / m) | |
1000 | + | let cI = cE(cl, (cA - fc), dz, fa) | |
1001 | + | let dy = aC(eZ._2) | |
1002 | + | let dA = valueOrElse(getInteger(as(eZ._2)), 0) | |
1003 | + | let dj = dx(dy, dz, dA) | |
1004 | + | let dG = split(dj[bn], "_") | |
1005 | + | let cJ = parseIntValue(dG[bq]) | |
1006 | + | if (if ((eN == bs)) | |
1007 | + | then (cw > cJ) | |
1005 | 1008 | else false) | |
1006 | - | then throw((("Only " + toString( | |
1009 | + | then throw((("Only " + toString(cJ)) + " space left in warehouse")) | |
1007 | 1010 | else { | |
1008 | - | let | |
1009 | - | let | |
1010 | - | let | |
1011 | - | let | |
1012 | - | let | |
1013 | - | then $Tuple4( | |
1014 | - | else if (( | |
1015 | - | then $Tuple4( | |
1011 | + | let dd = aP(eZ._1) | |
1012 | + | let dP = dc(dd) | |
1013 | + | let cH = split(dP[bg], "_") | |
1014 | + | let cG = split(dj[bk], "_") | |
1015 | + | let fe = if ((eN == bs)) | |
1016 | + | then $Tuple4(cy(cG, cl, (cA - fc), dz, fa), dP[bg], (parseIntValue(dG[bp]) + cI._2), (parseIntValue(dG[bq]) - cI._2)) | |
1017 | + | else if ((eN == bt)) | |
1018 | + | then $Tuple4(dj[bk], cy(cH, cl, (cA - fc), dz, fa), parseIntValue(dG[bp]), parseIntValue(dG[bq])) | |
1016 | 1019 | else { | |
1017 | - | let | |
1018 | - | let | |
1019 | - | $Tuple4( | |
1020 | + | let ff = cF(cG, cH, cI, cJ) | |
1021 | + | let fg = min([parseIntValue(dG[bq]), cI._2]) | |
1022 | + | $Tuple4(ff._1, ff._2, (parseIntValue(dG[bp]) + fg), (parseIntValue(dG[bq]) - fg)) | |
1020 | 1023 | } | |
1021 | - | let | |
1022 | - | let | |
1023 | - | let | |
1024 | - | let | |
1025 | - | $Tuple5([IntegerEntry( | |
1024 | + | let fh = fe._1 | |
1025 | + | let fi = fe._2 | |
1026 | + | let fj = fe._3 | |
1027 | + | let fk = fe._4 | |
1028 | + | $Tuple5([IntegerEntry(ar(eZ._2), fd), IntegerEntry(aA(i, eZ._2, ai), fd)], dd, [dP[bf], fi, dP[bh], dP[bi]], dy, [dj[bj], fh, dj[bl], dj[bm], makeString([dG[bo], toString(fj), toString(fk), dG[br]], "_")]) | |
1026 | 1029 | } | |
1027 | 1030 | } | |
1028 | 1031 | } | |
1029 | 1032 | } | |
1030 | 1033 | ||
1031 | 1034 | ||
1032 | - | func | |
1033 | - | let | |
1034 | - | let | |
1035 | - | let | |
1036 | - | | |
1035 | + | func fl (ai,aD,eI,eN) = { | |
1036 | + | let eU = ar(aD) | |
1037 | + | let eV = value(getInteger(eU)) | |
1038 | + | let fb = (fraction((lastBlock.timestamp - eV), eH(aD, eI), s) * eI) | |
1039 | + | eY(ai, fb, eN, aD) | |
1037 | 1040 | } | |
1038 | 1041 | ||
1039 | 1042 | ||
1040 | - | func | |
1041 | - | let ai = toString( | |
1042 | - | let | |
1043 | - | let | |
1044 | - | let | |
1045 | - | let | |
1046 | - | if (( | |
1043 | + | func fm (cd,em,fn,aD) = { | |
1044 | + | let ai = toString(em) | |
1045 | + | let eZ = eM(ai, bu, aD) | |
1046 | + | let eI = ct(eZ._3[aZ]) | |
1047 | + | let fo = as(eZ._2) | |
1048 | + | let fp = valueOrElse(getInteger(fo), 0) | |
1049 | + | if ((fp >= 3)) | |
1047 | 1050 | then throw("Currently max infrastructure level = 3") | |
1048 | 1051 | else { | |
1049 | - | let | |
1050 | - | let | |
1051 | - | if (if (!( | |
1052 | - | then ( | |
1052 | + | let fq = (fp + 1) | |
1053 | + | let fr = fraction(z, (eI * fq), m) | |
1054 | + | if (if (!(cd)) | |
1055 | + | then (fn != fr) | |
1053 | 1056 | else false) | |
1054 | - | then throw(("Payment attached should be " + toString( | |
1057 | + | then throw(("Payment attached should be " + toString(fr))) | |
1055 | 1058 | else { | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | $Tuple2(([IntegerEntry( | |
1059 | + | let dd = aP(eZ._1) | |
1060 | + | let dP = dc(dd) | |
1061 | + | let eE = split(dP[bh], "_") | |
1062 | + | let eF = makeString(cc(cd, eE, fraction(y, (eI * fq), m)), "_") | |
1063 | + | let fs = fl(ai, eZ._2, eI, bu) | |
1064 | + | let ft = fs._5 | |
1065 | + | let fu = df(ft[bj]) | |
1066 | + | let fv = makeString([split(ft[bj], "_")[0], toString(fq)], "_") | |
1067 | + | let fw = df(fv) | |
1068 | + | let dG = split(ft[bn], "_") | |
1069 | + | let fx = makeString([dG[bo], dG[bp], toString(((parseIntValue(dG[bq]) + fw) - fu)), toString(fw)], "_") | |
1070 | + | $Tuple2(([IntegerEntry(fo, fq), IntegerEntry(at(eZ._2, ai), fq), StringEntry(dd, makeString([dP[bf], fs._3[bg], eF, dP[bi]], ":")), StringEntry(fs._4, makeString([fv, ft[bk], ft[bl], ft[bm], fx], ":"))] ++ fs._1), fq) | |
1068 | 1071 | } | |
1069 | 1072 | } | |
1070 | 1073 | } | |
1071 | 1074 | ||
1072 | 1075 | ||
1073 | - | func | |
1076 | + | func fy (ai) = 0 | |
1074 | 1077 | ||
1075 | 1078 | ||
1076 | - | func | |
1077 | - | let | |
1078 | - | let | |
1079 | - | let | |
1080 | - | let | |
1081 | - | if ((valueOrElse(getInteger( | |
1082 | - | then | |
1079 | + | func fz (ai,eO) = { | |
1080 | + | let eZ = eM(ai, bu, eO) | |
1081 | + | let aD = eZ._2 | |
1082 | + | let eI = ct(eZ._3[aZ]) | |
1083 | + | let fA = ax(N, aD) | |
1084 | + | if ((valueOrElse(getInteger(fA), if (valueOrElse(getBoolean(av(aD)), false)) | |
1085 | + | then eI | |
1083 | 1086 | else 0) > 0)) | |
1084 | 1087 | then throw("Presale artifact is already activated") | |
1085 | - | else if ((parseIntValue( | |
1086 | - | then throw((((i + " ") + | |
1088 | + | else if ((parseIntValue(eZ._3[aY]) > O)) | |
1089 | + | then throw((((i + " ") + aD) + " is not eligible for presale artifact")) | |
1087 | 1090 | else { | |
1088 | - | let | |
1089 | - | (((( | |
1091 | + | let fs = fl(ai, aD, eI, bu) | |
1092 | + | ((((fs._1 :+ IntegerEntry(fA, eI)) :+ IntegerEntry(az(N, aD, ai), eI)) :+ StringEntry(fs._2, makeString(fs._3, ":"))) :+ StringEntry(fs._4, makeString(fs._5, ":"))) | |
1090 | 1093 | } | |
1091 | 1094 | } | |
1092 | 1095 | ||
1093 | 1096 | ||
1094 | - | func | |
1095 | - | let | |
1096 | - | func | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | if (( | |
1097 | + | func fB (fC,fq,fD,ai,fE,en,fF) = { | |
1098 | + | let aQ = valueOrErrorMessage(getString(aO(ai)), "You don't have a duck staked") | |
1099 | + | func fG (bQ,aD) = { | |
1100 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1101 | + | let eU = ar(aD) | |
1102 | + | let eV = valueOrErrorMessage(getInteger(eU), (("NFT " + eT.name) + " is not staked")) | |
1103 | + | let eW = valueOrErrorMessage(getString(am(aD)), (("NFT " + eT.name) + " is orphaned")) | |
1104 | + | if ((eW != ai)) | |
1102 | 1105 | then throw((i + " is not yours")) | |
1103 | 1106 | else { | |
1104 | - | let | |
1105 | - | let | |
1106 | - | if (if (( | |
1107 | - | then ( | |
1107 | + | let eX = split(eT.description, "_") | |
1108 | + | let eq = eX[bb] | |
1109 | + | if (if ((bQ._3 != "")) | |
1110 | + | then (bQ._3 != eq) | |
1108 | 1111 | else false) | |
1109 | 1112 | then throw("Lands should be on the same continent to merge") | |
1110 | 1113 | else { | |
1111 | - | let | |
1112 | - | let | |
1113 | - | let | |
1114 | - | let | |
1115 | - | let | |
1116 | - | let | |
1117 | - | then | |
1114 | + | let bE = eX[aZ] | |
1115 | + | let fH = bQ._1 | |
1116 | + | let cp = valueOrErrorMessage(indexOf(fH, bE), "You haven't passed all the lands needed") | |
1117 | + | let fI = (take(fH, cp) + drop(fH, (cp + 1))) | |
1118 | + | let eI = ct(bE) | |
1119 | + | let fJ = (bQ._2 + valueOrElse(getInteger(ax(N, aD)), if (valueOrElse(getBoolean(av(aD)), false)) | |
1120 | + | then eI | |
1118 | 1121 | else 0)) | |
1119 | - | let | |
1120 | - | let | |
1121 | - | let c = | |
1122 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1123 | + | let fK = { | |
1124 | + | let c = bE | |
1122 | 1125 | if (("S" == c)) | |
1123 | 1126 | then 3 | |
1124 | 1127 | else if (("M" == c)) | |
1129 | 1132 | then 6 | |
1130 | 1133 | else throw("Only S, M, L, XL can merge") | |
1131 | 1134 | } | |
1132 | - | if (( | |
1135 | + | if ((dA != fK)) | |
1133 | 1136 | then throw("All lands should be maxed to merge") | |
1134 | 1137 | else { | |
1135 | - | let al = | |
1136 | - | let | |
1137 | - | let | |
1138 | - | if ((0 > | |
1139 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
1138 | + | let al = eX[aY] | |
1139 | + | let cl = cr(eX[ba]) | |
1140 | + | let cA = (lastBlock.timestamp - eV) | |
1141 | + | if ((0 > cA)) | |
1142 | + | then throw(((("Saved timestamp is in future, saved = " + toString(eV)) + ", current = ") + toString(lastBlock.timestamp))) | |
1140 | 1143 | else { | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let | |
1144 | - | let | |
1145 | - | let | |
1146 | - | let ad = indexOf( | |
1144 | + | let fa = eH(aD, eI) | |
1145 | + | let dz = (eI / m) | |
1146 | + | let fi = cy(split(bQ._4, "_"), cl, cA, dz, fa) | |
1147 | + | let ca = cj(split(bQ._6, "_"), cl, dz, -1) | |
1148 | + | let fL = bQ._7 | |
1149 | + | let ad = indexOf(fL, aD) | |
1147 | 1150 | if (!(isDefined(ad))) | |
1148 | - | then throw(("Your staked lands don't contain " + | |
1151 | + | then throw(("Your staked lands don't contain " + aD)) | |
1149 | 1152 | else { | |
1150 | - | let | |
1151 | - | let | |
1152 | - | $Tuple7( | |
1153 | + | let fM = ao(aD) | |
1154 | + | let fN = valueOrElse(getString(fM), "") | |
1155 | + | $Tuple7(fI, fJ, eq, fi, (((((((((((((bQ._5 :+ DeleteEntry(ar(aD))) :+ DeleteEntry(aA(i, aD, ai))) :+ DeleteEntry(ak(al))) :+ DeleteEntry(am(aD))) :+ DeleteEntry(as(aD))) :+ DeleteEntry(at(aD, ai))) :+ DeleteEntry(ax(N, aD))) :+ DeleteEntry(az(N, aD, ai))) :+ DeleteEntry(aE(al))) :+ DeleteEntry(aC(aD))) :+ DeleteEntry(fM)) :+ DeleteEntry(ap(fN))) :+ Burn(fromBase58String(aD), 1)), ca, removeByIndex(fL, value(ad))) | |
1153 | 1156 | } | |
1154 | 1157 | } | |
1155 | 1158 | } | |
1157 | 1160 | } | |
1158 | 1161 | } | |
1159 | 1162 | ||
1160 | - | let | |
1161 | - | let | |
1162 | - | let | |
1163 | - | let | |
1164 | - | let | |
1165 | - | let | |
1166 | - | then split_51C(value( | |
1163 | + | let dd = aP(aQ) | |
1164 | + | let dP = dc(dd) | |
1165 | + | let fO = valueOrElse(getString(aT()), "0_0_0_0_0_0") | |
1166 | + | let fP = aF(ai) | |
1167 | + | let fQ = getString(fP) | |
1168 | + | let fR = if (isDefined(fQ)) | |
1169 | + | then split_51C(value(fQ), "_") | |
1167 | 1170 | else nil | |
1168 | - | let | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | func | |
1173 | - | then | |
1174 | - | else | |
1171 | + | let cb = { | |
1172 | + | let bS = fE | |
1173 | + | let bT = size(bS) | |
1174 | + | let bU = $Tuple7(fD, 0, "", dP[bg], nil, fO, fR) | |
1175 | + | func bV (bW,bX) = if ((bX >= bT)) | |
1176 | + | then bW | |
1177 | + | else fG(bW, bS[bX]) | |
1175 | 1178 | ||
1176 | - | func | |
1177 | - | then | |
1179 | + | func bY (bW,bX) = if ((bX >= bT)) | |
1180 | + | then bW | |
1178 | 1181 | else throw("List size exceeds 5") | |
1179 | 1182 | ||
1180 | - | | |
1183 | + | bY(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5) | |
1181 | 1184 | } | |
1182 | - | let | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | $Tuple2((((((((((((((( | |
1192 | - | then StringEntry( | |
1193 | - | else DeleteEntry( | |
1185 | + | let eq = cb._3 | |
1186 | + | let cY = valueOrErrorMessage(indexOf(M, eq), ("Unknown continent: " + eq)) | |
1187 | + | let cs = cW(cP(toBigInt(en)), cY) | |
1188 | + | let ep = valueOrElse(getInteger(aj()), (O + 1)) | |
1189 | + | let fS = toString(ep) | |
1190 | + | let er = Issue(bD(fS, fC), makeString([fS, fC, cs, eq], "_"), 1, 0, false) | |
1191 | + | let an = calculateAssetId(er) | |
1192 | + | let fT = toBase58String(an) | |
1193 | + | let eF = makeString(cc((fF > 0), split(dP[bh], "_"), fF), "_") | |
1194 | + | $Tuple2(((((((((((((((cb._5 :+ (if ((size(cb._7) > 0)) | |
1195 | + | then StringEntry(fP, makeString_11C(cb._7, "_")) | |
1196 | + | else DeleteEntry(fP))) :+ IntegerEntry(aj(), (ep + 1))) :+ er) :+ StringEntry(ak(fS), fT)) :+ StringEntry(am(fT), ai)) :+ StringEntry(aE(fS), ai)) :+ IntegerEntry(ax(N, fT), cb._2)) :+ IntegerEntry(az(N, fT, ai), cb._2)) :+ IntegerEntry(as(fT), fq)) :+ IntegerEntry(at(fT, ai), fq)) :+ StringEntry(dd, makeString([dP[bf], cb._4, eF, dP[bi]], ":"))) :+ StringEntry(aT(), cb._6)) :+ StringEntry(aR(aQ), makeString([eq, "L", fT], "_"))) :+ ScriptTransfer(addressFromStringValue(ai), 1, an)), fT) | |
1194 | 1197 | } | |
1195 | 1198 | ||
1196 | 1199 | ||
1197 | - | func | |
1200 | + | func fU (ai,fE,en) = fB("M", 3, "SSSS", ai, fE, en, 0) | |
1198 | 1201 | ||
1199 | 1202 | ||
1200 | - | func | |
1201 | - | let | |
1202 | - | if (if (!( | |
1203 | - | then ( | |
1203 | + | func fV (ai,fE,en,cd,fn) = { | |
1204 | + | let fr = (z * 4) | |
1205 | + | if (if (!(cd)) | |
1206 | + | then (fn != fr) | |
1204 | 1207 | else false) | |
1205 | - | then throw(("Payment attached should be " + toString( | |
1206 | - | else | |
1208 | + | then throw(("Payment attached should be " + toString(fr))) | |
1209 | + | else fB("L", 4, "SMM", ai, fE, en, (y * 4)) | |
1207 | 1210 | } | |
1208 | 1211 | ||
1209 | 1212 | ||
1210 | - | func | |
1211 | - | let | |
1212 | - | if (if (!( | |
1213 | - | then ( | |
1213 | + | func fW (ai,fE,en,cd,fn) = { | |
1214 | + | let fr = (z * 47) | |
1215 | + | if (if (!(cd)) | |
1216 | + | then (fn != fr) | |
1214 | 1217 | else false) | |
1215 | - | then throw(("Payment attached should be " + toString( | |
1216 | - | else | |
1218 | + | then throw(("Payment attached should be " + toString(fr))) | |
1219 | + | else fB("XL", 5, "SSSML", ai, fE, en, (y * 47)) | |
1217 | 1220 | } | |
1218 | 1221 | ||
1219 | 1222 | ||
1220 | - | func | |
1221 | - | let | |
1222 | - | if (if (!( | |
1223 | - | then ( | |
1223 | + | func fX (ai,fE,en,cd,fn) = { | |
1224 | + | let fr = (z * 54) | |
1225 | + | if (if (!(cd)) | |
1226 | + | then (fn != fr) | |
1224 | 1227 | else false) | |
1225 | - | then throw(("Payment attached should be " + toString( | |
1226 | - | else | |
1228 | + | then throw(("Payment attached should be " + toString(fr))) | |
1229 | + | else fB("XXL", 6, "LXL", ai, fE, en, (y * 54)) | |
1227 | 1230 | } | |
1228 | 1231 | ||
1229 | 1232 | ||
1230 | - | func | |
1231 | - | let | |
1232 | - | let c = size( | |
1233 | + | func fY (cd,ai,fn,fE,en) = { | |
1234 | + | let fZ = { | |
1235 | + | let c = size(fE) | |
1233 | 1236 | if ((4 == c)) | |
1234 | - | then | |
1237 | + | then fU(ai, fE, en) | |
1235 | 1238 | else if ((3 == c)) | |
1236 | - | then | |
1239 | + | then fV(ai, fE, en, cd, fn) | |
1237 | 1240 | else if ((5 == c)) | |
1238 | - | then | |
1241 | + | then fW(ai, fE, en, cd, fn) | |
1239 | 1242 | else if ((2 == c)) | |
1240 | - | then | |
1243 | + | then fX(ai, fE, en, cd, fn) | |
1241 | 1244 | else throw("Unknown merge") | |
1242 | 1245 | } | |
1243 | - | | |
1246 | + | fZ | |
1244 | 1247 | } | |
1245 | 1248 | ||
1246 | 1249 | ||
1247 | - | func | |
1248 | - | then valueOrElse(getBoolean( | |
1250 | + | func ga (cp) = if (if ((cp.originCaller != ae)) | |
1251 | + | then valueOrElse(getBoolean(aU()), false) | |
1249 | 1252 | else false) | |
1250 | 1253 | then throw("Contracts are under maintenance") | |
1251 | - | else StringEntry(ah(toString( | |
1254 | + | else StringEntry(ah(toString(cp.originCaller)), toBase58String(cp.transactionId)) | |
1252 | 1255 | ||
1253 | 1256 | ||
1254 | - | @Callable( | |
1255 | - | func constructorV1 ( | |
1257 | + | @Callable(cp) | |
1258 | + | func constructorV1 (gb) = if ((cp.caller != this)) | |
1256 | 1259 | then throw("Permission denied") | |
1257 | - | else [StringEntry(Y(), | |
1260 | + | else [StringEntry(Y(), gb)] | |
1258 | 1261 | ||
1259 | 1262 | ||
1260 | 1263 | ||
1261 | - | @Callable( | |
1262 | - | func setBlocked ( | |
1264 | + | @Callable(cp) | |
1265 | + | func setBlocked (gc) = if ((cp.caller != this)) | |
1263 | 1266 | then throw("permission denied") | |
1264 | - | else [BooleanEntry( | |
1267 | + | else [BooleanEntry(aU(), gc)] | |
1265 | 1268 | ||
1266 | 1269 | ||
1267 | 1270 | ||
1268 | - | @Callable( | |
1271 | + | @Callable(cp) | |
1269 | 1272 | func stakeLand () = { | |
1270 | - | let | |
1271 | - | if ((size( | |
1273 | + | let gd = ga(cp) | |
1274 | + | if ((size(cp.payments) != 1)) | |
1272 | 1275 | then throw("Exactly one payment required") | |
1273 | 1276 | else { | |
1274 | - | let | |
1275 | - | let | |
1276 | - | let Q = toString( | |
1277 | - | if (( | |
1277 | + | let ge = value(cp.payments[0]) | |
1278 | + | let an = value(ge.assetId) | |
1279 | + | let Q = toString(cp.caller) | |
1280 | + | if ((ge.amount != 1)) | |
1278 | 1281 | then throw((("NFT " + i) + " token should be attached as payment")) | |
1279 | 1282 | else { | |
1280 | - | let | |
1281 | - | if (( | |
1283 | + | let eT = value(assetInfo(an)) | |
1284 | + | if ((eT.issuer != this)) | |
1282 | 1285 | then throw("Unknown issuer of token") | |
1283 | - | else if (!(contains( | |
1286 | + | else if (!(contains(eT.name, i))) | |
1284 | 1287 | then throw((("Only NFT " + i) + " tokens are accepted")) | |
1285 | 1288 | else { | |
1286 | - | let | |
1287 | - | let al = if (contains( | |
1288 | - | then dropRight( | |
1289 | - | else if (contains( | |
1290 | - | then dropRight( | |
1291 | - | else dropRight( | |
1289 | + | let gf = drop(eT.name, 4) | |
1290 | + | let al = if (contains(gf, "XXL")) | |
1291 | + | then dropRight(gf, 3) | |
1292 | + | else if (contains(gf, "XL")) | |
1293 | + | then dropRight(gf, 2) | |
1294 | + | else dropRight(gf, 1) | |
1292 | 1295 | if (!(isDefined(parseInt(al)))) | |
1293 | - | then throw(("Cannot parse land number from " + | |
1296 | + | then throw(("Cannot parse land number from " + eT.name)) | |
1294 | 1297 | else { | |
1295 | - | let | |
1296 | - | let | |
1297 | - | if (isDefined(getInteger( | |
1298 | - | then throw((("NFT " + | |
1298 | + | let aD = toBase58String(an) | |
1299 | + | let eU = ar(aD) | |
1300 | + | if (isDefined(getInteger(eU))) | |
1301 | + | then throw((("NFT " + eT.name) + " is already staked")) | |
1299 | 1302 | else { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | then | |
1303 | + | let eX = split(eT.description, "_") | |
1304 | + | let cl = cr(eX[ba]) | |
1305 | + | let eI = ct(eX[aZ]) | |
1306 | + | let ca = cq(cl, (eI / m), 1) | |
1307 | + | let eJ = valueOrElse(getInteger(ax(N, aD)), if (valueOrElse(getBoolean(av(aD)), false)) | |
1308 | + | then eI | |
1306 | 1309 | else 0) | |
1307 | - | let | |
1308 | - | let | |
1309 | - | then split_51C(value( | |
1310 | + | let fQ = getString(aF(Q)) | |
1311 | + | let fL = if (isDefined(fQ)) | |
1312 | + | then split_51C(value(fQ), "_") | |
1310 | 1313 | else nil | |
1311 | - | if (containsElement( | |
1312 | - | then throw(("Your staked lands already contain " + | |
1313 | - | else [IntegerEntry( | |
1314 | + | if (containsElement(fL, aD)) | |
1315 | + | then throw(("Your staked lands already contain " + aD)) | |
1316 | + | else [IntegerEntry(eU, lastBlock.timestamp), IntegerEntry(aA(i, aD, Q), lastBlock.timestamp), StringEntry(aF(Q), makeString_11C((fL :+ aD), "_")), StringEntry(am(aD), Q), StringEntry(aE(al), Q), IntegerEntry(az(N, aD, Q), eJ), StringEntry(aT(), ca), gd] | |
1314 | 1317 | } | |
1315 | 1318 | } | |
1316 | 1319 | } | |
1320 | 1323 | ||
1321 | 1324 | ||
1322 | 1325 | ||
1323 | - | @Callable( | |
1324 | - | func unstakeLand ( | |
1325 | - | let | |
1326 | - | if ((size( | |
1326 | + | @Callable(cp) | |
1327 | + | func unstakeLand (eO) = { | |
1328 | + | let gd = ga(cp) | |
1329 | + | if ((size(cp.payments) != 0)) | |
1327 | 1330 | then throw("No payments required") | |
1328 | 1331 | else { | |
1329 | - | let ai = toString( | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1338 | - | let ad = indexOf( | |
1332 | + | let ai = toString(cp.caller) | |
1333 | + | let eZ = eM(ai, bt, eO) | |
1334 | + | let aD = eZ._2 | |
1335 | + | let fP = aF(ai) | |
1336 | + | let cl = cr(eZ._3[ba]) | |
1337 | + | let eI = ct(eZ._3[aZ]) | |
1338 | + | let ca = cq(cl, (eI / m), -1) | |
1339 | + | let fs = fl(ai, aD, eI, bt) | |
1340 | + | let fL = split_51C(valueOrElse(getString(fP), ""), "_") | |
1341 | + | let ad = indexOf(fL, aD) | |
1339 | 1342 | if (!(isDefined(ad))) | |
1340 | - | then throw(("Your staked lands don't contain " + | |
1343 | + | then throw(("Your staked lands don't contain " + aD)) | |
1341 | 1344 | else { | |
1342 | - | let | |
1343 | - | let | |
1344 | - | if (( | |
1345 | - | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString( | |
1346 | - | else [ScriptTransfer( | |
1347 | - | then StringEntry( | |
1348 | - | else DeleteEntry( | |
1345 | + | let db = value(blockInfoByHeight(height)).timestamp | |
1346 | + | let gg = valueOrElse(getInteger(ag, aV(ai)), 0) | |
1347 | + | if ((gg >= db)) | |
1348 | + | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(gg))) | |
1349 | + | else [ScriptTransfer(cp.caller, 1, fromBase58String(aD)), DeleteEntry(ar(aD)), DeleteEntry(aA(i, aD, ai)), StringEntry(aT(), ca), StringEntry(fs._2, makeString(fs._3, ":")), if ((size(fL) > 1)) | |
1350 | + | then StringEntry(fP, makeString_11C(removeByIndex(fL, value(ad)), "_")) | |
1351 | + | else DeleteEntry(fP), gd] | |
1349 | 1352 | } | |
1350 | 1353 | } | |
1351 | 1354 | } | |
1352 | 1355 | ||
1353 | 1356 | ||
1354 | 1357 | ||
1355 | - | @Callable( | |
1358 | + | @Callable(cp) | |
1356 | 1359 | func stakeDuck () = { | |
1357 | - | let | |
1358 | - | if ((size( | |
1360 | + | let gd = ga(cp) | |
1361 | + | if ((size(cp.payments) != 1)) | |
1359 | 1362 | then throw("Exactly one payment required") | |
1360 | 1363 | else { | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let Q = toString( | |
1364 | - | if (( | |
1364 | + | let ge = value(cp.payments[0]) | |
1365 | + | let an = value(ge.assetId) | |
1366 | + | let Q = toString(cp.caller) | |
1367 | + | if ((ge.amount != 1)) | |
1365 | 1368 | then throw((("NFT " + j) + " token should be attached as payment")) | |
1366 | 1369 | else { | |
1367 | - | let | |
1368 | - | if (if (( | |
1369 | - | then ( | |
1370 | + | let eT = value(assetInfo(an)) | |
1371 | + | if (if ((eT.issuer != d)) | |
1372 | + | then (eT.issuer != e) | |
1370 | 1373 | else false) | |
1371 | 1374 | then throw((("Unknown issuer of " + j) + " token")) | |
1372 | - | else if (!(contains( | |
1375 | + | else if (!(contains(eT.name, j))) | |
1373 | 1376 | then throw((("Only NFT " + j) + " tokens are accepted")) | |
1374 | 1377 | else { | |
1375 | - | let | |
1376 | - | let | |
1377 | - | if (isDefined(getInteger( | |
1378 | - | then throw((("NFT " + | |
1379 | - | else if (isDefined(getString( | |
1380 | - | then throw(("You already staked one duck: " + | |
1378 | + | let gh = toBase58String(an) | |
1379 | + | let eU = ar(gh) | |
1380 | + | if (isDefined(getInteger(eU))) | |
1381 | + | then throw((("NFT " + eT.name) + " is already staked")) | |
1382 | + | else if (isDefined(getString(aO(Q)))) | |
1383 | + | then throw(("You already staked one duck: " + eT.name)) | |
1381 | 1384 | else { | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | ([IntegerEntry( | |
1385 | + | let gi = aR(gh) | |
1386 | + | let gj = getString(gi) | |
1387 | + | let dd = aP(gh) | |
1388 | + | let gk = getString(dd) | |
1389 | + | ([IntegerEntry(eU, lastBlock.timestamp), IntegerEntry(aA(j, toBase58String(an), Q), lastBlock.timestamp), StringEntry(aN(gh), Q), StringEntry(aO(Q), gh)] ++ (if (isDefined(gj)) | |
1387 | 1390 | then nil | |
1388 | - | else ([StringEntry( | |
1391 | + | else ([StringEntry(gi, k)] ++ (if (isDefined(gk)) | |
1389 | 1392 | then nil | |
1390 | - | else (([StringEntry( | |
1393 | + | else (([StringEntry(dd, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(aS(gh), 100)) :+ gd))))) | |
1391 | 1394 | } | |
1392 | 1395 | } | |
1393 | 1396 | } | |
1396 | 1399 | ||
1397 | 1400 | ||
1398 | 1401 | ||
1399 | - | @Callable( | |
1400 | - | func unstakeDuck ( | |
1401 | - | let | |
1402 | - | if ((size( | |
1402 | + | @Callable(cp) | |
1403 | + | func unstakeDuck (gh) = { | |
1404 | + | let gd = ga(cp) | |
1405 | + | if ((size(cp.payments) != 0)) | |
1403 | 1406 | then throw("No payments required") | |
1404 | 1407 | else { | |
1405 | - | let | |
1406 | - | let Q = toString( | |
1407 | - | let | |
1408 | - | let | |
1409 | - | if (!(isDefined(getInteger( | |
1410 | - | then throw((("NFT " + | |
1411 | - | else if (!(isDefined(getString( | |
1412 | - | then throw((("The duck " + | |
1408 | + | let an = fromBase58String(gh) | |
1409 | + | let Q = toString(cp.caller) | |
1410 | + | let eT = value(assetInfo(an)) | |
1411 | + | let eU = ar(toBase58String(an)) | |
1412 | + | if (!(isDefined(getInteger(eU)))) | |
1413 | + | then throw((("NFT " + eT.name) + " is not staked")) | |
1414 | + | else if (!(isDefined(getString(aO(Q))))) | |
1415 | + | then throw((("The duck " + eT.name) + " is not staked")) | |
1413 | 1416 | else { | |
1414 | - | let | |
1415 | - | if (( | |
1417 | + | let eW = valueOrErrorMessage(getString(aN(toBase58String(an))), (("NFT " + eT.name) + " is orphaned")) | |
1418 | + | if ((eW != Q)) | |
1416 | 1419 | then throw("Staked NFT is not yours") | |
1417 | 1420 | else { | |
1418 | - | let | |
1419 | - | let | |
1420 | - | if ((100 > | |
1421 | + | let eC = aS(gh) | |
1422 | + | let gl = valueOrElse(getInteger(eC), 100) | |
1423 | + | if ((100 > gl)) | |
1421 | 1424 | then throw("Please heal your duck before unstaking") | |
1422 | - | else [ScriptTransfer( | |
1425 | + | else [ScriptTransfer(cp.caller, 1, an), DeleteEntry(eU), DeleteEntry(eC), DeleteEntry(aR(gh)), DeleteEntry(aN(gh)), DeleteEntry(aA(j, gh, Q)), DeleteEntry(aO(Q)), gd] | |
1423 | 1426 | } | |
1424 | 1427 | } | |
1425 | 1428 | } | |
1427 | 1430 | ||
1428 | 1431 | ||
1429 | 1432 | ||
1430 | - | @Callable( | |
1431 | - | func claimRes ( | |
1432 | - | let | |
1433 | - | if ((size( | |
1433 | + | @Callable(cp) | |
1434 | + | func claimRes (cw,gm) = { | |
1435 | + | let gd = ga(cp) | |
1436 | + | if ((size(cp.payments) != 0)) | |
1434 | 1437 | then throw("No payments required") | |
1435 | 1438 | else { | |
1436 | - | let ai = toString( | |
1437 | - | let | |
1438 | - | $Tuple2(((( | |
1439 | + | let ai = toString(cp.originCaller) | |
1440 | + | let ci = eY(ai, cw, bt, gm) | |
1441 | + | $Tuple2((((ci._1 :+ StringEntry(ci._2, makeString(ci._3, ":"))) :+ StringEntry(ci._4, makeString(ci._5, ":"))) :+ gd), ci._3[bg]) | |
1439 | 1442 | } | |
1440 | 1443 | } | |
1441 | 1444 | ||
1442 | 1445 | ||
1443 | 1446 | ||
1444 | - | @Callable( | |
1445 | - | func claimResToWH ( | |
1446 | - | let | |
1447 | - | if ((size( | |
1447 | + | @Callable(cp) | |
1448 | + | func claimResToWH (cw,gm) = { | |
1449 | + | let gd = ga(cp) | |
1450 | + | if ((size(cp.payments) != 0)) | |
1448 | 1451 | then throw("No payments required") | |
1449 | 1452 | else { | |
1450 | - | let ai = toString( | |
1451 | - | let | |
1452 | - | $Tuple2(((( | |
1453 | + | let ai = toString(cp.originCaller) | |
1454 | + | let ci = eY(ai, cw, bs, gm) | |
1455 | + | $Tuple2((((ci._1 :+ StringEntry(ci._2, makeString(ci._3, ":"))) :+ StringEntry(ci._4, makeString(ci._5, ":"))) :+ gd), ci._5[bk]) | |
1453 | 1456 | } | |
1454 | 1457 | } | |
1455 | 1458 | ||
1456 | 1459 | ||
1457 | 1460 | ||
1458 | - | @Callable( | |
1459 | - | func flight ( | |
1460 | - | let | |
1461 | - | if (!(sigVerify_8Kb( | |
1461 | + | @Callable(cp) | |
1462 | + | func flight (eu,ev) = { | |
1463 | + | let gd = ga(cp) | |
1464 | + | if (!(sigVerify_8Kb(eu, ev, g))) | |
1462 | 1465 | then throw("signature does not match") | |
1463 | - | else if ((size( | |
1466 | + | else if ((size(cp.payments) != 0)) | |
1464 | 1467 | then throw("No payments required") | |
1465 | 1468 | else { | |
1466 | - | let | |
1467 | - | let | |
1468 | - | let | |
1469 | - | let | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | if (if (( | |
1469 | + | let dh = split(toUtf8String(eu), ";") | |
1470 | + | let gn = split(dh[0], "|") | |
1471 | + | let ew = split(gn[bv], "_") | |
1472 | + | let ex = parseIntValue(ew[0]) | |
1473 | + | let ey = parseIntValue(ew[1]) | |
1474 | + | let go = split(dh[1], ":") | |
1475 | + | let gp = go[0] | |
1476 | + | let eB = parseIntValue(gn[bA]) | |
1477 | + | if (if ((eB > (lastBlock.timestamp + t))) | |
1475 | 1478 | then true | |
1476 | - | else ((lastBlock.timestamp - t) > | |
1479 | + | else ((lastBlock.timestamp - t) > eB)) | |
1477 | 1480 | then throw("signature outdated") | |
1478 | 1481 | else { | |
1479 | - | let | |
1480 | - | let | |
1481 | - | if (( | |
1482 | - | then throw(((("Tx ids don't match! In state: " + | |
1482 | + | let gq = go[1] | |
1483 | + | let gr = valueOrElse(getString(ah(toString(cp.originCaller))), "") | |
1484 | + | if ((gr != gq)) | |
1485 | + | then throw(((("Tx ids don't match! In state: " + gr) + ", in msg: ") + gq)) | |
1483 | 1486 | else { | |
1484 | - | let | |
1485 | - | let | |
1486 | - | let | |
1487 | - | let | |
1488 | - | if (( | |
1489 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
1490 | - | else if ((0 >= | |
1487 | + | let aW = toString(cp.caller) | |
1488 | + | let aQ = valueOrErrorMessage(getString(aO(aW)), "You don't have a duck staked") | |
1489 | + | let eC = aS(aQ) | |
1490 | + | let eD = valueOrElse(getInteger(eC), 100) | |
1491 | + | if ((eD != ex)) | |
1492 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(eC), 100))) + " from state does not match one from flight log=") + toString(ex))) | |
1493 | + | else if ((0 >= ex)) | |
1491 | 1494 | then throw("You can't fly with zero health") | |
1492 | 1495 | else { | |
1493 | - | let | |
1494 | - | let | |
1495 | - | if (( | |
1496 | + | let gi = aR(aQ) | |
1497 | + | let eQ = valueOrElse(getString(gi), k) | |
1498 | + | if ((gp == eQ)) | |
1496 | 1499 | then throw("You can't fly to the same location") | |
1497 | 1500 | else { | |
1498 | - | let | |
1499 | - | then | |
1501 | + | let gs = if ((size(gn) > bB)) | |
1502 | + | then gn[bB] | |
1500 | 1503 | else "" | |
1501 | - | let | |
1502 | - | then ( | |
1504 | + | let gt = if (if ((ey > 0)) | |
1505 | + | then (gs == "$") | |
1503 | 1506 | else false) | |
1504 | - | then | |
1507 | + | then bI(invoke(ae, "sendUsdtPrize", [aW], nil)) | |
1505 | 1508 | else 0 | |
1506 | - | $Tuple2([StringEntry( | |
1507 | - | then | |
1508 | - | else | |
1509 | + | $Tuple2([StringEntry(gi, if ((ey > 0)) | |
1510 | + | then gp | |
1511 | + | else eQ), IntegerEntry(eC, ey), gd], gt) | |
1509 | 1512 | } | |
1510 | 1513 | } | |
1511 | 1514 | } | |
1515 | 1518 | ||
1516 | 1519 | ||
1517 | 1520 | ||
1518 | - | @Callable( | |
1519 | - | func setHealth ( | |
1520 | - | let | |
1521 | - | if (if ((0 > | |
1521 | + | @Callable(cp) | |
1522 | + | func setHealth (gl,aQ) = { | |
1523 | + | let gd = ga(cp) | |
1524 | + | if (if ((0 > gl)) | |
1522 | 1525 | then true | |
1523 | - | else ( | |
1526 | + | else (gl > 100)) | |
1524 | 1527 | then throw("HP should be within 0..100") | |
1525 | - | else [IntegerEntry( | |
1528 | + | else [IntegerEntry(aS(aQ), gl), gd] | |
1526 | 1529 | } | |
1527 | 1530 | ||
1528 | 1531 | ||
1529 | 1532 | ||
1530 | - | @Callable( | |
1531 | - | func heal ( | |
1532 | - | let | |
1533 | - | if (if ((0 > | |
1533 | + | @Callable(cp) | |
1534 | + | func heal (gu,cw) = { | |
1535 | + | let gd = ga(cp) | |
1536 | + | if (if ((0 > gu)) | |
1534 | 1537 | then true | |
1535 | - | else ( | |
1536 | - | then throw(("Unknown material: " + toString( | |
1537 | - | else if ((0 >= | |
1538 | - | then throw(("Amount should be positive! " + toString( | |
1538 | + | else (gu >= l)) | |
1539 | + | then throw(("Unknown material: " + toString(gu))) | |
1540 | + | else if ((0 >= cw)) | |
1541 | + | then throw(("Amount should be positive! " + toString(cw))) | |
1539 | 1542 | else { | |
1540 | - | let | |
1541 | - | let | |
1542 | - | let | |
1543 | - | if (( | |
1543 | + | let aQ = valueOrErrorMessage(getString(aO(toString(cp.caller))), "You don't have a duck staked") | |
1544 | + | let eC = aS(aQ) | |
1545 | + | let gv = valueOrElse(getInteger(eC), 100) | |
1546 | + | if ((gv >= 100)) | |
1544 | 1547 | then throw("HP should be < 100 to heal") | |
1545 | 1548 | else { | |
1546 | - | let | |
1547 | - | let | |
1548 | - | let | |
1549 | - | let | |
1550 | - | let | |
1551 | - | let | |
1552 | - | if (( | |
1553 | - | then throw(((((("You need " + toString( | |
1549 | + | let dd = aP(aQ) | |
1550 | + | let dP = dc(dd) | |
1551 | + | let eE = split(dP[bh], "_") | |
1552 | + | let gw = parseIntValue(eE[gu]) | |
1553 | + | let gx = min([(cw / h), (100 - gv)]) | |
1554 | + | let gy = (gx * h) | |
1555 | + | if ((gy > gw)) | |
1556 | + | then throw(((((("You need " + toString(gy)) + " of ") + L[gu]) + " to heal, but you backpack contains ") + toString(gw))) | |
1554 | 1557 | else { | |
1555 | - | let | |
1556 | - | [IntegerEntry( | |
1558 | + | let eF = cu(eE, gu, gy) | |
1559 | + | [IntegerEntry(eC, (gv + gx)), StringEntry(dd, makeString([dP[bf], dP[bg], eF, dP[bi]], ":")), gd] | |
1557 | 1560 | } | |
1558 | 1561 | } | |
1559 | 1562 | } | |
1561 | 1564 | ||
1562 | 1565 | ||
1563 | 1566 | ||
1564 | - | @Callable( | |
1565 | - | func updateBackpack ( | |
1566 | - | let | |
1567 | - | if (( | |
1567 | + | @Callable(cp) | |
1568 | + | func updateBackpack (aQ,gz) = { | |
1569 | + | let gd = ga(cp) | |
1570 | + | if ((cp.caller != af)) | |
1568 | 1571 | then throw("permission denied") | |
1569 | - | else $Tuple2([StringEntry( | |
1572 | + | else $Tuple2([StringEntry(aP(aQ), gz), gd], gz) | |
1570 | 1573 | } | |
1571 | 1574 | ||
1572 | 1575 | ||
1573 | 1576 | ||
1574 | - | @Callable( | |
1577 | + | @Callable(cp) | |
1575 | 1578 | func buySLand () = { | |
1576 | - | let | |
1577 | - | if ((size( | |
1579 | + | let gd = ga(cp) | |
1580 | + | if ((size(cp.payments) != 1)) | |
1578 | 1581 | then throw("Exactly one payment required") | |
1579 | 1582 | else { | |
1580 | - | let | |
1581 | - | if (( | |
1583 | + | let ge = value(cp.payments[0]) | |
1584 | + | if ((ge.assetId != b)) | |
1582 | 1585 | then throw("Allowed USDT payment only!") | |
1583 | - | else if (( | |
1586 | + | else if ((ge.amount != B)) | |
1584 | 1587 | then throw(("Payment attached should be " + toString(B))) | |
1585 | 1588 | else { | |
1586 | - | let | |
1587 | - | $Tuple2((( | |
1589 | + | let ci = el(cp.caller, cp.transactionId) | |
1590 | + | $Tuple2(((ci._1 :+ ScriptTransfer(af, ge.amount, b)) :+ gd), ci._2._1) | |
1588 | 1591 | } | |
1589 | 1592 | } | |
1590 | 1593 | } | |
1591 | 1594 | ||
1592 | 1595 | ||
1593 | 1596 | ||
1594 | - | @Callable( | |
1595 | - | func expedition ( | |
1596 | - | let | |
1597 | - | if ((size( | |
1597 | + | @Callable(cp) | |
1598 | + | func expedition (eu,ev) = { | |
1599 | + | let gd = ga(cp) | |
1600 | + | if ((size(cp.payments) != 0)) | |
1598 | 1601 | then throw("No payments required") | |
1599 | 1602 | else { | |
1600 | - | let | |
1601 | - | $Tuple2(( | |
1603 | + | let ci = et(true, cp.caller, cp.transactionId, eu, ev) | |
1604 | + | $Tuple2((ci._1 :+ gd), ci._2) | |
1602 | 1605 | } | |
1603 | 1606 | } | |
1604 | 1607 | ||
1605 | 1608 | ||
1606 | 1609 | ||
1607 | - | @Callable( | |
1608 | - | func upgradeInfra ( | |
1609 | - | let | |
1610 | - | if ((size( | |
1610 | + | @Callable(cp) | |
1611 | + | func upgradeInfra (aD) = { | |
1612 | + | let gd = ga(cp) | |
1613 | + | if ((size(cp.payments) != 0)) | |
1611 | 1614 | then throw("No payments required") | |
1612 | 1615 | else { | |
1613 | - | let | |
1614 | - | $Tuple2(( | |
1616 | + | let ci = fm(true, cp.caller, 0, aD) | |
1617 | + | $Tuple2((ci._1 :+ gd), ci._2) | |
1615 | 1618 | } | |
1616 | 1619 | } | |
1617 | 1620 | ||
1618 | 1621 | ||
1619 | 1622 | ||
1620 | - | @Callable( | |
1621 | - | func upgradeInfraUsdt ( | |
1623 | + | @Callable(cp) | |
1624 | + | func upgradeInfraUsdt (aD) = if ((cp.caller != this)) | |
1622 | 1625 | then throw("Permission denied") | |
1623 | 1626 | else { | |
1624 | - | let | |
1625 | - | if ((size( | |
1627 | + | let gd = ga(cp) | |
1628 | + | if ((size(cp.payments) != 1)) | |
1626 | 1629 | then throw("Exactly one payment required") | |
1627 | 1630 | else { | |
1628 | - | let | |
1629 | - | if (( | |
1631 | + | let ge = value(cp.payments[0]) | |
1632 | + | if ((ge.assetId != b)) | |
1630 | 1633 | then throw("Allowed USDT payment only!") | |
1631 | 1634 | else { | |
1632 | - | let | |
1633 | - | $Tuple2((( | |
1635 | + | let ci = fm(false, cp.caller, ge.amount, aD) | |
1636 | + | $Tuple2(((ci._1 :+ ScriptTransfer(af, ge.amount, b)) :+ gd), ci._2) | |
1634 | 1637 | } | |
1635 | 1638 | } | |
1636 | 1639 | } | |
1637 | 1640 | ||
1638 | 1641 | ||
1639 | 1642 | ||
1640 | - | @Callable( | |
1641 | - | func activateArtifact ( | |
1642 | - | let | |
1643 | - | if ((size( | |
1643 | + | @Callable(cp) | |
1644 | + | func activateArtifact (gA,aD) = { | |
1645 | + | let gd = ga(cp) | |
1646 | + | if ((size(cp.payments) != 0)) | |
1644 | 1647 | then throw("No payments required") | |
1645 | 1648 | else { | |
1646 | - | let | |
1647 | - | let c = | |
1649 | + | let ci = { | |
1650 | + | let c = gA | |
1648 | 1651 | if (("PRESALE" == c)) | |
1649 | - | then | |
1652 | + | then fz(toString(cp.caller), aD) | |
1650 | 1653 | else throw("Unknown artifact") | |
1651 | 1654 | } | |
1652 | - | ( | |
1655 | + | (ci :+ gd) | |
1653 | 1656 | } | |
1654 | 1657 | } | |
1655 | 1658 | ||
1656 | 1659 | ||
1657 | 1660 | ||
1658 | - | @Callable( | |
1659 | - | func mergeLands ( | |
1660 | - | let | |
1661 | - | if ((size( | |
1661 | + | @Callable(cp) | |
1662 | + | func mergeLands (fE) = { | |
1663 | + | let gd = ga(cp) | |
1664 | + | if ((size(cp.payments) != 0)) | |
1662 | 1665 | then throw("No payments required") | |
1663 | 1666 | else { | |
1664 | - | let | |
1665 | - | $Tuple2(( | |
1667 | + | let ci = fY(true, toString(cp.caller), 0, fE, cp.transactionId) | |
1668 | + | $Tuple2((ci._1 :+ gd), ci._2) | |
1666 | 1669 | } | |
1667 | 1670 | } | |
1668 | 1671 | ||
1669 | 1672 | ||
1670 | 1673 | ||
1671 | - | @Callable( | |
1672 | - | func mergeLandsUsdt ( | |
1673 | - | let | |
1674 | - | if ((size( | |
1674 | + | @Callable(cp) | |
1675 | + | func mergeLandsUsdt (fE) = { | |
1676 | + | let gd = ga(cp) | |
1677 | + | if ((size(cp.payments) != 1)) | |
1675 | 1678 | then throw("Exactly one payment required") | |
1676 | 1679 | else { | |
1677 | - | let | |
1678 | - | if (( | |
1680 | + | let ge = value(cp.payments[0]) | |
1681 | + | if ((ge.assetId != b)) | |
1679 | 1682 | then throw("Allowed USDT payment only!") | |
1680 | 1683 | else { | |
1681 | - | let | |
1682 | - | $Tuple2((( | |
1684 | + | let ci = fY(false, toString(cp.caller), ge.amount, fE, cp.transactionId) | |
1685 | + | $Tuple2(((ci._1 :+ ScriptTransfer(af, ge.amount, b)) :+ gd), ci._2) | |
1683 | 1686 | } | |
1684 | 1687 | } | |
1685 | 1688 | } | |
1686 | 1689 | ||
1687 | 1690 | ||
1688 | 1691 | ||
1689 | - | @Callable( | |
1690 | - | func cargoExchange ( | |
1691 | - | let | |
1692 | - | if ((size( | |
1692 | + | @Callable(cp) | |
1693 | + | func cargoExchange (gB,aD) = { | |
1694 | + | let gd = ga(cp) | |
1695 | + | if ((size(cp.payments) != 0)) | |
1693 | 1696 | then throw("No payments required") | |
1694 | 1697 | else { | |
1695 | - | let | |
1696 | - | let ai = toString( | |
1697 | - | let | |
1698 | - | let | |
1699 | - | if (!(isDefined(getInteger( | |
1700 | - | then throw(( | |
1698 | + | let dO = split_4C(gB, ":") | |
1699 | + | let ai = toString(cp.originCaller) | |
1700 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1701 | + | let eU = ar(aD) | |
1702 | + | if (!(isDefined(getInteger(eU)))) | |
1703 | + | then throw((eT.name + " is not staked")) | |
1701 | 1704 | else { | |
1702 | - | let | |
1703 | - | if (( | |
1705 | + | let eW = valueOrErrorMessage(getString(am(aD)), (("NFT " + eT.name) + " is orphaned")) | |
1706 | + | if ((eW != ai)) | |
1704 | 1707 | then throw((i + " is not yours")) | |
1705 | 1708 | else { | |
1706 | - | let | |
1707 | - | let | |
1708 | - | let | |
1709 | - | let | |
1710 | - | let | |
1711 | - | if (( | |
1712 | - | then throw((("Duck location type is " + | |
1713 | - | else if (( | |
1714 | - | then throw(("Duck should be on the land " + | |
1709 | + | let dz = (ct(split(eT.description, "_")[aZ]) / m) | |
1710 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1711 | + | let aQ = valueOrErrorMessage(getString(aO(ai)), "You don't have a duck staked") | |
1712 | + | let eQ = valueOrElse(getString(aR(aQ)), k) | |
1713 | + | let eR = split(value(eQ), "_") | |
1714 | + | if ((eR[bd] != "L")) | |
1715 | + | then throw((("Duck location type is " + eR[bd]) + ", but should be L")) | |
1716 | + | else if ((eR[be] != aD)) | |
1717 | + | then throw(("Duck should be on the land " + aD)) | |
1715 | 1718 | else { | |
1716 | - | let | |
1717 | - | let | |
1718 | - | let | |
1719 | - | let | |
1720 | - | let | |
1721 | - | let | |
1722 | - | let | |
1723 | - | let | |
1724 | - | [StringEntry( | |
1719 | + | let dy = aC(aD) | |
1720 | + | let dj = dx(dy, dz, dA) | |
1721 | + | let dd = aP(aQ) | |
1722 | + | let dP = dc(dd) | |
1723 | + | let ci = dN(dO, dj, dP) | |
1724 | + | let dG = split(dj[bn], "_") | |
1725 | + | let fj = (parseIntValue(dG[bp]) + ci._7) | |
1726 | + | let fk = (parseIntValue(dG[bq]) - ci._7) | |
1727 | + | [StringEntry(dd, makeString_2C([dP[bf], ci._4, ci._5, ci._6], ":")), StringEntry(dy, makeString_2C([dj[bj], ci._1, ci._2, ci._3, makeString([dG[bo], toString(fj), toString(fk), dG[br]], "_")], ":")), gd] | |
1725 | 1728 | } | |
1726 | 1729 | } | |
1727 | 1730 | } | |
1730 | 1733 | ||
1731 | 1734 | ||
1732 | 1735 | ||
1733 | - | @Callable( | |
1734 | - | func saveWarehouse ( | |
1735 | - | let | |
1736 | - | if (( | |
1736 | + | @Callable(cp) | |
1737 | + | func saveWarehouse (dC,aD) = { | |
1738 | + | let gd = ga(cp) | |
1739 | + | if ((cp.caller != af)) | |
1737 | 1740 | then throw("Access denied") | |
1738 | 1741 | else { | |
1739 | - | let | |
1740 | - | let | |
1741 | - | if ((size( | |
1742 | + | let dy = aC(aD) | |
1743 | + | let dD = split_4C(dC, ":") | |
1744 | + | if ((size(dD) != 5)) | |
1742 | 1745 | then throw("warehouse string should contain 4 ':' separators") | |
1743 | 1746 | else { | |
1744 | - | let | |
1745 | - | let | |
1746 | - | let | |
1747 | - | let | |
1748 | - | let | |
1749 | - | $Tuple2([StringEntry( | |
1747 | + | let gC = split(dD[bn], "_")[bo] | |
1748 | + | let fj = di(dD) | |
1749 | + | let gD = df(dD[bj]) | |
1750 | + | let fk = ((gD - parseIntValue(gC)) - fj) | |
1751 | + | let gE = makeString_2C([dD[bj], dD[bk], dD[bl], dD[bm], makeString([gC, toString(fj), toString(fk), toString(gD)], "_")], ":") | |
1752 | + | $Tuple2([StringEntry(dy, gE), gd], gE) | |
1750 | 1753 | } | |
1751 | 1754 | } | |
1752 | 1755 | } | |
1753 | 1756 | ||
1754 | 1757 | ||
1755 | 1758 | ||
1756 | - | @Callable( | |
1757 | - | func replaceBooleanArtifact ( | |
1759 | + | @Callable(cp) | |
1760 | + | func replaceBooleanArtifact (aD) = if ((cp.caller != ae)) | |
1758 | 1761 | then throw("Access denied") | |
1759 | 1762 | else { | |
1760 | - | let | |
1761 | - | let | |
1762 | - | let | |
1763 | - | if (isDefined( | |
1763 | + | let gF = av(aD) | |
1764 | + | let gG = ax(N, aD) | |
1765 | + | let gH = getBoolean(gF) | |
1766 | + | if (isDefined(gH)) | |
1764 | 1767 | then { | |
1765 | - | let | |
1766 | - | let | |
1767 | - | let | |
1768 | - | let | |
1769 | - | let | |
1770 | - | then [IntegerEntry( | |
1768 | + | let eX = split(value(assetInfo(fromBase58String(aD))).description, "_") | |
1769 | + | let eI = ct(eX[aZ]) | |
1770 | + | let eJ = valueOrElse(getInteger(gG), eI) | |
1771 | + | let eW = getString(am(aD)) | |
1772 | + | let gI = if (isDefined(eW)) | |
1773 | + | then [IntegerEntry(az(N, aD, value(eW)), eJ), DeleteEntry(aw(aD, value(eW)))] | |
1771 | 1774 | else nil | |
1772 | - | if (value( | |
1773 | - | then $Tuple2((( | |
1774 | - | else $Tuple2([DeleteEntry( | |
1775 | + | if (value(gH)) | |
1776 | + | then $Tuple2(((gI :+ IntegerEntry(gG, eJ)) :+ DeleteEntry(gF)), 2) | |
1777 | + | else $Tuple2([DeleteEntry(gF)], 1) | |
1775 | 1778 | } | |
1776 | 1779 | else $Tuple2(nil, 0) | |
1777 | 1780 | } | |
1778 | 1781 | ||
1779 | 1782 | ||
1780 | 1783 | ||
1781 | - | @Callable(co) | |
1782 | - | func setCustomName (ap,fM,aI) = { | |
1783 | - | let gc = fZ(co) | |
1784 | - | if ((size(co.payments) != 1)) | |
1784 | + | @Callable(cp) | |
1785 | + | func fixWarehouseFormat (aD) = if ((cp.caller != ae)) | |
1786 | + | then throw("Access denied") | |
1787 | + | else { | |
1788 | + | let dy = aC(aD) | |
1789 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1790 | + | let dz = (ct(split(eT.description, "_")[aZ]) / m) | |
1791 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1792 | + | let dC = dx(dy, dz, dA) | |
1793 | + | let gJ = valueOrElse(getString(af, aX(aD)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:") | |
1794 | + | nil | |
1795 | + | } | |
1796 | + | ||
1797 | + | ||
1798 | + | ||
1799 | + | @Callable(cp) | |
1800 | + | func setCustomName (an,fN,ay) = { | |
1801 | + | let gd = ga(cp) | |
1802 | + | if ((size(cp.payments) != 1)) | |
1785 | 1803 | then throw("Exactly one payment required") | |
1786 | 1804 | else { | |
1787 | - | let | |
1788 | - | if (( | |
1805 | + | let ge = value(cp.payments[0]) | |
1806 | + | if ((ge.assetId != b)) | |
1789 | 1807 | then throw("Allowed USDT payment only!") | |
1790 | - | else if (( | |
1808 | + | else if ((ge.amount != w)) | |
1791 | 1809 | then throw(("Payment should be " + toString(w))) | |
1792 | - | else if (contains( | |
1793 | - | then throw(("Name should not contain '__': " + | |
1794 | - | else if ((size( | |
1810 | + | else if (contains(fN, "__")) | |
1811 | + | then throw(("Name should not contain '__': " + fN)) | |
1812 | + | else if ((size(fN) > x)) | |
1795 | 1813 | then throw(("Name too long, maxLength=" + toString(x))) | |
1796 | 1814 | else { | |
1797 | - | let ai = toString( | |
1798 | - | let | |
1799 | - | let c = | |
1815 | + | let ai = toString(cp.originCaller) | |
1816 | + | let gK = { | |
1817 | + | let c = ay | |
1800 | 1818 | if (("ACCOUNT" == c)) | |
1801 | 1819 | then { | |
1802 | - | let | |
1803 | - | let | |
1804 | - | if (isDefined( | |
1805 | - | then throw(("Name already registered: " + | |
1806 | - | else [StringEntry( | |
1820 | + | let gL = aJ(fN) | |
1821 | + | let gM = getString(gL) | |
1822 | + | if (isDefined(gM)) | |
1823 | + | then throw(("Name already registered: " + fN)) | |
1824 | + | else [StringEntry(aH(ai), fN), StringEntry(gL, ai)] | |
1807 | 1825 | } | |
1808 | 1826 | else if (("LAND" == c)) | |
1809 | 1827 | then { | |
1810 | - | let | |
1811 | - | let | |
1812 | - | if (!(isDefined(getInteger( | |
1813 | - | then throw(( | |
1828 | + | let eT = value(assetInfo(fromBase58String(an))) | |
1829 | + | let eU = ar(an) | |
1830 | + | if (!(isDefined(getInteger(eU)))) | |
1831 | + | then throw((eT.name + " is not staked")) | |
1814 | 1832 | else { | |
1815 | - | let | |
1816 | - | if (( | |
1833 | + | let eW = valueOrErrorMessage(getString(am(an)), (("NFT " + eT.name) + " is orphaned")) | |
1834 | + | if ((eW != ai)) | |
1817 | 1835 | then throw((i + " is not yours")) | |
1818 | 1836 | else { | |
1819 | - | let | |
1820 | - | let | |
1821 | - | if (isDefined( | |
1822 | - | then throw(("Name already registered: " + | |
1823 | - | else [StringEntry( | |
1837 | + | let gL = ap(fN) | |
1838 | + | let gM = getString(gL) | |
1839 | + | if (isDefined(gM)) | |
1840 | + | then throw(("Name already registered: " + fN)) | |
1841 | + | else [StringEntry(ao(an), fN), StringEntry(gL, an)] | |
1824 | 1842 | } | |
1825 | 1843 | } | |
1826 | 1844 | } | |
1827 | 1845 | else if (("DUCK" == c)) | |
1828 | 1846 | then { | |
1829 | - | let | |
1830 | - | let | |
1831 | - | if (if (!(isDefined(getInteger( | |
1847 | + | let eT = value(assetInfo(fromBase58String(an))) | |
1848 | + | let eU = ar(an) | |
1849 | + | if (if (!(isDefined(getInteger(eU)))) | |
1832 | 1850 | then true | |
1833 | - | else !(isDefined(getString( | |
1834 | - | then throw(( | |
1851 | + | else !(isDefined(getString(aO(ai))))) | |
1852 | + | then throw((eT.name + " is not staked")) | |
1835 | 1853 | else { | |
1836 | - | let | |
1837 | - | if (( | |
1854 | + | let eW = valueOrErrorMessage(getString(aN(an)), (("NFT " + eT.name) + " is orphaned")) | |
1855 | + | if ((eW != ai)) | |
1838 | 1856 | then throw((j + " is not yours")) | |
1839 | 1857 | else { | |
1840 | - | let | |
1841 | - | let | |
1842 | - | if (isDefined( | |
1843 | - | then throw(("Name already registered: " + | |
1844 | - | else [StringEntry( | |
1858 | + | let gL = aI(fN) | |
1859 | + | let gM = getString(gL) | |
1860 | + | if (isDefined(gM)) | |
1861 | + | then throw(("Name already registered: " + fN)) | |
1862 | + | else [StringEntry(aG(an), fN), StringEntry(gL, an)] | |
1845 | 1863 | } | |
1846 | 1864 | } | |
1847 | 1865 | } | |
1848 | 1866 | else throw("Unknown entity type") | |
1849 | 1867 | } | |
1850 | - | $Tuple2((( | |
1868 | + | $Tuple2(((gK :+ ScriptTransfer(af, ge.amount, b)) :+ gd), 0) | |
1851 | 1869 | } | |
1852 | 1870 | } | |
1853 | 1871 | } | |
1854 | 1872 | ||
1855 | 1873 | ||
1856 | 1874 | ||
1857 | - | @Callable( | |
1858 | - | func setReferrals ( | |
1875 | + | @Callable(cp) | |
1876 | + | func setReferrals (gN,gO) = if ((cp.callerPublicKey != g)) | |
1859 | 1877 | then throw("Permission denied") | |
1860 | 1878 | else { | |
1861 | - | let | |
1862 | - | if ((size( | |
1879 | + | let gd = ga(cp) | |
1880 | + | if ((size(cp.payments) != 0)) | |
1863 | 1881 | then throw("No payments required") | |
1864 | - | else if (!(isDefined(addressFromString( | |
1865 | - | then throw(("Invalid address: " + | |
1866 | - | else if (!(isDefined(addressFromString( | |
1867 | - | then throw(("Invalid address: " + | |
1882 | + | else if (!(isDefined(addressFromString(gN)))) | |
1883 | + | then throw(("Invalid address: " + gN)) | |
1884 | + | else if (!(isDefined(addressFromString(gO)))) | |
1885 | + | then throw(("Invalid address: " + gO)) | |
1868 | 1886 | else { | |
1869 | - | let | |
1870 | - | let | |
1871 | - | let | |
1872 | - | then split_4C(value( | |
1887 | + | let gP = aM() | |
1888 | + | let gQ = getString(gP) | |
1889 | + | let gR = if (isDefined(gQ)) | |
1890 | + | then split_4C(value(gQ), "_") | |
1873 | 1891 | else nil | |
1874 | - | if (containsElement( | |
1875 | - | then throw(( | |
1892 | + | if (containsElement(gR, gO)) | |
1893 | + | then throw((gO + " is not newbie (already has referrals)")) | |
1876 | 1894 | else { | |
1877 | - | let | |
1878 | - | let | |
1879 | - | if (if (isDefined( | |
1880 | - | then isDefined(addressFromString(value( | |
1895 | + | let gS = aK(gO) | |
1896 | + | let gT = getString(gS) | |
1897 | + | if (if (isDefined(gT)) | |
1898 | + | then isDefined(addressFromString(value(gT))) | |
1881 | 1899 | else false) | |
1882 | - | then throw((( | |
1900 | + | then throw(((gO + " already has refBy: ") + value(gT))) | |
1883 | 1901 | else { | |
1884 | - | let | |
1885 | - | let | |
1886 | - | let | |
1887 | - | then split_4C(value( | |
1902 | + | let gU = aL(gN) | |
1903 | + | let gV = getString(gU) | |
1904 | + | let gW = if (isDefined(gV)) | |
1905 | + | then split_4C(value(gV), "_") | |
1888 | 1906 | else nil | |
1889 | - | if (containsElement( | |
1890 | - | then throw(((( | |
1907 | + | if (containsElement(gW, gO)) | |
1908 | + | then throw((((gN + " already contains ") + gO) + " within referrals")) | |
1891 | 1909 | else { | |
1892 | - | let | |
1893 | - | let | |
1894 | - | $Tuple2([StringEntry( | |
1910 | + | let gX = makeString_2C((gW :+ gO), "_") | |
1911 | + | let gY = makeString_2C((gR :+ gN), "_") | |
1912 | + | $Tuple2([StringEntry(gS, gN), StringEntry(gU, gX), StringEntry(gP, gY), gd], 0) | |
1895 | 1913 | } | |
1896 | 1914 | } | |
1897 | 1915 | } | |
1900 | 1918 | ||
1901 | 1919 | ||
1902 | 1920 | ||
1903 | - | @Callable( | |
1904 | - | func splitByGlobalWeightsREADONLY ( | |
1921 | + | @Callable(cp) | |
1922 | + | func splitByGlobalWeightsREADONLY (cw) = $Tuple2(nil, bZ(cw)) | |
1905 | 1923 | ||
1906 | 1924 | ||
1907 | 1925 | ||
1908 | - | @Callable( | |
1909 | - | func splitByGlobalAndLocalWeightsREADONLY ( | |
1910 | - | let | |
1911 | - | $Tuple2(nil, $Tuple2( | |
1926 | + | @Callable(cp) | |
1927 | + | func splitByGlobalAndLocalWeightsREADONLY (gZ,ha,cs) = { | |
1928 | + | let cl = cr(cs) | |
1929 | + | $Tuple2(nil, $Tuple2(bZ(gZ), bK(ha, cl))) | |
1912 | 1930 | } | |
1913 | 1931 | ||
1914 | 1932 | ||
1915 | 1933 | ||
1916 | - | @Callable( | |
1917 | - | func getBackpackREADONLY ( | |
1934 | + | @Callable(cp) | |
1935 | + | func getBackpackREADONLY (aQ) = $Tuple2(nil, makeString(dc(aP(aQ)), ":")) | |
1918 | 1936 | ||
1919 | 1937 | ||
1920 | 1938 | ||
1921 | - | @Callable( | |
1922 | - | func getWarehouseREADONLY ( | |
1923 | - | let | |
1924 | - | let | |
1925 | - | let | |
1926 | - | $Tuple2(nil, makeString_2C( | |
1939 | + | @Callable(cp) | |
1940 | + | func getWarehouseREADONLY (aD) = { | |
1941 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1942 | + | let dz = (ct(split(eT.description, "_")[aZ]) / m) | |
1943 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1944 | + | $Tuple2(nil, makeString_2C(dx(aC(aD), dz, dA), ":")) | |
1927 | 1945 | } | |
1928 | 1946 | ||
1929 | 1947 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let b = { | |
7 | 7 | let c = a | |
8 | 8 | if ((base58'2W' == c)) | |
9 | 9 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
10 | 10 | else if ((base58'2T' == c)) | |
11 | 11 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let d = { | |
16 | 16 | let c = a | |
17 | 17 | if ((base58'2W' == c)) | |
18 | 18 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
19 | 19 | else if ((base58'2T' == c)) | |
20 | 20 | then this | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let e = { | |
25 | 25 | let c = a | |
26 | 26 | if ((base58'2W' == c)) | |
27 | 27 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
28 | 28 | else if ((base58'2T' == c)) | |
29 | 29 | then this | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let f = { | |
34 | 34 | let c = a | |
35 | 35 | if ((base58'2W' == c)) | |
36 | 36 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
37 | 37 | else if ((base58'2T' == c)) | |
38 | 38 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
39 | 39 | else throw("Unknown chain") | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | let g = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
43 | 43 | ||
44 | 44 | let h = 10000 | |
45 | 45 | ||
46 | 46 | let i = "LAND" | |
47 | 47 | ||
48 | 48 | let j = "DUCK" | |
49 | 49 | ||
50 | 50 | let k = "Africa_F_Africa" | |
51 | 51 | ||
52 | 52 | let l = 6 | |
53 | 53 | ||
54 | 54 | let m = 25 | |
55 | 55 | ||
56 | 56 | let n = 100 | |
57 | 57 | ||
58 | 58 | let o = 225 | |
59 | 59 | ||
60 | 60 | let p = 400 | |
61 | 61 | ||
62 | 62 | let q = 625 | |
63 | 63 | ||
64 | 64 | let r = 3456000 | |
65 | 65 | ||
66 | 66 | let s = 86400000 | |
67 | 67 | ||
68 | 68 | let t = 300000 | |
69 | 69 | ||
70 | 70 | let u = 39637 | |
71 | 71 | ||
72 | 72 | let v = 10000000000 | |
73 | 73 | ||
74 | 74 | let w = 5000000 | |
75 | 75 | ||
76 | 76 | let x = 50 | |
77 | 77 | ||
78 | 78 | let y = { | |
79 | 79 | let c = a | |
80 | 80 | if ((base58'2W' == c)) | |
81 | 81 | then 10000000000 | |
82 | 82 | else if ((base58'2T' == c)) | |
83 | 83 | then 100000000 | |
84 | 84 | else throw("Unknown chain") | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | let z = { | |
88 | 88 | let c = a | |
89 | 89 | if ((base58'2W' == c)) | |
90 | 90 | then 10000000 | |
91 | 91 | else if ((base58'2T' == c)) | |
92 | 92 | then 10000000 | |
93 | 93 | else throw("Unknown chain") | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | let A = { | |
97 | 97 | let c = a | |
98 | 98 | if ((base58'2W' == c)) | |
99 | 99 | then 252289527462 | |
100 | 100 | else if ((base58'2T' == c)) | |
101 | 101 | then 2522895274 | |
102 | 102 | else throw("Unknown chain") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | let B = { | |
106 | 106 | let c = a | |
107 | 107 | if ((base58'2W' == c)) | |
108 | 108 | then 250000000 | |
109 | 109 | else if ((base58'2T' == c)) | |
110 | 110 | then 250000000 | |
111 | 111 | else throw("Unknown chain") | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | let C = "__" | |
115 | 115 | ||
116 | 116 | let D = 1000000 | |
117 | 117 | ||
118 | 118 | let E = 100000000 | |
119 | 119 | ||
120 | 120 | let F = toBigInt(5) | |
121 | 121 | ||
122 | 122 | let G = toBigInt(20) | |
123 | 123 | ||
124 | 124 | let H = toBigInt((20 * 20)) | |
125 | 125 | ||
126 | 126 | let I = toBigInt(((20 * 20) * 20)) | |
127 | 127 | ||
128 | 128 | let J = toBigInt((((20 * 20) * 20) * 20)) | |
129 | 129 | ||
130 | 130 | let K = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
131 | 131 | ||
132 | 132 | let L = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
133 | 133 | ||
134 | 134 | let M = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
135 | 135 | ||
136 | 136 | let N = "PRESALE" | |
137 | 137 | ||
138 | 138 | let O = 500 | |
139 | 139 | ||
140 | 140 | func P (Q,R) = valueOrErrorMessage(getString(Q, R), makeString(["mandatory ", toString(Q), ".", R, " is not defined"], "")) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func S (R,T) = valueOrElse(getInteger(this, R), T) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | let U = 1 | |
147 | 147 | ||
148 | 148 | let V = 2 | |
149 | 149 | ||
150 | 150 | let W = 3 | |
151 | 151 | ||
152 | 152 | func X () = "%s__restConfig" | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func Y () = "%s__restAddr" | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func Z (aa) = split_4C(P(aa, X()), C) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ab (ac,ad) = valueOrErrorMessage(addressFromString(ac[ad]), ("Rest cfg doesn't contain address at index " + toString(ad))) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | let ae = addressFromStringValue(valueOrElse(getString(this, Y()), f)) | |
165 | 165 | ||
166 | 166 | let ac = Z(ae) | |
167 | 167 | ||
168 | 168 | let af = ab(ac, V) | |
169 | 169 | ||
170 | 170 | let ag = ab(ac, W) | |
171 | 171 | ||
172 | 172 | func ah (ai) = ("lastTxIdByUser_" + ai) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aj () = "nextLandNum" | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func ak (al) = ("landToAsset_" + al) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func am ( | |
181 | + | func am (an) = ("nftOwner_" + an) | |
182 | 182 | ||
183 | 183 | ||
184 | - | func ao ( | |
184 | + | func ao (an) = ("landCustomNameByAssetId_" + an) | |
185 | 185 | ||
186 | 186 | ||
187 | - | func | |
187 | + | func ap (aq) = ("landByCustomName_" + aq) | |
188 | 188 | ||
189 | 189 | ||
190 | - | func ar ( | |
190 | + | func ar (an) = ("stakedTime_" + an) | |
191 | 191 | ||
192 | 192 | ||
193 | - | func as ( | |
193 | + | func as (an) = ("infraLevel_" + an) | |
194 | 194 | ||
195 | 195 | ||
196 | - | func at (au) = (" | |
196 | + | func at (an,au) = ((("infraLevelByAssetIdAndOwner_" + an) + "_") + au) | |
197 | 197 | ||
198 | 198 | ||
199 | - | func av ( | |
199 | + | func av (an) = ("presaleArtActivated_" + an) | |
200 | 200 | ||
201 | 201 | ||
202 | - | func aw (au) = (" | |
202 | + | func aw (an,au) = ((("presaleArtActivatedByAssetIdAndOwner_" + an) + "_") + au) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func ax ( | |
205 | + | func ax (ay,an) = makeString(["landArtStatus", ay, an], "_") | |
206 | 206 | ||
207 | 207 | ||
208 | - | func | |
208 | + | func az (ay,an,au) = makeString(["landArtStatusByTypeAssetIdAndOwner", ay, an, au], "_") | |
209 | 209 | ||
210 | 210 | ||
211 | - | func | |
211 | + | func aA (aB,an,au) = ((((("stakedTimeByTypeAssetIdAndOwner_" + aB) + "_") + an) + "_") + au) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func | |
214 | + | func aC (aD) = ("wareHouse_" + aD) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func | |
217 | + | func aE (al) = ("landOwner_" + al) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func | |
220 | + | func aF (au) = ("stakedLandsByOwner_" + au) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func | |
223 | + | func aG (an) = ("duckCustomNameByAssetId_" + an) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func | |
226 | + | func aH (ai) = ("accountCustomNameByAddr_" + ai) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func aI (aq) = ("duckByCustomName_" + aq) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func | |
232 | + | func aJ (aq) = ("accountByCustomName_" + aq) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func | |
235 | + | func aK (ai) = ("accRefBy_" + ai) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func | |
238 | + | func aL (ai) = ("accReferrals_" + ai) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func | |
241 | + | func aM () = "oldiesList" | |
242 | 242 | ||
243 | 243 | ||
244 | - | func aN ( | |
244 | + | func aN (an) = ("duckOwner_" + an) | |
245 | 245 | ||
246 | 246 | ||
247 | - | func aO ( | |
247 | + | func aO (au) = ("stakedDuckByOwner_" + au) | |
248 | 248 | ||
249 | 249 | ||
250 | - | func | |
250 | + | func aP (aQ) = ("backPack_" + aQ) | |
251 | 251 | ||
252 | 252 | ||
253 | - | func | |
253 | + | func aR (aQ) = ("duckLocation_" + aQ) | |
254 | 254 | ||
255 | 255 | ||
256 | - | func | |
256 | + | func aS (aQ) = ("duckHealth_" + aQ) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func | |
259 | + | func aT () = "resTypesProportions" | |
260 | 260 | ||
261 | 261 | ||
262 | - | func | |
262 | + | func aU () = "contractsBlocked" | |
263 | 263 | ||
264 | 264 | ||
265 | - | func | |
265 | + | func aV (aW) = ("%s%s__userGwlReleaseTime__" + aW) | |
266 | 266 | ||
267 | 267 | ||
268 | - | func aX ( | |
268 | + | func aX (aD) = ("landOrder_" + aD) | |
269 | 269 | ||
270 | 270 | ||
271 | - | let | |
271 | + | let aY = 0 | |
272 | 272 | ||
273 | - | let | |
273 | + | let aZ = 1 | |
274 | 274 | ||
275 | - | let | |
275 | + | let ba = 2 | |
276 | 276 | ||
277 | - | let | |
277 | + | let bb = 3 | |
278 | 278 | ||
279 | - | let | |
279 | + | let bc = 0 | |
280 | 280 | ||
281 | - | let | |
281 | + | let bd = 1 | |
282 | 282 | ||
283 | - | let | |
283 | + | let be = 2 | |
284 | 284 | ||
285 | - | let | |
285 | + | let bf = 0 | |
286 | 286 | ||
287 | - | let | |
287 | + | let bg = 1 | |
288 | 288 | ||
289 | - | let | |
289 | + | let bh = 2 | |
290 | 290 | ||
291 | - | let | |
291 | + | let bi = 3 | |
292 | 292 | ||
293 | - | let | |
293 | + | let bj = 0 | |
294 | 294 | ||
295 | - | let | |
295 | + | let bk = 1 | |
296 | 296 | ||
297 | - | let | |
297 | + | let bl = 2 | |
298 | 298 | ||
299 | - | let | |
299 | + | let bm = 3 | |
300 | 300 | ||
301 | - | let | |
301 | + | let bn = 4 | |
302 | 302 | ||
303 | - | let | |
303 | + | let bo = 0 | |
304 | 304 | ||
305 | - | let | |
305 | + | let bp = 1 | |
306 | 306 | ||
307 | - | let | |
307 | + | let bq = 2 | |
308 | 308 | ||
309 | - | let | |
309 | + | let br = 3 | |
310 | 310 | ||
311 | - | let | |
311 | + | let bs = 0 | |
312 | 312 | ||
313 | - | let | |
313 | + | let bt = 1 | |
314 | 314 | ||
315 | - | let | |
315 | + | let bu = 2 | |
316 | 316 | ||
317 | - | let | |
317 | + | let bv = 0 | |
318 | 318 | ||
319 | - | let | |
319 | + | let bw = 1 | |
320 | 320 | ||
321 | - | let | |
321 | + | let bx = 2 | |
322 | 322 | ||
323 | - | let | |
323 | + | let by = 3 | |
324 | 324 | ||
325 | - | let | |
325 | + | let bz = 4 | |
326 | 326 | ||
327 | - | let | |
327 | + | let bA = 5 | |
328 | 328 | ||
329 | - | let | |
329 | + | let bB = 6 | |
330 | 330 | ||
331 | - | let | |
331 | + | let bC = [10, 10, 10, 100, 100, 100, 10, 10, 10, 100, 100, 100, 10, 10, 10] | |
332 | 332 | ||
333 | - | func bE (bF) = { | |
334 | - | let c = bF | |
333 | + | func bD (al,bE) = ((i + al) + bE) | |
334 | + | ||
335 | + | ||
336 | + | func bF (bG) = { | |
337 | + | let c = bG | |
335 | 338 | if ($isInstanceOf(c, "String")) | |
336 | 339 | then { | |
337 | - | let | |
338 | - | | |
340 | + | let bH = c | |
341 | + | bH | |
339 | 342 | } | |
340 | 343 | else throw("fail to cast into String") | |
341 | 344 | } | |
342 | 345 | ||
343 | 346 | ||
344 | - | func | |
345 | - | let c = | |
347 | + | func bI (bG) = { | |
348 | + | let c = bG | |
346 | 349 | if ($isInstanceOf(c, "Int")) | |
347 | 350 | then { | |
348 | - | let | |
349 | - | | |
351 | + | let bJ = c | |
352 | + | bJ | |
350 | 353 | } | |
351 | 354 | else throw("fail to cast into Int") | |
352 | 355 | } | |
353 | 356 | ||
354 | 357 | ||
355 | - | func | |
356 | - | let | |
357 | - | if ((0 >= | |
358 | + | func bK (bL,bM) = { | |
359 | + | let bN = (((((bM[0] + bM[1]) + bM[2]) + bM[3]) + bM[4]) + bM[5]) | |
360 | + | if ((0 >= bN)) | |
358 | 361 | then throw("Zero weights sum") | |
359 | 362 | else { | |
360 | - | let | |
361 | - | func | |
363 | + | let bO = fraction(bL, D, bN) | |
364 | + | func bP (bQ,bR) = (bQ :+ fraction(bR, bO, D)) | |
362 | 365 | ||
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | func | |
367 | - | then | |
368 | - | else | |
366 | + | let bS = bM | |
367 | + | let bT = size(bS) | |
368 | + | let bU = nil | |
369 | + | func bV (bW,bX) = if ((bX >= bT)) | |
370 | + | then bW | |
371 | + | else bP(bW, bS[bX]) | |
369 | 372 | ||
370 | - | func | |
371 | - | then | |
373 | + | func bY (bW,bX) = if ((bX >= bT)) | |
374 | + | then bW | |
372 | 375 | else throw("List size exceeds 6") | |
373 | 376 | ||
374 | - | | |
377 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
375 | 378 | } | |
376 | 379 | } | |
377 | 380 | ||
378 | 381 | ||
379 | - | func | |
380 | - | let | |
381 | - | if ((size( | |
382 | + | func bZ (bL) = { | |
383 | + | let ca = split(value(getString(aT())), "_") | |
384 | + | if ((size(ca) != l)) | |
382 | 385 | then throw("Wrong proportions data") | |
383 | 386 | else { | |
384 | - | let | |
385 | - | | |
387 | + | let cb = [parseIntValue(ca[0]), parseIntValue(ca[1]), parseIntValue(ca[2]), parseIntValue(ca[3]), parseIntValue(ca[4]), parseIntValue(ca[5])] | |
388 | + | bK(bL, cb) | |
386 | 389 | } | |
387 | 390 | } | |
388 | 391 | ||
389 | 392 | ||
390 | - | func | |
391 | - | let | |
392 | - | func | |
393 | - | let | |
394 | - | if ((0 > | |
395 | - | then throw(((((("Not enough material idx=" + toString(ad)) + ", you have ") + | |
396 | - | else ( | |
393 | + | func cc (cd,ce,cf) = { | |
394 | + | let cg = bZ(cf) | |
395 | + | func ch (bQ,ad) = { | |
396 | + | let ci = (parseIntValue(ce[ad]) - cg[ad]) | |
397 | + | if ((0 > ci)) | |
398 | + | then throw(((((("Not enough material idx=" + toString(ad)) + ", you have ") + ce[ad]) + ", but need ") + toString(cg[ad]))) | |
399 | + | else (bQ :+ toString(ci)) | |
397 | 400 | } | |
398 | 401 | ||
399 | - | if ( | |
402 | + | if (cd) | |
400 | 403 | then { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | func | |
405 | - | then | |
406 | - | else | |
404 | + | let bS = [0, 1, 2, 3, 4, 5] | |
405 | + | let bT = size(bS) | |
406 | + | let bU = nil | |
407 | + | func bV (bW,bX) = if ((bX >= bT)) | |
408 | + | then bW | |
409 | + | else ch(bW, bS[bX]) | |
407 | 410 | ||
408 | - | func | |
409 | - | then | |
411 | + | func bY (bW,bX) = if ((bX >= bT)) | |
412 | + | then bW | |
410 | 413 | else throw("List size exceeds 6") | |
411 | 414 | ||
412 | - | | |
415 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
413 | 416 | } | |
414 | - | else | |
417 | + | else ce | |
415 | 418 | } | |
416 | 419 | ||
417 | 420 | ||
418 | - | func | |
421 | + | func cj (ck,cl,cm,cn) = if ((size(ck) != l)) | |
419 | 422 | then throw("Wrong proportions data") | |
420 | 423 | else { | |
421 | - | func | |
422 | - | let | |
423 | - | if ((0 > | |
424 | - | then throw(((((((("Panic! Pieces of type=" + toString( | |
425 | - | else ( | |
424 | + | func co (bQ,cp) = { | |
425 | + | let ci = (parseIntValue(ck[cp]) + ((cn * cl[cp]) * cm)) | |
426 | + | if ((0 > ci)) | |
427 | + | then throw(((((((("Panic! Pieces of type=" + toString(cp)) + ", sign=") + toString(cn)) + ", terrainCounts[i]=") + toString(cl[cp])) + ", landSizeIndex=") + toString(cm))) | |
428 | + | else (bQ :+ toString(ci)) | |
426 | 429 | } | |
427 | 430 | ||
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | func | |
433 | - | then | |
434 | - | else | |
431 | + | let cb = { | |
432 | + | let bS = [0, 1, 2, 3, 4, 5] | |
433 | + | let bT = size(bS) | |
434 | + | let bU = nil | |
435 | + | func bV (bW,bX) = if ((bX >= bT)) | |
436 | + | then bW | |
437 | + | else co(bW, bS[bX]) | |
435 | 438 | ||
436 | - | func | |
437 | - | then | |
439 | + | func bY (bW,bX) = if ((bX >= bT)) | |
440 | + | then bW | |
438 | 441 | else throw("List size exceeds 6") | |
439 | 442 | ||
440 | - | | |
443 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
441 | 444 | } | |
442 | - | makeString( | |
445 | + | makeString(cb, "_") | |
443 | 446 | } | |
444 | 447 | ||
445 | 448 | ||
446 | - | func | |
447 | - | let | |
448 | - | | |
449 | + | func cq (cl,cm,cn) = { | |
450 | + | let ck = split(valueOrElse(getString(aT()), "0_0_0_0_0_0"), "_") | |
451 | + | cj(ck, cl, cm, cn) | |
449 | 452 | } | |
450 | 453 | ||
451 | 454 | ||
452 | - | func | |
455 | + | func cr (cs) = [(size(split(cs, "A")) - 1), (size(split(cs, "B")) - 1), (size(split(cs, "C")) - 1), (size(split(cs, "D")) - 1), (size(split(cs, "E")) - 1), (size(split(cs, "F")) - 1)] | |
453 | 456 | ||
454 | 457 | ||
455 | - | func | |
456 | - | let c = | |
458 | + | func ct (bE) = { | |
459 | + | let c = bE | |
457 | 460 | if (("S" == c)) | |
458 | 461 | then m | |
459 | 462 | else if (("M" == c)) | |
460 | 463 | then n | |
461 | 464 | else if (("L" == c)) | |
462 | 465 | then o | |
463 | 466 | else if (("XL" == c)) | |
464 | 467 | then p | |
465 | 468 | else if (("XXL" == c)) | |
466 | 469 | then q | |
467 | 470 | else throw("Unknown land size") | |
468 | 471 | } | |
469 | 472 | ||
470 | 473 | ||
471 | - | func | |
472 | - | func | |
473 | - | then toString((parseIntValue( | |
474 | - | else | |
474 | + | func cu (cv,ad,cw) = { | |
475 | + | func cx (bQ,cp) = (bQ :+ (if ((cp == ad)) | |
476 | + | then toString((parseIntValue(cv[cp]) - cw)) | |
477 | + | else cv[cp])) | |
475 | 478 | ||
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | func | |
481 | - | then | |
482 | - | else | |
479 | + | let cb = { | |
480 | + | let bS = [0, 1, 2, 3, 4, 5] | |
481 | + | let bT = size(bS) | |
482 | + | let bU = nil | |
483 | + | func bV (bW,bX) = if ((bX >= bT)) | |
484 | + | then bW | |
485 | + | else cx(bW, bS[bX]) | |
483 | 486 | ||
484 | - | func | |
485 | - | then | |
487 | + | func bY (bW,bX) = if ((bX >= bT)) | |
488 | + | then bW | |
486 | 489 | else throw("List size exceeds 6") | |
487 | 490 | ||
488 | - | | |
491 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
489 | 492 | } | |
490 | - | makeString( | |
493 | + | makeString(cb, "_") | |
491 | 494 | } | |
492 | 495 | ||
493 | 496 | ||
494 | - | func | |
495 | - | func | |
496 | - | let | |
497 | - | ( | |
497 | + | func cy (cz,cl,cA,cm,cB) = { | |
498 | + | func cC (bQ,cp) = { | |
499 | + | let cD = ((fraction(cA, cB, s) * cl[cp]) * cm) | |
500 | + | (bQ :+ toString((parseIntValue(cz[cp]) + cD))) | |
498 | 501 | } | |
499 | 502 | ||
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | func | |
505 | - | then | |
506 | - | else | |
503 | + | let cb = { | |
504 | + | let bS = [0, 1, 2, 3, 4, 5] | |
505 | + | let bT = size(bS) | |
506 | + | let bU = nil | |
507 | + | func bV (bW,bX) = if ((bX >= bT)) | |
508 | + | then bW | |
509 | + | else cC(bW, bS[bX]) | |
507 | 510 | ||
508 | - | func | |
509 | - | then | |
511 | + | func bY (bW,bX) = if ((bX >= bT)) | |
512 | + | then bW | |
510 | 513 | else throw("List size exceeds 6") | |
511 | 514 | ||
512 | - | | |
515 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
513 | 516 | } | |
514 | - | makeString( | |
517 | + | makeString(cb, "_") | |
515 | 518 | } | |
516 | 519 | ||
517 | 520 | ||
518 | - | func | |
519 | - | func | |
520 | - | let | |
521 | - | $Tuple2(( | |
521 | + | func cE (cl,cA,cm,cB) = { | |
522 | + | func cC (bQ,cp) = { | |
523 | + | let cD = ((fraction(cA, cB, s) * cl[cp]) * cm) | |
524 | + | $Tuple2((bQ._1 :+ cD), (bQ._2 + cD)) | |
522 | 525 | } | |
523 | 526 | ||
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | func | |
528 | - | then | |
529 | - | else | |
527 | + | let bS = [0, 1, 2, 3, 4, 5] | |
528 | + | let bT = size(bS) | |
529 | + | let bU = $Tuple2(nil, 0) | |
530 | + | func bV (bW,bX) = if ((bX >= bT)) | |
531 | + | then bW | |
532 | + | else cC(bW, bS[bX]) | |
530 | 533 | ||
531 | - | func | |
532 | - | then | |
534 | + | func bY (bW,bX) = if ((bX >= bT)) | |
535 | + | then bW | |
533 | 536 | else throw("List size exceeds 6") | |
534 | 537 | ||
535 | - | | |
538 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
536 | 539 | } | |
537 | 540 | ||
538 | 541 | ||
539 | - | func | |
540 | - | let | |
541 | - | let | |
542 | - | if (( | |
543 | - | then $Tuple2(makeString( | |
544 | - | else if (( | |
542 | + | func cF (cG,cH,cI,cJ) = { | |
543 | + | let cK = cI._1 | |
544 | + | let cL = cI._2 | |
545 | + | if ((cL == 0)) | |
546 | + | then $Tuple2(makeString(cG, "_"), makeString(cH, "_")) | |
547 | + | else if ((cJ >= cL)) | |
545 | 548 | then { | |
546 | - | func | |
549 | + | func cM (bQ,cp) = (bQ :+ toString((parseIntValue(cG[cp]) + cK[cp]))) | |
547 | 550 | ||
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | func | |
553 | - | then | |
554 | - | else | |
551 | + | let cb = { | |
552 | + | let bS = [0, 1, 2, 3, 4, 5] | |
553 | + | let bT = size(bS) | |
554 | + | let bU = nil | |
555 | + | func bV (bW,bX) = if ((bX >= bT)) | |
556 | + | then bW | |
557 | + | else cM(bW, bS[bX]) | |
555 | 558 | ||
556 | - | func | |
557 | - | then | |
559 | + | func bY (bW,bX) = if ((bX >= bT)) | |
560 | + | then bW | |
558 | 561 | else throw("List size exceeds 6") | |
559 | 562 | ||
560 | - | | |
563 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
561 | 564 | } | |
562 | - | $Tuple2(makeString( | |
565 | + | $Tuple2(makeString(cb, "_"), makeString(cH, "_")) | |
563 | 566 | } | |
564 | 567 | else { | |
565 | - | func | |
566 | - | let | |
567 | - | $Tuple2(( | |
568 | + | func cN (bQ,cp) = { | |
569 | + | let cO = fraction(cK[cp], cJ, cL) | |
570 | + | $Tuple2((bQ._1 :+ toString((parseIntValue(cG[cp]) + cO))), (bQ._2 :+ toString(((parseIntValue(cH[cp]) + cK[cp]) - cO)))) | |
568 | 571 | } | |
569 | 572 | ||
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | func | |
575 | - | then | |
576 | - | else | |
573 | + | let cb = { | |
574 | + | let bS = [0, 1, 2, 3, 4, 5] | |
575 | + | let bT = size(bS) | |
576 | + | let bU = $Tuple2(nil, nil) | |
577 | + | func bV (bW,bX) = if ((bX >= bT)) | |
578 | + | then bW | |
579 | + | else cN(bW, bS[bX]) | |
577 | 580 | ||
578 | - | func | |
579 | - | then | |
581 | + | func bY (bW,bX) = if ((bX >= bT)) | |
582 | + | then bW | |
580 | 583 | else throw("List size exceeds 6") | |
581 | 584 | ||
582 | - | | |
585 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
583 | 586 | } | |
584 | - | $Tuple2(makeString( | |
587 | + | $Tuple2(makeString(cb._1, "_"), makeString(cb._2, "_")) | |
585 | 588 | } | |
586 | 589 | } | |
587 | 590 | ||
588 | 591 | ||
589 | - | func | |
590 | - | then | |
591 | - | else -( | |
592 | + | func cP (cQ) = if ((cQ >= toBigInt(0))) | |
593 | + | then cQ | |
594 | + | else -(cQ) | |
592 | 595 | ||
593 | 596 | ||
594 | - | let | |
597 | + | let cR = [[1, 4, 9, 10, 15], [5, 8, 13, 14, 15], [6, 9, 14, 15, 16], [4, 7, 8, 13, 18], [1, 6, 7, 15, 19]] | |
595 | 598 | ||
596 | - | func | |
597 | - | let | |
598 | - | let | |
599 | + | func cS (bJ,cT) = { | |
600 | + | let cU = toInt((bJ % G)) | |
601 | + | let cV = if ((cT[0] > cU)) | |
599 | 602 | then "A" | |
600 | - | else if (( | |
603 | + | else if ((cT[1] > cU)) | |
601 | 604 | then "B" | |
602 | - | else if (( | |
605 | + | else if ((cT[2] > cU)) | |
603 | 606 | then "C" | |
604 | - | else if (( | |
607 | + | else if ((cT[3] > cU)) | |
605 | 608 | then "D" | |
606 | - | else if (( | |
609 | + | else if ((cT[4] > cU)) | |
607 | 610 | then "E" | |
608 | 611 | else "F" | |
609 | - | | |
612 | + | cV | |
610 | 613 | } | |
611 | 614 | ||
612 | 615 | ||
613 | - | func | |
614 | - | let | |
615 | - | func | |
616 | + | func cW (cX,cY) = { | |
617 | + | let cZ = cR[cY] | |
618 | + | func da (bQ,bR) = $Tuple2((((((bQ._1 + cS(bQ._2, cZ)) + cS((bQ._2 / G), cZ)) + cS((bQ._2 / H), cZ)) + cS((bQ._2 / I), cZ)) + cS((bQ._2 / J), cZ)), (bQ._2 / K)) | |
616 | 619 | ||
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | func | |
622 | - | then | |
623 | - | else | |
620 | + | let db = { | |
621 | + | let bS = [1, 2, 3, 4, 5] | |
622 | + | let bT = size(bS) | |
623 | + | let bU = $Tuple2("", (cX / F)) | |
624 | + | func bV (bW,bX) = if ((bX >= bT)) | |
625 | + | then bW | |
626 | + | else da(bW, bS[bX]) | |
624 | 627 | ||
625 | - | func | |
626 | - | then | |
628 | + | func bY (bW,bX) = if ((bX >= bT)) | |
629 | + | then bW | |
627 | 630 | else throw("List size exceeds 5") | |
628 | 631 | ||
629 | - | | |
632 | + | bY(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5) | |
630 | 633 | } | |
631 | - | | |
634 | + | db._1 | |
632 | 635 | } | |
633 | 636 | ||
634 | 637 | ||
635 | - | func | |
636 | - | let | |
637 | - | [toString(valueOrElse(parseInt( | |
638 | - | then | |
639 | - | else "0_0_0_0_0_0", if ((size(split( | |
640 | - | then | |
641 | - | else "0_0_0_0_0_0", | |
638 | + | func dc (dd) = { | |
639 | + | let de = split(valueOrElse(getString(dd), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
640 | + | [toString(valueOrElse(parseInt(de[bf]), 0)), if ((size(split(de[bg], "_")) == l)) | |
641 | + | then de[bg] | |
642 | + | else "0_0_0_0_0_0", if ((size(split(de[bh], "_")) == l)) | |
643 | + | then de[bh] | |
644 | + | else "0_0_0_0_0_0", de[bi]] | |
642 | 645 | } | |
643 | 646 | ||
644 | 647 | ||
645 | - | func | |
646 | - | let | |
647 | - | ((v * (parseIntValue( | |
648 | + | func df (dg) = { | |
649 | + | let dh = split(dg, "_") | |
650 | + | ((v * (parseIntValue(dh[1]) + 1)) * parseIntValue(dh[0])) | |
648 | 651 | } | |
649 | 652 | ||
650 | 653 | ||
651 | - | func | |
652 | - | let | |
653 | - | func | |
654 | + | func di (dj) = { | |
655 | + | let dk = dj[bm] | |
656 | + | func dl (bQ,dm) = (bQ + parseIntValue(dm)) | |
654 | 657 | ||
655 | - | func | |
656 | - | let ad = | |
657 | - | let | |
658 | - | let | |
659 | - | $Tuple2((ad + 1), ( | |
658 | + | func dn (bQ,dm) = { | |
659 | + | let ad = bQ._1 | |
660 | + | let do = bC[ad] | |
661 | + | let dp = (((parseIntValue(dm) + do) - 1) / do) | |
662 | + | $Tuple2((ad + 1), (bQ._2 + (dp * E))) | |
660 | 663 | } | |
661 | 664 | ||
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | func | |
667 | - | then | |
668 | - | else | |
665 | + | let dq = { | |
666 | + | let bS = split(dj[bk], "_") | |
667 | + | let bT = size(bS) | |
668 | + | let bU = 0 | |
669 | + | func bV (bW,bX) = if ((bX >= bT)) | |
670 | + | then bW | |
671 | + | else dl(bW, bS[bX]) | |
669 | 672 | ||
670 | - | func | |
671 | - | then | |
673 | + | func bY (bW,bX) = if ((bX >= bT)) | |
674 | + | then bW | |
672 | 675 | else throw("List size exceeds 6") | |
673 | 676 | ||
674 | - | | |
677 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
675 | 678 | } | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | func | |
681 | - | then | |
682 | - | else | |
679 | + | let dr = { | |
680 | + | let bS = split(dj[bl], "_") | |
681 | + | let bT = size(bS) | |
682 | + | let bU = 0 | |
683 | + | func ds (bW,bX) = if ((bX >= bT)) | |
684 | + | then bW | |
685 | + | else dl(bW, bS[bX]) | |
683 | 686 | ||
684 | - | func | |
685 | - | then | |
687 | + | func dt (bW,bX) = if ((bX >= bT)) | |
688 | + | then bW | |
686 | 689 | else throw("List size exceeds 6") | |
687 | 690 | ||
688 | - | ds( | |
691 | + | dt(ds(ds(ds(ds(ds(ds(bU, 0), 1), 2), 3), 4), 5), 6) | |
689 | 692 | } | |
690 | - | let | |
693 | + | let du = if ((dk == "")) | |
691 | 694 | then 0 | |
692 | - | else ( let | |
693 | - | let | |
694 | - | let | |
695 | - | func | |
696 | - | then | |
697 | - | else | |
695 | + | else ( let bS = split_4C(dk, "_") | |
696 | + | let bT = size(bS) | |
697 | + | let bU = $Tuple2(0, 0) | |
698 | + | func dv (bW,bX) = if ((bX >= bT)) | |
699 | + | then bW | |
700 | + | else dn(bW, bS[bX]) | |
698 | 701 | ||
699 | - | func | |
700 | - | then | |
702 | + | func dw (bW,bX) = if ((bX >= bT)) | |
703 | + | then bW | |
701 | 704 | else throw("List size exceeds 50") | |
702 | 705 | ||
703 | - | dv( | |
704 | - | (( | |
706 | + | dw(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(bU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._2 | |
707 | + | ((dq + dr) + du) | |
705 | 708 | } | |
706 | 709 | ||
707 | 710 | ||
708 | - | func | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | then makeString(["0", toString( | |
711 | + | func dx (dy,dz,dA) = { | |
712 | + | let dg = ((toString(dz) + "_") + toString(dA)) | |
713 | + | let dB = df(dg) | |
714 | + | let dC = valueOrElse(getString(dy), (dg + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
715 | + | let dD = split_4C(dC, ":") | |
716 | + | let dE = di(dD) | |
717 | + | let dF = if ((5 > size(dD))) | |
718 | + | then makeString(["0", toString(dE), toString((dB - dE)), toString(dB)], "_") | |
716 | 719 | else { | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | then parseIntValue( | |
721 | - | else | |
722 | - | makeString([toString( | |
720 | + | let dG = split(dD[bn], "_") | |
721 | + | let dH = parseIntValue(dG[bo]) | |
722 | + | let dI = if ((size(dG) > 1)) | |
723 | + | then parseIntValue(dG[bp]) | |
724 | + | else dE | |
725 | + | makeString([toString(dH), toString(dI), toString(((dB - dH) - dI)), toString(dB)], "_") | |
723 | 726 | } | |
724 | - | [ | |
725 | - | then | |
726 | - | else "0_0_0_0_0_0", if ((size(split( | |
727 | - | then | |
728 | - | else "0_0_0_0_0_0", | |
727 | + | [dD[bj], if ((size(split(dD[bk], "_")) == l)) | |
728 | + | then dD[bk] | |
729 | + | else "0_0_0_0_0_0", if ((size(split(dD[bl], "_")) == l)) | |
730 | + | then dD[bl] | |
731 | + | else "0_0_0_0_0_0", dD[bm], dF] | |
729 | 732 | } | |
730 | 733 | ||
731 | 734 | ||
732 | - | func | |
733 | - | let | |
734 | - | let | |
735 | - | (( | |
735 | + | func dJ (dj) = { | |
736 | + | let dK = di(dj) | |
737 | + | let dL = parseIntValue(split(dj[bn], "_")[bo]) | |
738 | + | ((df(dj[bj]) - dK) - dL) | |
736 | 739 | } | |
737 | 740 | ||
738 | 741 | ||
739 | - | func | |
740 | - | let | |
741 | - | then ((( | |
742 | - | else -((((-( | |
743 | - | ( | |
742 | + | func dM (cw,do) = { | |
743 | + | let dp = if ((cw >= 0)) | |
744 | + | then (((cw + do) - 1) / do) | |
745 | + | else -((((-(cw) + do) - 1) / do)) | |
746 | + | (dp * E) | |
744 | 747 | } | |
745 | 748 | ||
746 | 749 | ||
747 | - | func | |
750 | + | func dN (dO,dj,dP) = if ((size(dO) != 3)) | |
748 | 751 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
749 | 752 | else { | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | + | let dQ = split(dO[0], "_") | |
754 | + | let dR = split(dO[1], "_") | |
755 | + | let dS = if ((dO[2] == "")) | |
753 | 756 | then nil | |
754 | - | else split( | |
755 | - | if ((size( | |
757 | + | else split(dO[2], "_") | |
758 | + | if ((size(dQ) != l)) | |
756 | 759 | then throw("All 6 resources should be passed") | |
757 | - | else if ((size( | |
760 | + | else if ((size(dR) != l)) | |
758 | 761 | then throw("All 6 materials should be passed") | |
759 | 762 | else { | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
763 | + | let cJ = dJ(dj) | |
764 | + | let dT = split(dj[bk], "_") | |
765 | + | let dU = split(dj[bl], "_") | |
766 | + | let dV = if ((dj[bm] == "")) | |
764 | 767 | then nil | |
765 | - | else split( | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
768 | + | else split(dj[bm], "_") | |
769 | + | let cH = split(dP[bg], "_") | |
770 | + | let dW = split(dP[bh], "_") | |
771 | + | let dX = if ((dP[bi] == "")) | |
769 | 772 | then nil | |
770 | - | else split( | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | if (( | |
777 | - | then $Tuple4(( | |
778 | - | else if (( | |
779 | - | then if (( | |
780 | - | then throw((((("Attempt to take " + | |
781 | - | else $Tuple4(( | |
782 | - | else if ((-( | |
783 | - | then throw((((("Attempt to take " + toString(-( | |
784 | - | else $Tuple4(( | |
773 | + | else split(dP[bi], "_") | |
774 | + | func dY (bQ,dm) = { | |
775 | + | let cp = bQ._1 | |
776 | + | let dZ = parseIntValue(dm) | |
777 | + | let ea = parseIntValue(dT[cp]) | |
778 | + | let eb = parseIntValue(cH[cp]) | |
779 | + | if ((dZ == 0)) | |
780 | + | then $Tuple4((cp + 1), (bQ._2 :+ dT[cp]), (bQ._3 :+ cH[cp]), bQ._4) | |
781 | + | else if ((dZ > 0)) | |
782 | + | then if ((dZ > eb)) | |
783 | + | then throw((((("Attempt to take " + dm) + " from backpack, but only ") + toString(eb)) + " available")) | |
784 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ea + dZ))), (bQ._3 :+ toString((eb - dZ))), (bQ._4 + dZ)) | |
785 | + | else if ((-(dZ) > ea)) | |
786 | + | then throw((((("Attempt to take " + toString(-(dZ))) + " from warehouse, but only ") + toString(ea)) + " available")) | |
787 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ea + dZ))), (bQ._3 :+ toString((eb - dZ))), (bQ._4 + dZ)) | |
785 | 788 | } | |
786 | 789 | ||
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | func | |
792 | - | then | |
793 | - | else | |
790 | + | let cb = { | |
791 | + | let bS = dQ | |
792 | + | let bT = size(bS) | |
793 | + | let bU = $Tuple4(0, nil, nil, 0) | |
794 | + | func bV (bW,bX) = if ((bX >= bT)) | |
795 | + | then bW | |
796 | + | else dY(bW, bS[bX]) | |
794 | 797 | ||
795 | - | func | |
796 | - | then | |
798 | + | func bY (bW,bX) = if ((bX >= bT)) | |
799 | + | then bW | |
797 | 800 | else throw("List size exceeds 6") | |
798 | 801 | ||
799 | - | | |
802 | + | bY(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6) | |
800 | 803 | } | |
801 | - | func | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
807 | - | then $Tuple4(( | |
808 | - | else if (( | |
809 | - | then if (( | |
810 | - | then throw((((("Attempt to take " + | |
811 | - | else $Tuple4(( | |
812 | - | else if ((-( | |
813 | - | then throw((((("Attempt to take " + toString(-( | |
814 | - | else $Tuple4(( | |
804 | + | func ec (bQ,dm) = { | |
805 | + | let cp = bQ._1 | |
806 | + | let dZ = parseIntValue(dm) | |
807 | + | let ed = parseIntValue(dU[cp]) | |
808 | + | let ee = parseIntValue(dW[cp]) | |
809 | + | if ((dZ == 0)) | |
810 | + | then $Tuple4((cp + 1), (bQ._2 :+ dU[cp]), (bQ._3 :+ dW[cp]), bQ._4) | |
811 | + | else if ((dZ > 0)) | |
812 | + | then if ((dZ > ee)) | |
813 | + | then throw((((("Attempt to take " + dm) + " from backpack, but only ") + toString(ee)) + " available")) | |
814 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ed + dZ))), (bQ._3 :+ toString((ee - dZ))), (bQ._4 + dZ)) | |
815 | + | else if ((-(dZ) > ed)) | |
816 | + | then throw((((("Attempt to take " + toString(-(dZ))) + " from warehouse, but only ") + toString(ed)) + " available")) | |
817 | + | else $Tuple4((cp + 1), (bQ._2 :+ toString((ed + dZ))), (bQ._3 :+ toString((ee - dZ))), (bQ._4 + dZ)) | |
815 | 818 | } | |
816 | 819 | ||
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | func | |
822 | - | then | |
823 | - | else | |
820 | + | let ef = { | |
821 | + | let bS = dR | |
822 | + | let bT = size(bS) | |
823 | + | let bU = $Tuple4(0, nil, nil, cb._4) | |
824 | + | func ds (bW,bX) = if ((bX >= bT)) | |
825 | + | then bW | |
826 | + | else ec(bW, bS[bX]) | |
824 | 827 | ||
825 | - | func | |
826 | - | then | |
828 | + | func dt (bW,bX) = if ((bX >= bT)) | |
829 | + | then bW | |
827 | 830 | else throw("List size exceeds 6") | |
828 | 831 | ||
829 | - | ds( | |
832 | + | dt(ds(ds(ds(ds(ds(ds(bU, 0), 1), 2), 3), 4), 5), 6) | |
830 | 833 | } | |
831 | - | func | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | then parseIntValue( | |
834 | + | func eg (bQ,dm) = { | |
835 | + | let cp = bQ._1 | |
836 | + | let do = bC[cp] | |
837 | + | let dZ = parseIntValue(dm) | |
838 | + | let eh = if ((size(dV) > cp)) | |
839 | + | then parseIntValue(dV[cp]) | |
837 | 840 | else 0 | |
838 | - | let | |
839 | - | then parseIntValue( | |
841 | + | let ei = if ((size(dX) > cp)) | |
842 | + | then parseIntValue(dX[cp]) | |
840 | 843 | else 0 | |
841 | - | if (( | |
842 | - | then $Tuple4(( | |
843 | - | else if (( | |
844 | - | then if (( | |
845 | - | then throw((((("Attempt to take " + | |
844 | + | if ((dZ == 0)) | |
845 | + | then $Tuple4((cp + 1), (bQ._2 :+ toString(eh)), (bQ._3 :+ toString(ei)), bQ._4) | |
846 | + | else if ((dZ > 0)) | |
847 | + | then if ((dZ > ei)) | |
848 | + | then throw((((("Attempt to take " + dm) + " from backpack, but only ") + toString(ei)) + " available")) | |
846 | 849 | else { | |
847 | - | let | |
848 | - | $Tuple4(( | |
850 | + | let ej = (dM((eh + dZ), do) - dM(eh, do)) | |
851 | + | $Tuple4((cp + 1), (bQ._2 :+ toString((eh + dZ))), (bQ._3 :+ toString((ei - dZ))), (bQ._4 + ej)) | |
849 | 852 | } | |
850 | - | else if ((-( | |
851 | - | then throw((((("Attempt to take " + toString(-( | |
853 | + | else if ((-(dZ) > eh)) | |
854 | + | then throw((((("Attempt to take " + toString(-(dZ))) + " from warehouse, but only ") + toString(eh)) + " available")) | |
852 | 855 | else { | |
853 | - | let | |
854 | - | $Tuple4(( | |
856 | + | let ej = (dM((eh + dZ), do) - dM(eh, do)) | |
857 | + | $Tuple4((cp + 1), (bQ._2 :+ toString((eh + dZ))), (bQ._3 :+ toString((ei - dZ))), (bQ._4 + ej)) | |
855 | 858 | } | |
856 | 859 | } | |
857 | 860 | ||
858 | - | let | |
861 | + | let de = if ((size(dS) != 0)) | |
859 | 862 | then { | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | func | |
864 | - | then | |
865 | - | else | |
863 | + | let bS = dS | |
864 | + | let bT = size(bS) | |
865 | + | let bU = $Tuple4(0, nil, nil, ef._4) | |
866 | + | func dv (bW,bX) = if ((bX >= bT)) | |
867 | + | then bW | |
868 | + | else eg(bW, bS[bX]) | |
866 | 869 | ||
867 | - | func | |
868 | - | then | |
870 | + | func dw (bW,bX) = if ((bX >= bT)) | |
871 | + | then bW | |
869 | 872 | else throw("List size exceeds 50") | |
870 | 873 | ||
871 | - | dv( | |
874 | + | dw(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(dv(bU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
872 | 875 | } | |
873 | - | else $Tuple4(0, | |
874 | - | let | |
875 | - | if (( | |
876 | - | then throw((((("Attempt to put total " + toString( | |
877 | - | else $Tuple7(makeString( | |
876 | + | else $Tuple4(0, dV, dX, ef._4) | |
877 | + | let ek = de._4 | |
878 | + | if ((ek > cJ)) | |
879 | + | then throw((((("Attempt to put total " + toString(ek)) + " stuff, but only ") + toString(cJ)) + " warehouse space left")) | |
880 | + | else $Tuple7(makeString(cb._2, "_"), makeString(ef._2, "_"), makeString(de._2, "_"), makeString(cb._3, "_"), makeString(ef._3, "_"), makeString(de._3, "_"), ek) | |
878 | 881 | } | |
879 | 882 | } | |
880 | 883 | ||
881 | 884 | ||
882 | - | func | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | let al = toString( | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | $Tuple2([IntegerEntry(aj(), ( | |
885 | + | func el (em,en) = { | |
886 | + | let aW = toString(em) | |
887 | + | let eo = cP(toBigInt(en)) | |
888 | + | let ep = valueOrElse(getInteger(aj()), (O + 1)) | |
889 | + | let al = toString(ep) | |
890 | + | let cY = toInt((eo % F)) | |
891 | + | let cs = cW(eo, cY) | |
892 | + | let eq = M[cY] | |
893 | + | let er = Issue(bD(al, "S"), makeString([al, "S", cs, eq], "_"), 1, 0, false) | |
894 | + | let an = calculateAssetId(er) | |
895 | + | let es = toBase58String(an) | |
896 | + | $Tuple2([IntegerEntry(aj(), (ep + 1)), er, StringEntry(ak(al), es), StringEntry(am(es), aW), StringEntry(aE(al), aW), IntegerEntry(as(es), 0), IntegerEntry(at(es, aW), 0), ScriptTransfer(em, 1, an)], $Tuple2(es, eq)) | |
894 | 897 | } | |
895 | 898 | ||
896 | 899 | ||
897 | - | func | |
900 | + | func et (cd,em,en,eu,ev) = if (!(sigVerify_8Kb(eu, ev, g))) | |
898 | 901 | then throw("signature does not match") | |
899 | 902 | else { | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | if (( | |
903 | + | let dh = split(toUtf8String(eu), ";") | |
904 | + | let ew = split(split(dh[0], "|")[0], "_") | |
905 | + | let ex = parseIntValue(ew[0]) | |
906 | + | let ey = parseIntValue(ew[1]) | |
907 | + | let ez = split(dh[1], ":") | |
908 | + | let eA = split(ez[0], "_") | |
909 | + | if ((eA[1] != "E")) | |
907 | 910 | then throw("expedition target location type should be E") | |
908 | 911 | else { | |
909 | - | let | |
910 | - | if (if (( | |
912 | + | let eB = parseIntValue(ez[1]) | |
913 | + | if (if ((eB > (lastBlock.timestamp + t))) | |
911 | 914 | then true | |
912 | - | else ((lastBlock.timestamp - t) > | |
915 | + | else ((lastBlock.timestamp - t) > eB)) | |
913 | 916 | then throw("signature outdated") | |
914 | 917 | else { | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | if (( | |
920 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
921 | - | else if ((0 >= | |
918 | + | let aW = toString(em) | |
919 | + | let aQ = valueOrErrorMessage(getString(aO(aW)), "You don't have a duck staked") | |
920 | + | let eC = aS(aQ) | |
921 | + | let eD = valueOrElse(getInteger(eC), 100) | |
922 | + | if ((eD != ex)) | |
923 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(eC), 100))) + " from state does not match one from flight log=") + toString(ex))) | |
924 | + | else if ((0 >= ex)) | |
922 | 925 | then throw("You can't fly with zero health") | |
923 | - | else if ((0 >= | |
924 | - | then $Tuple2(((if (!( | |
925 | - | then [ScriptTransfer( | |
926 | - | else nil) :+ IntegerEntry( | |
926 | + | else if ((0 >= ey)) | |
927 | + | then $Tuple2(((if (!(cd)) | |
928 | + | then [ScriptTransfer(em, B, b)] | |
929 | + | else nil) :+ IntegerEntry(eC, 0)), "") | |
927 | 930 | else { | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | $Tuple2(((( | |
931 | + | let dd = aP(aQ) | |
932 | + | let dP = dc(dd) | |
933 | + | let eE = split(dP[bh], "_") | |
934 | + | let eF = makeString(cc(cd, eE, A), "_") | |
935 | + | let eG = el(em, en) | |
936 | + | let es = eG._2._1 | |
937 | + | $Tuple2((((eG._1 :+ StringEntry(aR(aQ), makeString([eG._2._2, "L", es], "_"))) :+ IntegerEntry(eC, ey)) :+ StringEntry(dd, makeString([dP[bf], dP[bg], eF, dP[bi]], ":"))), es) | |
935 | 938 | } | |
936 | 939 | } | |
937 | 940 | } | |
938 | 941 | } | |
939 | 942 | ||
940 | 943 | ||
941 | - | func | |
942 | - | let | |
943 | - | let | |
944 | - | then | |
944 | + | func eH (aD,eI) = { | |
945 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
946 | + | let eJ = valueOrElse(getInteger(ax(N, aD)), if (valueOrElse(getBoolean(av(aD)), false)) | |
947 | + | then eI | |
945 | 948 | else 0) | |
946 | - | let | |
947 | - | let | |
948 | - | ((r + fraction(r, (( | |
949 | + | let eK = (dA / 6) | |
950 | + | let eL = (dA / 7) | |
951 | + | ((r + fraction(r, ((dA + eK) + (2 * eL)), 5)) + fraction(r, eJ, (eI * 5))) | |
949 | 952 | } | |
950 | 953 | ||
951 | 954 | ||
952 | - | func | |
953 | - | let | |
954 | - | then $Tuple2( | |
955 | + | func eM (ai,eN,eO) = { | |
956 | + | let eP = if ((eN == bs)) | |
957 | + | then $Tuple2(eO, valueOrElse(getString(aO(ai)), "")) | |
955 | 958 | else { | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | if (( | |
960 | - | then throw((("Duck location type is " + | |
961 | - | else $Tuple2( | |
959 | + | let aQ = valueOrErrorMessage(getString(aO(ai)), "You don't have a duck staked") | |
960 | + | let eQ = valueOrElse(getString(aR(aQ)), k) | |
961 | + | let eR = split(value(eQ), "_") | |
962 | + | if ((eR[bd] != "L")) | |
963 | + | then throw((("Duck location type is " + eR[bd]) + ", but should be L")) | |
964 | + | else $Tuple2(eR[be], aQ) | |
962 | 965 | } | |
963 | - | let | |
964 | - | let | |
965 | - | let | |
966 | - | let | |
967 | - | let | |
968 | - | let | |
969 | - | if (( | |
966 | + | let aD = eP._1 | |
967 | + | let eS = eP._2 | |
968 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
969 | + | let eU = ar(aD) | |
970 | + | let eV = valueOrErrorMessage(getInteger(eU), (("Land " + eT.name) + " is not staked")) | |
971 | + | let eW = valueOrErrorMessage(getString(am(aD)), (("NFT " + eT.name) + " is orphaned")) | |
972 | + | if ((eW != ai)) | |
970 | 973 | then throw((i + " is not yours")) | |
971 | 974 | else { | |
972 | - | let | |
973 | - | $Tuple4( | |
975 | + | let eX = split(eT.description, "_") | |
976 | + | $Tuple4(eS, aD, eX, eV) | |
974 | 977 | } | |
975 | 978 | } | |
976 | 979 | ||
977 | 980 | ||
978 | - | func | |
981 | + | func eY (ai,cw,eN,eO) = if ((0 > cw)) | |
979 | 982 | then throw("Negative amount") | |
980 | 983 | else { | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | let | |
985 | - | if ((0 > | |
986 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
984 | + | let eZ = eM(ai, eN, eO) | |
985 | + | let bE = eZ._3[aZ] | |
986 | + | let cl = cr(eZ._3[ba]) | |
987 | + | let cA = (lastBlock.timestamp - eZ._4) | |
988 | + | if ((0 > cA)) | |
989 | + | then throw(((("Saved timestamp is in future, saved = " + toString(eZ._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
987 | 990 | else { | |
988 | - | let | |
989 | - | let | |
990 | - | let | |
991 | - | if (( | |
992 | - | then throw(((("Not enough resources, available = " + toString( | |
991 | + | let eI = ct(bE) | |
992 | + | let fa = eH(eZ._2, eI) | |
993 | + | let fb = fraction(cA, (fa * eI), s) | |
994 | + | if ((cw > fb)) | |
995 | + | then throw(((("Not enough resources, available = " + toString(fb)) + ", requested = ") + toString(cw))) | |
993 | 996 | else { | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | let | |
998 | - | let | |
999 | - | let | |
1000 | - | let | |
1001 | - | let | |
1002 | - | let | |
1003 | - | if (if (( | |
1004 | - | then ( | |
997 | + | let fc = fraction((fb - cw), s, (fa * eI)) | |
998 | + | let fd = (lastBlock.timestamp - fc) | |
999 | + | let dz = (eI / m) | |
1000 | + | let cI = cE(cl, (cA - fc), dz, fa) | |
1001 | + | let dy = aC(eZ._2) | |
1002 | + | let dA = valueOrElse(getInteger(as(eZ._2)), 0) | |
1003 | + | let dj = dx(dy, dz, dA) | |
1004 | + | let dG = split(dj[bn], "_") | |
1005 | + | let cJ = parseIntValue(dG[bq]) | |
1006 | + | if (if ((eN == bs)) | |
1007 | + | then (cw > cJ) | |
1005 | 1008 | else false) | |
1006 | - | then throw((("Only " + toString( | |
1009 | + | then throw((("Only " + toString(cJ)) + " space left in warehouse")) | |
1007 | 1010 | else { | |
1008 | - | let | |
1009 | - | let | |
1010 | - | let | |
1011 | - | let | |
1012 | - | let | |
1013 | - | then $Tuple4( | |
1014 | - | else if (( | |
1015 | - | then $Tuple4( | |
1011 | + | let dd = aP(eZ._1) | |
1012 | + | let dP = dc(dd) | |
1013 | + | let cH = split(dP[bg], "_") | |
1014 | + | let cG = split(dj[bk], "_") | |
1015 | + | let fe = if ((eN == bs)) | |
1016 | + | then $Tuple4(cy(cG, cl, (cA - fc), dz, fa), dP[bg], (parseIntValue(dG[bp]) + cI._2), (parseIntValue(dG[bq]) - cI._2)) | |
1017 | + | else if ((eN == bt)) | |
1018 | + | then $Tuple4(dj[bk], cy(cH, cl, (cA - fc), dz, fa), parseIntValue(dG[bp]), parseIntValue(dG[bq])) | |
1016 | 1019 | else { | |
1017 | - | let | |
1018 | - | let | |
1019 | - | $Tuple4( | |
1020 | + | let ff = cF(cG, cH, cI, cJ) | |
1021 | + | let fg = min([parseIntValue(dG[bq]), cI._2]) | |
1022 | + | $Tuple4(ff._1, ff._2, (parseIntValue(dG[bp]) + fg), (parseIntValue(dG[bq]) - fg)) | |
1020 | 1023 | } | |
1021 | - | let | |
1022 | - | let | |
1023 | - | let | |
1024 | - | let | |
1025 | - | $Tuple5([IntegerEntry( | |
1024 | + | let fh = fe._1 | |
1025 | + | let fi = fe._2 | |
1026 | + | let fj = fe._3 | |
1027 | + | let fk = fe._4 | |
1028 | + | $Tuple5([IntegerEntry(ar(eZ._2), fd), IntegerEntry(aA(i, eZ._2, ai), fd)], dd, [dP[bf], fi, dP[bh], dP[bi]], dy, [dj[bj], fh, dj[bl], dj[bm], makeString([dG[bo], toString(fj), toString(fk), dG[br]], "_")]) | |
1026 | 1029 | } | |
1027 | 1030 | } | |
1028 | 1031 | } | |
1029 | 1032 | } | |
1030 | 1033 | ||
1031 | 1034 | ||
1032 | - | func | |
1033 | - | let | |
1034 | - | let | |
1035 | - | let | |
1036 | - | | |
1035 | + | func fl (ai,aD,eI,eN) = { | |
1036 | + | let eU = ar(aD) | |
1037 | + | let eV = value(getInteger(eU)) | |
1038 | + | let fb = (fraction((lastBlock.timestamp - eV), eH(aD, eI), s) * eI) | |
1039 | + | eY(ai, fb, eN, aD) | |
1037 | 1040 | } | |
1038 | 1041 | ||
1039 | 1042 | ||
1040 | - | func | |
1041 | - | let ai = toString( | |
1042 | - | let | |
1043 | - | let | |
1044 | - | let | |
1045 | - | let | |
1046 | - | if (( | |
1043 | + | func fm (cd,em,fn,aD) = { | |
1044 | + | let ai = toString(em) | |
1045 | + | let eZ = eM(ai, bu, aD) | |
1046 | + | let eI = ct(eZ._3[aZ]) | |
1047 | + | let fo = as(eZ._2) | |
1048 | + | let fp = valueOrElse(getInteger(fo), 0) | |
1049 | + | if ((fp >= 3)) | |
1047 | 1050 | then throw("Currently max infrastructure level = 3") | |
1048 | 1051 | else { | |
1049 | - | let | |
1050 | - | let | |
1051 | - | if (if (!( | |
1052 | - | then ( | |
1052 | + | let fq = (fp + 1) | |
1053 | + | let fr = fraction(z, (eI * fq), m) | |
1054 | + | if (if (!(cd)) | |
1055 | + | then (fn != fr) | |
1053 | 1056 | else false) | |
1054 | - | then throw(("Payment attached should be " + toString( | |
1057 | + | then throw(("Payment attached should be " + toString(fr))) | |
1055 | 1058 | else { | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | $Tuple2(([IntegerEntry( | |
1059 | + | let dd = aP(eZ._1) | |
1060 | + | let dP = dc(dd) | |
1061 | + | let eE = split(dP[bh], "_") | |
1062 | + | let eF = makeString(cc(cd, eE, fraction(y, (eI * fq), m)), "_") | |
1063 | + | let fs = fl(ai, eZ._2, eI, bu) | |
1064 | + | let ft = fs._5 | |
1065 | + | let fu = df(ft[bj]) | |
1066 | + | let fv = makeString([split(ft[bj], "_")[0], toString(fq)], "_") | |
1067 | + | let fw = df(fv) | |
1068 | + | let dG = split(ft[bn], "_") | |
1069 | + | let fx = makeString([dG[bo], dG[bp], toString(((parseIntValue(dG[bq]) + fw) - fu)), toString(fw)], "_") | |
1070 | + | $Tuple2(([IntegerEntry(fo, fq), IntegerEntry(at(eZ._2, ai), fq), StringEntry(dd, makeString([dP[bf], fs._3[bg], eF, dP[bi]], ":")), StringEntry(fs._4, makeString([fv, ft[bk], ft[bl], ft[bm], fx], ":"))] ++ fs._1), fq) | |
1068 | 1071 | } | |
1069 | 1072 | } | |
1070 | 1073 | } | |
1071 | 1074 | ||
1072 | 1075 | ||
1073 | - | func | |
1076 | + | func fy (ai) = 0 | |
1074 | 1077 | ||
1075 | 1078 | ||
1076 | - | func | |
1077 | - | let | |
1078 | - | let | |
1079 | - | let | |
1080 | - | let | |
1081 | - | if ((valueOrElse(getInteger( | |
1082 | - | then | |
1079 | + | func fz (ai,eO) = { | |
1080 | + | let eZ = eM(ai, bu, eO) | |
1081 | + | let aD = eZ._2 | |
1082 | + | let eI = ct(eZ._3[aZ]) | |
1083 | + | let fA = ax(N, aD) | |
1084 | + | if ((valueOrElse(getInteger(fA), if (valueOrElse(getBoolean(av(aD)), false)) | |
1085 | + | then eI | |
1083 | 1086 | else 0) > 0)) | |
1084 | 1087 | then throw("Presale artifact is already activated") | |
1085 | - | else if ((parseIntValue( | |
1086 | - | then throw((((i + " ") + | |
1088 | + | else if ((parseIntValue(eZ._3[aY]) > O)) | |
1089 | + | then throw((((i + " ") + aD) + " is not eligible for presale artifact")) | |
1087 | 1090 | else { | |
1088 | - | let | |
1089 | - | (((( | |
1091 | + | let fs = fl(ai, aD, eI, bu) | |
1092 | + | ((((fs._1 :+ IntegerEntry(fA, eI)) :+ IntegerEntry(az(N, aD, ai), eI)) :+ StringEntry(fs._2, makeString(fs._3, ":"))) :+ StringEntry(fs._4, makeString(fs._5, ":"))) | |
1090 | 1093 | } | |
1091 | 1094 | } | |
1092 | 1095 | ||
1093 | 1096 | ||
1094 | - | func | |
1095 | - | let | |
1096 | - | func | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | if (( | |
1097 | + | func fB (fC,fq,fD,ai,fE,en,fF) = { | |
1098 | + | let aQ = valueOrErrorMessage(getString(aO(ai)), "You don't have a duck staked") | |
1099 | + | func fG (bQ,aD) = { | |
1100 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1101 | + | let eU = ar(aD) | |
1102 | + | let eV = valueOrErrorMessage(getInteger(eU), (("NFT " + eT.name) + " is not staked")) | |
1103 | + | let eW = valueOrErrorMessage(getString(am(aD)), (("NFT " + eT.name) + " is orphaned")) | |
1104 | + | if ((eW != ai)) | |
1102 | 1105 | then throw((i + " is not yours")) | |
1103 | 1106 | else { | |
1104 | - | let | |
1105 | - | let | |
1106 | - | if (if (( | |
1107 | - | then ( | |
1107 | + | let eX = split(eT.description, "_") | |
1108 | + | let eq = eX[bb] | |
1109 | + | if (if ((bQ._3 != "")) | |
1110 | + | then (bQ._3 != eq) | |
1108 | 1111 | else false) | |
1109 | 1112 | then throw("Lands should be on the same continent to merge") | |
1110 | 1113 | else { | |
1111 | - | let | |
1112 | - | let | |
1113 | - | let | |
1114 | - | let | |
1115 | - | let | |
1116 | - | let | |
1117 | - | then | |
1114 | + | let bE = eX[aZ] | |
1115 | + | let fH = bQ._1 | |
1116 | + | let cp = valueOrErrorMessage(indexOf(fH, bE), "You haven't passed all the lands needed") | |
1117 | + | let fI = (take(fH, cp) + drop(fH, (cp + 1))) | |
1118 | + | let eI = ct(bE) | |
1119 | + | let fJ = (bQ._2 + valueOrElse(getInteger(ax(N, aD)), if (valueOrElse(getBoolean(av(aD)), false)) | |
1120 | + | then eI | |
1118 | 1121 | else 0)) | |
1119 | - | let | |
1120 | - | let | |
1121 | - | let c = | |
1122 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1123 | + | let fK = { | |
1124 | + | let c = bE | |
1122 | 1125 | if (("S" == c)) | |
1123 | 1126 | then 3 | |
1124 | 1127 | else if (("M" == c)) | |
1125 | 1128 | then 4 | |
1126 | 1129 | else if (("L" == c)) | |
1127 | 1130 | then 5 | |
1128 | 1131 | else if (("XL" == c)) | |
1129 | 1132 | then 6 | |
1130 | 1133 | else throw("Only S, M, L, XL can merge") | |
1131 | 1134 | } | |
1132 | - | if (( | |
1135 | + | if ((dA != fK)) | |
1133 | 1136 | then throw("All lands should be maxed to merge") | |
1134 | 1137 | else { | |
1135 | - | let al = | |
1136 | - | let | |
1137 | - | let | |
1138 | - | if ((0 > | |
1139 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
1138 | + | let al = eX[aY] | |
1139 | + | let cl = cr(eX[ba]) | |
1140 | + | let cA = (lastBlock.timestamp - eV) | |
1141 | + | if ((0 > cA)) | |
1142 | + | then throw(((("Saved timestamp is in future, saved = " + toString(eV)) + ", current = ") + toString(lastBlock.timestamp))) | |
1140 | 1143 | else { | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let | |
1144 | - | let | |
1145 | - | let | |
1146 | - | let ad = indexOf( | |
1144 | + | let fa = eH(aD, eI) | |
1145 | + | let dz = (eI / m) | |
1146 | + | let fi = cy(split(bQ._4, "_"), cl, cA, dz, fa) | |
1147 | + | let ca = cj(split(bQ._6, "_"), cl, dz, -1) | |
1148 | + | let fL = bQ._7 | |
1149 | + | let ad = indexOf(fL, aD) | |
1147 | 1150 | if (!(isDefined(ad))) | |
1148 | - | then throw(("Your staked lands don't contain " + | |
1151 | + | then throw(("Your staked lands don't contain " + aD)) | |
1149 | 1152 | else { | |
1150 | - | let | |
1151 | - | let | |
1152 | - | $Tuple7( | |
1153 | + | let fM = ao(aD) | |
1154 | + | let fN = valueOrElse(getString(fM), "") | |
1155 | + | $Tuple7(fI, fJ, eq, fi, (((((((((((((bQ._5 :+ DeleteEntry(ar(aD))) :+ DeleteEntry(aA(i, aD, ai))) :+ DeleteEntry(ak(al))) :+ DeleteEntry(am(aD))) :+ DeleteEntry(as(aD))) :+ DeleteEntry(at(aD, ai))) :+ DeleteEntry(ax(N, aD))) :+ DeleteEntry(az(N, aD, ai))) :+ DeleteEntry(aE(al))) :+ DeleteEntry(aC(aD))) :+ DeleteEntry(fM)) :+ DeleteEntry(ap(fN))) :+ Burn(fromBase58String(aD), 1)), ca, removeByIndex(fL, value(ad))) | |
1153 | 1156 | } | |
1154 | 1157 | } | |
1155 | 1158 | } | |
1156 | 1159 | } | |
1157 | 1160 | } | |
1158 | 1161 | } | |
1159 | 1162 | ||
1160 | - | let | |
1161 | - | let | |
1162 | - | let | |
1163 | - | let | |
1164 | - | let | |
1165 | - | let | |
1166 | - | then split_51C(value( | |
1163 | + | let dd = aP(aQ) | |
1164 | + | let dP = dc(dd) | |
1165 | + | let fO = valueOrElse(getString(aT()), "0_0_0_0_0_0") | |
1166 | + | let fP = aF(ai) | |
1167 | + | let fQ = getString(fP) | |
1168 | + | let fR = if (isDefined(fQ)) | |
1169 | + | then split_51C(value(fQ), "_") | |
1167 | 1170 | else nil | |
1168 | - | let | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | func | |
1173 | - | then | |
1174 | - | else | |
1171 | + | let cb = { | |
1172 | + | let bS = fE | |
1173 | + | let bT = size(bS) | |
1174 | + | let bU = $Tuple7(fD, 0, "", dP[bg], nil, fO, fR) | |
1175 | + | func bV (bW,bX) = if ((bX >= bT)) | |
1176 | + | then bW | |
1177 | + | else fG(bW, bS[bX]) | |
1175 | 1178 | ||
1176 | - | func | |
1177 | - | then | |
1179 | + | func bY (bW,bX) = if ((bX >= bT)) | |
1180 | + | then bW | |
1178 | 1181 | else throw("List size exceeds 5") | |
1179 | 1182 | ||
1180 | - | | |
1183 | + | bY(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5) | |
1181 | 1184 | } | |
1182 | - | let | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | $Tuple2((((((((((((((( | |
1192 | - | then StringEntry( | |
1193 | - | else DeleteEntry( | |
1185 | + | let eq = cb._3 | |
1186 | + | let cY = valueOrErrorMessage(indexOf(M, eq), ("Unknown continent: " + eq)) | |
1187 | + | let cs = cW(cP(toBigInt(en)), cY) | |
1188 | + | let ep = valueOrElse(getInteger(aj()), (O + 1)) | |
1189 | + | let fS = toString(ep) | |
1190 | + | let er = Issue(bD(fS, fC), makeString([fS, fC, cs, eq], "_"), 1, 0, false) | |
1191 | + | let an = calculateAssetId(er) | |
1192 | + | let fT = toBase58String(an) | |
1193 | + | let eF = makeString(cc((fF > 0), split(dP[bh], "_"), fF), "_") | |
1194 | + | $Tuple2(((((((((((((((cb._5 :+ (if ((size(cb._7) > 0)) | |
1195 | + | then StringEntry(fP, makeString_11C(cb._7, "_")) | |
1196 | + | else DeleteEntry(fP))) :+ IntegerEntry(aj(), (ep + 1))) :+ er) :+ StringEntry(ak(fS), fT)) :+ StringEntry(am(fT), ai)) :+ StringEntry(aE(fS), ai)) :+ IntegerEntry(ax(N, fT), cb._2)) :+ IntegerEntry(az(N, fT, ai), cb._2)) :+ IntegerEntry(as(fT), fq)) :+ IntegerEntry(at(fT, ai), fq)) :+ StringEntry(dd, makeString([dP[bf], cb._4, eF, dP[bi]], ":"))) :+ StringEntry(aT(), cb._6)) :+ StringEntry(aR(aQ), makeString([eq, "L", fT], "_"))) :+ ScriptTransfer(addressFromStringValue(ai), 1, an)), fT) | |
1194 | 1197 | } | |
1195 | 1198 | ||
1196 | 1199 | ||
1197 | - | func | |
1200 | + | func fU (ai,fE,en) = fB("M", 3, "SSSS", ai, fE, en, 0) | |
1198 | 1201 | ||
1199 | 1202 | ||
1200 | - | func | |
1201 | - | let | |
1202 | - | if (if (!( | |
1203 | - | then ( | |
1203 | + | func fV (ai,fE,en,cd,fn) = { | |
1204 | + | let fr = (z * 4) | |
1205 | + | if (if (!(cd)) | |
1206 | + | then (fn != fr) | |
1204 | 1207 | else false) | |
1205 | - | then throw(("Payment attached should be " + toString( | |
1206 | - | else | |
1208 | + | then throw(("Payment attached should be " + toString(fr))) | |
1209 | + | else fB("L", 4, "SMM", ai, fE, en, (y * 4)) | |
1207 | 1210 | } | |
1208 | 1211 | ||
1209 | 1212 | ||
1210 | - | func | |
1211 | - | let | |
1212 | - | if (if (!( | |
1213 | - | then ( | |
1213 | + | func fW (ai,fE,en,cd,fn) = { | |
1214 | + | let fr = (z * 47) | |
1215 | + | if (if (!(cd)) | |
1216 | + | then (fn != fr) | |
1214 | 1217 | else false) | |
1215 | - | then throw(("Payment attached should be " + toString( | |
1216 | - | else | |
1218 | + | then throw(("Payment attached should be " + toString(fr))) | |
1219 | + | else fB("XL", 5, "SSSML", ai, fE, en, (y * 47)) | |
1217 | 1220 | } | |
1218 | 1221 | ||
1219 | 1222 | ||
1220 | - | func | |
1221 | - | let | |
1222 | - | if (if (!( | |
1223 | - | then ( | |
1223 | + | func fX (ai,fE,en,cd,fn) = { | |
1224 | + | let fr = (z * 54) | |
1225 | + | if (if (!(cd)) | |
1226 | + | then (fn != fr) | |
1224 | 1227 | else false) | |
1225 | - | then throw(("Payment attached should be " + toString( | |
1226 | - | else | |
1228 | + | then throw(("Payment attached should be " + toString(fr))) | |
1229 | + | else fB("XXL", 6, "LXL", ai, fE, en, (y * 54)) | |
1227 | 1230 | } | |
1228 | 1231 | ||
1229 | 1232 | ||
1230 | - | func | |
1231 | - | let | |
1232 | - | let c = size( | |
1233 | + | func fY (cd,ai,fn,fE,en) = { | |
1234 | + | let fZ = { | |
1235 | + | let c = size(fE) | |
1233 | 1236 | if ((4 == c)) | |
1234 | - | then | |
1237 | + | then fU(ai, fE, en) | |
1235 | 1238 | else if ((3 == c)) | |
1236 | - | then | |
1239 | + | then fV(ai, fE, en, cd, fn) | |
1237 | 1240 | else if ((5 == c)) | |
1238 | - | then | |
1241 | + | then fW(ai, fE, en, cd, fn) | |
1239 | 1242 | else if ((2 == c)) | |
1240 | - | then | |
1243 | + | then fX(ai, fE, en, cd, fn) | |
1241 | 1244 | else throw("Unknown merge") | |
1242 | 1245 | } | |
1243 | - | | |
1246 | + | fZ | |
1244 | 1247 | } | |
1245 | 1248 | ||
1246 | 1249 | ||
1247 | - | func | |
1248 | - | then valueOrElse(getBoolean( | |
1250 | + | func ga (cp) = if (if ((cp.originCaller != ae)) | |
1251 | + | then valueOrElse(getBoolean(aU()), false) | |
1249 | 1252 | else false) | |
1250 | 1253 | then throw("Contracts are under maintenance") | |
1251 | - | else StringEntry(ah(toString( | |
1254 | + | else StringEntry(ah(toString(cp.originCaller)), toBase58String(cp.transactionId)) | |
1252 | 1255 | ||
1253 | 1256 | ||
1254 | - | @Callable( | |
1255 | - | func constructorV1 ( | |
1257 | + | @Callable(cp) | |
1258 | + | func constructorV1 (gb) = if ((cp.caller != this)) | |
1256 | 1259 | then throw("Permission denied") | |
1257 | - | else [StringEntry(Y(), | |
1260 | + | else [StringEntry(Y(), gb)] | |
1258 | 1261 | ||
1259 | 1262 | ||
1260 | 1263 | ||
1261 | - | @Callable( | |
1262 | - | func setBlocked ( | |
1264 | + | @Callable(cp) | |
1265 | + | func setBlocked (gc) = if ((cp.caller != this)) | |
1263 | 1266 | then throw("permission denied") | |
1264 | - | else [BooleanEntry( | |
1267 | + | else [BooleanEntry(aU(), gc)] | |
1265 | 1268 | ||
1266 | 1269 | ||
1267 | 1270 | ||
1268 | - | @Callable( | |
1271 | + | @Callable(cp) | |
1269 | 1272 | func stakeLand () = { | |
1270 | - | let | |
1271 | - | if ((size( | |
1273 | + | let gd = ga(cp) | |
1274 | + | if ((size(cp.payments) != 1)) | |
1272 | 1275 | then throw("Exactly one payment required") | |
1273 | 1276 | else { | |
1274 | - | let | |
1275 | - | let | |
1276 | - | let Q = toString( | |
1277 | - | if (( | |
1277 | + | let ge = value(cp.payments[0]) | |
1278 | + | let an = value(ge.assetId) | |
1279 | + | let Q = toString(cp.caller) | |
1280 | + | if ((ge.amount != 1)) | |
1278 | 1281 | then throw((("NFT " + i) + " token should be attached as payment")) | |
1279 | 1282 | else { | |
1280 | - | let | |
1281 | - | if (( | |
1283 | + | let eT = value(assetInfo(an)) | |
1284 | + | if ((eT.issuer != this)) | |
1282 | 1285 | then throw("Unknown issuer of token") | |
1283 | - | else if (!(contains( | |
1286 | + | else if (!(contains(eT.name, i))) | |
1284 | 1287 | then throw((("Only NFT " + i) + " tokens are accepted")) | |
1285 | 1288 | else { | |
1286 | - | let | |
1287 | - | let al = if (contains( | |
1288 | - | then dropRight( | |
1289 | - | else if (contains( | |
1290 | - | then dropRight( | |
1291 | - | else dropRight( | |
1289 | + | let gf = drop(eT.name, 4) | |
1290 | + | let al = if (contains(gf, "XXL")) | |
1291 | + | then dropRight(gf, 3) | |
1292 | + | else if (contains(gf, "XL")) | |
1293 | + | then dropRight(gf, 2) | |
1294 | + | else dropRight(gf, 1) | |
1292 | 1295 | if (!(isDefined(parseInt(al)))) | |
1293 | - | then throw(("Cannot parse land number from " + | |
1296 | + | then throw(("Cannot parse land number from " + eT.name)) | |
1294 | 1297 | else { | |
1295 | - | let | |
1296 | - | let | |
1297 | - | if (isDefined(getInteger( | |
1298 | - | then throw((("NFT " + | |
1298 | + | let aD = toBase58String(an) | |
1299 | + | let eU = ar(aD) | |
1300 | + | if (isDefined(getInteger(eU))) | |
1301 | + | then throw((("NFT " + eT.name) + " is already staked")) | |
1299 | 1302 | else { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | then | |
1303 | + | let eX = split(eT.description, "_") | |
1304 | + | let cl = cr(eX[ba]) | |
1305 | + | let eI = ct(eX[aZ]) | |
1306 | + | let ca = cq(cl, (eI / m), 1) | |
1307 | + | let eJ = valueOrElse(getInteger(ax(N, aD)), if (valueOrElse(getBoolean(av(aD)), false)) | |
1308 | + | then eI | |
1306 | 1309 | else 0) | |
1307 | - | let | |
1308 | - | let | |
1309 | - | then split_51C(value( | |
1310 | + | let fQ = getString(aF(Q)) | |
1311 | + | let fL = if (isDefined(fQ)) | |
1312 | + | then split_51C(value(fQ), "_") | |
1310 | 1313 | else nil | |
1311 | - | if (containsElement( | |
1312 | - | then throw(("Your staked lands already contain " + | |
1313 | - | else [IntegerEntry( | |
1314 | + | if (containsElement(fL, aD)) | |
1315 | + | then throw(("Your staked lands already contain " + aD)) | |
1316 | + | else [IntegerEntry(eU, lastBlock.timestamp), IntegerEntry(aA(i, aD, Q), lastBlock.timestamp), StringEntry(aF(Q), makeString_11C((fL :+ aD), "_")), StringEntry(am(aD), Q), StringEntry(aE(al), Q), IntegerEntry(az(N, aD, Q), eJ), StringEntry(aT(), ca), gd] | |
1314 | 1317 | } | |
1315 | 1318 | } | |
1316 | 1319 | } | |
1317 | 1320 | } | |
1318 | 1321 | } | |
1319 | 1322 | } | |
1320 | 1323 | ||
1321 | 1324 | ||
1322 | 1325 | ||
1323 | - | @Callable( | |
1324 | - | func unstakeLand ( | |
1325 | - | let | |
1326 | - | if ((size( | |
1326 | + | @Callable(cp) | |
1327 | + | func unstakeLand (eO) = { | |
1328 | + | let gd = ga(cp) | |
1329 | + | if ((size(cp.payments) != 0)) | |
1327 | 1330 | then throw("No payments required") | |
1328 | 1331 | else { | |
1329 | - | let ai = toString( | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1338 | - | let ad = indexOf( | |
1332 | + | let ai = toString(cp.caller) | |
1333 | + | let eZ = eM(ai, bt, eO) | |
1334 | + | let aD = eZ._2 | |
1335 | + | let fP = aF(ai) | |
1336 | + | let cl = cr(eZ._3[ba]) | |
1337 | + | let eI = ct(eZ._3[aZ]) | |
1338 | + | let ca = cq(cl, (eI / m), -1) | |
1339 | + | let fs = fl(ai, aD, eI, bt) | |
1340 | + | let fL = split_51C(valueOrElse(getString(fP), ""), "_") | |
1341 | + | let ad = indexOf(fL, aD) | |
1339 | 1342 | if (!(isDefined(ad))) | |
1340 | - | then throw(("Your staked lands don't contain " + | |
1343 | + | then throw(("Your staked lands don't contain " + aD)) | |
1341 | 1344 | else { | |
1342 | - | let | |
1343 | - | let | |
1344 | - | if (( | |
1345 | - | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString( | |
1346 | - | else [ScriptTransfer( | |
1347 | - | then StringEntry( | |
1348 | - | else DeleteEntry( | |
1345 | + | let db = value(blockInfoByHeight(height)).timestamp | |
1346 | + | let gg = valueOrElse(getInteger(ag, aV(ai)), 0) | |
1347 | + | if ((gg >= db)) | |
1348 | + | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(gg))) | |
1349 | + | else [ScriptTransfer(cp.caller, 1, fromBase58String(aD)), DeleteEntry(ar(aD)), DeleteEntry(aA(i, aD, ai)), StringEntry(aT(), ca), StringEntry(fs._2, makeString(fs._3, ":")), if ((size(fL) > 1)) | |
1350 | + | then StringEntry(fP, makeString_11C(removeByIndex(fL, value(ad)), "_")) | |
1351 | + | else DeleteEntry(fP), gd] | |
1349 | 1352 | } | |
1350 | 1353 | } | |
1351 | 1354 | } | |
1352 | 1355 | ||
1353 | 1356 | ||
1354 | 1357 | ||
1355 | - | @Callable( | |
1358 | + | @Callable(cp) | |
1356 | 1359 | func stakeDuck () = { | |
1357 | - | let | |
1358 | - | if ((size( | |
1360 | + | let gd = ga(cp) | |
1361 | + | if ((size(cp.payments) != 1)) | |
1359 | 1362 | then throw("Exactly one payment required") | |
1360 | 1363 | else { | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let Q = toString( | |
1364 | - | if (( | |
1364 | + | let ge = value(cp.payments[0]) | |
1365 | + | let an = value(ge.assetId) | |
1366 | + | let Q = toString(cp.caller) | |
1367 | + | if ((ge.amount != 1)) | |
1365 | 1368 | then throw((("NFT " + j) + " token should be attached as payment")) | |
1366 | 1369 | else { | |
1367 | - | let | |
1368 | - | if (if (( | |
1369 | - | then ( | |
1370 | + | let eT = value(assetInfo(an)) | |
1371 | + | if (if ((eT.issuer != d)) | |
1372 | + | then (eT.issuer != e) | |
1370 | 1373 | else false) | |
1371 | 1374 | then throw((("Unknown issuer of " + j) + " token")) | |
1372 | - | else if (!(contains( | |
1375 | + | else if (!(contains(eT.name, j))) | |
1373 | 1376 | then throw((("Only NFT " + j) + " tokens are accepted")) | |
1374 | 1377 | else { | |
1375 | - | let | |
1376 | - | let | |
1377 | - | if (isDefined(getInteger( | |
1378 | - | then throw((("NFT " + | |
1379 | - | else if (isDefined(getString( | |
1380 | - | then throw(("You already staked one duck: " + | |
1378 | + | let gh = toBase58String(an) | |
1379 | + | let eU = ar(gh) | |
1380 | + | if (isDefined(getInteger(eU))) | |
1381 | + | then throw((("NFT " + eT.name) + " is already staked")) | |
1382 | + | else if (isDefined(getString(aO(Q)))) | |
1383 | + | then throw(("You already staked one duck: " + eT.name)) | |
1381 | 1384 | else { | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | ([IntegerEntry( | |
1385 | + | let gi = aR(gh) | |
1386 | + | let gj = getString(gi) | |
1387 | + | let dd = aP(gh) | |
1388 | + | let gk = getString(dd) | |
1389 | + | ([IntegerEntry(eU, lastBlock.timestamp), IntegerEntry(aA(j, toBase58String(an), Q), lastBlock.timestamp), StringEntry(aN(gh), Q), StringEntry(aO(Q), gh)] ++ (if (isDefined(gj)) | |
1387 | 1390 | then nil | |
1388 | - | else ([StringEntry( | |
1391 | + | else ([StringEntry(gi, k)] ++ (if (isDefined(gk)) | |
1389 | 1392 | then nil | |
1390 | - | else (([StringEntry( | |
1393 | + | else (([StringEntry(dd, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(aS(gh), 100)) :+ gd))))) | |
1391 | 1394 | } | |
1392 | 1395 | } | |
1393 | 1396 | } | |
1394 | 1397 | } | |
1395 | 1398 | } | |
1396 | 1399 | ||
1397 | 1400 | ||
1398 | 1401 | ||
1399 | - | @Callable( | |
1400 | - | func unstakeDuck ( | |
1401 | - | let | |
1402 | - | if ((size( | |
1402 | + | @Callable(cp) | |
1403 | + | func unstakeDuck (gh) = { | |
1404 | + | let gd = ga(cp) | |
1405 | + | if ((size(cp.payments) != 0)) | |
1403 | 1406 | then throw("No payments required") | |
1404 | 1407 | else { | |
1405 | - | let | |
1406 | - | let Q = toString( | |
1407 | - | let | |
1408 | - | let | |
1409 | - | if (!(isDefined(getInteger( | |
1410 | - | then throw((("NFT " + | |
1411 | - | else if (!(isDefined(getString( | |
1412 | - | then throw((("The duck " + | |
1408 | + | let an = fromBase58String(gh) | |
1409 | + | let Q = toString(cp.caller) | |
1410 | + | let eT = value(assetInfo(an)) | |
1411 | + | let eU = ar(toBase58String(an)) | |
1412 | + | if (!(isDefined(getInteger(eU)))) | |
1413 | + | then throw((("NFT " + eT.name) + " is not staked")) | |
1414 | + | else if (!(isDefined(getString(aO(Q))))) | |
1415 | + | then throw((("The duck " + eT.name) + " is not staked")) | |
1413 | 1416 | else { | |
1414 | - | let | |
1415 | - | if (( | |
1417 | + | let eW = valueOrErrorMessage(getString(aN(toBase58String(an))), (("NFT " + eT.name) + " is orphaned")) | |
1418 | + | if ((eW != Q)) | |
1416 | 1419 | then throw("Staked NFT is not yours") | |
1417 | 1420 | else { | |
1418 | - | let | |
1419 | - | let | |
1420 | - | if ((100 > | |
1421 | + | let eC = aS(gh) | |
1422 | + | let gl = valueOrElse(getInteger(eC), 100) | |
1423 | + | if ((100 > gl)) | |
1421 | 1424 | then throw("Please heal your duck before unstaking") | |
1422 | - | else [ScriptTransfer( | |
1425 | + | else [ScriptTransfer(cp.caller, 1, an), DeleteEntry(eU), DeleteEntry(eC), DeleteEntry(aR(gh)), DeleteEntry(aN(gh)), DeleteEntry(aA(j, gh, Q)), DeleteEntry(aO(Q)), gd] | |
1423 | 1426 | } | |
1424 | 1427 | } | |
1425 | 1428 | } | |
1426 | 1429 | } | |
1427 | 1430 | ||
1428 | 1431 | ||
1429 | 1432 | ||
1430 | - | @Callable( | |
1431 | - | func claimRes ( | |
1432 | - | let | |
1433 | - | if ((size( | |
1433 | + | @Callable(cp) | |
1434 | + | func claimRes (cw,gm) = { | |
1435 | + | let gd = ga(cp) | |
1436 | + | if ((size(cp.payments) != 0)) | |
1434 | 1437 | then throw("No payments required") | |
1435 | 1438 | else { | |
1436 | - | let ai = toString( | |
1437 | - | let | |
1438 | - | $Tuple2(((( | |
1439 | + | let ai = toString(cp.originCaller) | |
1440 | + | let ci = eY(ai, cw, bt, gm) | |
1441 | + | $Tuple2((((ci._1 :+ StringEntry(ci._2, makeString(ci._3, ":"))) :+ StringEntry(ci._4, makeString(ci._5, ":"))) :+ gd), ci._3[bg]) | |
1439 | 1442 | } | |
1440 | 1443 | } | |
1441 | 1444 | ||
1442 | 1445 | ||
1443 | 1446 | ||
1444 | - | @Callable( | |
1445 | - | func claimResToWH ( | |
1446 | - | let | |
1447 | - | if ((size( | |
1447 | + | @Callable(cp) | |
1448 | + | func claimResToWH (cw,gm) = { | |
1449 | + | let gd = ga(cp) | |
1450 | + | if ((size(cp.payments) != 0)) | |
1448 | 1451 | then throw("No payments required") | |
1449 | 1452 | else { | |
1450 | - | let ai = toString( | |
1451 | - | let | |
1452 | - | $Tuple2(((( | |
1453 | + | let ai = toString(cp.originCaller) | |
1454 | + | let ci = eY(ai, cw, bs, gm) | |
1455 | + | $Tuple2((((ci._1 :+ StringEntry(ci._2, makeString(ci._3, ":"))) :+ StringEntry(ci._4, makeString(ci._5, ":"))) :+ gd), ci._5[bk]) | |
1453 | 1456 | } | |
1454 | 1457 | } | |
1455 | 1458 | ||
1456 | 1459 | ||
1457 | 1460 | ||
1458 | - | @Callable( | |
1459 | - | func flight ( | |
1460 | - | let | |
1461 | - | if (!(sigVerify_8Kb( | |
1461 | + | @Callable(cp) | |
1462 | + | func flight (eu,ev) = { | |
1463 | + | let gd = ga(cp) | |
1464 | + | if (!(sigVerify_8Kb(eu, ev, g))) | |
1462 | 1465 | then throw("signature does not match") | |
1463 | - | else if ((size( | |
1466 | + | else if ((size(cp.payments) != 0)) | |
1464 | 1467 | then throw("No payments required") | |
1465 | 1468 | else { | |
1466 | - | let | |
1467 | - | let | |
1468 | - | let | |
1469 | - | let | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | if (if (( | |
1469 | + | let dh = split(toUtf8String(eu), ";") | |
1470 | + | let gn = split(dh[0], "|") | |
1471 | + | let ew = split(gn[bv], "_") | |
1472 | + | let ex = parseIntValue(ew[0]) | |
1473 | + | let ey = parseIntValue(ew[1]) | |
1474 | + | let go = split(dh[1], ":") | |
1475 | + | let gp = go[0] | |
1476 | + | let eB = parseIntValue(gn[bA]) | |
1477 | + | if (if ((eB > (lastBlock.timestamp + t))) | |
1475 | 1478 | then true | |
1476 | - | else ((lastBlock.timestamp - t) > | |
1479 | + | else ((lastBlock.timestamp - t) > eB)) | |
1477 | 1480 | then throw("signature outdated") | |
1478 | 1481 | else { | |
1479 | - | let | |
1480 | - | let | |
1481 | - | if (( | |
1482 | - | then throw(((("Tx ids don't match! In state: " + | |
1482 | + | let gq = go[1] | |
1483 | + | let gr = valueOrElse(getString(ah(toString(cp.originCaller))), "") | |
1484 | + | if ((gr != gq)) | |
1485 | + | then throw(((("Tx ids don't match! In state: " + gr) + ", in msg: ") + gq)) | |
1483 | 1486 | else { | |
1484 | - | let | |
1485 | - | let | |
1486 | - | let | |
1487 | - | let | |
1488 | - | if (( | |
1489 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
1490 | - | else if ((0 >= | |
1487 | + | let aW = toString(cp.caller) | |
1488 | + | let aQ = valueOrErrorMessage(getString(aO(aW)), "You don't have a duck staked") | |
1489 | + | let eC = aS(aQ) | |
1490 | + | let eD = valueOrElse(getInteger(eC), 100) | |
1491 | + | if ((eD != ex)) | |
1492 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(eC), 100))) + " from state does not match one from flight log=") + toString(ex))) | |
1493 | + | else if ((0 >= ex)) | |
1491 | 1494 | then throw("You can't fly with zero health") | |
1492 | 1495 | else { | |
1493 | - | let | |
1494 | - | let | |
1495 | - | if (( | |
1496 | + | let gi = aR(aQ) | |
1497 | + | let eQ = valueOrElse(getString(gi), k) | |
1498 | + | if ((gp == eQ)) | |
1496 | 1499 | then throw("You can't fly to the same location") | |
1497 | 1500 | else { | |
1498 | - | let | |
1499 | - | then | |
1501 | + | let gs = if ((size(gn) > bB)) | |
1502 | + | then gn[bB] | |
1500 | 1503 | else "" | |
1501 | - | let | |
1502 | - | then ( | |
1504 | + | let gt = if (if ((ey > 0)) | |
1505 | + | then (gs == "$") | |
1503 | 1506 | else false) | |
1504 | - | then | |
1507 | + | then bI(invoke(ae, "sendUsdtPrize", [aW], nil)) | |
1505 | 1508 | else 0 | |
1506 | - | $Tuple2([StringEntry( | |
1507 | - | then | |
1508 | - | else | |
1509 | + | $Tuple2([StringEntry(gi, if ((ey > 0)) | |
1510 | + | then gp | |
1511 | + | else eQ), IntegerEntry(eC, ey), gd], gt) | |
1509 | 1512 | } | |
1510 | 1513 | } | |
1511 | 1514 | } | |
1512 | 1515 | } | |
1513 | 1516 | } | |
1514 | 1517 | } | |
1515 | 1518 | ||
1516 | 1519 | ||
1517 | 1520 | ||
1518 | - | @Callable( | |
1519 | - | func setHealth ( | |
1520 | - | let | |
1521 | - | if (if ((0 > | |
1521 | + | @Callable(cp) | |
1522 | + | func setHealth (gl,aQ) = { | |
1523 | + | let gd = ga(cp) | |
1524 | + | if (if ((0 > gl)) | |
1522 | 1525 | then true | |
1523 | - | else ( | |
1526 | + | else (gl > 100)) | |
1524 | 1527 | then throw("HP should be within 0..100") | |
1525 | - | else [IntegerEntry( | |
1528 | + | else [IntegerEntry(aS(aQ), gl), gd] | |
1526 | 1529 | } | |
1527 | 1530 | ||
1528 | 1531 | ||
1529 | 1532 | ||
1530 | - | @Callable( | |
1531 | - | func heal ( | |
1532 | - | let | |
1533 | - | if (if ((0 > | |
1533 | + | @Callable(cp) | |
1534 | + | func heal (gu,cw) = { | |
1535 | + | let gd = ga(cp) | |
1536 | + | if (if ((0 > gu)) | |
1534 | 1537 | then true | |
1535 | - | else ( | |
1536 | - | then throw(("Unknown material: " + toString( | |
1537 | - | else if ((0 >= | |
1538 | - | then throw(("Amount should be positive! " + toString( | |
1538 | + | else (gu >= l)) | |
1539 | + | then throw(("Unknown material: " + toString(gu))) | |
1540 | + | else if ((0 >= cw)) | |
1541 | + | then throw(("Amount should be positive! " + toString(cw))) | |
1539 | 1542 | else { | |
1540 | - | let | |
1541 | - | let | |
1542 | - | let | |
1543 | - | if (( | |
1543 | + | let aQ = valueOrErrorMessage(getString(aO(toString(cp.caller))), "You don't have a duck staked") | |
1544 | + | let eC = aS(aQ) | |
1545 | + | let gv = valueOrElse(getInteger(eC), 100) | |
1546 | + | if ((gv >= 100)) | |
1544 | 1547 | then throw("HP should be < 100 to heal") | |
1545 | 1548 | else { | |
1546 | - | let | |
1547 | - | let | |
1548 | - | let | |
1549 | - | let | |
1550 | - | let | |
1551 | - | let | |
1552 | - | if (( | |
1553 | - | then throw(((((("You need " + toString( | |
1549 | + | let dd = aP(aQ) | |
1550 | + | let dP = dc(dd) | |
1551 | + | let eE = split(dP[bh], "_") | |
1552 | + | let gw = parseIntValue(eE[gu]) | |
1553 | + | let gx = min([(cw / h), (100 - gv)]) | |
1554 | + | let gy = (gx * h) | |
1555 | + | if ((gy > gw)) | |
1556 | + | then throw(((((("You need " + toString(gy)) + " of ") + L[gu]) + " to heal, but you backpack contains ") + toString(gw))) | |
1554 | 1557 | else { | |
1555 | - | let | |
1556 | - | [IntegerEntry( | |
1558 | + | let eF = cu(eE, gu, gy) | |
1559 | + | [IntegerEntry(eC, (gv + gx)), StringEntry(dd, makeString([dP[bf], dP[bg], eF, dP[bi]], ":")), gd] | |
1557 | 1560 | } | |
1558 | 1561 | } | |
1559 | 1562 | } | |
1560 | 1563 | } | |
1561 | 1564 | ||
1562 | 1565 | ||
1563 | 1566 | ||
1564 | - | @Callable( | |
1565 | - | func updateBackpack ( | |
1566 | - | let | |
1567 | - | if (( | |
1567 | + | @Callable(cp) | |
1568 | + | func updateBackpack (aQ,gz) = { | |
1569 | + | let gd = ga(cp) | |
1570 | + | if ((cp.caller != af)) | |
1568 | 1571 | then throw("permission denied") | |
1569 | - | else $Tuple2([StringEntry( | |
1572 | + | else $Tuple2([StringEntry(aP(aQ), gz), gd], gz) | |
1570 | 1573 | } | |
1571 | 1574 | ||
1572 | 1575 | ||
1573 | 1576 | ||
1574 | - | @Callable( | |
1577 | + | @Callable(cp) | |
1575 | 1578 | func buySLand () = { | |
1576 | - | let | |
1577 | - | if ((size( | |
1579 | + | let gd = ga(cp) | |
1580 | + | if ((size(cp.payments) != 1)) | |
1578 | 1581 | then throw("Exactly one payment required") | |
1579 | 1582 | else { | |
1580 | - | let | |
1581 | - | if (( | |
1583 | + | let ge = value(cp.payments[0]) | |
1584 | + | if ((ge.assetId != b)) | |
1582 | 1585 | then throw("Allowed USDT payment only!") | |
1583 | - | else if (( | |
1586 | + | else if ((ge.amount != B)) | |
1584 | 1587 | then throw(("Payment attached should be " + toString(B))) | |
1585 | 1588 | else { | |
1586 | - | let | |
1587 | - | $Tuple2((( | |
1589 | + | let ci = el(cp.caller, cp.transactionId) | |
1590 | + | $Tuple2(((ci._1 :+ ScriptTransfer(af, ge.amount, b)) :+ gd), ci._2._1) | |
1588 | 1591 | } | |
1589 | 1592 | } | |
1590 | 1593 | } | |
1591 | 1594 | ||
1592 | 1595 | ||
1593 | 1596 | ||
1594 | - | @Callable( | |
1595 | - | func expedition ( | |
1596 | - | let | |
1597 | - | if ((size( | |
1597 | + | @Callable(cp) | |
1598 | + | func expedition (eu,ev) = { | |
1599 | + | let gd = ga(cp) | |
1600 | + | if ((size(cp.payments) != 0)) | |
1598 | 1601 | then throw("No payments required") | |
1599 | 1602 | else { | |
1600 | - | let | |
1601 | - | $Tuple2(( | |
1603 | + | let ci = et(true, cp.caller, cp.transactionId, eu, ev) | |
1604 | + | $Tuple2((ci._1 :+ gd), ci._2) | |
1602 | 1605 | } | |
1603 | 1606 | } | |
1604 | 1607 | ||
1605 | 1608 | ||
1606 | 1609 | ||
1607 | - | @Callable( | |
1608 | - | func upgradeInfra ( | |
1609 | - | let | |
1610 | - | if ((size( | |
1610 | + | @Callable(cp) | |
1611 | + | func upgradeInfra (aD) = { | |
1612 | + | let gd = ga(cp) | |
1613 | + | if ((size(cp.payments) != 0)) | |
1611 | 1614 | then throw("No payments required") | |
1612 | 1615 | else { | |
1613 | - | let | |
1614 | - | $Tuple2(( | |
1616 | + | let ci = fm(true, cp.caller, 0, aD) | |
1617 | + | $Tuple2((ci._1 :+ gd), ci._2) | |
1615 | 1618 | } | |
1616 | 1619 | } | |
1617 | 1620 | ||
1618 | 1621 | ||
1619 | 1622 | ||
1620 | - | @Callable( | |
1621 | - | func upgradeInfraUsdt ( | |
1623 | + | @Callable(cp) | |
1624 | + | func upgradeInfraUsdt (aD) = if ((cp.caller != this)) | |
1622 | 1625 | then throw("Permission denied") | |
1623 | 1626 | else { | |
1624 | - | let | |
1625 | - | if ((size( | |
1627 | + | let gd = ga(cp) | |
1628 | + | if ((size(cp.payments) != 1)) | |
1626 | 1629 | then throw("Exactly one payment required") | |
1627 | 1630 | else { | |
1628 | - | let | |
1629 | - | if (( | |
1631 | + | let ge = value(cp.payments[0]) | |
1632 | + | if ((ge.assetId != b)) | |
1630 | 1633 | then throw("Allowed USDT payment only!") | |
1631 | 1634 | else { | |
1632 | - | let | |
1633 | - | $Tuple2((( | |
1635 | + | let ci = fm(false, cp.caller, ge.amount, aD) | |
1636 | + | $Tuple2(((ci._1 :+ ScriptTransfer(af, ge.amount, b)) :+ gd), ci._2) | |
1634 | 1637 | } | |
1635 | 1638 | } | |
1636 | 1639 | } | |
1637 | 1640 | ||
1638 | 1641 | ||
1639 | 1642 | ||
1640 | - | @Callable( | |
1641 | - | func activateArtifact ( | |
1642 | - | let | |
1643 | - | if ((size( | |
1643 | + | @Callable(cp) | |
1644 | + | func activateArtifact (gA,aD) = { | |
1645 | + | let gd = ga(cp) | |
1646 | + | if ((size(cp.payments) != 0)) | |
1644 | 1647 | then throw("No payments required") | |
1645 | 1648 | else { | |
1646 | - | let | |
1647 | - | let c = | |
1649 | + | let ci = { | |
1650 | + | let c = gA | |
1648 | 1651 | if (("PRESALE" == c)) | |
1649 | - | then | |
1652 | + | then fz(toString(cp.caller), aD) | |
1650 | 1653 | else throw("Unknown artifact") | |
1651 | 1654 | } | |
1652 | - | ( | |
1655 | + | (ci :+ gd) | |
1653 | 1656 | } | |
1654 | 1657 | } | |
1655 | 1658 | ||
1656 | 1659 | ||
1657 | 1660 | ||
1658 | - | @Callable( | |
1659 | - | func mergeLands ( | |
1660 | - | let | |
1661 | - | if ((size( | |
1661 | + | @Callable(cp) | |
1662 | + | func mergeLands (fE) = { | |
1663 | + | let gd = ga(cp) | |
1664 | + | if ((size(cp.payments) != 0)) | |
1662 | 1665 | then throw("No payments required") | |
1663 | 1666 | else { | |
1664 | - | let | |
1665 | - | $Tuple2(( | |
1667 | + | let ci = fY(true, toString(cp.caller), 0, fE, cp.transactionId) | |
1668 | + | $Tuple2((ci._1 :+ gd), ci._2) | |
1666 | 1669 | } | |
1667 | 1670 | } | |
1668 | 1671 | ||
1669 | 1672 | ||
1670 | 1673 | ||
1671 | - | @Callable( | |
1672 | - | func mergeLandsUsdt ( | |
1673 | - | let | |
1674 | - | if ((size( | |
1674 | + | @Callable(cp) | |
1675 | + | func mergeLandsUsdt (fE) = { | |
1676 | + | let gd = ga(cp) | |
1677 | + | if ((size(cp.payments) != 1)) | |
1675 | 1678 | then throw("Exactly one payment required") | |
1676 | 1679 | else { | |
1677 | - | let | |
1678 | - | if (( | |
1680 | + | let ge = value(cp.payments[0]) | |
1681 | + | if ((ge.assetId != b)) | |
1679 | 1682 | then throw("Allowed USDT payment only!") | |
1680 | 1683 | else { | |
1681 | - | let | |
1682 | - | $Tuple2((( | |
1684 | + | let ci = fY(false, toString(cp.caller), ge.amount, fE, cp.transactionId) | |
1685 | + | $Tuple2(((ci._1 :+ ScriptTransfer(af, ge.amount, b)) :+ gd), ci._2) | |
1683 | 1686 | } | |
1684 | 1687 | } | |
1685 | 1688 | } | |
1686 | 1689 | ||
1687 | 1690 | ||
1688 | 1691 | ||
1689 | - | @Callable( | |
1690 | - | func cargoExchange ( | |
1691 | - | let | |
1692 | - | if ((size( | |
1692 | + | @Callable(cp) | |
1693 | + | func cargoExchange (gB,aD) = { | |
1694 | + | let gd = ga(cp) | |
1695 | + | if ((size(cp.payments) != 0)) | |
1693 | 1696 | then throw("No payments required") | |
1694 | 1697 | else { | |
1695 | - | let | |
1696 | - | let ai = toString( | |
1697 | - | let | |
1698 | - | let | |
1699 | - | if (!(isDefined(getInteger( | |
1700 | - | then throw(( | |
1698 | + | let dO = split_4C(gB, ":") | |
1699 | + | let ai = toString(cp.originCaller) | |
1700 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1701 | + | let eU = ar(aD) | |
1702 | + | if (!(isDefined(getInteger(eU)))) | |
1703 | + | then throw((eT.name + " is not staked")) | |
1701 | 1704 | else { | |
1702 | - | let | |
1703 | - | if (( | |
1705 | + | let eW = valueOrErrorMessage(getString(am(aD)), (("NFT " + eT.name) + " is orphaned")) | |
1706 | + | if ((eW != ai)) | |
1704 | 1707 | then throw((i + " is not yours")) | |
1705 | 1708 | else { | |
1706 | - | let | |
1707 | - | let | |
1708 | - | let | |
1709 | - | let | |
1710 | - | let | |
1711 | - | if (( | |
1712 | - | then throw((("Duck location type is " + | |
1713 | - | else if (( | |
1714 | - | then throw(("Duck should be on the land " + | |
1709 | + | let dz = (ct(split(eT.description, "_")[aZ]) / m) | |
1710 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1711 | + | let aQ = valueOrErrorMessage(getString(aO(ai)), "You don't have a duck staked") | |
1712 | + | let eQ = valueOrElse(getString(aR(aQ)), k) | |
1713 | + | let eR = split(value(eQ), "_") | |
1714 | + | if ((eR[bd] != "L")) | |
1715 | + | then throw((("Duck location type is " + eR[bd]) + ", but should be L")) | |
1716 | + | else if ((eR[be] != aD)) | |
1717 | + | then throw(("Duck should be on the land " + aD)) | |
1715 | 1718 | else { | |
1716 | - | let | |
1717 | - | let | |
1718 | - | let | |
1719 | - | let | |
1720 | - | let | |
1721 | - | let | |
1722 | - | let | |
1723 | - | let | |
1724 | - | [StringEntry( | |
1719 | + | let dy = aC(aD) | |
1720 | + | let dj = dx(dy, dz, dA) | |
1721 | + | let dd = aP(aQ) | |
1722 | + | let dP = dc(dd) | |
1723 | + | let ci = dN(dO, dj, dP) | |
1724 | + | let dG = split(dj[bn], "_") | |
1725 | + | let fj = (parseIntValue(dG[bp]) + ci._7) | |
1726 | + | let fk = (parseIntValue(dG[bq]) - ci._7) | |
1727 | + | [StringEntry(dd, makeString_2C([dP[bf], ci._4, ci._5, ci._6], ":")), StringEntry(dy, makeString_2C([dj[bj], ci._1, ci._2, ci._3, makeString([dG[bo], toString(fj), toString(fk), dG[br]], "_")], ":")), gd] | |
1725 | 1728 | } | |
1726 | 1729 | } | |
1727 | 1730 | } | |
1728 | 1731 | } | |
1729 | 1732 | } | |
1730 | 1733 | ||
1731 | 1734 | ||
1732 | 1735 | ||
1733 | - | @Callable( | |
1734 | - | func saveWarehouse ( | |
1735 | - | let | |
1736 | - | if (( | |
1736 | + | @Callable(cp) | |
1737 | + | func saveWarehouse (dC,aD) = { | |
1738 | + | let gd = ga(cp) | |
1739 | + | if ((cp.caller != af)) | |
1737 | 1740 | then throw("Access denied") | |
1738 | 1741 | else { | |
1739 | - | let | |
1740 | - | let | |
1741 | - | if ((size( | |
1742 | + | let dy = aC(aD) | |
1743 | + | let dD = split_4C(dC, ":") | |
1744 | + | if ((size(dD) != 5)) | |
1742 | 1745 | then throw("warehouse string should contain 4 ':' separators") | |
1743 | 1746 | else { | |
1744 | - | let | |
1745 | - | let | |
1746 | - | let | |
1747 | - | let | |
1748 | - | let | |
1749 | - | $Tuple2([StringEntry( | |
1747 | + | let gC = split(dD[bn], "_")[bo] | |
1748 | + | let fj = di(dD) | |
1749 | + | let gD = df(dD[bj]) | |
1750 | + | let fk = ((gD - parseIntValue(gC)) - fj) | |
1751 | + | let gE = makeString_2C([dD[bj], dD[bk], dD[bl], dD[bm], makeString([gC, toString(fj), toString(fk), toString(gD)], "_")], ":") | |
1752 | + | $Tuple2([StringEntry(dy, gE), gd], gE) | |
1750 | 1753 | } | |
1751 | 1754 | } | |
1752 | 1755 | } | |
1753 | 1756 | ||
1754 | 1757 | ||
1755 | 1758 | ||
1756 | - | @Callable( | |
1757 | - | func replaceBooleanArtifact ( | |
1759 | + | @Callable(cp) | |
1760 | + | func replaceBooleanArtifact (aD) = if ((cp.caller != ae)) | |
1758 | 1761 | then throw("Access denied") | |
1759 | 1762 | else { | |
1760 | - | let | |
1761 | - | let | |
1762 | - | let | |
1763 | - | if (isDefined( | |
1763 | + | let gF = av(aD) | |
1764 | + | let gG = ax(N, aD) | |
1765 | + | let gH = getBoolean(gF) | |
1766 | + | if (isDefined(gH)) | |
1764 | 1767 | then { | |
1765 | - | let | |
1766 | - | let | |
1767 | - | let | |
1768 | - | let | |
1769 | - | let | |
1770 | - | then [IntegerEntry( | |
1768 | + | let eX = split(value(assetInfo(fromBase58String(aD))).description, "_") | |
1769 | + | let eI = ct(eX[aZ]) | |
1770 | + | let eJ = valueOrElse(getInteger(gG), eI) | |
1771 | + | let eW = getString(am(aD)) | |
1772 | + | let gI = if (isDefined(eW)) | |
1773 | + | then [IntegerEntry(az(N, aD, value(eW)), eJ), DeleteEntry(aw(aD, value(eW)))] | |
1771 | 1774 | else nil | |
1772 | - | if (value( | |
1773 | - | then $Tuple2((( | |
1774 | - | else $Tuple2([DeleteEntry( | |
1775 | + | if (value(gH)) | |
1776 | + | then $Tuple2(((gI :+ IntegerEntry(gG, eJ)) :+ DeleteEntry(gF)), 2) | |
1777 | + | else $Tuple2([DeleteEntry(gF)], 1) | |
1775 | 1778 | } | |
1776 | 1779 | else $Tuple2(nil, 0) | |
1777 | 1780 | } | |
1778 | 1781 | ||
1779 | 1782 | ||
1780 | 1783 | ||
1781 | - | @Callable(co) | |
1782 | - | func setCustomName (ap,fM,aI) = { | |
1783 | - | let gc = fZ(co) | |
1784 | - | if ((size(co.payments) != 1)) | |
1784 | + | @Callable(cp) | |
1785 | + | func fixWarehouseFormat (aD) = if ((cp.caller != ae)) | |
1786 | + | then throw("Access denied") | |
1787 | + | else { | |
1788 | + | let dy = aC(aD) | |
1789 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1790 | + | let dz = (ct(split(eT.description, "_")[aZ]) / m) | |
1791 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1792 | + | let dC = dx(dy, dz, dA) | |
1793 | + | let gJ = valueOrElse(getString(af, aX(aD)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:") | |
1794 | + | nil | |
1795 | + | } | |
1796 | + | ||
1797 | + | ||
1798 | + | ||
1799 | + | @Callable(cp) | |
1800 | + | func setCustomName (an,fN,ay) = { | |
1801 | + | let gd = ga(cp) | |
1802 | + | if ((size(cp.payments) != 1)) | |
1785 | 1803 | then throw("Exactly one payment required") | |
1786 | 1804 | else { | |
1787 | - | let | |
1788 | - | if (( | |
1805 | + | let ge = value(cp.payments[0]) | |
1806 | + | if ((ge.assetId != b)) | |
1789 | 1807 | then throw("Allowed USDT payment only!") | |
1790 | - | else if (( | |
1808 | + | else if ((ge.amount != w)) | |
1791 | 1809 | then throw(("Payment should be " + toString(w))) | |
1792 | - | else if (contains( | |
1793 | - | then throw(("Name should not contain '__': " + | |
1794 | - | else if ((size( | |
1810 | + | else if (contains(fN, "__")) | |
1811 | + | then throw(("Name should not contain '__': " + fN)) | |
1812 | + | else if ((size(fN) > x)) | |
1795 | 1813 | then throw(("Name too long, maxLength=" + toString(x))) | |
1796 | 1814 | else { | |
1797 | - | let ai = toString( | |
1798 | - | let | |
1799 | - | let c = | |
1815 | + | let ai = toString(cp.originCaller) | |
1816 | + | let gK = { | |
1817 | + | let c = ay | |
1800 | 1818 | if (("ACCOUNT" == c)) | |
1801 | 1819 | then { | |
1802 | - | let | |
1803 | - | let | |
1804 | - | if (isDefined( | |
1805 | - | then throw(("Name already registered: " + | |
1806 | - | else [StringEntry( | |
1820 | + | let gL = aJ(fN) | |
1821 | + | let gM = getString(gL) | |
1822 | + | if (isDefined(gM)) | |
1823 | + | then throw(("Name already registered: " + fN)) | |
1824 | + | else [StringEntry(aH(ai), fN), StringEntry(gL, ai)] | |
1807 | 1825 | } | |
1808 | 1826 | else if (("LAND" == c)) | |
1809 | 1827 | then { | |
1810 | - | let | |
1811 | - | let | |
1812 | - | if (!(isDefined(getInteger( | |
1813 | - | then throw(( | |
1828 | + | let eT = value(assetInfo(fromBase58String(an))) | |
1829 | + | let eU = ar(an) | |
1830 | + | if (!(isDefined(getInteger(eU)))) | |
1831 | + | then throw((eT.name + " is not staked")) | |
1814 | 1832 | else { | |
1815 | - | let | |
1816 | - | if (( | |
1833 | + | let eW = valueOrErrorMessage(getString(am(an)), (("NFT " + eT.name) + " is orphaned")) | |
1834 | + | if ((eW != ai)) | |
1817 | 1835 | then throw((i + " is not yours")) | |
1818 | 1836 | else { | |
1819 | - | let | |
1820 | - | let | |
1821 | - | if (isDefined( | |
1822 | - | then throw(("Name already registered: " + | |
1823 | - | else [StringEntry( | |
1837 | + | let gL = ap(fN) | |
1838 | + | let gM = getString(gL) | |
1839 | + | if (isDefined(gM)) | |
1840 | + | then throw(("Name already registered: " + fN)) | |
1841 | + | else [StringEntry(ao(an), fN), StringEntry(gL, an)] | |
1824 | 1842 | } | |
1825 | 1843 | } | |
1826 | 1844 | } | |
1827 | 1845 | else if (("DUCK" == c)) | |
1828 | 1846 | then { | |
1829 | - | let | |
1830 | - | let | |
1831 | - | if (if (!(isDefined(getInteger( | |
1847 | + | let eT = value(assetInfo(fromBase58String(an))) | |
1848 | + | let eU = ar(an) | |
1849 | + | if (if (!(isDefined(getInteger(eU)))) | |
1832 | 1850 | then true | |
1833 | - | else !(isDefined(getString( | |
1834 | - | then throw(( | |
1851 | + | else !(isDefined(getString(aO(ai))))) | |
1852 | + | then throw((eT.name + " is not staked")) | |
1835 | 1853 | else { | |
1836 | - | let | |
1837 | - | if (( | |
1854 | + | let eW = valueOrErrorMessage(getString(aN(an)), (("NFT " + eT.name) + " is orphaned")) | |
1855 | + | if ((eW != ai)) | |
1838 | 1856 | then throw((j + " is not yours")) | |
1839 | 1857 | else { | |
1840 | - | let | |
1841 | - | let | |
1842 | - | if (isDefined( | |
1843 | - | then throw(("Name already registered: " + | |
1844 | - | else [StringEntry( | |
1858 | + | let gL = aI(fN) | |
1859 | + | let gM = getString(gL) | |
1860 | + | if (isDefined(gM)) | |
1861 | + | then throw(("Name already registered: " + fN)) | |
1862 | + | else [StringEntry(aG(an), fN), StringEntry(gL, an)] | |
1845 | 1863 | } | |
1846 | 1864 | } | |
1847 | 1865 | } | |
1848 | 1866 | else throw("Unknown entity type") | |
1849 | 1867 | } | |
1850 | - | $Tuple2((( | |
1868 | + | $Tuple2(((gK :+ ScriptTransfer(af, ge.amount, b)) :+ gd), 0) | |
1851 | 1869 | } | |
1852 | 1870 | } | |
1853 | 1871 | } | |
1854 | 1872 | ||
1855 | 1873 | ||
1856 | 1874 | ||
1857 | - | @Callable( | |
1858 | - | func setReferrals ( | |
1875 | + | @Callable(cp) | |
1876 | + | func setReferrals (gN,gO) = if ((cp.callerPublicKey != g)) | |
1859 | 1877 | then throw("Permission denied") | |
1860 | 1878 | else { | |
1861 | - | let | |
1862 | - | if ((size( | |
1879 | + | let gd = ga(cp) | |
1880 | + | if ((size(cp.payments) != 0)) | |
1863 | 1881 | then throw("No payments required") | |
1864 | - | else if (!(isDefined(addressFromString( | |
1865 | - | then throw(("Invalid address: " + | |
1866 | - | else if (!(isDefined(addressFromString( | |
1867 | - | then throw(("Invalid address: " + | |
1882 | + | else if (!(isDefined(addressFromString(gN)))) | |
1883 | + | then throw(("Invalid address: " + gN)) | |
1884 | + | else if (!(isDefined(addressFromString(gO)))) | |
1885 | + | then throw(("Invalid address: " + gO)) | |
1868 | 1886 | else { | |
1869 | - | let | |
1870 | - | let | |
1871 | - | let | |
1872 | - | then split_4C(value( | |
1887 | + | let gP = aM() | |
1888 | + | let gQ = getString(gP) | |
1889 | + | let gR = if (isDefined(gQ)) | |
1890 | + | then split_4C(value(gQ), "_") | |
1873 | 1891 | else nil | |
1874 | - | if (containsElement( | |
1875 | - | then throw(( | |
1892 | + | if (containsElement(gR, gO)) | |
1893 | + | then throw((gO + " is not newbie (already has referrals)")) | |
1876 | 1894 | else { | |
1877 | - | let | |
1878 | - | let | |
1879 | - | if (if (isDefined( | |
1880 | - | then isDefined(addressFromString(value( | |
1895 | + | let gS = aK(gO) | |
1896 | + | let gT = getString(gS) | |
1897 | + | if (if (isDefined(gT)) | |
1898 | + | then isDefined(addressFromString(value(gT))) | |
1881 | 1899 | else false) | |
1882 | - | then throw((( | |
1900 | + | then throw(((gO + " already has refBy: ") + value(gT))) | |
1883 | 1901 | else { | |
1884 | - | let | |
1885 | - | let | |
1886 | - | let | |
1887 | - | then split_4C(value( | |
1902 | + | let gU = aL(gN) | |
1903 | + | let gV = getString(gU) | |
1904 | + | let gW = if (isDefined(gV)) | |
1905 | + | then split_4C(value(gV), "_") | |
1888 | 1906 | else nil | |
1889 | - | if (containsElement( | |
1890 | - | then throw(((( | |
1907 | + | if (containsElement(gW, gO)) | |
1908 | + | then throw((((gN + " already contains ") + gO) + " within referrals")) | |
1891 | 1909 | else { | |
1892 | - | let | |
1893 | - | let | |
1894 | - | $Tuple2([StringEntry( | |
1910 | + | let gX = makeString_2C((gW :+ gO), "_") | |
1911 | + | let gY = makeString_2C((gR :+ gN), "_") | |
1912 | + | $Tuple2([StringEntry(gS, gN), StringEntry(gU, gX), StringEntry(gP, gY), gd], 0) | |
1895 | 1913 | } | |
1896 | 1914 | } | |
1897 | 1915 | } | |
1898 | 1916 | } | |
1899 | 1917 | } | |
1900 | 1918 | ||
1901 | 1919 | ||
1902 | 1920 | ||
1903 | - | @Callable( | |
1904 | - | func splitByGlobalWeightsREADONLY ( | |
1921 | + | @Callable(cp) | |
1922 | + | func splitByGlobalWeightsREADONLY (cw) = $Tuple2(nil, bZ(cw)) | |
1905 | 1923 | ||
1906 | 1924 | ||
1907 | 1925 | ||
1908 | - | @Callable( | |
1909 | - | func splitByGlobalAndLocalWeightsREADONLY ( | |
1910 | - | let | |
1911 | - | $Tuple2(nil, $Tuple2( | |
1926 | + | @Callable(cp) | |
1927 | + | func splitByGlobalAndLocalWeightsREADONLY (gZ,ha,cs) = { | |
1928 | + | let cl = cr(cs) | |
1929 | + | $Tuple2(nil, $Tuple2(bZ(gZ), bK(ha, cl))) | |
1912 | 1930 | } | |
1913 | 1931 | ||
1914 | 1932 | ||
1915 | 1933 | ||
1916 | - | @Callable( | |
1917 | - | func getBackpackREADONLY ( | |
1934 | + | @Callable(cp) | |
1935 | + | func getBackpackREADONLY (aQ) = $Tuple2(nil, makeString(dc(aP(aQ)), ":")) | |
1918 | 1936 | ||
1919 | 1937 | ||
1920 | 1938 | ||
1921 | - | @Callable( | |
1922 | - | func getWarehouseREADONLY ( | |
1923 | - | let | |
1924 | - | let | |
1925 | - | let | |
1926 | - | $Tuple2(nil, makeString_2C( | |
1939 | + | @Callable(cp) | |
1940 | + | func getWarehouseREADONLY (aD) = { | |
1941 | + | let eT = value(assetInfo(fromBase58String(aD))) | |
1942 | + | let dz = (ct(split(eT.description, "_")[aZ]) / m) | |
1943 | + | let dA = valueOrElse(getInteger(as(aD)), 0) | |
1944 | + | $Tuple2(nil, makeString_2C(dx(aC(aD), dz, dA), ":")) | |
1927 | 1945 | } | |
1928 | 1946 | ||
1929 | 1947 |
github/deemru/w8io/026f985 870.64 ms ◑