tx · GHnDLx9fbaZCDDUUZzSTzCGjWtWvrC3bi3Dnq8Zj8HgV 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.02400000 Waves 2023.01.07 20:48 [2394855] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "GHnDLx9fbaZCDDUUZzSTzCGjWtWvrC3bi3Dnq8Zj8HgV", "fee": 2400000, "feeAssetId": null, "timestamp": 1673113699387, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "42kVNz1M4eaoGuEEJYwg17BTRqxpQy9SbW3QRL9kf59zfvmopPxCyYS3wvBtCKTFEs8EsidM5Yd7Xyqh7wSdtVMs" ], "script": "base64:BgJJCAISABIDCgEIEgASAwoBCBIECgIBCBIECgICAhIECgIBCBIECgIBARIECgIICBIECgICAhIECgICAhIDCgEIEgMKAQgSAwoBCEsABWNoYWluCQCwCQEJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZG5Bc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAgFXBQckbWF0Y2gwASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QMJAAACAgFUBQckbWF0Y2gwASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAICAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAICAVQFByRtYXRjaDAFBHRoaXMJAAIBAg1Vbmtub3duIGNoYWluAAticmVlZGVyQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAgIBVwUHJG1hdGNoMAkBEUBleHRyTm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us": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CAKs3kgsQ12fqrxwYjQd7LqqT65S5TtXMtm8Wq5bCs3N Next: BMPLrL7JaYrzdyMqEQaof9Z2476EU7k8anQRKiWia9m7 Diff:
Old | New | Differences | |
---|---|---|---|
140 | 140 | func P (J) = ("presaleArtActivated_" + J) | |
141 | 141 | ||
142 | 142 | ||
143 | - | func Q (O) = (" | |
143 | + | func Q (J,O) = ((("presaleArtActivatedByAssetIdAndOwner_" + J) + "_") + O) | |
144 | 144 | ||
145 | 145 | ||
146 | - | func R ( | |
146 | + | func R (O) = ("stakedDuckByOwner_" + O) | |
147 | 147 | ||
148 | 148 | ||
149 | - | func | |
149 | + | func S (T,J,O) = ((((("stakedTimeByTypeAssetIdAndOwner_" + T) + "_") + J) + "_") + O) | |
150 | 150 | ||
151 | 151 | ||
152 | - | func U ( | |
152 | + | func U (F) = ("landOwner_" + F) | |
153 | 153 | ||
154 | 154 | ||
155 | - | func | |
155 | + | func V (W) = ("backPack_" + W) | |
156 | 156 | ||
157 | 157 | ||
158 | - | func X ( | |
158 | + | func X (W) = ("duckLocation_" + W) | |
159 | 159 | ||
160 | 160 | ||
161 | - | func Y () = " | |
161 | + | func Y (W) = ("duckHealth_" + W) | |
162 | 162 | ||
163 | 163 | ||
164 | - | ||
164 | + | func Z () = "resTypesProportions" | |
165 | 165 | ||
166 | - | let aa = 1 | |
167 | 166 | ||
168 | - | let | |
167 | + | let aa = 0 | |
169 | 168 | ||
170 | - | let | |
169 | + | let ab = 1 | |
171 | 170 | ||
172 | - | let | |
171 | + | let ac = 2 | |
173 | 172 | ||
174 | - | let | |
173 | + | let ad = 3 | |
175 | 174 | ||
176 | - | let | |
175 | + | let ae = 0 | |
177 | 176 | ||
178 | - | let | |
177 | + | let af = 1 | |
179 | 178 | ||
180 | - | let | |
179 | + | let ag = 2 | |
181 | 180 | ||
182 | - | let | |
181 | + | let ah = 0 | |
183 | 182 | ||
184 | - | let | |
183 | + | let ai = 1 | |
185 | 184 | ||
186 | - | func ak (al) = { | |
187 | - | let c = al | |
185 | + | let aj = 2 | |
186 | + | ||
187 | + | let ak = 3 | |
188 | + | ||
189 | + | func al (am) = { | |
190 | + | let c = am | |
188 | 191 | if ($isInstanceOf(c, "String")) | |
189 | 192 | then { | |
190 | - | let | |
191 | - | | |
193 | + | let an = c | |
194 | + | an | |
192 | 195 | } | |
193 | 196 | else throw("fail to cast into String") | |
194 | 197 | } | |
195 | 198 | ||
196 | 199 | ||
197 | - | func | |
198 | - | let | |
199 | - | if ((size( | |
200 | + | func ao (ap) = { | |
201 | + | let aq = split(value(getString(Z())), "_") | |
202 | + | if ((size(aq) != l)) | |
200 | 203 | then throw("Wrong proportions data") | |
201 | 204 | else { | |
202 | - | let | |
203 | - | let | |
204 | - | if ((0 >= | |
205 | + | let ar = [parseIntValue(aq[0]), parseIntValue(aq[1]), parseIntValue(aq[2]), parseIntValue(aq[3]), parseIntValue(aq[4]), parseIntValue(aq[5])] | |
206 | + | let as = (((((ar[0] + ar[1]) + ar[2]) + ar[3]) + ar[4]) + ar[5]) | |
207 | + | if ((0 >= as)) | |
205 | 208 | then throw("No lands staked") | |
206 | 209 | else { | |
207 | - | let | |
208 | - | func | |
210 | + | let at = fraction(ap, u, as) | |
211 | + | func au (av,aw) = (av :+ fraction(aw, at, u)) | |
209 | 212 | ||
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | func | |
214 | - | then | |
215 | - | else | |
213 | + | let ax = ar | |
214 | + | let ay = size(ax) | |
215 | + | let az = nil | |
216 | + | func aA (aB,aC) = if ((aC >= ay)) | |
217 | + | then aB | |
218 | + | else au(aB, ax[aC]) | |
216 | 219 | ||
217 | - | func | |
218 | - | then | |
220 | + | func aD (aB,aC) = if ((aC >= ay)) | |
221 | + | then aB | |
219 | 222 | else throw("List size exceeds 6") | |
220 | 223 | ||
221 | - | | |
224 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
222 | 225 | } | |
223 | 226 | } | |
224 | 227 | } | |
225 | 228 | ||
226 | 229 | ||
227 | - | func | |
228 | - | let | |
229 | - | func | |
230 | - | let | |
231 | - | if ((0 > | |
232 | - | then throw(((((("Not enough material idx=" + toString( | |
233 | - | else ( | |
230 | + | func aE (aF,aG,aH) = { | |
231 | + | let aI = ao(aH) | |
232 | + | func aJ (av,aK) = { | |
233 | + | let aL = (parseIntValue(aG[aK]) - aI[aK]) | |
234 | + | if ((0 > aL)) | |
235 | + | then throw(((((("Not enough material idx=" + toString(aK)) + ", you have ") + aG[aK]) + ", but need ") + toString(aI[aK]))) | |
236 | + | else (av :+ toString(aL)) | |
234 | 237 | } | |
235 | 238 | ||
236 | - | if ( | |
239 | + | if (aF) | |
237 | 240 | then { | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | func | |
242 | - | then | |
243 | - | else | |
241 | + | let ax = [0, 1, 2, 3, 4, 5] | |
242 | + | let ay = size(ax) | |
243 | + | let az = nil | |
244 | + | func aA (aB,aC) = if ((aC >= ay)) | |
245 | + | then aB | |
246 | + | else aJ(aB, ax[aC]) | |
244 | 247 | ||
245 | - | func | |
246 | - | then | |
248 | + | func aD (aB,aC) = if ((aC >= ay)) | |
249 | + | then aB | |
247 | 250 | else throw("List size exceeds 6") | |
248 | 251 | ||
249 | - | | |
252 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
250 | 253 | } | |
251 | - | else | |
254 | + | else aG | |
252 | 255 | } | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
256 | - | let | |
257 | - | if ((size( | |
258 | + | func aM (aN,aO,aP) = { | |
259 | + | let aq = split(valueOrElse(getString(Z()), "0_0_0_0_0_0"), "_") | |
260 | + | if ((size(aq) != l)) | |
258 | 261 | then throw("Wrong proportions data") | |
259 | 262 | else { | |
260 | - | func | |
261 | - | let | |
262 | - | if ((0 > | |
263 | - | then throw(((((((("Panic! Pieces of type=" + toString( | |
264 | - | else ( | |
263 | + | func aQ (av,aR) = { | |
264 | + | let aL = (parseIntValue(aq[aR]) + ((aP * aN[aR]) * aO)) | |
265 | + | if ((0 > aL)) | |
266 | + | then throw(((((((("Panic! Pieces of type=" + toString(aR)) + ", sign=") + toString(aP)) + ", terrainCounts[i]=") + toString(aN[aR])) + ", landSizeIndex=") + toString(aO))) | |
267 | + | else (av :+ toString(aL)) | |
265 | 268 | } | |
266 | 269 | ||
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | func | |
272 | - | then | |
273 | - | else | |
270 | + | let ar = { | |
271 | + | let ax = [0, 1, 2, 3, 4, 5] | |
272 | + | let ay = size(ax) | |
273 | + | let az = nil | |
274 | + | func aA (aB,aC) = if ((aC >= ay)) | |
275 | + | then aB | |
276 | + | else aQ(aB, ax[aC]) | |
274 | 277 | ||
275 | - | func | |
276 | - | then | |
278 | + | func aD (aB,aC) = if ((aC >= ay)) | |
279 | + | then aB | |
277 | 280 | else throw("List size exceeds 6") | |
278 | 281 | ||
279 | - | | |
282 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
280 | 283 | } | |
281 | - | makeString( | |
284 | + | makeString(ar, "_") | |
282 | 285 | } | |
283 | 286 | } | |
284 | 287 | ||
285 | 288 | ||
286 | - | func | |
289 | + | func aS (aT) = [(size(split(aT, "A")) - 1), (size(split(aT, "B")) - 1), (size(split(aT, "C")) - 1), (size(split(aT, "D")) - 1), (size(split(aT, "E")) - 1), (size(split(aT, "F")) - 1)] | |
287 | 290 | ||
288 | 291 | ||
289 | - | func | |
292 | + | func aU (H) = { | |
290 | 293 | let c = H | |
291 | 294 | if (("S" == c)) | |
292 | 295 | then 25 | |
302 | 305 | } | |
303 | 306 | ||
304 | 307 | ||
305 | - | func | |
306 | - | func | |
307 | - | then toString((parseIntValue( | |
308 | - | else | |
308 | + | func aV (aW,aK,aX) = { | |
309 | + | func aY (av,aR) = (av :+ (if ((aR == aK)) | |
310 | + | then toString((parseIntValue(aW[aR]) - aX)) | |
311 | + | else aW[aR])) | |
309 | 312 | ||
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | func | |
315 | - | then | |
316 | - | else | |
313 | + | let ar = { | |
314 | + | let ax = [0, 1, 2, 3, 4, 5] | |
315 | + | let ay = size(ax) | |
316 | + | let az = nil | |
317 | + | func aA (aB,aC) = if ((aC >= ay)) | |
318 | + | then aB | |
319 | + | else aY(aB, ax[aC]) | |
317 | 320 | ||
318 | - | func | |
319 | - | then | |
321 | + | func aD (aB,aC) = if ((aC >= ay)) | |
322 | + | then aB | |
320 | 323 | else throw("List size exceeds 6") | |
321 | 324 | ||
322 | - | | |
325 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
323 | 326 | } | |
324 | - | makeString( | |
327 | + | makeString(ar, "_") | |
325 | 328 | } | |
326 | 329 | ||
327 | 330 | ||
328 | - | func | |
329 | - | func | |
330 | - | let | |
331 | - | ( | |
331 | + | func aZ (ba,aN,bb,aO,bc) = { | |
332 | + | func bd (av,aR) = { | |
333 | + | let be = ((fraction(bb, bc, n) * aN[aR]) * aO) | |
334 | + | (av :+ toString((parseIntValue(ba[aR]) + be))) | |
332 | 335 | } | |
333 | 336 | ||
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | func | |
339 | - | then | |
340 | - | else | |
337 | + | let ar = { | |
338 | + | let ax = [0, 1, 2, 3, 4, 5] | |
339 | + | let ay = size(ax) | |
340 | + | let az = nil | |
341 | + | func aA (aB,aC) = if ((aC >= ay)) | |
342 | + | then aB | |
343 | + | else bd(aB, ax[aC]) | |
341 | 344 | ||
342 | - | func | |
343 | - | then | |
345 | + | func aD (aB,aC) = if ((aC >= ay)) | |
346 | + | then aB | |
344 | 347 | else throw("List size exceeds 6") | |
345 | 348 | ||
346 | - | | |
349 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
347 | 350 | } | |
348 | - | makeString( | |
351 | + | makeString(ar, "_") | |
349 | 352 | } | |
350 | 353 | ||
351 | 354 | ||
352 | - | func | |
353 | - | then | |
354 | - | else -( | |
355 | + | func bf (bg) = if ((bg >= toBigInt(0))) | |
356 | + | then bg | |
357 | + | else -(bg) | |
355 | 358 | ||
356 | 359 | ||
357 | - | let | |
360 | + | let bh = [[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]] | |
358 | 361 | ||
359 | - | func | |
360 | - | let | |
361 | - | let | |
362 | + | func bi (bj,bk) = { | |
363 | + | let bl = toInt((bj % w)) | |
364 | + | let bm = if ((bk[0] > bl)) | |
362 | 365 | then "A" | |
363 | - | else if (( | |
366 | + | else if ((bk[1] > bl)) | |
364 | 367 | then "B" | |
365 | - | else if (( | |
368 | + | else if ((bk[2] > bl)) | |
366 | 369 | then "C" | |
367 | - | else if (( | |
370 | + | else if ((bk[3] > bl)) | |
368 | 371 | then "D" | |
369 | - | else if (( | |
372 | + | else if ((bk[4] > bl)) | |
370 | 373 | then "E" | |
371 | 374 | else "F" | |
372 | - | | |
375 | + | bm | |
373 | 376 | } | |
374 | 377 | ||
375 | 378 | ||
376 | - | func | |
377 | - | let | |
378 | - | [toString(valueOrElse(parseInt( | |
379 | - | then | |
380 | - | else "0_0_0_0_0_0", if ((size(split( | |
381 | - | then | |
382 | - | else "0_0_0_0_0_0", | |
379 | + | func bn (bo) = { | |
380 | + | let bp = split(valueOrElse(getString(bo), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
381 | + | [toString(valueOrElse(parseInt(bp[ah]), 0)), if ((size(split(bp[ai], "_")) == l)) | |
382 | + | then bp[ai] | |
383 | + | else "0_0_0_0_0_0", if ((size(split(bp[aj], "_")) == l)) | |
384 | + | then bp[aj] | |
385 | + | else "0_0_0_0_0_0", bp[ak]] | |
383 | 386 | } | |
384 | 387 | ||
385 | 388 | ||
386 | - | func | |
389 | + | func bq (aF,br,bs,bt,bu) = if (!(sigVerify_8Kb(bt, bu, g))) | |
387 | 390 | then throw("signature does not match") | |
388 | 391 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | if (( | |
392 | + | let bv = split(toUtf8String(bt), ";") | |
393 | + | let bw = split(split(bv[0], "|")[0], "_") | |
394 | + | let bx = parseIntValue(bw[0]) | |
395 | + | let by = parseIntValue(bw[1]) | |
396 | + | let bz = split(bv[1], ":") | |
397 | + | let bA = split(bz[0], "_") | |
398 | + | if ((bA[1] != "E")) | |
396 | 399 | then throw("expedition target location type should be E") | |
397 | 400 | else { | |
398 | - | let | |
399 | - | if (if (( | |
401 | + | let bB = parseIntValue(bz[1]) | |
402 | + | if (if ((bB > (lastBlock.timestamp + o))) | |
400 | 403 | then true | |
401 | - | else ((lastBlock.timestamp - o) > | |
404 | + | else ((lastBlock.timestamp - o) > bB)) | |
402 | 405 | then throw("signature outdated") | |
403 | 406 | else { | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if (( | |
409 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
410 | - | else if ((0 >= | |
407 | + | let bC = toString(br) | |
408 | + | let W = valueOrErrorMessage(getString(R(bC)), "You don't have a duck staked") | |
409 | + | let bD = Y(W) | |
410 | + | let bE = valueOrElse(getInteger(bD), 100) | |
411 | + | if ((bE != bx)) | |
412 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bD), 100))) + " from state does not match one from flight log=") + toString(bx))) | |
413 | + | else if ((0 >= bx)) | |
411 | 414 | then throw("You can't fly with zero health") | |
412 | - | else if ((0 >= | |
413 | - | then $Tuple2(((if (!( | |
414 | - | then [ScriptTransfer( | |
415 | - | else nil) :+ IntegerEntry( | |
415 | + | else if ((0 >= by)) | |
416 | + | then $Tuple2(((if (!(aF)) | |
417 | + | then [ScriptTransfer(br, t, b)] | |
418 | + | else nil) :+ IntegerEntry(bD, 0)), "") | |
416 | 419 | else { | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let F = toString( | |
424 | - | let | |
425 | - | let | |
426 | - | func | |
420 | + | let bo = V(W) | |
421 | + | let bF = bn(bo) | |
422 | + | let bG = split(bF[aj], "_") | |
423 | + | let bH = makeString(aE(aF, bG, s), "_") | |
424 | + | let bI = bf(toBigInt(bs)) | |
425 | + | let bJ = valueOrElse(getInteger(D()), 501) | |
426 | + | let F = toString(bJ) | |
427 | + | let bK = toInt((bI % v)) | |
428 | + | let bL = bh[bK] | |
429 | + | func bM (av,aw) = $Tuple2((((((av._1 + bi(av._2, bL)) + bi((av._2 / w), bL)) + bi((av._2 / x), bL)) + bi((av._2 / y), bL)) + bi((av._2 / z), bL)), (av._2 / A)) | |
427 | 430 | ||
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | func | |
433 | - | then | |
434 | - | else | |
431 | + | let bN = { | |
432 | + | let ax = [1, 2, 3, 4, 5] | |
433 | + | let ay = size(ax) | |
434 | + | let az = $Tuple2("", (bI / v)) | |
435 | + | func aA (aB,aC) = if ((aC >= ay)) | |
436 | + | then aB | |
437 | + | else bM(aB, ax[aC]) | |
435 | 438 | ||
436 | - | func | |
437 | - | then | |
439 | + | func aD (aB,aC) = if ((aC >= ay)) | |
440 | + | then aB | |
438 | 441 | else throw("List size exceeds 5") | |
439 | 442 | ||
440 | - | | |
443 | + | aD(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5) | |
441 | 444 | } | |
442 | - | let | |
443 | - | let | |
444 | - | let J = calculateAssetId( | |
445 | - | let | |
446 | - | $Tuple2([IntegerEntry(D(), ( | |
445 | + | let bO = C[bK] | |
446 | + | let bP = Issue(G(F, "S"), makeString([F, "S", bN._1, bO], "_"), 1, 0, false) | |
447 | + | let J = calculateAssetId(bP) | |
448 | + | let bQ = toBase58String(J) | |
449 | + | $Tuple2([IntegerEntry(D(), (bJ + 1)), bP, StringEntry(E(F), bQ), StringEntry(I(bQ), bC), StringEntry(U(F), bC), IntegerEntry(M(bQ), 0), IntegerEntry(N(bQ, bC), 0), ScriptTransfer(br, 1, J), StringEntry(X(W), makeString([bO, "L", bQ], "_")), IntegerEntry(bD, by), StringEntry(bo, makeString([bF[ah], bF[ai], bH, bF[ak]], ":"))], bQ) | |
447 | 450 | } | |
448 | 451 | } | |
449 | 452 | } | |
450 | 453 | } | |
451 | 454 | ||
452 | 455 | ||
453 | - | func | |
454 | - | let | |
455 | - | let | |
456 | + | func bR (bS) = { | |
457 | + | let bT = valueOrElse(getInteger(M(bS)), 0) | |
458 | + | let bU = if (valueOrElse(getBoolean(P(bS)), false)) | |
456 | 459 | then 3 | |
457 | 460 | else 0 | |
458 | - | ((m + fraction(m, | |
461 | + | ((m + fraction(m, bT, 4)) + fraction(m, bU, 20)) | |
459 | 462 | } | |
460 | 463 | ||
461 | 464 | ||
462 | - | func | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if (( | |
467 | - | then throw((("Duck location type is " + | |
465 | + | func bV (bW) = { | |
466 | + | let W = valueOrErrorMessage(getString(R(bW)), "You don't have a duck staked") | |
467 | + | let bX = valueOrElse(getString(X(W)), k) | |
468 | + | let bY = split(value(bX), "_") | |
469 | + | if ((bY[af] != "L")) | |
470 | + | then throw((("Duck location type is " + bY[af]) + ", but should be L")) | |
468 | 471 | else { | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | if (( | |
472 | + | let bS = bY[ag] | |
473 | + | let bZ = value(assetInfo(fromBase58String(bS))) | |
474 | + | let ca = L(bS) | |
475 | + | let cb = valueOrErrorMessage(getInteger(ca), (("NFT " + bZ.name) + " is not staked")) | |
476 | + | let cc = valueOrErrorMessage(getString(I(bS)), (("NFT " + bZ.name) + " is orphaned")) | |
477 | + | if ((cc != bW)) | |
475 | 478 | then throw((i + " is not yours")) | |
476 | 479 | else { | |
477 | - | let | |
478 | - | $Tuple4( | |
480 | + | let cd = split(bZ.description, "_") | |
481 | + | $Tuple4(W, bS, cd, cb) | |
479 | 482 | } | |
480 | 483 | } | |
481 | 484 | } | |
482 | 485 | ||
483 | 486 | ||
484 | - | func | |
485 | - | let | |
486 | - | let H = | |
487 | - | let | |
488 | - | let | |
489 | - | if ((0 > | |
490 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
487 | + | func ce (bW,aX) = { | |
488 | + | let cf = bV(bW) | |
489 | + | let H = cf._3[ab] | |
490 | + | let aN = aS(cf._3[ac]) | |
491 | + | let bb = (lastBlock.timestamp - cf._4) | |
492 | + | if ((0 > bb)) | |
493 | + | then throw(((("Saved timestamp is in future, saved = " + toString(cf._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
491 | 494 | else { | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | if (( | |
496 | - | then throw(((("Not enough resources, available = " + toString( | |
495 | + | let cg = aU(H) | |
496 | + | let ch = bR(cf._2) | |
497 | + | let ci = fraction(bb, (ch * cg), n) | |
498 | + | if ((aX > ci)) | |
499 | + | then throw(((("Not enough resources, available = " + toString(ci)) + ", requested = ") + toString(aX))) | |
497 | 500 | else { | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | $Tuple3([IntegerEntry(L( | |
501 | + | let cj = fraction((ci - aX), n, (ch * cg)) | |
502 | + | let ck = (lastBlock.timestamp - cj) | |
503 | + | let bo = V(cf._1) | |
504 | + | let bF = bn(bo) | |
505 | + | let ba = split(bF[ai], "_") | |
506 | + | let cl = aZ(ba, aN, (bb - cj), (cg / 25), ch) | |
507 | + | $Tuple3([IntegerEntry(L(cf._2), ck), IntegerEntry(S(i, cf._2, bW), ck)], bo, [bF[ah], cl, bF[aj], bF[ak]]) | |
505 | 508 | } | |
506 | 509 | } | |
507 | 510 | } | |
508 | 511 | ||
509 | 512 | ||
510 | - | func | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | | |
513 | + | func cm (bW,bS,cg) = { | |
514 | + | let ca = L(bS) | |
515 | + | let cb = value(getInteger(ca)) | |
516 | + | let ci = (fraction((lastBlock.timestamp - cb), bR(bS), n) * cg) | |
517 | + | ce(bW, ci) | |
515 | 518 | } | |
516 | 519 | ||
517 | 520 | ||
518 | - | func | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | if (( | |
521 | + | func cn (aF,br,co) = { | |
522 | + | let bW = toString(br) | |
523 | + | let cf = bV(bW) | |
524 | + | let cg = aU(cf._3[ab]) | |
525 | + | let cp = M(cf._2) | |
526 | + | let cq = valueOrElse(getInteger(cp), 0) | |
527 | + | if ((cq >= 3)) | |
525 | 528 | then throw("Currently max infrastructure level = 3") | |
526 | 529 | else { | |
527 | - | let | |
528 | - | let | |
529 | - | if (if (!( | |
530 | - | then ( | |
530 | + | let cr = (cq + 1) | |
531 | + | let cs = fraction(r, (cg * cr), 25) | |
532 | + | if (if (!(aF)) | |
533 | + | then (co != cs) | |
531 | 534 | else false) | |
532 | - | then throw(("Payment attached should be " + toString( | |
535 | + | then throw(("Payment attached should be " + toString(cs))) | |
533 | 536 | else { | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | $Tuple2(([IntegerEntry( | |
537 | + | let bo = V(cf._1) | |
538 | + | let bF = bn(bo) | |
539 | + | let bG = split(bF[aj], "_") | |
540 | + | let bH = makeString(aE(aF, bG, fraction(q, (cg * cr), 25)), "_") | |
541 | + | let ct = cm(bW, cf._2, cg) | |
542 | + | $Tuple2(([IntegerEntry(cp, cr), IntegerEntry(N(cf._2, bW), cr), StringEntry(bo, makeString([bF[ah], ct._3[ai], bH, bF[ak]], ":"))] ++ ct._1), cr) | |
540 | 543 | } | |
541 | 544 | } | |
542 | 545 | } | |
543 | 546 | ||
544 | 547 | ||
545 | - | func | |
546 | - | let | |
547 | - | let | |
548 | - | if (valueOrElse(getBoolean( | |
548 | + | func cu (bW) = { | |
549 | + | let cf = bV(bW) | |
550 | + | let cv = P(cf._2) | |
551 | + | if (valueOrElse(getBoolean(cv), false)) | |
549 | 552 | then throw("Presale artifact is already activated") | |
550 | - | else if ((parseIntValue( | |
551 | - | then throw((((i + " ") + | |
553 | + | else if ((parseIntValue(cf._3[aa]) > 500)) | |
554 | + | then throw((((i + " ") + cf._2) + " is not eligible for presale artifact")) | |
552 | 555 | else { | |
553 | - | let | |
554 | - | let | |
555 | - | (( | |
556 | + | let cg = aU(cf._3[ab]) | |
557 | + | let ct = cm(bW, cf._2, cg) | |
558 | + | (((ct._1 :+ BooleanEntry(P(cf._2), true)) :+ BooleanEntry(Q(cf._2, bW), true)) :+ StringEntry(ct._2, makeString(ct._3, ":"))) | |
556 | 559 | } | |
557 | 560 | } | |
558 | 561 | ||
559 | 562 | ||
560 | - | @Callable( | |
563 | + | @Callable(aR) | |
561 | 564 | func stakeLand () = { | |
562 | - | let | |
563 | - | let J = value( | |
564 | - | let | |
565 | - | if (( | |
565 | + | let cw = value(aR.payments[0]) | |
566 | + | let J = value(cw.assetId) | |
567 | + | let cx = toString(aR.caller) | |
568 | + | if ((cw.amount != 1)) | |
566 | 569 | then throw((("NFT " + i) + " token should be attached as payment")) | |
567 | 570 | else { | |
568 | - | let | |
569 | - | if (( | |
571 | + | let bZ = value(assetInfo(J)) | |
572 | + | if ((bZ.issuer != this)) | |
570 | 573 | then throw("Unknown issuer of token") | |
571 | - | else if (!(contains( | |
574 | + | else if (!(contains(bZ.name, i))) | |
572 | 575 | then throw((("Only NFT " + i) + " tokens are accepted")) | |
573 | 576 | else { | |
574 | - | let | |
575 | - | let F = if (contains( | |
576 | - | then dropRight( | |
577 | - | else if (contains( | |
578 | - | then dropRight( | |
579 | - | else dropRight( | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | if (isDefined(getInteger( | |
584 | - | then throw((("NFT " + | |
577 | + | let cy = drop(bZ.name, 4) | |
578 | + | let F = if (contains(cy, "XXL")) | |
579 | + | then dropRight(cy, 3) | |
580 | + | else if (contains(cy, "XL")) | |
581 | + | then dropRight(cy, 2) | |
582 | + | else dropRight(cy, 1) | |
583 | + | let cz = valueOrErrorMessage(parseInt(F), ("Cannot parse land number from " + bZ.name)) | |
584 | + | let bS = toBase58String(J) | |
585 | + | let ca = L(bS) | |
586 | + | if (isDefined(getInteger(ca))) | |
587 | + | then throw((("NFT " + bZ.name) + " is already staked")) | |
585 | 588 | else { | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | [IntegerEntry( | |
589 | + | let cd = split(bZ.description, "_") | |
590 | + | let aN = aS(cd[ac]) | |
591 | + | let aq = aM(aN, (aU(cd[ab]) / 25), 1) | |
592 | + | [IntegerEntry(ca, lastBlock.timestamp), IntegerEntry(S(i, bS, cx), lastBlock.timestamp), StringEntry(I(bS), cx), StringEntry(U(F), cx), StringEntry(Z(), aq)] | |
590 | 593 | } | |
591 | 594 | } | |
592 | 595 | } | |
594 | 597 | ||
595 | 598 | ||
596 | 599 | ||
597 | - | @Callable( | |
598 | - | func unstakeLand ( | |
600 | + | @Callable(aR) | |
601 | + | func unstakeLand (cA) = if ((size(aR.payments) != 0)) | |
599 | 602 | then throw("unstake doesn't require any payments") | |
600 | 603 | else { | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | [ScriptTransfer( | |
604 | + | let bW = toString(aR.caller) | |
605 | + | let cf = bV(bW) | |
606 | + | let aN = aS(cf._3[ac]) | |
607 | + | let cg = aU(cf._3[ab]) | |
608 | + | let aq = aM(aN, (cg / 25), -1) | |
609 | + | let ct = cm(bW, cf._2, cg) | |
610 | + | [ScriptTransfer(aR.caller, 1, fromBase58String(cf._2)), DeleteEntry(L(cf._2)), DeleteEntry(S(i, cf._2, bW)), StringEntry(Z(), aq), StringEntry(ct._2, makeString(ct._3, ":"))] | |
608 | 611 | } | |
609 | 612 | ||
610 | 613 | ||
611 | 614 | ||
612 | - | @Callable( | |
615 | + | @Callable(aR) | |
613 | 616 | func stakeDuck () = { | |
614 | - | let | |
615 | - | let J = value( | |
616 | - | let | |
617 | - | if (( | |
617 | + | let cw = value(aR.payments[0]) | |
618 | + | let J = value(cw.assetId) | |
619 | + | let cx = toString(aR.caller) | |
620 | + | if ((cw.amount != 1)) | |
618 | 621 | then throw((("NFT " + j) + " token should be attached as payment")) | |
619 | 622 | else { | |
620 | - | let | |
621 | - | if (if (( | |
622 | - | then ( | |
623 | + | let bZ = value(assetInfo(J)) | |
624 | + | if (if ((bZ.issuer != d)) | |
625 | + | then (bZ.issuer != e) | |
623 | 626 | else false) | |
624 | 627 | then throw((("Unknown issuer of " + j) + " token")) | |
625 | - | else if (!(contains( | |
628 | + | else if (!(contains(bZ.name, j))) | |
626 | 629 | then throw((("Only NFT " + j) + " tokens are accepted")) | |
627 | 630 | else { | |
628 | - | let | |
629 | - | let | |
630 | - | if (isDefined(getInteger( | |
631 | - | then throw((("NFT " + | |
632 | - | else if (isDefined(getString( | |
633 | - | then throw(("You already staked one duck: " + | |
631 | + | let cB = toBase58String(J) | |
632 | + | let ca = L(cB) | |
633 | + | if (isDefined(getInteger(ca))) | |
634 | + | then throw((("NFT " + bZ.name) + " is already staked")) | |
635 | + | else if (isDefined(getString(R(cx)))) | |
636 | + | then throw(("You already staked one duck: " + bZ.name)) | |
634 | 637 | else { | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | ([IntegerEntry( | |
638 | + | let cC = X(cB) | |
639 | + | let cD = getString(cC) | |
640 | + | let bD = Y(cB) | |
641 | + | let cE = getInteger(bD) | |
642 | + | let bo = V(cB) | |
643 | + | let cF = getString(bo) | |
644 | + | ([IntegerEntry(ca, lastBlock.timestamp), IntegerEntry(S(j, toBase58String(J), cx), lastBlock.timestamp), StringEntry(K(cB), cx), StringEntry(R(cx), cB)] ++ (if (isDefined(cD)) | |
642 | 645 | then nil | |
643 | - | else ([StringEntry( | |
646 | + | else ([StringEntry(cC, k)] ++ (if (isDefined(cE)) | |
644 | 647 | then nil | |
645 | - | else ([IntegerEntry( | |
648 | + | else ([IntegerEntry(bD, 100)] ++ (if (isDefined(cF)) | |
646 | 649 | then nil | |
647 | - | else [StringEntry( | |
650 | + | else [StringEntry(bo, "0:0_0_0_0_0_0:0_0_0_0_0_0:")])))))) | |
648 | 651 | } | |
649 | 652 | } | |
650 | 653 | } | |
652 | 655 | ||
653 | 656 | ||
654 | 657 | ||
655 | - | @Callable( | |
656 | - | func unstakeDuck ( | |
658 | + | @Callable(aR) | |
659 | + | func unstakeDuck (cB) = if ((size(aR.payments) != 0)) | |
657 | 660 | then throw("unstake doesn't require any payments") | |
658 | 661 | else { | |
659 | - | let J = fromBase58String( | |
660 | - | let | |
661 | - | let | |
662 | - | if (if (( | |
663 | - | then ( | |
662 | + | let J = fromBase58String(cB) | |
663 | + | let cx = toString(aR.caller) | |
664 | + | let bZ = value(assetInfo(J)) | |
665 | + | if (if ((bZ.issuer != d)) | |
666 | + | then (bZ.issuer != e) | |
664 | 667 | else false) | |
665 | 668 | then throw((("Unknown issuer of " + j) + " token")) | |
666 | - | else if (!(contains( | |
669 | + | else if (!(contains(bZ.name, j))) | |
667 | 670 | then throw((("Only NFT " + j) + " tokens can be unstaked")) | |
668 | 671 | else { | |
669 | - | let | |
670 | - | if (!(isDefined( | |
671 | - | then throw((("NFT " + | |
672 | - | else if (!(isDefined( | |
673 | - | then throw((("The duck " + | |
672 | + | let ca = L(toBase58String(J)) | |
673 | + | if (!(isDefined(ca))) | |
674 | + | then throw((("NFT " + bZ.name) + " is not staked")) | |
675 | + | else if (!(isDefined(R(cx)))) | |
676 | + | then throw((("The duck " + bZ.name) + " is not staked")) | |
674 | 677 | else { | |
675 | - | let | |
676 | - | if (( | |
678 | + | let cc = valueOrErrorMessage(getString(K(toBase58String(J))), (("NFT " + bZ.name) + " is orphaned")) | |
679 | + | if ((cc != cx)) | |
677 | 680 | then throw("Staked NFT is not yours") | |
678 | - | else [ScriptTransfer( | |
681 | + | else [ScriptTransfer(aR.caller, 1, J), DeleteEntry(ca), DeleteEntry(X(cB)), DeleteEntry(K(cB)), DeleteEntry(S(j, cB, cx)), DeleteEntry(R(cx))] | |
679 | 682 | } | |
680 | 683 | } | |
681 | 684 | } | |
682 | 685 | ||
683 | 686 | ||
684 | 687 | ||
685 | - | @Callable( | |
686 | - | func claimRes ( | |
688 | + | @Callable(aR) | |
689 | + | func claimRes (aX,cA) = if ((size(aR.payments) != 0)) | |
687 | 690 | then throw("claimRes doesn't require any payments") | |
688 | 691 | else { | |
689 | - | let | |
690 | - | let | |
691 | - | $Tuple2(( | |
692 | + | let bW = toString(aR.originCaller) | |
693 | + | let aL = ce(bW, aX) | |
694 | + | $Tuple2((aL._1 :+ StringEntry(aL._2, makeString(aL._3, ":"))), aL._3[ai]) | |
692 | 695 | } | |
693 | 696 | ||
694 | 697 | ||
695 | 698 | ||
696 | - | @Callable( | |
697 | - | func flight ( | |
699 | + | @Callable(aR) | |
700 | + | func flight (bt,bu) = if (!(sigVerify_8Kb(bt, bu, g))) | |
698 | 701 | then throw("signature does not match") | |
699 | - | else if ((size( | |
702 | + | else if ((size(aR.payments) != 0)) | |
700 | 703 | then throw("flight doesn't require any payments") | |
701 | 704 | else { | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | if (if (( | |
705 | + | let bv = split(toUtf8String(bt), ";") | |
706 | + | let bw = split(split(bv[0], "|")[0], "_") | |
707 | + | let bx = parseIntValue(bw[0]) | |
708 | + | let by = parseIntValue(bw[1]) | |
709 | + | let cG = split(bv[1], ":") | |
710 | + | let cH = cG[0] | |
711 | + | let bB = parseIntValue(cG[1]) | |
712 | + | if (if ((bB > (lastBlock.timestamp + o))) | |
710 | 713 | then true | |
711 | - | else ((lastBlock.timestamp - o) > | |
714 | + | else ((lastBlock.timestamp - o) > bB)) | |
712 | 715 | then throw("signature outdated") | |
713 | 716 | else { | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | if (( | |
718 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
719 | - | else if ((0 >= | |
717 | + | let W = valueOrErrorMessage(getString(R(toString(aR.caller))), "You don't have a duck staked") | |
718 | + | let bD = Y(W) | |
719 | + | let bE = valueOrElse(getInteger(bD), 100) | |
720 | + | if ((bE != bx)) | |
721 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bD), 100))) + " from state does not match one from flight log=") + toString(bx))) | |
722 | + | else if ((0 >= bx)) | |
720 | 723 | then throw("You can't fly with zero health") | |
721 | 724 | else { | |
722 | - | let | |
723 | - | let | |
724 | - | if (( | |
725 | + | let cC = X(W) | |
726 | + | let bX = valueOrElse(getString(cC), k) | |
727 | + | if ((cH == bX)) | |
725 | 728 | then throw("You can't fly to the same location") | |
726 | - | else $Tuple2([StringEntry( | |
727 | - | then | |
728 | - | else | |
729 | + | else $Tuple2([StringEntry(cC, if ((by > 0)) | |
730 | + | then cH | |
731 | + | else bX), IntegerEntry(bD, by)], unit) | |
729 | 732 | } | |
730 | 733 | } | |
731 | 734 | } | |
732 | 735 | ||
733 | 736 | ||
734 | 737 | ||
735 | - | @Callable( | |
736 | - | func setHealth ( | |
738 | + | @Callable(aR) | |
739 | + | func setHealth (cE,W) = if (if ((0 > cE)) | |
737 | 740 | then true | |
738 | - | else ( | |
741 | + | else (cE > 100)) | |
739 | 742 | then throw("HP should be within 0..100") | |
740 | - | else [IntegerEntry( | |
743 | + | else [IntegerEntry(Y(W), cE)] | |
741 | 744 | ||
742 | 745 | ||
743 | 746 | ||
744 | - | @Callable( | |
745 | - | func heal ( | |
747 | + | @Callable(aR) | |
748 | + | func heal (cI,aX) = if (if ((0 > cI)) | |
746 | 749 | then true | |
747 | - | else ( | |
748 | - | then throw(("Unknown material: " + toString( | |
749 | - | else if ((0 >= | |
750 | - | then throw(("Amount should be positive! " + toString( | |
750 | + | else (cI >= l)) | |
751 | + | then throw(("Unknown material: " + toString(cI))) | |
752 | + | else if ((0 >= aX)) | |
753 | + | then throw(("Amount should be positive! " + toString(aX))) | |
751 | 754 | else { | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | if (( | |
755 | + | let W = valueOrErrorMessage(getString(R(toString(aR.caller))), "You don't have a duck staked") | |
756 | + | let bD = Y(W) | |
757 | + | let cJ = valueOrElse(getInteger(bD), 100) | |
758 | + | if ((cJ >= 100)) | |
756 | 759 | then throw("HP should be < 100 to heal") | |
757 | 760 | else { | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | if (( | |
765 | - | then throw(((((("You need " + toString( | |
761 | + | let bo = V(W) | |
762 | + | let bF = bn(bo) | |
763 | + | let bG = split(bF[aj], "_") | |
764 | + | let cK = parseIntValue(bG[cI]) | |
765 | + | let cL = min([(aX / h), (100 - cJ)]) | |
766 | + | let cM = (cL * h) | |
767 | + | if ((cM > cK)) | |
768 | + | then throw(((((("You need " + toString(cM)) + " of ") + B[cI]) + " to heal, but you backpack contains ") + toString(cK))) | |
766 | 769 | else { | |
767 | - | let | |
768 | - | [IntegerEntry( | |
770 | + | let bH = aV(bG, cI, cM) | |
771 | + | [IntegerEntry(bD, (cJ + cL)), StringEntry(bo, makeString([bF[ah], bF[ai], bH, bF[ak]], ":"))] | |
769 | 772 | } | |
770 | 773 | } | |
771 | 774 | } | |
772 | 775 | ||
773 | 776 | ||
774 | 777 | ||
775 | - | @Callable( | |
776 | - | func updateBackpack ( | |
778 | + | @Callable(aR) | |
779 | + | func updateBackpack (W,cN) = if ((aR.caller != f)) | |
777 | 780 | then throw("permission denied") | |
778 | - | else $Tuple2([StringEntry( | |
781 | + | else $Tuple2([StringEntry(V(W), cN)], cN) | |
779 | 782 | ||
780 | 783 | ||
781 | 784 | ||
782 | - | @Callable( | |
783 | - | func expeditionBuy ( | |
785 | + | @Callable(aR) | |
786 | + | func expeditionBuy (bt,bu) = if ((size(aR.payments) != 1)) | |
784 | 787 | then throw("Exactly one payment required") | |
785 | 788 | else { | |
786 | - | let | |
787 | - | if (( | |
789 | + | let cw = value(aR.payments[0]) | |
790 | + | if ((cw.assetId != b)) | |
788 | 791 | then throw("Allowed USDN payment only!") | |
789 | - | else if (( | |
792 | + | else if ((cw.amount != t)) | |
790 | 793 | then throw(("Payment attached should be " + toString(t))) | |
791 | - | else | |
794 | + | else bq(false, aR.caller, aR.transactionId, bt, bu) | |
792 | 795 | } | |
793 | 796 | ||
794 | 797 | ||
795 | 798 | ||
796 | - | @Callable( | |
797 | - | func expedition ( | |
799 | + | @Callable(aR) | |
800 | + | func expedition (bt,bu) = if ((size(aR.payments) != 0)) | |
798 | 801 | then throw("expedition doesn't require any payments") | |
799 | - | else | |
802 | + | else bq(true, aR.caller, aR.transactionId, bt, bu) | |
800 | 803 | ||
801 | 804 | ||
802 | 805 | ||
803 | - | @Callable( | |
804 | - | func upgradeInfra ( | |
806 | + | @Callable(aR) | |
807 | + | func upgradeInfra (cO) = if ((size(aR.payments) != 0)) | |
805 | 808 | then throw("Infrastructure upgrade doesn't require any payments") | |
806 | - | else | |
809 | + | else cn(true, aR.caller, 0) | |
807 | 810 | ||
808 | 811 | ||
809 | 812 | ||
810 | - | @Callable( | |
811 | - | func upgradeInfraUsdn ( | |
813 | + | @Callable(aR) | |
814 | + | func upgradeInfraUsdn (cO) = if ((size(aR.payments) != 1)) | |
812 | 815 | then throw("Exactly one payment required") | |
813 | 816 | else { | |
814 | - | let | |
815 | - | if (( | |
817 | + | let cw = value(aR.payments[0]) | |
818 | + | if ((cw.assetId != b)) | |
816 | 819 | then throw("Allowed USDN payment only!") | |
817 | - | else | |
820 | + | else cn(false, aR.caller, cw.amount) | |
818 | 821 | } | |
819 | 822 | ||
820 | 823 | ||
821 | 824 | ||
822 | - | @Callable( | |
823 | - | func activateArtifact ( | |
825 | + | @Callable(aR) | |
826 | + | func activateArtifact (cP) = if ((size(aR.payments) != 0)) | |
824 | 827 | then throw("Artifact activation doesn't require any payments") | |
825 | 828 | else { | |
826 | - | let | |
827 | - | let c = | |
829 | + | let aL = { | |
830 | + | let c = cP | |
828 | 831 | if (("PRESALE" == c)) | |
829 | - | then | |
832 | + | then cu(toString(aR.caller)) | |
830 | 833 | else throw("Unknown artifact") | |
831 | 834 | } | |
832 | - | | |
835 | + | aL | |
833 | 836 | } | |
834 | 837 | ||
835 | 838 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = toUtf8String(take(drop(this.bytes, 1), 1)) | |
5 | 5 | ||
6 | 6 | let b = { | |
7 | 7 | let c = a | |
8 | 8 | if (("W" == c)) | |
9 | 9 | then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
10 | 10 | else if (("T" == c)) | |
11 | 11 | then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let d = { | |
16 | 16 | let c = a | |
17 | 17 | if (("W" == c)) | |
18 | 18 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
19 | 19 | else if (("T" == 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 (("W" == c)) | |
27 | 27 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
28 | 28 | else if (("T" == 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 (("W" == c)) | |
36 | 36 | then addressFromStringValue("3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D") | |
37 | 37 | else if (("T" == c)) | |
38 | 38 | then addressFromStringValue("3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep") | |
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 = 3456000 | |
55 | 55 | ||
56 | 56 | let n = 86400000 | |
57 | 57 | ||
58 | 58 | let o = 300000 | |
59 | 59 | ||
60 | 60 | let p = 158549 | |
61 | 61 | ||
62 | 62 | let q = { | |
63 | 63 | let c = a | |
64 | 64 | if (("W" == c)) | |
65 | 65 | then 18921595217 | |
66 | 66 | else if (("T" == c)) | |
67 | 67 | then 189215952 | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | let r = { | |
72 | 72 | let c = a | |
73 | 73 | if (("W" == c)) | |
74 | 74 | then 120000000 | |
75 | 75 | else if (("T" == c)) | |
76 | 76 | then 1200000 | |
77 | 77 | else throw("Unknown chain") | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | let s = { | |
81 | 81 | let c = a | |
82 | 82 | if (("W" == c)) | |
83 | 83 | then 157679960139 | |
84 | 84 | else if (("T" == c)) | |
85 | 85 | then 1576799601 | |
86 | 86 | else throw("Unknown chain") | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | let t = { | |
90 | 90 | let c = a | |
91 | 91 | if (("W" == c)) | |
92 | 92 | then 1000000000 | |
93 | 93 | else if (("T" == c)) | |
94 | 94 | then 10000000 | |
95 | 95 | else throw("Unknown chain") | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | let u = 1000000 | |
99 | 99 | ||
100 | 100 | let v = toBigInt(5) | |
101 | 101 | ||
102 | 102 | let w = toBigInt(20) | |
103 | 103 | ||
104 | 104 | let x = toBigInt((20 * 20)) | |
105 | 105 | ||
106 | 106 | let y = toBigInt(((20 * 20) * 20)) | |
107 | 107 | ||
108 | 108 | let z = toBigInt((((20 * 20) * 20) * 20)) | |
109 | 109 | ||
110 | 110 | let A = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
111 | 111 | ||
112 | 112 | let B = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
113 | 113 | ||
114 | 114 | let C = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
115 | 115 | ||
116 | 116 | func D () = "nextLandNum" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func E (F) = ("landToAsset_" + F) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func G (F,H) = ((i + F) + H) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func I (J) = ("nftOwner_" + J) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func K (J) = ("duckOwner_" + J) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func L (J) = ("stakedTime_" + J) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func M (J) = ("infraLevel_" + J) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func N (J,O) = ((("infraLevelByAssetIdAndOwner_" + J) + "_") + O) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func P (J) = ("presaleArtActivated_" + J) | |
141 | 141 | ||
142 | 142 | ||
143 | - | func Q (O) = (" | |
143 | + | func Q (J,O) = ((("presaleArtActivatedByAssetIdAndOwner_" + J) + "_") + O) | |
144 | 144 | ||
145 | 145 | ||
146 | - | func R ( | |
146 | + | func R (O) = ("stakedDuckByOwner_" + O) | |
147 | 147 | ||
148 | 148 | ||
149 | - | func | |
149 | + | func S (T,J,O) = ((((("stakedTimeByTypeAssetIdAndOwner_" + T) + "_") + J) + "_") + O) | |
150 | 150 | ||
151 | 151 | ||
152 | - | func U ( | |
152 | + | func U (F) = ("landOwner_" + F) | |
153 | 153 | ||
154 | 154 | ||
155 | - | func | |
155 | + | func V (W) = ("backPack_" + W) | |
156 | 156 | ||
157 | 157 | ||
158 | - | func X ( | |
158 | + | func X (W) = ("duckLocation_" + W) | |
159 | 159 | ||
160 | 160 | ||
161 | - | func Y () = " | |
161 | + | func Y (W) = ("duckHealth_" + W) | |
162 | 162 | ||
163 | 163 | ||
164 | - | ||
164 | + | func Z () = "resTypesProportions" | |
165 | 165 | ||
166 | - | let aa = 1 | |
167 | 166 | ||
168 | - | let | |
167 | + | let aa = 0 | |
169 | 168 | ||
170 | - | let | |
169 | + | let ab = 1 | |
171 | 170 | ||
172 | - | let | |
171 | + | let ac = 2 | |
173 | 172 | ||
174 | - | let | |
173 | + | let ad = 3 | |
175 | 174 | ||
176 | - | let | |
175 | + | let ae = 0 | |
177 | 176 | ||
178 | - | let | |
177 | + | let af = 1 | |
179 | 178 | ||
180 | - | let | |
179 | + | let ag = 2 | |
181 | 180 | ||
182 | - | let | |
181 | + | let ah = 0 | |
183 | 182 | ||
184 | - | let | |
183 | + | let ai = 1 | |
185 | 184 | ||
186 | - | func ak (al) = { | |
187 | - | let c = al | |
185 | + | let aj = 2 | |
186 | + | ||
187 | + | let ak = 3 | |
188 | + | ||
189 | + | func al (am) = { | |
190 | + | let c = am | |
188 | 191 | if ($isInstanceOf(c, "String")) | |
189 | 192 | then { | |
190 | - | let | |
191 | - | | |
193 | + | let an = c | |
194 | + | an | |
192 | 195 | } | |
193 | 196 | else throw("fail to cast into String") | |
194 | 197 | } | |
195 | 198 | ||
196 | 199 | ||
197 | - | func | |
198 | - | let | |
199 | - | if ((size( | |
200 | + | func ao (ap) = { | |
201 | + | let aq = split(value(getString(Z())), "_") | |
202 | + | if ((size(aq) != l)) | |
200 | 203 | then throw("Wrong proportions data") | |
201 | 204 | else { | |
202 | - | let | |
203 | - | let | |
204 | - | if ((0 >= | |
205 | + | let ar = [parseIntValue(aq[0]), parseIntValue(aq[1]), parseIntValue(aq[2]), parseIntValue(aq[3]), parseIntValue(aq[4]), parseIntValue(aq[5])] | |
206 | + | let as = (((((ar[0] + ar[1]) + ar[2]) + ar[3]) + ar[4]) + ar[5]) | |
207 | + | if ((0 >= as)) | |
205 | 208 | then throw("No lands staked") | |
206 | 209 | else { | |
207 | - | let | |
208 | - | func | |
210 | + | let at = fraction(ap, u, as) | |
211 | + | func au (av,aw) = (av :+ fraction(aw, at, u)) | |
209 | 212 | ||
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | func | |
214 | - | then | |
215 | - | else | |
213 | + | let ax = ar | |
214 | + | let ay = size(ax) | |
215 | + | let az = nil | |
216 | + | func aA (aB,aC) = if ((aC >= ay)) | |
217 | + | then aB | |
218 | + | else au(aB, ax[aC]) | |
216 | 219 | ||
217 | - | func | |
218 | - | then | |
220 | + | func aD (aB,aC) = if ((aC >= ay)) | |
221 | + | then aB | |
219 | 222 | else throw("List size exceeds 6") | |
220 | 223 | ||
221 | - | | |
224 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
222 | 225 | } | |
223 | 226 | } | |
224 | 227 | } | |
225 | 228 | ||
226 | 229 | ||
227 | - | func | |
228 | - | let | |
229 | - | func | |
230 | - | let | |
231 | - | if ((0 > | |
232 | - | then throw(((((("Not enough material idx=" + toString( | |
233 | - | else ( | |
230 | + | func aE (aF,aG,aH) = { | |
231 | + | let aI = ao(aH) | |
232 | + | func aJ (av,aK) = { | |
233 | + | let aL = (parseIntValue(aG[aK]) - aI[aK]) | |
234 | + | if ((0 > aL)) | |
235 | + | then throw(((((("Not enough material idx=" + toString(aK)) + ", you have ") + aG[aK]) + ", but need ") + toString(aI[aK]))) | |
236 | + | else (av :+ toString(aL)) | |
234 | 237 | } | |
235 | 238 | ||
236 | - | if ( | |
239 | + | if (aF) | |
237 | 240 | then { | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | func | |
242 | - | then | |
243 | - | else | |
241 | + | let ax = [0, 1, 2, 3, 4, 5] | |
242 | + | let ay = size(ax) | |
243 | + | let az = nil | |
244 | + | func aA (aB,aC) = if ((aC >= ay)) | |
245 | + | then aB | |
246 | + | else aJ(aB, ax[aC]) | |
244 | 247 | ||
245 | - | func | |
246 | - | then | |
248 | + | func aD (aB,aC) = if ((aC >= ay)) | |
249 | + | then aB | |
247 | 250 | else throw("List size exceeds 6") | |
248 | 251 | ||
249 | - | | |
252 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
250 | 253 | } | |
251 | - | else | |
254 | + | else aG | |
252 | 255 | } | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
256 | - | let | |
257 | - | if ((size( | |
258 | + | func aM (aN,aO,aP) = { | |
259 | + | let aq = split(valueOrElse(getString(Z()), "0_0_0_0_0_0"), "_") | |
260 | + | if ((size(aq) != l)) | |
258 | 261 | then throw("Wrong proportions data") | |
259 | 262 | else { | |
260 | - | func | |
261 | - | let | |
262 | - | if ((0 > | |
263 | - | then throw(((((((("Panic! Pieces of type=" + toString( | |
264 | - | else ( | |
263 | + | func aQ (av,aR) = { | |
264 | + | let aL = (parseIntValue(aq[aR]) + ((aP * aN[aR]) * aO)) | |
265 | + | if ((0 > aL)) | |
266 | + | then throw(((((((("Panic! Pieces of type=" + toString(aR)) + ", sign=") + toString(aP)) + ", terrainCounts[i]=") + toString(aN[aR])) + ", landSizeIndex=") + toString(aO))) | |
267 | + | else (av :+ toString(aL)) | |
265 | 268 | } | |
266 | 269 | ||
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | func | |
272 | - | then | |
273 | - | else | |
270 | + | let ar = { | |
271 | + | let ax = [0, 1, 2, 3, 4, 5] | |
272 | + | let ay = size(ax) | |
273 | + | let az = nil | |
274 | + | func aA (aB,aC) = if ((aC >= ay)) | |
275 | + | then aB | |
276 | + | else aQ(aB, ax[aC]) | |
274 | 277 | ||
275 | - | func | |
276 | - | then | |
278 | + | func aD (aB,aC) = if ((aC >= ay)) | |
279 | + | then aB | |
277 | 280 | else throw("List size exceeds 6") | |
278 | 281 | ||
279 | - | | |
282 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
280 | 283 | } | |
281 | - | makeString( | |
284 | + | makeString(ar, "_") | |
282 | 285 | } | |
283 | 286 | } | |
284 | 287 | ||
285 | 288 | ||
286 | - | func | |
289 | + | func aS (aT) = [(size(split(aT, "A")) - 1), (size(split(aT, "B")) - 1), (size(split(aT, "C")) - 1), (size(split(aT, "D")) - 1), (size(split(aT, "E")) - 1), (size(split(aT, "F")) - 1)] | |
287 | 290 | ||
288 | 291 | ||
289 | - | func | |
292 | + | func aU (H) = { | |
290 | 293 | let c = H | |
291 | 294 | if (("S" == c)) | |
292 | 295 | then 25 | |
293 | 296 | else if (("M" == c)) | |
294 | 297 | then 100 | |
295 | 298 | else if (("L" == c)) | |
296 | 299 | then 225 | |
297 | 300 | else if (("XL" == c)) | |
298 | 301 | then 400 | |
299 | 302 | else if (("XXL" == c)) | |
300 | 303 | then 625 | |
301 | 304 | else throw("Unknown land size") | |
302 | 305 | } | |
303 | 306 | ||
304 | 307 | ||
305 | - | func | |
306 | - | func | |
307 | - | then toString((parseIntValue( | |
308 | - | else | |
308 | + | func aV (aW,aK,aX) = { | |
309 | + | func aY (av,aR) = (av :+ (if ((aR == aK)) | |
310 | + | then toString((parseIntValue(aW[aR]) - aX)) | |
311 | + | else aW[aR])) | |
309 | 312 | ||
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | func | |
315 | - | then | |
316 | - | else | |
313 | + | let ar = { | |
314 | + | let ax = [0, 1, 2, 3, 4, 5] | |
315 | + | let ay = size(ax) | |
316 | + | let az = nil | |
317 | + | func aA (aB,aC) = if ((aC >= ay)) | |
318 | + | then aB | |
319 | + | else aY(aB, ax[aC]) | |
317 | 320 | ||
318 | - | func | |
319 | - | then | |
321 | + | func aD (aB,aC) = if ((aC >= ay)) | |
322 | + | then aB | |
320 | 323 | else throw("List size exceeds 6") | |
321 | 324 | ||
322 | - | | |
325 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
323 | 326 | } | |
324 | - | makeString( | |
327 | + | makeString(ar, "_") | |
325 | 328 | } | |
326 | 329 | ||
327 | 330 | ||
328 | - | func | |
329 | - | func | |
330 | - | let | |
331 | - | ( | |
331 | + | func aZ (ba,aN,bb,aO,bc) = { | |
332 | + | func bd (av,aR) = { | |
333 | + | let be = ((fraction(bb, bc, n) * aN[aR]) * aO) | |
334 | + | (av :+ toString((parseIntValue(ba[aR]) + be))) | |
332 | 335 | } | |
333 | 336 | ||
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | func | |
339 | - | then | |
340 | - | else | |
337 | + | let ar = { | |
338 | + | let ax = [0, 1, 2, 3, 4, 5] | |
339 | + | let ay = size(ax) | |
340 | + | let az = nil | |
341 | + | func aA (aB,aC) = if ((aC >= ay)) | |
342 | + | then aB | |
343 | + | else bd(aB, ax[aC]) | |
341 | 344 | ||
342 | - | func | |
343 | - | then | |
345 | + | func aD (aB,aC) = if ((aC >= ay)) | |
346 | + | then aB | |
344 | 347 | else throw("List size exceeds 6") | |
345 | 348 | ||
346 | - | | |
349 | + | aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6) | |
347 | 350 | } | |
348 | - | makeString( | |
351 | + | makeString(ar, "_") | |
349 | 352 | } | |
350 | 353 | ||
351 | 354 | ||
352 | - | func | |
353 | - | then | |
354 | - | else -( | |
355 | + | func bf (bg) = if ((bg >= toBigInt(0))) | |
356 | + | then bg | |
357 | + | else -(bg) | |
355 | 358 | ||
356 | 359 | ||
357 | - | let | |
360 | + | let bh = [[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]] | |
358 | 361 | ||
359 | - | func | |
360 | - | let | |
361 | - | let | |
362 | + | func bi (bj,bk) = { | |
363 | + | let bl = toInt((bj % w)) | |
364 | + | let bm = if ((bk[0] > bl)) | |
362 | 365 | then "A" | |
363 | - | else if (( | |
366 | + | else if ((bk[1] > bl)) | |
364 | 367 | then "B" | |
365 | - | else if (( | |
368 | + | else if ((bk[2] > bl)) | |
366 | 369 | then "C" | |
367 | - | else if (( | |
370 | + | else if ((bk[3] > bl)) | |
368 | 371 | then "D" | |
369 | - | else if (( | |
372 | + | else if ((bk[4] > bl)) | |
370 | 373 | then "E" | |
371 | 374 | else "F" | |
372 | - | | |
375 | + | bm | |
373 | 376 | } | |
374 | 377 | ||
375 | 378 | ||
376 | - | func | |
377 | - | let | |
378 | - | [toString(valueOrElse(parseInt( | |
379 | - | then | |
380 | - | else "0_0_0_0_0_0", if ((size(split( | |
381 | - | then | |
382 | - | else "0_0_0_0_0_0", | |
379 | + | func bn (bo) = { | |
380 | + | let bp = split(valueOrElse(getString(bo), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
381 | + | [toString(valueOrElse(parseInt(bp[ah]), 0)), if ((size(split(bp[ai], "_")) == l)) | |
382 | + | then bp[ai] | |
383 | + | else "0_0_0_0_0_0", if ((size(split(bp[aj], "_")) == l)) | |
384 | + | then bp[aj] | |
385 | + | else "0_0_0_0_0_0", bp[ak]] | |
383 | 386 | } | |
384 | 387 | ||
385 | 388 | ||
386 | - | func | |
389 | + | func bq (aF,br,bs,bt,bu) = if (!(sigVerify_8Kb(bt, bu, g))) | |
387 | 390 | then throw("signature does not match") | |
388 | 391 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | if (( | |
392 | + | let bv = split(toUtf8String(bt), ";") | |
393 | + | let bw = split(split(bv[0], "|")[0], "_") | |
394 | + | let bx = parseIntValue(bw[0]) | |
395 | + | let by = parseIntValue(bw[1]) | |
396 | + | let bz = split(bv[1], ":") | |
397 | + | let bA = split(bz[0], "_") | |
398 | + | if ((bA[1] != "E")) | |
396 | 399 | then throw("expedition target location type should be E") | |
397 | 400 | else { | |
398 | - | let | |
399 | - | if (if (( | |
401 | + | let bB = parseIntValue(bz[1]) | |
402 | + | if (if ((bB > (lastBlock.timestamp + o))) | |
400 | 403 | then true | |
401 | - | else ((lastBlock.timestamp - o) > | |
404 | + | else ((lastBlock.timestamp - o) > bB)) | |
402 | 405 | then throw("signature outdated") | |
403 | 406 | else { | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if (( | |
409 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
410 | - | else if ((0 >= | |
407 | + | let bC = toString(br) | |
408 | + | let W = valueOrErrorMessage(getString(R(bC)), "You don't have a duck staked") | |
409 | + | let bD = Y(W) | |
410 | + | let bE = valueOrElse(getInteger(bD), 100) | |
411 | + | if ((bE != bx)) | |
412 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bD), 100))) + " from state does not match one from flight log=") + toString(bx))) | |
413 | + | else if ((0 >= bx)) | |
411 | 414 | then throw("You can't fly with zero health") | |
412 | - | else if ((0 >= | |
413 | - | then $Tuple2(((if (!( | |
414 | - | then [ScriptTransfer( | |
415 | - | else nil) :+ IntegerEntry( | |
415 | + | else if ((0 >= by)) | |
416 | + | then $Tuple2(((if (!(aF)) | |
417 | + | then [ScriptTransfer(br, t, b)] | |
418 | + | else nil) :+ IntegerEntry(bD, 0)), "") | |
416 | 419 | else { | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let F = toString( | |
424 | - | let | |
425 | - | let | |
426 | - | func | |
420 | + | let bo = V(W) | |
421 | + | let bF = bn(bo) | |
422 | + | let bG = split(bF[aj], "_") | |
423 | + | let bH = makeString(aE(aF, bG, s), "_") | |
424 | + | let bI = bf(toBigInt(bs)) | |
425 | + | let bJ = valueOrElse(getInteger(D()), 501) | |
426 | + | let F = toString(bJ) | |
427 | + | let bK = toInt((bI % v)) | |
428 | + | let bL = bh[bK] | |
429 | + | func bM (av,aw) = $Tuple2((((((av._1 + bi(av._2, bL)) + bi((av._2 / w), bL)) + bi((av._2 / x), bL)) + bi((av._2 / y), bL)) + bi((av._2 / z), bL)), (av._2 / A)) | |
427 | 430 | ||
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | func | |
433 | - | then | |
434 | - | else | |
431 | + | let bN = { | |
432 | + | let ax = [1, 2, 3, 4, 5] | |
433 | + | let ay = size(ax) | |
434 | + | let az = $Tuple2("", (bI / v)) | |
435 | + | func aA (aB,aC) = if ((aC >= ay)) | |
436 | + | then aB | |
437 | + | else bM(aB, ax[aC]) | |
435 | 438 | ||
436 | - | func | |
437 | - | then | |
439 | + | func aD (aB,aC) = if ((aC >= ay)) | |
440 | + | then aB | |
438 | 441 | else throw("List size exceeds 5") | |
439 | 442 | ||
440 | - | | |
443 | + | aD(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5) | |
441 | 444 | } | |
442 | - | let | |
443 | - | let | |
444 | - | let J = calculateAssetId( | |
445 | - | let | |
446 | - | $Tuple2([IntegerEntry(D(), ( | |
445 | + | let bO = C[bK] | |
446 | + | let bP = Issue(G(F, "S"), makeString([F, "S", bN._1, bO], "_"), 1, 0, false) | |
447 | + | let J = calculateAssetId(bP) | |
448 | + | let bQ = toBase58String(J) | |
449 | + | $Tuple2([IntegerEntry(D(), (bJ + 1)), bP, StringEntry(E(F), bQ), StringEntry(I(bQ), bC), StringEntry(U(F), bC), IntegerEntry(M(bQ), 0), IntegerEntry(N(bQ, bC), 0), ScriptTransfer(br, 1, J), StringEntry(X(W), makeString([bO, "L", bQ], "_")), IntegerEntry(bD, by), StringEntry(bo, makeString([bF[ah], bF[ai], bH, bF[ak]], ":"))], bQ) | |
447 | 450 | } | |
448 | 451 | } | |
449 | 452 | } | |
450 | 453 | } | |
451 | 454 | ||
452 | 455 | ||
453 | - | func | |
454 | - | let | |
455 | - | let | |
456 | + | func bR (bS) = { | |
457 | + | let bT = valueOrElse(getInteger(M(bS)), 0) | |
458 | + | let bU = if (valueOrElse(getBoolean(P(bS)), false)) | |
456 | 459 | then 3 | |
457 | 460 | else 0 | |
458 | - | ((m + fraction(m, | |
461 | + | ((m + fraction(m, bT, 4)) + fraction(m, bU, 20)) | |
459 | 462 | } | |
460 | 463 | ||
461 | 464 | ||
462 | - | func | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if (( | |
467 | - | then throw((("Duck location type is " + | |
465 | + | func bV (bW) = { | |
466 | + | let W = valueOrErrorMessage(getString(R(bW)), "You don't have a duck staked") | |
467 | + | let bX = valueOrElse(getString(X(W)), k) | |
468 | + | let bY = split(value(bX), "_") | |
469 | + | if ((bY[af] != "L")) | |
470 | + | then throw((("Duck location type is " + bY[af]) + ", but should be L")) | |
468 | 471 | else { | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | if (( | |
472 | + | let bS = bY[ag] | |
473 | + | let bZ = value(assetInfo(fromBase58String(bS))) | |
474 | + | let ca = L(bS) | |
475 | + | let cb = valueOrErrorMessage(getInteger(ca), (("NFT " + bZ.name) + " is not staked")) | |
476 | + | let cc = valueOrErrorMessage(getString(I(bS)), (("NFT " + bZ.name) + " is orphaned")) | |
477 | + | if ((cc != bW)) | |
475 | 478 | then throw((i + " is not yours")) | |
476 | 479 | else { | |
477 | - | let | |
478 | - | $Tuple4( | |
480 | + | let cd = split(bZ.description, "_") | |
481 | + | $Tuple4(W, bS, cd, cb) | |
479 | 482 | } | |
480 | 483 | } | |
481 | 484 | } | |
482 | 485 | ||
483 | 486 | ||
484 | - | func | |
485 | - | let | |
486 | - | let H = | |
487 | - | let | |
488 | - | let | |
489 | - | if ((0 > | |
490 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
487 | + | func ce (bW,aX) = { | |
488 | + | let cf = bV(bW) | |
489 | + | let H = cf._3[ab] | |
490 | + | let aN = aS(cf._3[ac]) | |
491 | + | let bb = (lastBlock.timestamp - cf._4) | |
492 | + | if ((0 > bb)) | |
493 | + | then throw(((("Saved timestamp is in future, saved = " + toString(cf._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
491 | 494 | else { | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | if (( | |
496 | - | then throw(((("Not enough resources, available = " + toString( | |
495 | + | let cg = aU(H) | |
496 | + | let ch = bR(cf._2) | |
497 | + | let ci = fraction(bb, (ch * cg), n) | |
498 | + | if ((aX > ci)) | |
499 | + | then throw(((("Not enough resources, available = " + toString(ci)) + ", requested = ") + toString(aX))) | |
497 | 500 | else { | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | $Tuple3([IntegerEntry(L( | |
501 | + | let cj = fraction((ci - aX), n, (ch * cg)) | |
502 | + | let ck = (lastBlock.timestamp - cj) | |
503 | + | let bo = V(cf._1) | |
504 | + | let bF = bn(bo) | |
505 | + | let ba = split(bF[ai], "_") | |
506 | + | let cl = aZ(ba, aN, (bb - cj), (cg / 25), ch) | |
507 | + | $Tuple3([IntegerEntry(L(cf._2), ck), IntegerEntry(S(i, cf._2, bW), ck)], bo, [bF[ah], cl, bF[aj], bF[ak]]) | |
505 | 508 | } | |
506 | 509 | } | |
507 | 510 | } | |
508 | 511 | ||
509 | 512 | ||
510 | - | func | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | | |
513 | + | func cm (bW,bS,cg) = { | |
514 | + | let ca = L(bS) | |
515 | + | let cb = value(getInteger(ca)) | |
516 | + | let ci = (fraction((lastBlock.timestamp - cb), bR(bS), n) * cg) | |
517 | + | ce(bW, ci) | |
515 | 518 | } | |
516 | 519 | ||
517 | 520 | ||
518 | - | func | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | if (( | |
521 | + | func cn (aF,br,co) = { | |
522 | + | let bW = toString(br) | |
523 | + | let cf = bV(bW) | |
524 | + | let cg = aU(cf._3[ab]) | |
525 | + | let cp = M(cf._2) | |
526 | + | let cq = valueOrElse(getInteger(cp), 0) | |
527 | + | if ((cq >= 3)) | |
525 | 528 | then throw("Currently max infrastructure level = 3") | |
526 | 529 | else { | |
527 | - | let | |
528 | - | let | |
529 | - | if (if (!( | |
530 | - | then ( | |
530 | + | let cr = (cq + 1) | |
531 | + | let cs = fraction(r, (cg * cr), 25) | |
532 | + | if (if (!(aF)) | |
533 | + | then (co != cs) | |
531 | 534 | else false) | |
532 | - | then throw(("Payment attached should be " + toString( | |
535 | + | then throw(("Payment attached should be " + toString(cs))) | |
533 | 536 | else { | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | $Tuple2(([IntegerEntry( | |
537 | + | let bo = V(cf._1) | |
538 | + | let bF = bn(bo) | |
539 | + | let bG = split(bF[aj], "_") | |
540 | + | let bH = makeString(aE(aF, bG, fraction(q, (cg * cr), 25)), "_") | |
541 | + | let ct = cm(bW, cf._2, cg) | |
542 | + | $Tuple2(([IntegerEntry(cp, cr), IntegerEntry(N(cf._2, bW), cr), StringEntry(bo, makeString([bF[ah], ct._3[ai], bH, bF[ak]], ":"))] ++ ct._1), cr) | |
540 | 543 | } | |
541 | 544 | } | |
542 | 545 | } | |
543 | 546 | ||
544 | 547 | ||
545 | - | func | |
546 | - | let | |
547 | - | let | |
548 | - | if (valueOrElse(getBoolean( | |
548 | + | func cu (bW) = { | |
549 | + | let cf = bV(bW) | |
550 | + | let cv = P(cf._2) | |
551 | + | if (valueOrElse(getBoolean(cv), false)) | |
549 | 552 | then throw("Presale artifact is already activated") | |
550 | - | else if ((parseIntValue( | |
551 | - | then throw((((i + " ") + | |
553 | + | else if ((parseIntValue(cf._3[aa]) > 500)) | |
554 | + | then throw((((i + " ") + cf._2) + " is not eligible for presale artifact")) | |
552 | 555 | else { | |
553 | - | let | |
554 | - | let | |
555 | - | (( | |
556 | + | let cg = aU(cf._3[ab]) | |
557 | + | let ct = cm(bW, cf._2, cg) | |
558 | + | (((ct._1 :+ BooleanEntry(P(cf._2), true)) :+ BooleanEntry(Q(cf._2, bW), true)) :+ StringEntry(ct._2, makeString(ct._3, ":"))) | |
556 | 559 | } | |
557 | 560 | } | |
558 | 561 | ||
559 | 562 | ||
560 | - | @Callable( | |
563 | + | @Callable(aR) | |
561 | 564 | func stakeLand () = { | |
562 | - | let | |
563 | - | let J = value( | |
564 | - | let | |
565 | - | if (( | |
565 | + | let cw = value(aR.payments[0]) | |
566 | + | let J = value(cw.assetId) | |
567 | + | let cx = toString(aR.caller) | |
568 | + | if ((cw.amount != 1)) | |
566 | 569 | then throw((("NFT " + i) + " token should be attached as payment")) | |
567 | 570 | else { | |
568 | - | let | |
569 | - | if (( | |
571 | + | let bZ = value(assetInfo(J)) | |
572 | + | if ((bZ.issuer != this)) | |
570 | 573 | then throw("Unknown issuer of token") | |
571 | - | else if (!(contains( | |
574 | + | else if (!(contains(bZ.name, i))) | |
572 | 575 | then throw((("Only NFT " + i) + " tokens are accepted")) | |
573 | 576 | else { | |
574 | - | let | |
575 | - | let F = if (contains( | |
576 | - | then dropRight( | |
577 | - | else if (contains( | |
578 | - | then dropRight( | |
579 | - | else dropRight( | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | if (isDefined(getInteger( | |
584 | - | then throw((("NFT " + | |
577 | + | let cy = drop(bZ.name, 4) | |
578 | + | let F = if (contains(cy, "XXL")) | |
579 | + | then dropRight(cy, 3) | |
580 | + | else if (contains(cy, "XL")) | |
581 | + | then dropRight(cy, 2) | |
582 | + | else dropRight(cy, 1) | |
583 | + | let cz = valueOrErrorMessage(parseInt(F), ("Cannot parse land number from " + bZ.name)) | |
584 | + | let bS = toBase58String(J) | |
585 | + | let ca = L(bS) | |
586 | + | if (isDefined(getInteger(ca))) | |
587 | + | then throw((("NFT " + bZ.name) + " is already staked")) | |
585 | 588 | else { | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | [IntegerEntry( | |
589 | + | let cd = split(bZ.description, "_") | |
590 | + | let aN = aS(cd[ac]) | |
591 | + | let aq = aM(aN, (aU(cd[ab]) / 25), 1) | |
592 | + | [IntegerEntry(ca, lastBlock.timestamp), IntegerEntry(S(i, bS, cx), lastBlock.timestamp), StringEntry(I(bS), cx), StringEntry(U(F), cx), StringEntry(Z(), aq)] | |
590 | 593 | } | |
591 | 594 | } | |
592 | 595 | } | |
593 | 596 | } | |
594 | 597 | ||
595 | 598 | ||
596 | 599 | ||
597 | - | @Callable( | |
598 | - | func unstakeLand ( | |
600 | + | @Callable(aR) | |
601 | + | func unstakeLand (cA) = if ((size(aR.payments) != 0)) | |
599 | 602 | then throw("unstake doesn't require any payments") | |
600 | 603 | else { | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | [ScriptTransfer( | |
604 | + | let bW = toString(aR.caller) | |
605 | + | let cf = bV(bW) | |
606 | + | let aN = aS(cf._3[ac]) | |
607 | + | let cg = aU(cf._3[ab]) | |
608 | + | let aq = aM(aN, (cg / 25), -1) | |
609 | + | let ct = cm(bW, cf._2, cg) | |
610 | + | [ScriptTransfer(aR.caller, 1, fromBase58String(cf._2)), DeleteEntry(L(cf._2)), DeleteEntry(S(i, cf._2, bW)), StringEntry(Z(), aq), StringEntry(ct._2, makeString(ct._3, ":"))] | |
608 | 611 | } | |
609 | 612 | ||
610 | 613 | ||
611 | 614 | ||
612 | - | @Callable( | |
615 | + | @Callable(aR) | |
613 | 616 | func stakeDuck () = { | |
614 | - | let | |
615 | - | let J = value( | |
616 | - | let | |
617 | - | if (( | |
617 | + | let cw = value(aR.payments[0]) | |
618 | + | let J = value(cw.assetId) | |
619 | + | let cx = toString(aR.caller) | |
620 | + | if ((cw.amount != 1)) | |
618 | 621 | then throw((("NFT " + j) + " token should be attached as payment")) | |
619 | 622 | else { | |
620 | - | let | |
621 | - | if (if (( | |
622 | - | then ( | |
623 | + | let bZ = value(assetInfo(J)) | |
624 | + | if (if ((bZ.issuer != d)) | |
625 | + | then (bZ.issuer != e) | |
623 | 626 | else false) | |
624 | 627 | then throw((("Unknown issuer of " + j) + " token")) | |
625 | - | else if (!(contains( | |
628 | + | else if (!(contains(bZ.name, j))) | |
626 | 629 | then throw((("Only NFT " + j) + " tokens are accepted")) | |
627 | 630 | else { | |
628 | - | let | |
629 | - | let | |
630 | - | if (isDefined(getInteger( | |
631 | - | then throw((("NFT " + | |
632 | - | else if (isDefined(getString( | |
633 | - | then throw(("You already staked one duck: " + | |
631 | + | let cB = toBase58String(J) | |
632 | + | let ca = L(cB) | |
633 | + | if (isDefined(getInteger(ca))) | |
634 | + | then throw((("NFT " + bZ.name) + " is already staked")) | |
635 | + | else if (isDefined(getString(R(cx)))) | |
636 | + | then throw(("You already staked one duck: " + bZ.name)) | |
634 | 637 | else { | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | ([IntegerEntry( | |
638 | + | let cC = X(cB) | |
639 | + | let cD = getString(cC) | |
640 | + | let bD = Y(cB) | |
641 | + | let cE = getInteger(bD) | |
642 | + | let bo = V(cB) | |
643 | + | let cF = getString(bo) | |
644 | + | ([IntegerEntry(ca, lastBlock.timestamp), IntegerEntry(S(j, toBase58String(J), cx), lastBlock.timestamp), StringEntry(K(cB), cx), StringEntry(R(cx), cB)] ++ (if (isDefined(cD)) | |
642 | 645 | then nil | |
643 | - | else ([StringEntry( | |
646 | + | else ([StringEntry(cC, k)] ++ (if (isDefined(cE)) | |
644 | 647 | then nil | |
645 | - | else ([IntegerEntry( | |
648 | + | else ([IntegerEntry(bD, 100)] ++ (if (isDefined(cF)) | |
646 | 649 | then nil | |
647 | - | else [StringEntry( | |
650 | + | else [StringEntry(bo, "0:0_0_0_0_0_0:0_0_0_0_0_0:")])))))) | |
648 | 651 | } | |
649 | 652 | } | |
650 | 653 | } | |
651 | 654 | } | |
652 | 655 | ||
653 | 656 | ||
654 | 657 | ||
655 | - | @Callable( | |
656 | - | func unstakeDuck ( | |
658 | + | @Callable(aR) | |
659 | + | func unstakeDuck (cB) = if ((size(aR.payments) != 0)) | |
657 | 660 | then throw("unstake doesn't require any payments") | |
658 | 661 | else { | |
659 | - | let J = fromBase58String( | |
660 | - | let | |
661 | - | let | |
662 | - | if (if (( | |
663 | - | then ( | |
662 | + | let J = fromBase58String(cB) | |
663 | + | let cx = toString(aR.caller) | |
664 | + | let bZ = value(assetInfo(J)) | |
665 | + | if (if ((bZ.issuer != d)) | |
666 | + | then (bZ.issuer != e) | |
664 | 667 | else false) | |
665 | 668 | then throw((("Unknown issuer of " + j) + " token")) | |
666 | - | else if (!(contains( | |
669 | + | else if (!(contains(bZ.name, j))) | |
667 | 670 | then throw((("Only NFT " + j) + " tokens can be unstaked")) | |
668 | 671 | else { | |
669 | - | let | |
670 | - | if (!(isDefined( | |
671 | - | then throw((("NFT " + | |
672 | - | else if (!(isDefined( | |
673 | - | then throw((("The duck " + | |
672 | + | let ca = L(toBase58String(J)) | |
673 | + | if (!(isDefined(ca))) | |
674 | + | then throw((("NFT " + bZ.name) + " is not staked")) | |
675 | + | else if (!(isDefined(R(cx)))) | |
676 | + | then throw((("The duck " + bZ.name) + " is not staked")) | |
674 | 677 | else { | |
675 | - | let | |
676 | - | if (( | |
678 | + | let cc = valueOrErrorMessage(getString(K(toBase58String(J))), (("NFT " + bZ.name) + " is orphaned")) | |
679 | + | if ((cc != cx)) | |
677 | 680 | then throw("Staked NFT is not yours") | |
678 | - | else [ScriptTransfer( | |
681 | + | else [ScriptTransfer(aR.caller, 1, J), DeleteEntry(ca), DeleteEntry(X(cB)), DeleteEntry(K(cB)), DeleteEntry(S(j, cB, cx)), DeleteEntry(R(cx))] | |
679 | 682 | } | |
680 | 683 | } | |
681 | 684 | } | |
682 | 685 | ||
683 | 686 | ||
684 | 687 | ||
685 | - | @Callable( | |
686 | - | func claimRes ( | |
688 | + | @Callable(aR) | |
689 | + | func claimRes (aX,cA) = if ((size(aR.payments) != 0)) | |
687 | 690 | then throw("claimRes doesn't require any payments") | |
688 | 691 | else { | |
689 | - | let | |
690 | - | let | |
691 | - | $Tuple2(( | |
692 | + | let bW = toString(aR.originCaller) | |
693 | + | let aL = ce(bW, aX) | |
694 | + | $Tuple2((aL._1 :+ StringEntry(aL._2, makeString(aL._3, ":"))), aL._3[ai]) | |
692 | 695 | } | |
693 | 696 | ||
694 | 697 | ||
695 | 698 | ||
696 | - | @Callable( | |
697 | - | func flight ( | |
699 | + | @Callable(aR) | |
700 | + | func flight (bt,bu) = if (!(sigVerify_8Kb(bt, bu, g))) | |
698 | 701 | then throw("signature does not match") | |
699 | - | else if ((size( | |
702 | + | else if ((size(aR.payments) != 0)) | |
700 | 703 | then throw("flight doesn't require any payments") | |
701 | 704 | else { | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | if (if (( | |
705 | + | let bv = split(toUtf8String(bt), ";") | |
706 | + | let bw = split(split(bv[0], "|")[0], "_") | |
707 | + | let bx = parseIntValue(bw[0]) | |
708 | + | let by = parseIntValue(bw[1]) | |
709 | + | let cG = split(bv[1], ":") | |
710 | + | let cH = cG[0] | |
711 | + | let bB = parseIntValue(cG[1]) | |
712 | + | if (if ((bB > (lastBlock.timestamp + o))) | |
710 | 713 | then true | |
711 | - | else ((lastBlock.timestamp - o) > | |
714 | + | else ((lastBlock.timestamp - o) > bB)) | |
712 | 715 | then throw("signature outdated") | |
713 | 716 | else { | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | if (( | |
718 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
719 | - | else if ((0 >= | |
717 | + | let W = valueOrErrorMessage(getString(R(toString(aR.caller))), "You don't have a duck staked") | |
718 | + | let bD = Y(W) | |
719 | + | let bE = valueOrElse(getInteger(bD), 100) | |
720 | + | if ((bE != bx)) | |
721 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bD), 100))) + " from state does not match one from flight log=") + toString(bx))) | |
722 | + | else if ((0 >= bx)) | |
720 | 723 | then throw("You can't fly with zero health") | |
721 | 724 | else { | |
722 | - | let | |
723 | - | let | |
724 | - | if (( | |
725 | + | let cC = X(W) | |
726 | + | let bX = valueOrElse(getString(cC), k) | |
727 | + | if ((cH == bX)) | |
725 | 728 | then throw("You can't fly to the same location") | |
726 | - | else $Tuple2([StringEntry( | |
727 | - | then | |
728 | - | else | |
729 | + | else $Tuple2([StringEntry(cC, if ((by > 0)) | |
730 | + | then cH | |
731 | + | else bX), IntegerEntry(bD, by)], unit) | |
729 | 732 | } | |
730 | 733 | } | |
731 | 734 | } | |
732 | 735 | ||
733 | 736 | ||
734 | 737 | ||
735 | - | @Callable( | |
736 | - | func setHealth ( | |
738 | + | @Callable(aR) | |
739 | + | func setHealth (cE,W) = if (if ((0 > cE)) | |
737 | 740 | then true | |
738 | - | else ( | |
741 | + | else (cE > 100)) | |
739 | 742 | then throw("HP should be within 0..100") | |
740 | - | else [IntegerEntry( | |
743 | + | else [IntegerEntry(Y(W), cE)] | |
741 | 744 | ||
742 | 745 | ||
743 | 746 | ||
744 | - | @Callable( | |
745 | - | func heal ( | |
747 | + | @Callable(aR) | |
748 | + | func heal (cI,aX) = if (if ((0 > cI)) | |
746 | 749 | then true | |
747 | - | else ( | |
748 | - | then throw(("Unknown material: " + toString( | |
749 | - | else if ((0 >= | |
750 | - | then throw(("Amount should be positive! " + toString( | |
750 | + | else (cI >= l)) | |
751 | + | then throw(("Unknown material: " + toString(cI))) | |
752 | + | else if ((0 >= aX)) | |
753 | + | then throw(("Amount should be positive! " + toString(aX))) | |
751 | 754 | else { | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | if (( | |
755 | + | let W = valueOrErrorMessage(getString(R(toString(aR.caller))), "You don't have a duck staked") | |
756 | + | let bD = Y(W) | |
757 | + | let cJ = valueOrElse(getInteger(bD), 100) | |
758 | + | if ((cJ >= 100)) | |
756 | 759 | then throw("HP should be < 100 to heal") | |
757 | 760 | else { | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | if (( | |
765 | - | then throw(((((("You need " + toString( | |
761 | + | let bo = V(W) | |
762 | + | let bF = bn(bo) | |
763 | + | let bG = split(bF[aj], "_") | |
764 | + | let cK = parseIntValue(bG[cI]) | |
765 | + | let cL = min([(aX / h), (100 - cJ)]) | |
766 | + | let cM = (cL * h) | |
767 | + | if ((cM > cK)) | |
768 | + | then throw(((((("You need " + toString(cM)) + " of ") + B[cI]) + " to heal, but you backpack contains ") + toString(cK))) | |
766 | 769 | else { | |
767 | - | let | |
768 | - | [IntegerEntry( | |
770 | + | let bH = aV(bG, cI, cM) | |
771 | + | [IntegerEntry(bD, (cJ + cL)), StringEntry(bo, makeString([bF[ah], bF[ai], bH, bF[ak]], ":"))] | |
769 | 772 | } | |
770 | 773 | } | |
771 | 774 | } | |
772 | 775 | ||
773 | 776 | ||
774 | 777 | ||
775 | - | @Callable( | |
776 | - | func updateBackpack ( | |
778 | + | @Callable(aR) | |
779 | + | func updateBackpack (W,cN) = if ((aR.caller != f)) | |
777 | 780 | then throw("permission denied") | |
778 | - | else $Tuple2([StringEntry( | |
781 | + | else $Tuple2([StringEntry(V(W), cN)], cN) | |
779 | 782 | ||
780 | 783 | ||
781 | 784 | ||
782 | - | @Callable( | |
783 | - | func expeditionBuy ( | |
785 | + | @Callable(aR) | |
786 | + | func expeditionBuy (bt,bu) = if ((size(aR.payments) != 1)) | |
784 | 787 | then throw("Exactly one payment required") | |
785 | 788 | else { | |
786 | - | let | |
787 | - | if (( | |
789 | + | let cw = value(aR.payments[0]) | |
790 | + | if ((cw.assetId != b)) | |
788 | 791 | then throw("Allowed USDN payment only!") | |
789 | - | else if (( | |
792 | + | else if ((cw.amount != t)) | |
790 | 793 | then throw(("Payment attached should be " + toString(t))) | |
791 | - | else | |
794 | + | else bq(false, aR.caller, aR.transactionId, bt, bu) | |
792 | 795 | } | |
793 | 796 | ||
794 | 797 | ||
795 | 798 | ||
796 | - | @Callable( | |
797 | - | func expedition ( | |
799 | + | @Callable(aR) | |
800 | + | func expedition (bt,bu) = if ((size(aR.payments) != 0)) | |
798 | 801 | then throw("expedition doesn't require any payments") | |
799 | - | else | |
802 | + | else bq(true, aR.caller, aR.transactionId, bt, bu) | |
800 | 803 | ||
801 | 804 | ||
802 | 805 | ||
803 | - | @Callable( | |
804 | - | func upgradeInfra ( | |
806 | + | @Callable(aR) | |
807 | + | func upgradeInfra (cO) = if ((size(aR.payments) != 0)) | |
805 | 808 | then throw("Infrastructure upgrade doesn't require any payments") | |
806 | - | else | |
809 | + | else cn(true, aR.caller, 0) | |
807 | 810 | ||
808 | 811 | ||
809 | 812 | ||
810 | - | @Callable( | |
811 | - | func upgradeInfraUsdn ( | |
813 | + | @Callable(aR) | |
814 | + | func upgradeInfraUsdn (cO) = if ((size(aR.payments) != 1)) | |
812 | 815 | then throw("Exactly one payment required") | |
813 | 816 | else { | |
814 | - | let | |
815 | - | if (( | |
817 | + | let cw = value(aR.payments[0]) | |
818 | + | if ((cw.assetId != b)) | |
816 | 819 | then throw("Allowed USDN payment only!") | |
817 | - | else | |
820 | + | else cn(false, aR.caller, cw.amount) | |
818 | 821 | } | |
819 | 822 | ||
820 | 823 | ||
821 | 824 | ||
822 | - | @Callable( | |
823 | - | func activateArtifact ( | |
825 | + | @Callable(aR) | |
826 | + | func activateArtifact (cP) = if ((size(aR.payments) != 0)) | |
824 | 827 | then throw("Artifact activation doesn't require any payments") | |
825 | 828 | else { | |
826 | - | let | |
827 | - | let c = | |
829 | + | let aL = { | |
830 | + | let c = cP | |
828 | 831 | if (("PRESALE" == c)) | |
829 | - | then | |
832 | + | then cu(toString(aR.caller)) | |
830 | 833 | else throw("Unknown artifact") | |
831 | 834 | } | |
832 | - | | |
835 | + | aL | |
833 | 836 | } | |
834 | 837 | ||
835 | 838 |
github/deemru/w8io/026f985 300.03 ms ◑