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+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAICAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAICAVQFByRtYXRjaDAFBHRoaXMJAAIBAg1Vbmtub3duIGNoYWluAAticmVlZGVyQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAgIBVwUHJG1hdGNoMAkBEUBleHRyT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atus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CAKs3kgsQ12fqrxwYjQd7LqqT65S5TtXMtm8Wq5bCs3N Next: BMPLrL7JaYrzdyMqEQaof9Z2476EU7k8anQRKiWia9m7 Diff:
OldNewDifferences
140140 func P (J) = ("presaleArtActivated_" + J)
141141
142142
143-func Q (O) = ("stakedDuckByOwner_" + O)
143+func Q (J,O) = ((("presaleArtActivatedByAssetIdAndOwner_" + J) + "_") + O)
144144
145145
146-func R (S,J,O) = ((((("stakedTimeByTypeAssetIdAndOwner_" + S) + "_") + J) + "_") + O)
146+func R (O) = ("stakedDuckByOwner_" + O)
147147
148148
149-func T (F) = ("landOwner_" + F)
149+func S (T,J,O) = ((((("stakedTimeByTypeAssetIdAndOwner_" + T) + "_") + J) + "_") + O)
150150
151151
152-func U (V) = ("backPack_" + V)
152+func U (F) = ("landOwner_" + F)
153153
154154
155-func W (V) = ("duckLocation_" + V)
155+func V (W) = ("backPack_" + W)
156156
157157
158-func X (V) = ("duckHealth_" + V)
158+func X (W) = ("duckLocation_" + W)
159159
160160
161-func Y () = "resTypesProportions"
161+func Y (W) = ("duckHealth_" + W)
162162
163163
164-let Z = 0
164+func Z () = "resTypesProportions"
165165
166-let aa = 1
167166
168-let ab = 2
167+let aa = 0
169168
170-let ac = 3
169+let ab = 1
171170
172-let ad = 0
171+let ac = 2
173172
174-let ae = 1
173+let ad = 3
175174
176-let af = 2
175+let ae = 0
177176
178-let ag = 0
177+let af = 1
179178
180-let ah = 1
179+let ag = 2
181180
182-let ai = 2
181+let ah = 0
183182
184-let aj = 3
183+let ai = 1
185184
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
188191 if ($isInstanceOf(c, "String"))
189192 then {
190- let am = c
191- am
193+ let an = c
194+ an
192195 }
193196 else throw("fail to cast into String")
194197 }
195198
196199
197-func an (ao) = {
198- let ap = split(value(getString(Y())), "_")
199- if ((size(ap) != l))
200+func ao (ap) = {
201+ let aq = split(value(getString(Z())), "_")
202+ if ((size(aq) != l))
200203 then throw("Wrong proportions data")
201204 else {
202- let aq = [parseIntValue(ap[0]), parseIntValue(ap[1]), parseIntValue(ap[2]), parseIntValue(ap[3]), parseIntValue(ap[4]), parseIntValue(ap[5])]
203- let ar = (((((aq[0] + aq[1]) + aq[2]) + aq[3]) + aq[4]) + aq[5])
204- if ((0 >= ar))
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))
205208 then throw("No lands staked")
206209 else {
207- let as = fraction(ao, u, ar)
208- func at (au,av) = (au :+ fraction(av, as, u))
210+ let at = fraction(ap, u, as)
211+ func au (av,aw) = (av :+ fraction(aw, at, u))
209212
210- let aw = aq
211- let ax = size(aw)
212- let ay = nil
213- func az (aA,aB) = if ((aB >= ax))
214- then aA
215- else at(aA, aw[aB])
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])
216219
217- func aC (aA,aB) = if ((aB >= ax))
218- then aA
220+ func aD (aB,aC) = if ((aC >= ay))
221+ then aB
219222 else throw("List size exceeds 6")
220223
221- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
224+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
222225 }
223226 }
224227 }
225228
226229
227-func aD (aE,aF,aG) = {
228- let aH = an(aG)
229- func aI (au,aJ) = {
230- let aK = (parseIntValue(aF[aJ]) - aH[aJ])
231- if ((0 > aK))
232- then throw(((((("Not enough material idx=" + toString(aJ)) + ", you have ") + aF[aJ]) + ", but need ") + toString(aH[aJ])))
233- else (au :+ toString(aK))
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))
234237 }
235238
236- if (aE)
239+ if (aF)
237240 then {
238- let aw = [0, 1, 2, 3, 4, 5]
239- let ax = size(aw)
240- let ay = nil
241- func az (aA,aB) = if ((aB >= ax))
242- then aA
243- else aI(aA, aw[aB])
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])
244247
245- func aC (aA,aB) = if ((aB >= ax))
246- then aA
248+ func aD (aB,aC) = if ((aC >= ay))
249+ then aB
247250 else throw("List size exceeds 6")
248251
249- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
252+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
250253 }
251- else aF
254+ else aG
252255 }
253256
254257
255-func aL (aM,aN,aO) = {
256- let ap = split(valueOrElse(getString(Y()), "0_0_0_0_0_0"), "_")
257- if ((size(ap) != l))
258+func aM (aN,aO,aP) = {
259+ let aq = split(valueOrElse(getString(Z()), "0_0_0_0_0_0"), "_")
260+ if ((size(aq) != l))
258261 then throw("Wrong proportions data")
259262 else {
260- func aP (au,aQ) = {
261- let aK = (parseIntValue(ap[aQ]) + ((aO * aM[aQ]) * aN))
262- if ((0 > aK))
263- then throw(((((((("Panic! Pieces of type=" + toString(aQ)) + ", sign=") + toString(aO)) + ", terrainCounts[i]=") + toString(aM[aQ])) + ", landSizeIndex=") + toString(aN)))
264- else (au :+ toString(aK))
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))
265268 }
266269
267- let aq = {
268- let aw = [0, 1, 2, 3, 4, 5]
269- let ax = size(aw)
270- let ay = nil
271- func az (aA,aB) = if ((aB >= ax))
272- then aA
273- else aP(aA, aw[aB])
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])
274277
275- func aC (aA,aB) = if ((aB >= ax))
276- then aA
278+ func aD (aB,aC) = if ((aC >= ay))
279+ then aB
277280 else throw("List size exceeds 6")
278281
279- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
282+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
280283 }
281- makeString(aq, "_")
284+ makeString(ar, "_")
282285 }
283286 }
284287
285288
286-func aR (aS) = [(size(split(aS, "A")) - 1), (size(split(aS, "B")) - 1), (size(split(aS, "C")) - 1), (size(split(aS, "D")) - 1), (size(split(aS, "E")) - 1), (size(split(aS, "F")) - 1)]
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)]
287290
288291
289-func aT (H) = {
292+func aU (H) = {
290293 let c = H
291294 if (("S" == c))
292295 then 25
302305 }
303306
304307
305-func aU (aV,aJ,aW) = {
306- func aX (au,aQ) = (au :+ (if ((aQ == aJ))
307- then toString((parseIntValue(aV[aQ]) - aW))
308- else aV[aQ]))
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]))
309312
310- let aq = {
311- let aw = [0, 1, 2, 3, 4, 5]
312- let ax = size(aw)
313- let ay = nil
314- func az (aA,aB) = if ((aB >= ax))
315- then aA
316- else aX(aA, aw[aB])
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])
317320
318- func aC (aA,aB) = if ((aB >= ax))
319- then aA
321+ func aD (aB,aC) = if ((aC >= ay))
322+ then aB
320323 else throw("List size exceeds 6")
321324
322- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
325+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
323326 }
324- makeString(aq, "_")
327+ makeString(ar, "_")
325328 }
326329
327330
328-func aY (aZ,aM,ba,aN,bb) = {
329- func bc (au,aQ) = {
330- let bd = ((fraction(ba, bb, n) * aM[aQ]) * aN)
331- (au :+ toString((parseIntValue(aZ[aQ]) + bd)))
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)))
332335 }
333336
334- let aq = {
335- let aw = [0, 1, 2, 3, 4, 5]
336- let ax = size(aw)
337- let ay = nil
338- func az (aA,aB) = if ((aB >= ax))
339- then aA
340- else bc(aA, aw[aB])
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])
341344
342- func aC (aA,aB) = if ((aB >= ax))
343- then aA
345+ func aD (aB,aC) = if ((aC >= ay))
346+ then aB
344347 else throw("List size exceeds 6")
345348
346- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
349+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
347350 }
348- makeString(aq, "_")
351+ makeString(ar, "_")
349352 }
350353
351354
352-func be (bf) = if ((bf >= toBigInt(0)))
353- then bf
354- else -(bf)
355+func bf (bg) = if ((bg >= toBigInt(0)))
356+ then bg
357+ else -(bg)
355358
356359
357-let bg = [[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]]
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]]
358361
359-func bh (bi,bj) = {
360- let bk = toInt((bi % w))
361- let bl = if ((bj[0] > bk))
362+func bi (bj,bk) = {
363+ let bl = toInt((bj % w))
364+ let bm = if ((bk[0] > bl))
362365 then "A"
363- else if ((bj[1] > bk))
366+ else if ((bk[1] > bl))
364367 then "B"
365- else if ((bj[2] > bk))
368+ else if ((bk[2] > bl))
366369 then "C"
367- else if ((bj[3] > bk))
370+ else if ((bk[3] > bl))
368371 then "D"
369- else if ((bj[4] > bk))
372+ else if ((bk[4] > bl))
370373 then "E"
371374 else "F"
372- bl
375+ bm
373376 }
374377
375378
376-func bm (bn) = {
377- let bo = split(valueOrElse(getString(bn), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":")
378-[toString(valueOrElse(parseInt(bo[ag]), 0)), if ((size(split(bo[ah], "_")) == l))
379- then bo[ah]
380- else "0_0_0_0_0_0", if ((size(split(bo[ai], "_")) == l))
381- then bo[ai]
382- else "0_0_0_0_0_0", bo[aj]]
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]]
383386 }
384387
385388
386-func bp (aE,bq,br,bs,bt) = if (!(sigVerify_8Kb(bs, bt, g)))
389+func bq (aF,br,bs,bt,bu) = if (!(sigVerify_8Kb(bt, bu, g)))
387390 then throw("signature does not match")
388391 else {
389- let bu = split(toUtf8String(bs), ";")
390- let bv = split(split(bu[0], "|")[0], "_")
391- let bw = parseIntValue(bv[0])
392- let bx = parseIntValue(bv[1])
393- let by = split(bu[1], ":")
394- let bz = split(by[0], "_")
395- if ((bz[1] != "E"))
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"))
396399 then throw("expedition target location type should be E")
397400 else {
398- let bA = parseIntValue(by[1])
399- if (if ((bA > (lastBlock.timestamp + o)))
401+ let bB = parseIntValue(bz[1])
402+ if (if ((bB > (lastBlock.timestamp + o)))
400403 then true
401- else ((lastBlock.timestamp - o) > bA))
404+ else ((lastBlock.timestamp - o) > bB))
402405 then throw("signature outdated")
403406 else {
404- let bB = toString(bq)
405- let V = valueOrErrorMessage(getString(Q(bB)), "You don't have a duck staked")
406- let bC = X(V)
407- let bD = valueOrElse(getInteger(bC), 100)
408- if ((bD != bw))
409- then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bC), 100))) + " from state does not match one from flight log=") + toString(bw)))
410- else if ((0 >= bw))
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))
411414 then throw("You can't fly with zero health")
412- else if ((0 >= bx))
413- then $Tuple2(((if (!(aE))
414- then [ScriptTransfer(bq, t, b)]
415- else nil) :+ IntegerEntry(bC, 0)), "")
415+ else if ((0 >= by))
416+ then $Tuple2(((if (!(aF))
417+ then [ScriptTransfer(br, t, b)]
418+ else nil) :+ IntegerEntry(bD, 0)), "")
416419 else {
417- let bn = U(V)
418- let bE = bm(bn)
419- let bF = split(bE[ai], "_")
420- let bG = makeString(aD(aE, bF, s), "_")
421- let bH = be(toBigInt(br))
422- let bI = valueOrElse(getInteger(D()), 501)
423- let F = toString(bI)
424- let bJ = toInt((bH % v))
425- let bK = bg[bJ]
426- func bL (au,av) = $Tuple2((((((au._1 + bh(au._2, bK)) + bh((au._2 / w), bK)) + bh((au._2 / x), bK)) + bh((au._2 / y), bK)) + bh((au._2 / z), bK)), (au._2 / A))
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))
427430
428- let bM = {
429- let aw = [1, 2, 3, 4, 5]
430- let ax = size(aw)
431- let ay = $Tuple2("", (bH / v))
432- func az (aA,aB) = if ((aB >= ax))
433- then aA
434- else bL(aA, aw[aB])
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])
435438
436- func aC (aA,aB) = if ((aB >= ax))
437- then aA
439+ func aD (aB,aC) = if ((aC >= ay))
440+ then aB
438441 else throw("List size exceeds 5")
439442
440- aC(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5)
443+ aD(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5)
441444 }
442- let bN = C[bJ]
443- let bO = Issue(G(F, "S"), makeString([F, "S", bM._1, bN], "_"), 1, 0, false)
444- let J = calculateAssetId(bO)
445- let bP = toBase58String(J)
446- $Tuple2([IntegerEntry(D(), (bI + 1)), bO, StringEntry(E(F), bP), StringEntry(I(bP), bB), StringEntry(T(F), bB), IntegerEntry(M(bP), 0), IntegerEntry(N(bP, bB), 0), ScriptTransfer(bq, 1, J), StringEntry(W(V), makeString([bN, "L", bP], "_")), IntegerEntry(bC, bx), StringEntry(bn, makeString([bE[ag], bE[ah], bG, bE[aj]], ":"))], bP)
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)
447450 }
448451 }
449452 }
450453 }
451454
452455
453-func bQ (bR) = {
454- let bS = valueOrElse(getInteger(M(bR)), 0)
455- let bT = if (valueOrElse(getBoolean(P(bR)), false))
456+func bR (bS) = {
457+ let bT = valueOrElse(getInteger(M(bS)), 0)
458+ let bU = if (valueOrElse(getBoolean(P(bS)), false))
456459 then 3
457460 else 0
458- ((m + fraction(m, bS, 4)) + fraction(m, bT, 20))
461+ ((m + fraction(m, bT, 4)) + fraction(m, bU, 20))
459462 }
460463
461464
462-func bU (bV) = {
463- let V = valueOrErrorMessage(getString(Q(bV)), "You don't have a duck staked")
464- let bW = valueOrElse(getString(W(V)), k)
465- let bX = split(value(bW), "_")
466- if ((bX[ae] != "L"))
467- then throw((("Duck location type is " + bX[ae]) + ", but should be L"))
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"))
468471 else {
469- let bR = bX[af]
470- let bY = value(assetInfo(fromBase58String(bR)))
471- let bZ = L(bR)
472- let ca = valueOrErrorMessage(getInteger(bZ), (("NFT " + bY.name) + " is not staked"))
473- let cb = valueOrErrorMessage(getString(I(bR)), (("NFT " + bY.name) + " is orphaned"))
474- if ((cb != bV))
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))
475478 then throw((i + " is not yours"))
476479 else {
477- let cc = split(bY.description, "_")
478- $Tuple4(V, bR, cc, ca)
480+ let cd = split(bZ.description, "_")
481+ $Tuple4(W, bS, cd, cb)
479482 }
480483 }
481484 }
482485
483486
484-func cd (bV,aW) = {
485- let ce = bU(bV)
486- let H = ce._3[aa]
487- let aM = aR(ce._3[ab])
488- let ba = (lastBlock.timestamp - ce._4)
489- if ((0 > ba))
490- then throw(((("Saved timestamp is in future, saved = " + toString(ce._4)) + ", current = ") + toString(lastBlock.timestamp)))
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)))
491494 else {
492- let cf = aT(H)
493- let cg = bQ(ce._2)
494- let ch = fraction(ba, (cg * cf), n)
495- if ((aW > ch))
496- then throw(((("Not enough resources, available = " + toString(ch)) + ", requested = ") + toString(aW)))
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)))
497500 else {
498- let ci = fraction((ch - aW), n, (cg * cf))
499- let cj = (lastBlock.timestamp - ci)
500- let bn = U(ce._1)
501- let bE = bm(bn)
502- let aZ = split(bE[ah], "_")
503- let ck = aY(aZ, aM, (ba - ci), (cf / 25), cg)
504- $Tuple3([IntegerEntry(L(ce._2), cj), IntegerEntry(R(i, ce._2, bV), cj)], bn, [bE[ag], ck, bE[ai], bE[aj]])
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]])
505508 }
506509 }
507510 }
508511
509512
510-func cl (bV,bR,cf) = {
511- let bZ = L(bR)
512- let ca = value(getInteger(bZ))
513- let ch = (fraction((lastBlock.timestamp - ca), bQ(bR), n) * cf)
514- cd(bV, ch)
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)
515518 }
516519
517520
518-func cm (aE,bq,cn) = {
519- let bV = toString(bq)
520- let ce = bU(bV)
521- let cf = aT(ce._3[aa])
522- let co = M(ce._2)
523- let cp = valueOrElse(getInteger(co), 0)
524- if ((cp >= 3))
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))
525528 then throw("Currently max infrastructure level = 3")
526529 else {
527- let cq = (cp + 1)
528- let cr = fraction(r, (cf * cq), 25)
529- if (if (!(aE))
530- then (cn != cr)
530+ let cr = (cq + 1)
531+ let cs = fraction(r, (cg * cr), 25)
532+ if (if (!(aF))
533+ then (co != cs)
531534 else false)
532- then throw(("Payment attached should be " + toString(cr)))
535+ then throw(("Payment attached should be " + toString(cs)))
533536 else {
534- let bn = U(ce._1)
535- let bE = bm(bn)
536- let bF = split(bE[ai], "_")
537- let bG = makeString(aD(aE, bF, fraction(q, (cf * cq), 25)), "_")
538- let cs = cl(bV, ce._2, cf)
539- $Tuple2(([IntegerEntry(co, cq), IntegerEntry(N(ce._2, bV), cq), StringEntry(bn, makeString([bE[ag], cs._3[ah], bG, bE[aj]], ":"))] ++ cs._1), cq)
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)
540543 }
541544 }
542545 }
543546
544547
545-func ct (bV) = {
546- let ce = bU(bV)
547- let cu = P(ce._2)
548- if (valueOrElse(getBoolean(cu), false))
548+func cu (bW) = {
549+ let cf = bV(bW)
550+ let cv = P(cf._2)
551+ if (valueOrElse(getBoolean(cv), false))
549552 then throw("Presale artifact is already activated")
550- else if ((parseIntValue(ce._3[Z]) > 500))
551- then throw((((i + " ") + ce._2) + " is not eligible for presale artifact"))
553+ else if ((parseIntValue(cf._3[aa]) > 500))
554+ then throw((((i + " ") + cf._2) + " is not eligible for presale artifact"))
552555 else {
553- let cf = aT(ce._3[aa])
554- let cs = cl(bV, ce._2, cf)
555- ((cs._1 :+ BooleanEntry(P(ce._2), true)) :+ StringEntry(cs._2, makeString(cs._3, ":")))
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, ":")))
556559 }
557560 }
558561
559562
560-@Callable(aQ)
563+@Callable(aR)
561564 func stakeLand () = {
562- let cv = value(aQ.payments[0])
563- let J = value(cv.assetId)
564- let cw = toString(aQ.caller)
565- if ((cv.amount != 1))
565+ let cw = value(aR.payments[0])
566+ let J = value(cw.assetId)
567+ let cx = toString(aR.caller)
568+ if ((cw.amount != 1))
566569 then throw((("NFT " + i) + " token should be attached as payment"))
567570 else {
568- let bY = value(assetInfo(J))
569- if ((bY.issuer != this))
571+ let bZ = value(assetInfo(J))
572+ if ((bZ.issuer != this))
570573 then throw("Unknown issuer of token")
571- else if (!(contains(bY.name, i)))
574+ else if (!(contains(bZ.name, i)))
572575 then throw((("Only NFT " + i) + " tokens are accepted"))
573576 else {
574- let cx = drop(bY.name, 4)
575- let F = if (contains(cx, "XXL"))
576- then dropRight(cx, 3)
577- else if (contains(cx, "XL"))
578- then dropRight(cx, 2)
579- else dropRight(cx, 1)
580- let cy = valueOrErrorMessage(parseInt(F), ("Cannot parse land number from " + bY.name))
581- let bR = toBase58String(J)
582- let bZ = L(bR)
583- if (isDefined(getInteger(bZ)))
584- then throw((("NFT " + bY.name) + " is already staked"))
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"))
585588 else {
586- let cc = split(bY.description, "_")
587- let aM = aR(cc[ab])
588- let ap = aL(aM, (aT(cc[aa]) / 25), 1)
589-[IntegerEntry(bZ, lastBlock.timestamp), IntegerEntry(R(i, bR, cw), lastBlock.timestamp), StringEntry(I(bR), cw), StringEntry(T(F), cw), StringEntry(Y(), ap)]
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)]
590593 }
591594 }
592595 }
594597
595598
596599
597-@Callable(aQ)
598-func unstakeLand (cz) = if ((size(aQ.payments) != 0))
600+@Callable(aR)
601+func unstakeLand (cA) = if ((size(aR.payments) != 0))
599602 then throw("unstake doesn't require any payments")
600603 else {
601- let bV = toString(aQ.caller)
602- let ce = bU(bV)
603- let aM = aR(ce._3[ab])
604- let cf = aT(ce._3[aa])
605- let ap = aL(aM, (cf / 25), -1)
606- let cs = cl(bV, ce._2, cf)
607-[ScriptTransfer(aQ.caller, 1, fromBase58String(ce._2)), DeleteEntry(L(ce._2)), DeleteEntry(R(i, ce._2, bV)), StringEntry(Y(), ap), StringEntry(cs._2, makeString(cs._3, ":"))]
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, ":"))]
608611 }
609612
610613
611614
612-@Callable(aQ)
615+@Callable(aR)
613616 func stakeDuck () = {
614- let cv = value(aQ.payments[0])
615- let J = value(cv.assetId)
616- let cw = toString(aQ.caller)
617- if ((cv.amount != 1))
617+ let cw = value(aR.payments[0])
618+ let J = value(cw.assetId)
619+ let cx = toString(aR.caller)
620+ if ((cw.amount != 1))
618621 then throw((("NFT " + j) + " token should be attached as payment"))
619622 else {
620- let bY = value(assetInfo(J))
621- if (if ((bY.issuer != d))
622- then (bY.issuer != e)
623+ let bZ = value(assetInfo(J))
624+ if (if ((bZ.issuer != d))
625+ then (bZ.issuer != e)
623626 else false)
624627 then throw((("Unknown issuer of " + j) + " token"))
625- else if (!(contains(bY.name, j)))
628+ else if (!(contains(bZ.name, j)))
626629 then throw((("Only NFT " + j) + " tokens are accepted"))
627630 else {
628- let cA = toBase58String(J)
629- let bZ = L(cA)
630- if (isDefined(getInteger(bZ)))
631- then throw((("NFT " + bY.name) + " is already staked"))
632- else if (isDefined(getString(Q(cw))))
633- then throw(("You already staked one duck: " + bY.name))
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))
634637 else {
635- let cB = W(cA)
636- let cC = getString(cB)
637- let bC = X(cA)
638- let cD = getInteger(bC)
639- let bn = U(cA)
640- let cE = getString(bn)
641- ([IntegerEntry(bZ, lastBlock.timestamp), IntegerEntry(R(j, toBase58String(J), cw), lastBlock.timestamp), StringEntry(K(cA), cw), StringEntry(Q(cw), cA)] ++ (if (isDefined(cC))
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))
642645 then nil
643- else ([StringEntry(cB, k)] ++ (if (isDefined(cD))
646+ else ([StringEntry(cC, k)] ++ (if (isDefined(cE))
644647 then nil
645- else ([IntegerEntry(bC, 100)] ++ (if (isDefined(cE))
648+ else ([IntegerEntry(bD, 100)] ++ (if (isDefined(cF))
646649 then nil
647- else [StringEntry(bn, "0:0_0_0_0_0_0:0_0_0_0_0_0:")]))))))
650+ else [StringEntry(bo, "0:0_0_0_0_0_0:0_0_0_0_0_0:")]))))))
648651 }
649652 }
650653 }
652655
653656
654657
655-@Callable(aQ)
656-func unstakeDuck (cA) = if ((size(aQ.payments) != 0))
658+@Callable(aR)
659+func unstakeDuck (cB) = if ((size(aR.payments) != 0))
657660 then throw("unstake doesn't require any payments")
658661 else {
659- let J = fromBase58String(cA)
660- let cw = toString(aQ.caller)
661- let bY = value(assetInfo(J))
662- if (if ((bY.issuer != d))
663- then (bY.issuer != e)
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)
664667 else false)
665668 then throw((("Unknown issuer of " + j) + " token"))
666- else if (!(contains(bY.name, j)))
669+ else if (!(contains(bZ.name, j)))
667670 then throw((("Only NFT " + j) + " tokens can be unstaked"))
668671 else {
669- let bZ = L(toBase58String(J))
670- if (!(isDefined(bZ)))
671- then throw((("NFT " + bY.name) + " is not staked"))
672- else if (!(isDefined(Q(cw))))
673- then throw((("The duck " + bY.name) + " is not staked"))
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"))
674677 else {
675- let cb = valueOrErrorMessage(getString(K(toBase58String(J))), (("NFT " + bY.name) + " is orphaned"))
676- if ((cb != cw))
678+ let cc = valueOrErrorMessage(getString(K(toBase58String(J))), (("NFT " + bZ.name) + " is orphaned"))
679+ if ((cc != cx))
677680 then throw("Staked NFT is not yours")
678- else [ScriptTransfer(aQ.caller, 1, J), DeleteEntry(bZ), DeleteEntry(W(cA)), DeleteEntry(K(cA)), DeleteEntry(R(j, cA, cw)), DeleteEntry(Q(cw))]
681+ else [ScriptTransfer(aR.caller, 1, J), DeleteEntry(ca), DeleteEntry(X(cB)), DeleteEntry(K(cB)), DeleteEntry(S(j, cB, cx)), DeleteEntry(R(cx))]
679682 }
680683 }
681684 }
682685
683686
684687
685-@Callable(aQ)
686-func claimRes (aW,cz) = if ((size(aQ.payments) != 0))
688+@Callable(aR)
689+func claimRes (aX,cA) = if ((size(aR.payments) != 0))
687690 then throw("claimRes doesn't require any payments")
688691 else {
689- let bV = toString(aQ.originCaller)
690- let aK = cd(bV, aW)
691- $Tuple2((aK._1 :+ StringEntry(aK._2, makeString(aK._3, ":"))), aK._3[ah])
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])
692695 }
693696
694697
695698
696-@Callable(aQ)
697-func flight (bs,bt) = if (!(sigVerify_8Kb(bs, bt, g)))
699+@Callable(aR)
700+func flight (bt,bu) = if (!(sigVerify_8Kb(bt, bu, g)))
698701 then throw("signature does not match")
699- else if ((size(aQ.payments) != 0))
702+ else if ((size(aR.payments) != 0))
700703 then throw("flight doesn't require any payments")
701704 else {
702- let bu = split(toUtf8String(bs), ";")
703- let bv = split(split(bu[0], "|")[0], "_")
704- let bw = parseIntValue(bv[0])
705- let bx = parseIntValue(bv[1])
706- let cF = split(bu[1], ":")
707- let cG = cF[0]
708- let bA = parseIntValue(cF[1])
709- if (if ((bA > (lastBlock.timestamp + o)))
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)))
710713 then true
711- else ((lastBlock.timestamp - o) > bA))
714+ else ((lastBlock.timestamp - o) > bB))
712715 then throw("signature outdated")
713716 else {
714- let V = valueOrErrorMessage(getString(Q(toString(aQ.caller))), "You don't have a duck staked")
715- let bC = X(V)
716- let bD = valueOrElse(getInteger(bC), 100)
717- if ((bD != bw))
718- then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bC), 100))) + " from state does not match one from flight log=") + toString(bw)))
719- else if ((0 >= bw))
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))
720723 then throw("You can't fly with zero health")
721724 else {
722- let cB = W(V)
723- let bW = valueOrElse(getString(cB), k)
724- if ((cG == bW))
725+ let cC = X(W)
726+ let bX = valueOrElse(getString(cC), k)
727+ if ((cH == bX))
725728 then throw("You can't fly to the same location")
726- else $Tuple2([StringEntry(cB, if ((bx > 0))
727- then cG
728- else bW), IntegerEntry(bC, bx)], unit)
729+ else $Tuple2([StringEntry(cC, if ((by > 0))
730+ then cH
731+ else bX), IntegerEntry(bD, by)], unit)
729732 }
730733 }
731734 }
732735
733736
734737
735-@Callable(aQ)
736-func setHealth (cD,V) = if (if ((0 > cD))
738+@Callable(aR)
739+func setHealth (cE,W) = if (if ((0 > cE))
737740 then true
738- else (cD > 100))
741+ else (cE > 100))
739742 then throw("HP should be within 0..100")
740- else [IntegerEntry(X(V), cD)]
743+ else [IntegerEntry(Y(W), cE)]
741744
742745
743746
744-@Callable(aQ)
745-func heal (cH,aW) = if (if ((0 > cH))
747+@Callable(aR)
748+func heal (cI,aX) = if (if ((0 > cI))
746749 then true
747- else (cH >= l))
748- then throw(("Unknown material: " + toString(cH)))
749- else if ((0 >= aW))
750- then throw(("Amount should be positive! " + toString(aW)))
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)))
751754 else {
752- let V = valueOrErrorMessage(getString(Q(toString(aQ.caller))), "You don't have a duck staked")
753- let bC = X(V)
754- let cI = valueOrElse(getInteger(bC), 100)
755- if ((cI >= 100))
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))
756759 then throw("HP should be < 100 to heal")
757760 else {
758- let bn = U(V)
759- let bE = bm(bn)
760- let bF = split(bE[ai], "_")
761- let cJ = parseIntValue(bF[cH])
762- let cK = min([(aW / h), (100 - cI)])
763- let cL = (cK * h)
764- if ((cL > cJ))
765- then throw(((((("You need " + toString(cL)) + " of ") + B[cH]) + " to heal, but you backpack contains ") + toString(cJ)))
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)))
766769 else {
767- let bG = aU(bF, cH, cL)
768-[IntegerEntry(bC, (cI + cK)), StringEntry(bn, makeString([bE[ag], bE[ah], bG, bE[aj]], ":"))]
770+ let bH = aV(bG, cI, cM)
771+[IntegerEntry(bD, (cJ + cL)), StringEntry(bo, makeString([bF[ah], bF[ai], bH, bF[ak]], ":"))]
769772 }
770773 }
771774 }
772775
773776
774777
775-@Callable(aQ)
776-func updateBackpack (V,cM) = if ((aQ.caller != f))
778+@Callable(aR)
779+func updateBackpack (W,cN) = if ((aR.caller != f))
777780 then throw("permission denied")
778- else $Tuple2([StringEntry(U(V), cM)], cM)
781+ else $Tuple2([StringEntry(V(W), cN)], cN)
779782
780783
781784
782-@Callable(aQ)
783-func expeditionBuy (bs,bt) = if ((size(aQ.payments) != 1))
785+@Callable(aR)
786+func expeditionBuy (bt,bu) = if ((size(aR.payments) != 1))
784787 then throw("Exactly one payment required")
785788 else {
786- let cv = value(aQ.payments[0])
787- if ((cv.assetId != b))
789+ let cw = value(aR.payments[0])
790+ if ((cw.assetId != b))
788791 then throw("Allowed USDN payment only!")
789- else if ((cv.amount != t))
792+ else if ((cw.amount != t))
790793 then throw(("Payment attached should be " + toString(t)))
791- else bp(false, aQ.caller, aQ.transactionId, bs, bt)
794+ else bq(false, aR.caller, aR.transactionId, bt, bu)
792795 }
793796
794797
795798
796-@Callable(aQ)
797-func expedition (bs,bt) = if ((size(aQ.payments) != 0))
799+@Callable(aR)
800+func expedition (bt,bu) = if ((size(aR.payments) != 0))
798801 then throw("expedition doesn't require any payments")
799- else bp(true, aQ.caller, aQ.transactionId, bs, bt)
802+ else bq(true, aR.caller, aR.transactionId, bt, bu)
800803
801804
802805
803-@Callable(aQ)
804-func upgradeInfra (cN) = if ((size(aQ.payments) != 0))
806+@Callable(aR)
807+func upgradeInfra (cO) = if ((size(aR.payments) != 0))
805808 then throw("Infrastructure upgrade doesn't require any payments")
806- else cm(true, aQ.caller, 0)
809+ else cn(true, aR.caller, 0)
807810
808811
809812
810-@Callable(aQ)
811-func upgradeInfraUsdn (cN) = if ((size(aQ.payments) != 1))
813+@Callable(aR)
814+func upgradeInfraUsdn (cO) = if ((size(aR.payments) != 1))
812815 then throw("Exactly one payment required")
813816 else {
814- let cv = value(aQ.payments[0])
815- if ((cv.assetId != b))
817+ let cw = value(aR.payments[0])
818+ if ((cw.assetId != b))
816819 then throw("Allowed USDN payment only!")
817- else cm(false, aQ.caller, cv.amount)
820+ else cn(false, aR.caller, cw.amount)
818821 }
819822
820823
821824
822-@Callable(aQ)
823-func activateArtifact (cO) = if ((size(aQ.payments) != 0))
825+@Callable(aR)
826+func activateArtifact (cP) = if ((size(aR.payments) != 0))
824827 then throw("Artifact activation doesn't require any payments")
825828 else {
826- let aK = {
827- let c = cO
829+ let aL = {
830+ let c = cP
828831 if (("PRESALE" == c))
829- then ct(toString(aQ.caller))
832+ then cu(toString(aR.caller))
830833 else throw("Unknown artifact")
831834 }
832- aK
835+ aL
833836 }
834837
835838
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = toUtf8String(take(drop(this.bytes, 1), 1))
55
66 let b = {
77 let c = a
88 if (("W" == c))
99 then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
1010 else if (("T" == c))
1111 then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
1212 else throw("Unknown chain")
1313 }
1414
1515 let d = {
1616 let c = a
1717 if (("W" == c))
1818 then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv")
1919 else if (("T" == c))
2020 then this
2121 else throw("Unknown chain")
2222 }
2323
2424 let e = {
2525 let c = a
2626 if (("W" == c))
2727 then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb")
2828 else if (("T" == c))
2929 then this
3030 else throw("Unknown chain")
3131 }
3232
3333 let f = {
3434 let c = a
3535 if (("W" == c))
3636 then addressFromStringValue("3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D")
3737 else if (("T" == c))
3838 then addressFromStringValue("3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep")
3939 else throw("Unknown chain")
4040 }
4141
4242 let g = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD'
4343
4444 let h = 10000
4545
4646 let i = "LAND"
4747
4848 let j = "DUCK"
4949
5050 let k = "Africa_F_Africa"
5151
5252 let l = 6
5353
5454 let m = 3456000
5555
5656 let n = 86400000
5757
5858 let o = 300000
5959
6060 let p = 158549
6161
6262 let q = {
6363 let c = a
6464 if (("W" == c))
6565 then 18921595217
6666 else if (("T" == c))
6767 then 189215952
6868 else throw("Unknown chain")
6969 }
7070
7171 let r = {
7272 let c = a
7373 if (("W" == c))
7474 then 120000000
7575 else if (("T" == c))
7676 then 1200000
7777 else throw("Unknown chain")
7878 }
7979
8080 let s = {
8181 let c = a
8282 if (("W" == c))
8383 then 157679960139
8484 else if (("T" == c))
8585 then 1576799601
8686 else throw("Unknown chain")
8787 }
8888
8989 let t = {
9090 let c = a
9191 if (("W" == c))
9292 then 1000000000
9393 else if (("T" == c))
9494 then 10000000
9595 else throw("Unknown chain")
9696 }
9797
9898 let u = 1000000
9999
100100 let v = toBigInt(5)
101101
102102 let w = toBigInt(20)
103103
104104 let x = toBigInt((20 * 20))
105105
106106 let y = toBigInt(((20 * 20) * 20))
107107
108108 let z = toBigInt((((20 * 20) * 20) * 20))
109109
110110 let A = toBigInt(((((20 * 20) * 20) * 20) * 20))
111111
112112 let B = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"]
113113
114114 let C = ["Asia", "Europe", "Americas", "Oceania", "Africa"]
115115
116116 func D () = "nextLandNum"
117117
118118
119119 func E (F) = ("landToAsset_" + F)
120120
121121
122122 func G (F,H) = ((i + F) + H)
123123
124124
125125 func I (J) = ("nftOwner_" + J)
126126
127127
128128 func K (J) = ("duckOwner_" + J)
129129
130130
131131 func L (J) = ("stakedTime_" + J)
132132
133133
134134 func M (J) = ("infraLevel_" + J)
135135
136136
137137 func N (J,O) = ((("infraLevelByAssetIdAndOwner_" + J) + "_") + O)
138138
139139
140140 func P (J) = ("presaleArtActivated_" + J)
141141
142142
143-func Q (O) = ("stakedDuckByOwner_" + O)
143+func Q (J,O) = ((("presaleArtActivatedByAssetIdAndOwner_" + J) + "_") + O)
144144
145145
146-func R (S,J,O) = ((((("stakedTimeByTypeAssetIdAndOwner_" + S) + "_") + J) + "_") + O)
146+func R (O) = ("stakedDuckByOwner_" + O)
147147
148148
149-func T (F) = ("landOwner_" + F)
149+func S (T,J,O) = ((((("stakedTimeByTypeAssetIdAndOwner_" + T) + "_") + J) + "_") + O)
150150
151151
152-func U (V) = ("backPack_" + V)
152+func U (F) = ("landOwner_" + F)
153153
154154
155-func W (V) = ("duckLocation_" + V)
155+func V (W) = ("backPack_" + W)
156156
157157
158-func X (V) = ("duckHealth_" + V)
158+func X (W) = ("duckLocation_" + W)
159159
160160
161-func Y () = "resTypesProportions"
161+func Y (W) = ("duckHealth_" + W)
162162
163163
164-let Z = 0
164+func Z () = "resTypesProportions"
165165
166-let aa = 1
167166
168-let ab = 2
167+let aa = 0
169168
170-let ac = 3
169+let ab = 1
171170
172-let ad = 0
171+let ac = 2
173172
174-let ae = 1
173+let ad = 3
175174
176-let af = 2
175+let ae = 0
177176
178-let ag = 0
177+let af = 1
179178
180-let ah = 1
179+let ag = 2
181180
182-let ai = 2
181+let ah = 0
183182
184-let aj = 3
183+let ai = 1
185184
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
188191 if ($isInstanceOf(c, "String"))
189192 then {
190- let am = c
191- am
193+ let an = c
194+ an
192195 }
193196 else throw("fail to cast into String")
194197 }
195198
196199
197-func an (ao) = {
198- let ap = split(value(getString(Y())), "_")
199- if ((size(ap) != l))
200+func ao (ap) = {
201+ let aq = split(value(getString(Z())), "_")
202+ if ((size(aq) != l))
200203 then throw("Wrong proportions data")
201204 else {
202- let aq = [parseIntValue(ap[0]), parseIntValue(ap[1]), parseIntValue(ap[2]), parseIntValue(ap[3]), parseIntValue(ap[4]), parseIntValue(ap[5])]
203- let ar = (((((aq[0] + aq[1]) + aq[2]) + aq[3]) + aq[4]) + aq[5])
204- if ((0 >= ar))
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))
205208 then throw("No lands staked")
206209 else {
207- let as = fraction(ao, u, ar)
208- func at (au,av) = (au :+ fraction(av, as, u))
210+ let at = fraction(ap, u, as)
211+ func au (av,aw) = (av :+ fraction(aw, at, u))
209212
210- let aw = aq
211- let ax = size(aw)
212- let ay = nil
213- func az (aA,aB) = if ((aB >= ax))
214- then aA
215- else at(aA, aw[aB])
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])
216219
217- func aC (aA,aB) = if ((aB >= ax))
218- then aA
220+ func aD (aB,aC) = if ((aC >= ay))
221+ then aB
219222 else throw("List size exceeds 6")
220223
221- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
224+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
222225 }
223226 }
224227 }
225228
226229
227-func aD (aE,aF,aG) = {
228- let aH = an(aG)
229- func aI (au,aJ) = {
230- let aK = (parseIntValue(aF[aJ]) - aH[aJ])
231- if ((0 > aK))
232- then throw(((((("Not enough material idx=" + toString(aJ)) + ", you have ") + aF[aJ]) + ", but need ") + toString(aH[aJ])))
233- else (au :+ toString(aK))
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))
234237 }
235238
236- if (aE)
239+ if (aF)
237240 then {
238- let aw = [0, 1, 2, 3, 4, 5]
239- let ax = size(aw)
240- let ay = nil
241- func az (aA,aB) = if ((aB >= ax))
242- then aA
243- else aI(aA, aw[aB])
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])
244247
245- func aC (aA,aB) = if ((aB >= ax))
246- then aA
248+ func aD (aB,aC) = if ((aC >= ay))
249+ then aB
247250 else throw("List size exceeds 6")
248251
249- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
252+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
250253 }
251- else aF
254+ else aG
252255 }
253256
254257
255-func aL (aM,aN,aO) = {
256- let ap = split(valueOrElse(getString(Y()), "0_0_0_0_0_0"), "_")
257- if ((size(ap) != l))
258+func aM (aN,aO,aP) = {
259+ let aq = split(valueOrElse(getString(Z()), "0_0_0_0_0_0"), "_")
260+ if ((size(aq) != l))
258261 then throw("Wrong proportions data")
259262 else {
260- func aP (au,aQ) = {
261- let aK = (parseIntValue(ap[aQ]) + ((aO * aM[aQ]) * aN))
262- if ((0 > aK))
263- then throw(((((((("Panic! Pieces of type=" + toString(aQ)) + ", sign=") + toString(aO)) + ", terrainCounts[i]=") + toString(aM[aQ])) + ", landSizeIndex=") + toString(aN)))
264- else (au :+ toString(aK))
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))
265268 }
266269
267- let aq = {
268- let aw = [0, 1, 2, 3, 4, 5]
269- let ax = size(aw)
270- let ay = nil
271- func az (aA,aB) = if ((aB >= ax))
272- then aA
273- else aP(aA, aw[aB])
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])
274277
275- func aC (aA,aB) = if ((aB >= ax))
276- then aA
278+ func aD (aB,aC) = if ((aC >= ay))
279+ then aB
277280 else throw("List size exceeds 6")
278281
279- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
282+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
280283 }
281- makeString(aq, "_")
284+ makeString(ar, "_")
282285 }
283286 }
284287
285288
286-func aR (aS) = [(size(split(aS, "A")) - 1), (size(split(aS, "B")) - 1), (size(split(aS, "C")) - 1), (size(split(aS, "D")) - 1), (size(split(aS, "E")) - 1), (size(split(aS, "F")) - 1)]
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)]
287290
288291
289-func aT (H) = {
292+func aU (H) = {
290293 let c = H
291294 if (("S" == c))
292295 then 25
293296 else if (("M" == c))
294297 then 100
295298 else if (("L" == c))
296299 then 225
297300 else if (("XL" == c))
298301 then 400
299302 else if (("XXL" == c))
300303 then 625
301304 else throw("Unknown land size")
302305 }
303306
304307
305-func aU (aV,aJ,aW) = {
306- func aX (au,aQ) = (au :+ (if ((aQ == aJ))
307- then toString((parseIntValue(aV[aQ]) - aW))
308- else aV[aQ]))
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]))
309312
310- let aq = {
311- let aw = [0, 1, 2, 3, 4, 5]
312- let ax = size(aw)
313- let ay = nil
314- func az (aA,aB) = if ((aB >= ax))
315- then aA
316- else aX(aA, aw[aB])
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])
317320
318- func aC (aA,aB) = if ((aB >= ax))
319- then aA
321+ func aD (aB,aC) = if ((aC >= ay))
322+ then aB
320323 else throw("List size exceeds 6")
321324
322- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
325+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
323326 }
324- makeString(aq, "_")
327+ makeString(ar, "_")
325328 }
326329
327330
328-func aY (aZ,aM,ba,aN,bb) = {
329- func bc (au,aQ) = {
330- let bd = ((fraction(ba, bb, n) * aM[aQ]) * aN)
331- (au :+ toString((parseIntValue(aZ[aQ]) + bd)))
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)))
332335 }
333336
334- let aq = {
335- let aw = [0, 1, 2, 3, 4, 5]
336- let ax = size(aw)
337- let ay = nil
338- func az (aA,aB) = if ((aB >= ax))
339- then aA
340- else bc(aA, aw[aB])
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])
341344
342- func aC (aA,aB) = if ((aB >= ax))
343- then aA
345+ func aD (aB,aC) = if ((aC >= ay))
346+ then aB
344347 else throw("List size exceeds 6")
345348
346- aC(az(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5), 6)
349+ aD(aA(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5), 6)
347350 }
348- makeString(aq, "_")
351+ makeString(ar, "_")
349352 }
350353
351354
352-func be (bf) = if ((bf >= toBigInt(0)))
353- then bf
354- else -(bf)
355+func bf (bg) = if ((bg >= toBigInt(0)))
356+ then bg
357+ else -(bg)
355358
356359
357-let bg = [[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]]
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]]
358361
359-func bh (bi,bj) = {
360- let bk = toInt((bi % w))
361- let bl = if ((bj[0] > bk))
362+func bi (bj,bk) = {
363+ let bl = toInt((bj % w))
364+ let bm = if ((bk[0] > bl))
362365 then "A"
363- else if ((bj[1] > bk))
366+ else if ((bk[1] > bl))
364367 then "B"
365- else if ((bj[2] > bk))
368+ else if ((bk[2] > bl))
366369 then "C"
367- else if ((bj[3] > bk))
370+ else if ((bk[3] > bl))
368371 then "D"
369- else if ((bj[4] > bk))
372+ else if ((bk[4] > bl))
370373 then "E"
371374 else "F"
372- bl
375+ bm
373376 }
374377
375378
376-func bm (bn) = {
377- let bo = split(valueOrElse(getString(bn), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":")
378-[toString(valueOrElse(parseInt(bo[ag]), 0)), if ((size(split(bo[ah], "_")) == l))
379- then bo[ah]
380- else "0_0_0_0_0_0", if ((size(split(bo[ai], "_")) == l))
381- then bo[ai]
382- else "0_0_0_0_0_0", bo[aj]]
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]]
383386 }
384387
385388
386-func bp (aE,bq,br,bs,bt) = if (!(sigVerify_8Kb(bs, bt, g)))
389+func bq (aF,br,bs,bt,bu) = if (!(sigVerify_8Kb(bt, bu, g)))
387390 then throw("signature does not match")
388391 else {
389- let bu = split(toUtf8String(bs), ";")
390- let bv = split(split(bu[0], "|")[0], "_")
391- let bw = parseIntValue(bv[0])
392- let bx = parseIntValue(bv[1])
393- let by = split(bu[1], ":")
394- let bz = split(by[0], "_")
395- if ((bz[1] != "E"))
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"))
396399 then throw("expedition target location type should be E")
397400 else {
398- let bA = parseIntValue(by[1])
399- if (if ((bA > (lastBlock.timestamp + o)))
401+ let bB = parseIntValue(bz[1])
402+ if (if ((bB > (lastBlock.timestamp + o)))
400403 then true
401- else ((lastBlock.timestamp - o) > bA))
404+ else ((lastBlock.timestamp - o) > bB))
402405 then throw("signature outdated")
403406 else {
404- let bB = toString(bq)
405- let V = valueOrErrorMessage(getString(Q(bB)), "You don't have a duck staked")
406- let bC = X(V)
407- let bD = valueOrElse(getInteger(bC), 100)
408- if ((bD != bw))
409- then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bC), 100))) + " from state does not match one from flight log=") + toString(bw)))
410- else if ((0 >= bw))
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))
411414 then throw("You can't fly with zero health")
412- else if ((0 >= bx))
413- then $Tuple2(((if (!(aE))
414- then [ScriptTransfer(bq, t, b)]
415- else nil) :+ IntegerEntry(bC, 0)), "")
415+ else if ((0 >= by))
416+ then $Tuple2(((if (!(aF))
417+ then [ScriptTransfer(br, t, b)]
418+ else nil) :+ IntegerEntry(bD, 0)), "")
416419 else {
417- let bn = U(V)
418- let bE = bm(bn)
419- let bF = split(bE[ai], "_")
420- let bG = makeString(aD(aE, bF, s), "_")
421- let bH = be(toBigInt(br))
422- let bI = valueOrElse(getInteger(D()), 501)
423- let F = toString(bI)
424- let bJ = toInt((bH % v))
425- let bK = bg[bJ]
426- func bL (au,av) = $Tuple2((((((au._1 + bh(au._2, bK)) + bh((au._2 / w), bK)) + bh((au._2 / x), bK)) + bh((au._2 / y), bK)) + bh((au._2 / z), bK)), (au._2 / A))
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))
427430
428- let bM = {
429- let aw = [1, 2, 3, 4, 5]
430- let ax = size(aw)
431- let ay = $Tuple2("", (bH / v))
432- func az (aA,aB) = if ((aB >= ax))
433- then aA
434- else bL(aA, aw[aB])
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])
435438
436- func aC (aA,aB) = if ((aB >= ax))
437- then aA
439+ func aD (aB,aC) = if ((aC >= ay))
440+ then aB
438441 else throw("List size exceeds 5")
439442
440- aC(az(az(az(az(az(ay, 0), 1), 2), 3), 4), 5)
443+ aD(aA(aA(aA(aA(aA(az, 0), 1), 2), 3), 4), 5)
441444 }
442- let bN = C[bJ]
443- let bO = Issue(G(F, "S"), makeString([F, "S", bM._1, bN], "_"), 1, 0, false)
444- let J = calculateAssetId(bO)
445- let bP = toBase58String(J)
446- $Tuple2([IntegerEntry(D(), (bI + 1)), bO, StringEntry(E(F), bP), StringEntry(I(bP), bB), StringEntry(T(F), bB), IntegerEntry(M(bP), 0), IntegerEntry(N(bP, bB), 0), ScriptTransfer(bq, 1, J), StringEntry(W(V), makeString([bN, "L", bP], "_")), IntegerEntry(bC, bx), StringEntry(bn, makeString([bE[ag], bE[ah], bG, bE[aj]], ":"))], bP)
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)
447450 }
448451 }
449452 }
450453 }
451454
452455
453-func bQ (bR) = {
454- let bS = valueOrElse(getInteger(M(bR)), 0)
455- let bT = if (valueOrElse(getBoolean(P(bR)), false))
456+func bR (bS) = {
457+ let bT = valueOrElse(getInteger(M(bS)), 0)
458+ let bU = if (valueOrElse(getBoolean(P(bS)), false))
456459 then 3
457460 else 0
458- ((m + fraction(m, bS, 4)) + fraction(m, bT, 20))
461+ ((m + fraction(m, bT, 4)) + fraction(m, bU, 20))
459462 }
460463
461464
462-func bU (bV) = {
463- let V = valueOrErrorMessage(getString(Q(bV)), "You don't have a duck staked")
464- let bW = valueOrElse(getString(W(V)), k)
465- let bX = split(value(bW), "_")
466- if ((bX[ae] != "L"))
467- then throw((("Duck location type is " + bX[ae]) + ", but should be L"))
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"))
468471 else {
469- let bR = bX[af]
470- let bY = value(assetInfo(fromBase58String(bR)))
471- let bZ = L(bR)
472- let ca = valueOrErrorMessage(getInteger(bZ), (("NFT " + bY.name) + " is not staked"))
473- let cb = valueOrErrorMessage(getString(I(bR)), (("NFT " + bY.name) + " is orphaned"))
474- if ((cb != bV))
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))
475478 then throw((i + " is not yours"))
476479 else {
477- let cc = split(bY.description, "_")
478- $Tuple4(V, bR, cc, ca)
480+ let cd = split(bZ.description, "_")
481+ $Tuple4(W, bS, cd, cb)
479482 }
480483 }
481484 }
482485
483486
484-func cd (bV,aW) = {
485- let ce = bU(bV)
486- let H = ce._3[aa]
487- let aM = aR(ce._3[ab])
488- let ba = (lastBlock.timestamp - ce._4)
489- if ((0 > ba))
490- then throw(((("Saved timestamp is in future, saved = " + toString(ce._4)) + ", current = ") + toString(lastBlock.timestamp)))
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)))
491494 else {
492- let cf = aT(H)
493- let cg = bQ(ce._2)
494- let ch = fraction(ba, (cg * cf), n)
495- if ((aW > ch))
496- then throw(((("Not enough resources, available = " + toString(ch)) + ", requested = ") + toString(aW)))
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)))
497500 else {
498- let ci = fraction((ch - aW), n, (cg * cf))
499- let cj = (lastBlock.timestamp - ci)
500- let bn = U(ce._1)
501- let bE = bm(bn)
502- let aZ = split(bE[ah], "_")
503- let ck = aY(aZ, aM, (ba - ci), (cf / 25), cg)
504- $Tuple3([IntegerEntry(L(ce._2), cj), IntegerEntry(R(i, ce._2, bV), cj)], bn, [bE[ag], ck, bE[ai], bE[aj]])
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]])
505508 }
506509 }
507510 }
508511
509512
510-func cl (bV,bR,cf) = {
511- let bZ = L(bR)
512- let ca = value(getInteger(bZ))
513- let ch = (fraction((lastBlock.timestamp - ca), bQ(bR), n) * cf)
514- cd(bV, ch)
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)
515518 }
516519
517520
518-func cm (aE,bq,cn) = {
519- let bV = toString(bq)
520- let ce = bU(bV)
521- let cf = aT(ce._3[aa])
522- let co = M(ce._2)
523- let cp = valueOrElse(getInteger(co), 0)
524- if ((cp >= 3))
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))
525528 then throw("Currently max infrastructure level = 3")
526529 else {
527- let cq = (cp + 1)
528- let cr = fraction(r, (cf * cq), 25)
529- if (if (!(aE))
530- then (cn != cr)
530+ let cr = (cq + 1)
531+ let cs = fraction(r, (cg * cr), 25)
532+ if (if (!(aF))
533+ then (co != cs)
531534 else false)
532- then throw(("Payment attached should be " + toString(cr)))
535+ then throw(("Payment attached should be " + toString(cs)))
533536 else {
534- let bn = U(ce._1)
535- let bE = bm(bn)
536- let bF = split(bE[ai], "_")
537- let bG = makeString(aD(aE, bF, fraction(q, (cf * cq), 25)), "_")
538- let cs = cl(bV, ce._2, cf)
539- $Tuple2(([IntegerEntry(co, cq), IntegerEntry(N(ce._2, bV), cq), StringEntry(bn, makeString([bE[ag], cs._3[ah], bG, bE[aj]], ":"))] ++ cs._1), cq)
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)
540543 }
541544 }
542545 }
543546
544547
545-func ct (bV) = {
546- let ce = bU(bV)
547- let cu = P(ce._2)
548- if (valueOrElse(getBoolean(cu), false))
548+func cu (bW) = {
549+ let cf = bV(bW)
550+ let cv = P(cf._2)
551+ if (valueOrElse(getBoolean(cv), false))
549552 then throw("Presale artifact is already activated")
550- else if ((parseIntValue(ce._3[Z]) > 500))
551- then throw((((i + " ") + ce._2) + " is not eligible for presale artifact"))
553+ else if ((parseIntValue(cf._3[aa]) > 500))
554+ then throw((((i + " ") + cf._2) + " is not eligible for presale artifact"))
552555 else {
553- let cf = aT(ce._3[aa])
554- let cs = cl(bV, ce._2, cf)
555- ((cs._1 :+ BooleanEntry(P(ce._2), true)) :+ StringEntry(cs._2, makeString(cs._3, ":")))
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, ":")))
556559 }
557560 }
558561
559562
560-@Callable(aQ)
563+@Callable(aR)
561564 func stakeLand () = {
562- let cv = value(aQ.payments[0])
563- let J = value(cv.assetId)
564- let cw = toString(aQ.caller)
565- if ((cv.amount != 1))
565+ let cw = value(aR.payments[0])
566+ let J = value(cw.assetId)
567+ let cx = toString(aR.caller)
568+ if ((cw.amount != 1))
566569 then throw((("NFT " + i) + " token should be attached as payment"))
567570 else {
568- let bY = value(assetInfo(J))
569- if ((bY.issuer != this))
571+ let bZ = value(assetInfo(J))
572+ if ((bZ.issuer != this))
570573 then throw("Unknown issuer of token")
571- else if (!(contains(bY.name, i)))
574+ else if (!(contains(bZ.name, i)))
572575 then throw((("Only NFT " + i) + " tokens are accepted"))
573576 else {
574- let cx = drop(bY.name, 4)
575- let F = if (contains(cx, "XXL"))
576- then dropRight(cx, 3)
577- else if (contains(cx, "XL"))
578- then dropRight(cx, 2)
579- else dropRight(cx, 1)
580- let cy = valueOrErrorMessage(parseInt(F), ("Cannot parse land number from " + bY.name))
581- let bR = toBase58String(J)
582- let bZ = L(bR)
583- if (isDefined(getInteger(bZ)))
584- then throw((("NFT " + bY.name) + " is already staked"))
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"))
585588 else {
586- let cc = split(bY.description, "_")
587- let aM = aR(cc[ab])
588- let ap = aL(aM, (aT(cc[aa]) / 25), 1)
589-[IntegerEntry(bZ, lastBlock.timestamp), IntegerEntry(R(i, bR, cw), lastBlock.timestamp), StringEntry(I(bR), cw), StringEntry(T(F), cw), StringEntry(Y(), ap)]
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)]
590593 }
591594 }
592595 }
593596 }
594597
595598
596599
597-@Callable(aQ)
598-func unstakeLand (cz) = if ((size(aQ.payments) != 0))
600+@Callable(aR)
601+func unstakeLand (cA) = if ((size(aR.payments) != 0))
599602 then throw("unstake doesn't require any payments")
600603 else {
601- let bV = toString(aQ.caller)
602- let ce = bU(bV)
603- let aM = aR(ce._3[ab])
604- let cf = aT(ce._3[aa])
605- let ap = aL(aM, (cf / 25), -1)
606- let cs = cl(bV, ce._2, cf)
607-[ScriptTransfer(aQ.caller, 1, fromBase58String(ce._2)), DeleteEntry(L(ce._2)), DeleteEntry(R(i, ce._2, bV)), StringEntry(Y(), ap), StringEntry(cs._2, makeString(cs._3, ":"))]
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, ":"))]
608611 }
609612
610613
611614
612-@Callable(aQ)
615+@Callable(aR)
613616 func stakeDuck () = {
614- let cv = value(aQ.payments[0])
615- let J = value(cv.assetId)
616- let cw = toString(aQ.caller)
617- if ((cv.amount != 1))
617+ let cw = value(aR.payments[0])
618+ let J = value(cw.assetId)
619+ let cx = toString(aR.caller)
620+ if ((cw.amount != 1))
618621 then throw((("NFT " + j) + " token should be attached as payment"))
619622 else {
620- let bY = value(assetInfo(J))
621- if (if ((bY.issuer != d))
622- then (bY.issuer != e)
623+ let bZ = value(assetInfo(J))
624+ if (if ((bZ.issuer != d))
625+ then (bZ.issuer != e)
623626 else false)
624627 then throw((("Unknown issuer of " + j) + " token"))
625- else if (!(contains(bY.name, j)))
628+ else if (!(contains(bZ.name, j)))
626629 then throw((("Only NFT " + j) + " tokens are accepted"))
627630 else {
628- let cA = toBase58String(J)
629- let bZ = L(cA)
630- if (isDefined(getInteger(bZ)))
631- then throw((("NFT " + bY.name) + " is already staked"))
632- else if (isDefined(getString(Q(cw))))
633- then throw(("You already staked one duck: " + bY.name))
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))
634637 else {
635- let cB = W(cA)
636- let cC = getString(cB)
637- let bC = X(cA)
638- let cD = getInteger(bC)
639- let bn = U(cA)
640- let cE = getString(bn)
641- ([IntegerEntry(bZ, lastBlock.timestamp), IntegerEntry(R(j, toBase58String(J), cw), lastBlock.timestamp), StringEntry(K(cA), cw), StringEntry(Q(cw), cA)] ++ (if (isDefined(cC))
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))
642645 then nil
643- else ([StringEntry(cB, k)] ++ (if (isDefined(cD))
646+ else ([StringEntry(cC, k)] ++ (if (isDefined(cE))
644647 then nil
645- else ([IntegerEntry(bC, 100)] ++ (if (isDefined(cE))
648+ else ([IntegerEntry(bD, 100)] ++ (if (isDefined(cF))
646649 then nil
647- else [StringEntry(bn, "0:0_0_0_0_0_0:0_0_0_0_0_0:")]))))))
650+ else [StringEntry(bo, "0:0_0_0_0_0_0:0_0_0_0_0_0:")]))))))
648651 }
649652 }
650653 }
651654 }
652655
653656
654657
655-@Callable(aQ)
656-func unstakeDuck (cA) = if ((size(aQ.payments) != 0))
658+@Callable(aR)
659+func unstakeDuck (cB) = if ((size(aR.payments) != 0))
657660 then throw("unstake doesn't require any payments")
658661 else {
659- let J = fromBase58String(cA)
660- let cw = toString(aQ.caller)
661- let bY = value(assetInfo(J))
662- if (if ((bY.issuer != d))
663- then (bY.issuer != e)
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)
664667 else false)
665668 then throw((("Unknown issuer of " + j) + " token"))
666- else if (!(contains(bY.name, j)))
669+ else if (!(contains(bZ.name, j)))
667670 then throw((("Only NFT " + j) + " tokens can be unstaked"))
668671 else {
669- let bZ = L(toBase58String(J))
670- if (!(isDefined(bZ)))
671- then throw((("NFT " + bY.name) + " is not staked"))
672- else if (!(isDefined(Q(cw))))
673- then throw((("The duck " + bY.name) + " is not staked"))
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"))
674677 else {
675- let cb = valueOrErrorMessage(getString(K(toBase58String(J))), (("NFT " + bY.name) + " is orphaned"))
676- if ((cb != cw))
678+ let cc = valueOrErrorMessage(getString(K(toBase58String(J))), (("NFT " + bZ.name) + " is orphaned"))
679+ if ((cc != cx))
677680 then throw("Staked NFT is not yours")
678- else [ScriptTransfer(aQ.caller, 1, J), DeleteEntry(bZ), DeleteEntry(W(cA)), DeleteEntry(K(cA)), DeleteEntry(R(j, cA, cw)), DeleteEntry(Q(cw))]
681+ else [ScriptTransfer(aR.caller, 1, J), DeleteEntry(ca), DeleteEntry(X(cB)), DeleteEntry(K(cB)), DeleteEntry(S(j, cB, cx)), DeleteEntry(R(cx))]
679682 }
680683 }
681684 }
682685
683686
684687
685-@Callable(aQ)
686-func claimRes (aW,cz) = if ((size(aQ.payments) != 0))
688+@Callable(aR)
689+func claimRes (aX,cA) = if ((size(aR.payments) != 0))
687690 then throw("claimRes doesn't require any payments")
688691 else {
689- let bV = toString(aQ.originCaller)
690- let aK = cd(bV, aW)
691- $Tuple2((aK._1 :+ StringEntry(aK._2, makeString(aK._3, ":"))), aK._3[ah])
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])
692695 }
693696
694697
695698
696-@Callable(aQ)
697-func flight (bs,bt) = if (!(sigVerify_8Kb(bs, bt, g)))
699+@Callable(aR)
700+func flight (bt,bu) = if (!(sigVerify_8Kb(bt, bu, g)))
698701 then throw("signature does not match")
699- else if ((size(aQ.payments) != 0))
702+ else if ((size(aR.payments) != 0))
700703 then throw("flight doesn't require any payments")
701704 else {
702- let bu = split(toUtf8String(bs), ";")
703- let bv = split(split(bu[0], "|")[0], "_")
704- let bw = parseIntValue(bv[0])
705- let bx = parseIntValue(bv[1])
706- let cF = split(bu[1], ":")
707- let cG = cF[0]
708- let bA = parseIntValue(cF[1])
709- if (if ((bA > (lastBlock.timestamp + o)))
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)))
710713 then true
711- else ((lastBlock.timestamp - o) > bA))
714+ else ((lastBlock.timestamp - o) > bB))
712715 then throw("signature outdated")
713716 else {
714- let V = valueOrErrorMessage(getString(Q(toString(aQ.caller))), "You don't have a duck staked")
715- let bC = X(V)
716- let bD = valueOrElse(getInteger(bC), 100)
717- if ((bD != bw))
718- then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bC), 100))) + " from state does not match one from flight log=") + toString(bw)))
719- else if ((0 >= bw))
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))
720723 then throw("You can't fly with zero health")
721724 else {
722- let cB = W(V)
723- let bW = valueOrElse(getString(cB), k)
724- if ((cG == bW))
725+ let cC = X(W)
726+ let bX = valueOrElse(getString(cC), k)
727+ if ((cH == bX))
725728 then throw("You can't fly to the same location")
726- else $Tuple2([StringEntry(cB, if ((bx > 0))
727- then cG
728- else bW), IntegerEntry(bC, bx)], unit)
729+ else $Tuple2([StringEntry(cC, if ((by > 0))
730+ then cH
731+ else bX), IntegerEntry(bD, by)], unit)
729732 }
730733 }
731734 }
732735
733736
734737
735-@Callable(aQ)
736-func setHealth (cD,V) = if (if ((0 > cD))
738+@Callable(aR)
739+func setHealth (cE,W) = if (if ((0 > cE))
737740 then true
738- else (cD > 100))
741+ else (cE > 100))
739742 then throw("HP should be within 0..100")
740- else [IntegerEntry(X(V), cD)]
743+ else [IntegerEntry(Y(W), cE)]
741744
742745
743746
744-@Callable(aQ)
745-func heal (cH,aW) = if (if ((0 > cH))
747+@Callable(aR)
748+func heal (cI,aX) = if (if ((0 > cI))
746749 then true
747- else (cH >= l))
748- then throw(("Unknown material: " + toString(cH)))
749- else if ((0 >= aW))
750- then throw(("Amount should be positive! " + toString(aW)))
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)))
751754 else {
752- let V = valueOrErrorMessage(getString(Q(toString(aQ.caller))), "You don't have a duck staked")
753- let bC = X(V)
754- let cI = valueOrElse(getInteger(bC), 100)
755- if ((cI >= 100))
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))
756759 then throw("HP should be < 100 to heal")
757760 else {
758- let bn = U(V)
759- let bE = bm(bn)
760- let bF = split(bE[ai], "_")
761- let cJ = parseIntValue(bF[cH])
762- let cK = min([(aW / h), (100 - cI)])
763- let cL = (cK * h)
764- if ((cL > cJ))
765- then throw(((((("You need " + toString(cL)) + " of ") + B[cH]) + " to heal, but you backpack contains ") + toString(cJ)))
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)))
766769 else {
767- let bG = aU(bF, cH, cL)
768-[IntegerEntry(bC, (cI + cK)), StringEntry(bn, makeString([bE[ag], bE[ah], bG, bE[aj]], ":"))]
770+ let bH = aV(bG, cI, cM)
771+[IntegerEntry(bD, (cJ + cL)), StringEntry(bo, makeString([bF[ah], bF[ai], bH, bF[ak]], ":"))]
769772 }
770773 }
771774 }
772775
773776
774777
775-@Callable(aQ)
776-func updateBackpack (V,cM) = if ((aQ.caller != f))
778+@Callable(aR)
779+func updateBackpack (W,cN) = if ((aR.caller != f))
777780 then throw("permission denied")
778- else $Tuple2([StringEntry(U(V), cM)], cM)
781+ else $Tuple2([StringEntry(V(W), cN)], cN)
779782
780783
781784
782-@Callable(aQ)
783-func expeditionBuy (bs,bt) = if ((size(aQ.payments) != 1))
785+@Callable(aR)
786+func expeditionBuy (bt,bu) = if ((size(aR.payments) != 1))
784787 then throw("Exactly one payment required")
785788 else {
786- let cv = value(aQ.payments[0])
787- if ((cv.assetId != b))
789+ let cw = value(aR.payments[0])
790+ if ((cw.assetId != b))
788791 then throw("Allowed USDN payment only!")
789- else if ((cv.amount != t))
792+ else if ((cw.amount != t))
790793 then throw(("Payment attached should be " + toString(t)))
791- else bp(false, aQ.caller, aQ.transactionId, bs, bt)
794+ else bq(false, aR.caller, aR.transactionId, bt, bu)
792795 }
793796
794797
795798
796-@Callable(aQ)
797-func expedition (bs,bt) = if ((size(aQ.payments) != 0))
799+@Callable(aR)
800+func expedition (bt,bu) = if ((size(aR.payments) != 0))
798801 then throw("expedition doesn't require any payments")
799- else bp(true, aQ.caller, aQ.transactionId, bs, bt)
802+ else bq(true, aR.caller, aR.transactionId, bt, bu)
800803
801804
802805
803-@Callable(aQ)
804-func upgradeInfra (cN) = if ((size(aQ.payments) != 0))
806+@Callable(aR)
807+func upgradeInfra (cO) = if ((size(aR.payments) != 0))
805808 then throw("Infrastructure upgrade doesn't require any payments")
806- else cm(true, aQ.caller, 0)
809+ else cn(true, aR.caller, 0)
807810
808811
809812
810-@Callable(aQ)
811-func upgradeInfraUsdn (cN) = if ((size(aQ.payments) != 1))
813+@Callable(aR)
814+func upgradeInfraUsdn (cO) = if ((size(aR.payments) != 1))
812815 then throw("Exactly one payment required")
813816 else {
814- let cv = value(aQ.payments[0])
815- if ((cv.assetId != b))
817+ let cw = value(aR.payments[0])
818+ if ((cw.assetId != b))
816819 then throw("Allowed USDN payment only!")
817- else cm(false, aQ.caller, cv.amount)
820+ else cn(false, aR.caller, cw.amount)
818821 }
819822
820823
821824
822-@Callable(aQ)
823-func activateArtifact (cO) = if ((size(aQ.payments) != 0))
825+@Callable(aR)
826+func activateArtifact (cP) = if ((size(aR.payments) != 0))
824827 then throw("Artifact activation doesn't require any payments")
825828 else {
826- let aK = {
827- let c = cO
829+ let aL = {
830+ let c = cP
828831 if (("PRESALE" == c))
829- then ct(toString(aQ.caller))
832+ then cu(toString(aR.caller))
830833 else throw("Unknown artifact")
831834 }
832- aK
835+ aL
833836 }
834837
835838

github/deemru/w8io/026f985 
300.03 ms