tx · CAKs3kgsQ12fqrxwYjQd7LqqT65S5TtXMtm8Wq5bCs3N

3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm:  -0.02300000 Waves

2023.01.06 19:08 [2393316] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves

{ "type": 13, "id": "CAKs3kgsQ12fqrxwYjQd7LqqT65S5TtXMtm8Wq5bCs3N", "fee": 2300000, "feeAssetId": null, "timestamp": 1673021337523, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "5CJCEqnvHiYAMtzVUno8Aphd2kB17Net652pU42Ygab9jCfLRHXgbcX5R14bA9bvAbRSn37Nzvbdog3Db2LrsdgU" ], "script": "base64:BgJJCAISABIDCgEIEgASAwoBCBIECgIBCBIECgICAhIECgIBCBIECgIBARIECgIICBIECgICAhIECgICAhIDCgEIEgMKAQgSAwoBCEoABWNoYWluCQCwCQEJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZG5Bc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAgFXBQckbWF0Y2gwASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QMJAAACAgFUBQckbWF0Y2gwASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAICAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAICAVQFByRtYXRjaDAFBHRoaXMJAAIBAg1Vbmtub3duIGNoYWluAAticmVlZGVyQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAgIBVwUHJG1hdGNoMAkBEUBleHRyTmF0aXZlKD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bWVudHMAAAkAAgECM0luZnJhc3RydWN0dXJlIHVwZ3JhZGUgZG9lc24ndCByZXF1aXJlIGFueSBwYXltZW50cwkBDXVwSW5mcmFDb21tb24DBggFAWkGY2FsbGVyAAABaQEQdXBncmFkZUluZnJhVXNkbgESbGFuZEFzc2V0SWRJZ25vcmVkAwkBAiE9AgkAkAMBCAUBaQhwYXltZW50cwABCQACAQIcRXhhY3RseSBvbmUgcGF5bWVudCByZXF1aXJlZAQDcG10CQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAADCQECIT0CCAUDcG10B2Fzc2V0SWQFC3VzZG5Bc3NldElkCQACAQIaQWxsb3dlZCBVU0ROIHBheW1lbnQgb25seSEJAQ11cEluZnJhQ29tbW9uAwcIBQFpBmNhbGxlcggFA3BtdAZhbW91bnQBaQEQYWN0aXZhdGVBcnRpZmFjdAEHYXJ0TmFtZQMJAQIhPQIJAJADAQgFAWkIcGF5bWVudHMAAAkAAgECMEFydGlmYWN0IGFjdGl2YXRpb24gZG9lc24ndCByZXF1aXJlIGFueSBwYXltZW50cwQGcmVzdWx0BAckbWF0Y2gwBQdhcnROYW1lAwkAAAICB1BSRVNBTEUFByRtYXRjaDAJARJhY3RpdmF0ZVByZXNhbGVBcnQBCQClCAEIBQFpBmNhbGxlcgkAAgECEFVua25vd24gYXJ0aWZhY3QFBnJlc3VsdACdmSN6", "height": 2393316, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Co5a3aRFimWPciBA5gBEqF9P9fbhnNUF93MbCW77BodK Next: GHnDLx9fbaZCDDUUZzSTzCGjWtWvrC3bi3Dnq8Zj8HgV Diff:
OldNewDifferences
137137 func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr)
138138
139139
140-func keypresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId)
140+func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId)
141141
142142
143143 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
449449
450450 func applyBonuses (landAssetId) = {
451451 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
452- let presaleBonus = if (valueOrElse(getBoolean(keypresaleArtActivatedByAssetId(landAssetId)), false))
452+ let presaleBonus = if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false))
453453 then 3
454454 else 0
455455 ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, infraLevel, 4)) + fraction(DAILYRESBYPIECE, presaleBonus, 20))
541541
542542 func activatePresaleArt (addr) = {
543543 let c = checkClaimConditions(addr)
544- let activationKey = keypresaleArtActivatedByAssetId(c._2)
544+ let activationKey = keyPresaleArtActivatedByAssetId(c._2)
545545 if (valueOrElse(getBoolean(activationKey), false))
546546 then throw("Presale artifact is already activated")
547547 else if ((parseIntValue(c._3[recLandNum]) > 500))
548548 then throw((((LANDPREFIX + " ") + c._2) + " is not eligible for presale artifact"))
549- else [BooleanEntry(keypresaleArtActivatedByAssetId(c._2), true)]
549+ else {
550+ let pieces = numPiecesBySize(c._3[recLandSize])
551+ let claimResult = claimAll(addr, c._2, pieces)
552+ ((claimResult._1 :+ BooleanEntry(keyPresaleArtActivatedByAssetId(c._2), true)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":")))
553+ }
550554 }
551555
552556
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let chain = toUtf8String(take(drop(this.bytes, 1), 1))
55
66 let usdnAssetId = match chain {
77 case _ =>
88 if (("W" == $match0))
99 then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
1010 else if (("T" == $match0))
1111 then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
1212 else throw("Unknown chain")
1313 }
1414
1515 let incubatorAddr = match chain {
1616 case _ =>
1717 if (("W" == $match0))
1818 then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv")
1919 else if (("T" == $match0))
2020 then this
2121 else throw("Unknown chain")
2222 }
2323
2424 let breederAddr = match chain {
2525 case _ =>
2626 if (("W" == $match0))
2727 then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb")
2828 else if (("T" == $match0))
2929 then this
3030 else throw("Unknown chain")
3131 }
3232
3333 let economyAddr = match chain {
3434 case _ =>
3535 if (("W" == $match0))
3636 then addressFromStringValue("3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D")
3737 else if (("T" == $match0))
3838 then addressFromStringValue("3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep")
3939 else throw("Unknown chain")
4040 }
4141
4242 let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD'
4343
4444 let HEALCOST = 10000
4545
4646 let LANDPREFIX = "LAND"
4747
4848 let DUCKPREFIX = "DUCK"
4949
5050 let DEFAULTLOCATION = "Africa_F_Africa"
5151
5252 let NUMRES = 6
5353
5454 let DAILYRESBYPIECE = 3456000
5555
5656 let DAYMILLIS = 86400000
5757
5858 let FIVEMINUTESMILLIS = 300000
5959
6060 let RESOURCEPRICEMIN = 158549
6161
6262 let InfraUpgradeCostS = match chain {
6363 case _ =>
6464 if (("W" == $match0))
6565 then 18921595217
6666 else if (("T" == $match0))
6767 then 189215952
6868 else throw("Unknown chain")
6969 }
7070
7171 let InfraUpgradeCostSUsdn = match chain {
7272 case _ =>
7373 if (("W" == $match0))
7474 then 120000000
7575 else if (("T" == $match0))
7676 then 1200000
7777 else throw("Unknown chain")
7878 }
7979
8080 let EXPMATERIALS = match chain {
8181 case _ =>
8282 if (("W" == $match0))
8383 then 157679960139
8484 else if (("T" == $match0))
8585 then 1576799601
8686 else throw("Unknown chain")
8787 }
8888
8989 let EXPUSDN = match chain {
9090 case _ =>
9191 if (("W" == $match0))
9292 then 1000000000
9393 else if (("T" == $match0))
9494 then 10000000
9595 else throw("Unknown chain")
9696 }
9797
9898 let MULT6 = 1000000
9999
100100 let FIVEX = toBigInt(5)
101101
102102 let TWENTYX = toBigInt(20)
103103
104104 let TWENTY2X = toBigInt((20 * 20))
105105
106106 let TWENTY3X = toBigInt(((20 * 20) * 20))
107107
108108 let TWENTY4X = toBigInt((((20 * 20) * 20) * 20))
109109
110110 let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20))
111111
112112 let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"]
113113
114114 let continents = ["Asia", "Europe", "Americas", "Oceania", "Africa"]
115115
116116 func keyNextFreeLandNum () = "nextLandNum"
117117
118118
119119 func keyLandToAssetId (landNum) = ("landToAsset_" + landNum)
120120
121121
122122 func keyNftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize)
123123
124124
125125 func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId)
126126
127127
128128 func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId)
129129
130130
131131 func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId)
132132
133133
134134 func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId)
135135
136136
137137 func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr)
138138
139139
140-func keypresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId)
140+func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId)
141141
142142
143143 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
144144
145145
146146 func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr)
147147
148148
149149 func keyLandNumToOwner (landNum) = ("landOwner_" + landNum)
150150
151151
152152 func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId)
153153
154154
155155 func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId)
156156
157157
158158 func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId)
159159
160160
161161 func keyResProportions () = "resTypesProportions"
162162
163163
164164 let recLandNum = 0
165165
166166 let recLandSize = 1
167167
168168 let recTerrains = 2
169169
170170 let recContinent = 3
171171
172172 let locIdxContinent = 0
173173
174174 let locIdxType = 1
175175
176176 let locIdxId = 2
177177
178178 let bpIdxLevel = 0
179179
180180 let bpIdxRes = 1
181181
182182 let bpIdxMat = 2
183183
184184 let bpIdxProd = 3
185185
186186 func asString (v) = match v {
187187 case s: String =>
188188 s
189189 case _ =>
190190 throw("fail to cast into String")
191191 }
192192
193193
194194 func getNeededMaterials (total) = {
195195 let props = split(value(getString(keyResProportions())), "_")
196196 if ((size(props) != NUMRES))
197197 then throw("Wrong proportions data")
198198 else {
199199 let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])]
200200 let sum = (((((r[0] + r[1]) + r[2]) + r[3]) + r[4]) + r[5])
201201 if ((0 >= sum))
202202 then throw("No lands staked")
203203 else {
204204 let norm6 = fraction(total, MULT6, sum)
205205 func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6))
206206
207207 let $l = r
208208 let $s = size($l)
209209 let $acc0 = nil
210210 func $f0_1 ($a,$i) = if (($i >= $s))
211211 then $a
212212 else normalizer($a, $l[$i])
213213
214214 func $f0_2 ($a,$i) = if (($i >= $s))
215215 then $a
216216 else throw("List size exceeds 6")
217217
218218 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
219219 }
220220 }
221221 }
222222
223223
224224 func subtractMaterials (shouldUseMat,has,totalNeed) = {
225225 let need = getNeededMaterials(totalNeed)
226226 func subtractor (acc,idx) = {
227227 let result = (parseIntValue(has[idx]) - need[idx])
228228 if ((0 > result))
229229 then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx])))
230230 else (acc :+ toString(result))
231231 }
232232
233233 if (shouldUseMat)
234234 then {
235235 let $l = [0, 1, 2, 3, 4, 5]
236236 let $s = size($l)
237237 let $acc0 = nil
238238 func $f0_1 ($a,$i) = if (($i >= $s))
239239 then $a
240240 else subtractor($a, $l[$i])
241241
242242 func $f0_2 ($a,$i) = if (($i >= $s))
243243 then $a
244244 else throw("List size exceeds 6")
245245
246246 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
247247 }
248248 else has
249249 }
250250
251251
252252 func updateProportions (terrainCounts,landSizeIndex,sign) = {
253253 let props = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_")
254254 if ((size(props) != NUMRES))
255255 then throw("Wrong proportions data")
256256 else {
257257 func updater (acc,i) = {
258258 let result = (parseIntValue(props[i]) + ((sign * terrainCounts[i]) * landSizeIndex))
259259 if ((0 > result))
260260 then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex)))
261261 else (acc :+ toString(result))
262262 }
263263
264264 let r = {
265265 let $l = [0, 1, 2, 3, 4, 5]
266266 let $s = size($l)
267267 let $acc0 = nil
268268 func $f0_1 ($a,$i) = if (($i >= $s))
269269 then $a
270270 else updater($a, $l[$i])
271271
272272 func $f0_2 ($a,$i) = if (($i >= $s))
273273 then $a
274274 else throw("List size exceeds 6")
275275
276276 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
277277 }
278278 makeString(r, "_")
279279 }
280280 }
281281
282282
283283 func countTerrains (terrains) = [(size(split(terrains, "A")) - 1), (size(split(terrains, "B")) - 1), (size(split(terrains, "C")) - 1), (size(split(terrains, "D")) - 1), (size(split(terrains, "E")) - 1), (size(split(terrains, "F")) - 1)]
284284
285285
286286 func numPiecesBySize (landSize) = match landSize {
287287 case _ =>
288288 if (("S" == $match0))
289289 then 25
290290 else if (("M" == $match0))
291291 then 100
292292 else if (("L" == $match0))
293293 then 225
294294 else if (("XL" == $match0))
295295 then 400
296296 else if (("XXL" == $match0))
297297 then 625
298298 else throw("Unknown land size")
299299 }
300300
301301
302302 func subOneInList (aList,idx,amount) = {
303303 func subber (acc,i) = (acc :+ (if ((i == idx))
304304 then toString((parseIntValue(aList[i]) - amount))
305305 else aList[i]))
306306
307307 let r = {
308308 let $l = [0, 1, 2, 3, 4, 5]
309309 let $s = size($l)
310310 let $acc0 = nil
311311 func $f0_1 ($a,$i) = if (($i >= $s))
312312 then $a
313313 else subber($a, $l[$i])
314314
315315 func $f0_2 ($a,$i) = if (($i >= $s))
316316 then $a
317317 else throw("List size exceeds 6")
318318
319319 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
320320 }
321321 makeString(r, "_")
322322 }
323323
324324
325325 func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = {
326326 func adder (acc,i) = {
327327 let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex)
328328 (acc :+ toString((parseIntValue(currentRes[i]) + resOfType)))
329329 }
330330
331331 let r = {
332332 let $l = [0, 1, 2, 3, 4, 5]
333333 let $s = size($l)
334334 let $acc0 = nil
335335 func $f0_1 ($a,$i) = if (($i >= $s))
336336 then $a
337337 else adder($a, $l[$i])
338338
339339 func $f0_2 ($a,$i) = if (($i >= $s))
340340 then $a
341341 else throw("List size exceeds 6")
342342
343343 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
344344 }
345345 makeString(r, "_")
346346 }
347347
348348
349349 func abs (x) = if ((x >= toBigInt(0)))
350350 then x
351351 else -(x)
352352
353353
354354 let freq = [[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]]
355355
356356 func genChar (n,freqs) = {
357357 let rem = toInt((n % TWENTYX))
358358 let letter = if ((freqs[0] > rem))
359359 then "A"
360360 else if ((freqs[1] > rem))
361361 then "B"
362362 else if ((freqs[2] > rem))
363363 then "C"
364364 else if ((freqs[3] > rem))
365365 then "D"
366366 else if ((freqs[4] > rem))
367367 then "E"
368368 else "F"
369369 letter
370370 }
371371
372372
373373 func getBackpack (bpKey) = {
374374 let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":")
375375 [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES))
376376 then p[bpIdxRes]
377377 else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES))
378378 then p[bpIdxMat]
379379 else "0_0_0_0_0_0", p[bpIdxProd]]
380380 }
381381
382382
383383 func expeditionCommon (shouldUseMat,caller,txId,message,sig) = if (!(sigVerify_8Kb(message, sig, pub)))
384384 then throw("signature does not match")
385385 else {
386386 let parts = split(toUtf8String(message), ";")
387387 let hp = split(split(parts[0], "|")[0], "_")
388388 let curHP = parseIntValue(hp[0])
389389 let newHP = parseIntValue(hp[1])
390390 let locAndTime = split(parts[1], ":")
391391 let targetLocation = split(locAndTime[0], "_")
392392 if ((targetLocation[1] != "E"))
393393 then throw("expedition target location type should be E")
394394 else {
395395 let time = parseIntValue(locAndTime[1])
396396 if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS)))
397397 then true
398398 else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time))
399399 then throw("signature outdated")
400400 else {
401401 let userAddr = toString(caller)
402402 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked")
403403 let keyHealth = keyDuckHealth(duckAssetId)
404404 let oldFromState = valueOrElse(getInteger(keyHealth), 100)
405405 if ((oldFromState != curHP))
406406 then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP)))
407407 else if ((0 >= curHP))
408408 then throw("You can't fly with zero health")
409409 else if ((0 >= newHP))
410410 then $Tuple2(((if (!(shouldUseMat))
411411 then [ScriptTransfer(caller, EXPUSDN, usdnAssetId)]
412412 else nil) :+ IntegerEntry(keyHealth, 0)), "")
413413 else {
414414 let bpKey = keyBackpackByDuck(duckAssetId)
415415 let currentPack = getBackpack(bpKey)
416416 let mList = split(currentPack[bpIdxMat], "_")
417417 let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_")
418418 let bigNum = abs(toBigInt(txId))
419419 let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), 501)
420420 let landNum = toString(freeNum)
421421 let continentIdx = toInt((bigNum % FIVEX))
422422 let f = freq[continentIdx]
423423 func terrainGenerator (acc,elem) = $Tuple2((((((acc._1 + genChar(acc._2, f)) + genChar((acc._2 / TWENTYX), f)) + genChar((acc._2 / TWENTY2X), f)) + genChar((acc._2 / TWENTY3X), f)) + genChar((acc._2 / TWENTY4X), f)), (acc._2 / TWENTY5X))
424424
425425 let t = {
426426 let $l = [1, 2, 3, 4, 5]
427427 let $s = size($l)
428428 let $acc0 = $Tuple2("", (bigNum / FIVEX))
429429 func $f0_1 ($a,$i) = if (($i >= $s))
430430 then $a
431431 else terrainGenerator($a, $l[$i])
432432
433433 func $f0_2 ($a,$i) = if (($i >= $s))
434434 then $a
435435 else throw("List size exceeds 5")
436436
437437 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
438438 }
439439 let continent = continents[continentIdx]
440440 let issue = Issue(keyNftName(landNum, "S"), makeString([landNum, "S", t._1, continent], "_"), 1, 0, false)
441441 let assetId = calculateAssetId(issue)
442442 let id = toBase58String(assetId)
443443 $Tuple2([IntegerEntry(keyNextFreeLandNum(), (freeNum + 1)), issue, StringEntry(keyLandToAssetId(landNum), id), StringEntry(keyLandAssetIdToOwner(id), userAddr), StringEntry(keyLandNumToOwner(landNum), userAddr), IntegerEntry(keyInfraLevelByAssetId(id), 0), IntegerEntry(keyInfraLevelByAssetIdAndOwner(id, userAddr), 0), ScriptTransfer(caller, 1, assetId), StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", id], "_")), IntegerEntry(keyHealth, newHP), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))], id)
444444 }
445445 }
446446 }
447447 }
448448
449449
450450 func applyBonuses (landAssetId) = {
451451 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
452- let presaleBonus = if (valueOrElse(getBoolean(keypresaleArtActivatedByAssetId(landAssetId)), false))
452+ let presaleBonus = if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false))
453453 then 3
454454 else 0
455455 ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, infraLevel, 4)) + fraction(DAILYRESBYPIECE, presaleBonus, 20))
456456 }
457457
458458
459459 func checkClaimConditions (addr) = {
460460 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
461461 let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION)
462462 let loc = split(value(curLocation), "_")
463463 if ((loc[locIdxType] != "L"))
464464 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
465465 else {
466466 let landAssetId = loc[locIdxId]
467467 let asset = value(assetInfo(fromBase58String(landAssetId)))
468468 let timeKey = keyStakedTimeByAssetId(landAssetId)
469469 let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked"))
470470 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
471471 if ((owner != addr))
472472 then throw((LANDPREFIX + " is not yours"))
473473 else {
474474 let d = split(asset.description, "_")
475475 $Tuple4(duckAssetId, landAssetId, d, savedTime)
476476 }
477477 }
478478 }
479479
480480
481481 func claimResInternal (addr,amount) = {
482482 let c = checkClaimConditions(addr)
483483 let landSize = c._3[recLandSize]
484484 let terrainCounts = countTerrains(c._3[recTerrains])
485485 let deltaTime = (lastBlock.timestamp - c._4)
486486 if ((0 > deltaTime))
487487 then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp)))
488488 else {
489489 let pieces = numPiecesBySize(landSize)
490490 let dailyProductionByPiece = applyBonuses(c._2)
491491 let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS)
492492 if ((amount > availRes))
493493 then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount)))
494494 else {
495495 let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces))
496496 let newTimestamp = (lastBlock.timestamp - newDeltaTime)
497497 let bpKey = keyBackpackByDuck(c._1)
498498 let currentPack = getBackpack(bpKey)
499499 let currentRes = split(currentPack[bpIdxRes], "_")
500500 let bpRes = addRes(currentRes, terrainCounts, (deltaTime - newDeltaTime), (pieces / 25), dailyProductionByPiece)
501501 $Tuple3([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]])
502502 }
503503 }
504504 }
505505
506506
507507 func claimAll (addr,landAssetId,pieces) = {
508508 let timeKey = keyStakedTimeByAssetId(landAssetId)
509509 let savedTime = value(getInteger(timeKey))
510510 let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId), DAYMILLIS) * pieces)
511511 claimResInternal(addr, availRes)
512512 }
513513
514514
515515 func upInfraCommon (shouldUseMat,caller,paymentAmount) = {
516516 let addr = toString(caller)
517517 let c = checkClaimConditions(addr)
518518 let pieces = numPiecesBySize(c._3[recLandSize])
519519 let infraKey = keyInfraLevelByAssetId(c._2)
520520 let curLevel = valueOrElse(getInteger(infraKey), 0)
521521 if ((curLevel >= 3))
522522 then throw("Currently max infrastructure level = 3")
523523 else {
524524 let newLevel = (curLevel + 1)
525525 let cost = fraction(InfraUpgradeCostSUsdn, (pieces * newLevel), 25)
526526 if (if (!(shouldUseMat))
527527 then (paymentAmount != cost)
528528 else false)
529529 then throw(("Payment attached should be " + toString(cost)))
530530 else {
531531 let bpKey = keyBackpackByDuck(c._1)
532532 let currentPack = getBackpack(bpKey)
533533 let mList = split(currentPack[bpIdxMat], "_")
534534 let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), 25)), "_")
535535 let claimResult = claimAll(addr, c._2, pieces)
536536 $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))] ++ claimResult._1), newLevel)
537537 }
538538 }
539539 }
540540
541541
542542 func activatePresaleArt (addr) = {
543543 let c = checkClaimConditions(addr)
544- let activationKey = keypresaleArtActivatedByAssetId(c._2)
544+ let activationKey = keyPresaleArtActivatedByAssetId(c._2)
545545 if (valueOrElse(getBoolean(activationKey), false))
546546 then throw("Presale artifact is already activated")
547547 else if ((parseIntValue(c._3[recLandNum]) > 500))
548548 then throw((((LANDPREFIX + " ") + c._2) + " is not eligible for presale artifact"))
549- else [BooleanEntry(keypresaleArtActivatedByAssetId(c._2), true)]
549+ else {
550+ let pieces = numPiecesBySize(c._3[recLandSize])
551+ let claimResult = claimAll(addr, c._2, pieces)
552+ ((claimResult._1 :+ BooleanEntry(keyPresaleArtActivatedByAssetId(c._2), true)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":")))
553+ }
550554 }
551555
552556
553557 @Callable(i)
554558 func stakeLand () = {
555559 let pmt = value(i.payments[0])
556560 let assetId = value(pmt.assetId)
557561 let address = toString(i.caller)
558562 if ((pmt.amount != 1))
559563 then throw((("NFT " + LANDPREFIX) + " token should be attached as payment"))
560564 else {
561565 let asset = value(assetInfo(assetId))
562566 if ((asset.issuer != this))
563567 then throw("Unknown issuer of token")
564568 else if (!(contains(asset.name, LANDPREFIX)))
565569 then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted"))
566570 else {
567571 let landNumSize = drop(asset.name, 4)
568572 let landNum = if (contains(landNumSize, "XXL"))
569573 then dropRight(landNumSize, 3)
570574 else if (contains(landNumSize, "XL"))
571575 then dropRight(landNumSize, 2)
572576 else dropRight(landNumSize, 1)
573577 let landNumInt = valueOrErrorMessage(parseInt(landNum), ("Cannot parse land number from " + asset.name))
574578 let landAssetId = toBase58String(assetId)
575579 let timeKey = keyStakedTimeByAssetId(landAssetId)
576580 if (isDefined(getInteger(timeKey)))
577581 then throw((("NFT " + asset.name) + " is already staked"))
578582 else {
579583 let d = split(asset.description, "_")
580584 let terrainCounts = countTerrains(d[recTerrains])
581585 let props = updateProportions(terrainCounts, (numPiecesBySize(d[recLandSize]) / 25), 1)
582586 [IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), StringEntry(keyResProportions(), props)]
583587 }
584588 }
585589 }
586590 }
587591
588592
589593
590594 @Callable(i)
591595 func unstakeLand (landAssetIdStr) = if ((size(i.payments) != 0))
592596 then throw("unstake doesn't require any payments")
593597 else {
594598 let addr = toString(i.caller)
595599 let c = checkClaimConditions(addr)
596600 let terrainCounts = countTerrains(c._3[recTerrains])
597601 let pieces = numPiecesBySize(c._3[recLandSize])
598602 let props = updateProportions(terrainCounts, (pieces / 25), -1)
599603 let claimResult = claimAll(addr, c._2, pieces)
600604 [ScriptTransfer(i.caller, 1, fromBase58String(c._2)), DeleteEntry(keyStakedTimeByAssetId(c._2)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr)), StringEntry(keyResProportions(), props), StringEntry(claimResult._2, makeString(claimResult._3, ":"))]
601605 }
602606
603607
604608
605609 @Callable(i)
606610 func stakeDuck () = {
607611 let pmt = value(i.payments[0])
608612 let assetId = value(pmt.assetId)
609613 let address = toString(i.caller)
610614 if ((pmt.amount != 1))
611615 then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment"))
612616 else {
613617 let asset = value(assetInfo(assetId))
614618 if (if ((asset.issuer != incubatorAddr))
615619 then (asset.issuer != breederAddr)
616620 else false)
617621 then throw((("Unknown issuer of " + DUCKPREFIX) + " token"))
618622 else if (!(contains(asset.name, DUCKPREFIX)))
619623 then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted"))
620624 else {
621625 let assetIdStr = toBase58String(assetId)
622626 let timeKey = keyStakedTimeByAssetId(assetIdStr)
623627 if (isDefined(getInteger(timeKey)))
624628 then throw((("NFT " + asset.name) + " is already staked"))
625629 else if (isDefined(getString(keyStakedDuckByOwner(address))))
626630 then throw(("You already staked one duck: " + asset.name))
627631 else {
628632 let locKey = keyDuckLocation(assetIdStr)
629633 let location = getString(locKey)
630634 let keyHealth = keyDuckHealth(assetIdStr)
631635 let health = getInteger(keyHealth)
632636 let bpKey = keyBackpackByDuck(assetIdStr)
633637 let backpack = getString(bpKey)
634638 ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location))
635639 then nil
636640 else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(health))
637641 then nil
638642 else ([IntegerEntry(keyHealth, 100)] ++ (if (isDefined(backpack))
639643 then nil
640644 else [StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")]))))))
641645 }
642646 }
643647 }
644648 }
645649
646650
647651
648652 @Callable(i)
649653 func unstakeDuck (assetIdStr) = if ((size(i.payments) != 0))
650654 then throw("unstake doesn't require any payments")
651655 else {
652656 let assetId = fromBase58String(assetIdStr)
653657 let address = toString(i.caller)
654658 let asset = value(assetInfo(assetId))
655659 if (if ((asset.issuer != incubatorAddr))
656660 then (asset.issuer != breederAddr)
657661 else false)
658662 then throw((("Unknown issuer of " + DUCKPREFIX) + " token"))
659663 else if (!(contains(asset.name, DUCKPREFIX)))
660664 then throw((("Only NFT " + DUCKPREFIX) + " tokens can be unstaked"))
661665 else {
662666 let timeKey = keyStakedTimeByAssetId(toBase58String(assetId))
663667 if (!(isDefined(timeKey)))
664668 then throw((("NFT " + asset.name) + " is not staked"))
665669 else if (!(isDefined(keyStakedDuckByOwner(address))))
666670 then throw((("The duck " + asset.name) + " is not staked"))
667671 else {
668672 let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned"))
669673 if ((owner != address))
670674 then throw("Staked NFT is not yours")
671675 else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address))]
672676 }
673677 }
674678 }
675679
676680
677681
678682 @Callable(i)
679683 func claimRes (amount,landAssetIdStr) = if ((size(i.payments) != 0))
680684 then throw("claimRes doesn't require any payments")
681685 else {
682686 let addr = toString(i.originCaller)
683687 let result = claimResInternal(addr, amount)
684688 $Tuple2((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))), result._3[bpIdxRes])
685689 }
686690
687691
688692
689693 @Callable(i)
690694 func flight (message,sig) = if (!(sigVerify_8Kb(message, sig, pub)))
691695 then throw("signature does not match")
692696 else if ((size(i.payments) != 0))
693697 then throw("flight doesn't require any payments")
694698 else {
695699 let parts = split(toUtf8String(message), ";")
696700 let hp = split(split(parts[0], "|")[0], "_")
697701 let curHP = parseIntValue(hp[0])
698702 let newHP = parseIntValue(hp[1])
699703 let newLocAndTime = split(parts[1], ":")
700704 let newLocation = newLocAndTime[0]
701705 let time = parseIntValue(newLocAndTime[1])
702706 if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS)))
703707 then true
704708 else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time))
705709 then throw("signature outdated")
706710 else {
707711 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
708712 let keyHealth = keyDuckHealth(duckAssetId)
709713 let oldFromState = valueOrElse(getInteger(keyHealth), 100)
710714 if ((oldFromState != curHP))
711715 then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP)))
712716 else if ((0 >= curHP))
713717 then throw("You can't fly with zero health")
714718 else {
715719 let locKey = keyDuckLocation(duckAssetId)
716720 let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION)
717721 if ((newLocation == curLocation))
718722 then throw("You can't fly to the same location")
719723 else $Tuple2([StringEntry(locKey, if ((newHP > 0))
720724 then newLocation
721725 else curLocation), IntegerEntry(keyHealth, newHP)], unit)
722726 }
723727 }
724728 }
725729
726730
727731
728732 @Callable(i)
729733 func setHealth (health,duckAssetId) = if (if ((0 > health))
730734 then true
731735 else (health > 100))
732736 then throw("HP should be within 0..100")
733737 else [IntegerEntry(keyDuckHealth(duckAssetId), health)]
734738
735739
736740
737741 @Callable(i)
738742 func heal (matType,amount) = if (if ((0 > matType))
739743 then true
740744 else (matType >= NUMRES))
741745 then throw(("Unknown material: " + toString(matType)))
742746 else if ((0 >= amount))
743747 then throw(("Amount should be positive! " + toString(amount)))
744748 else {
745749 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
746750 let keyHealth = keyDuckHealth(duckAssetId)
747751 let oldHealth = valueOrElse(getInteger(keyHealth), 100)
748752 if ((oldHealth >= 100))
749753 then throw("HP should be < 100 to heal")
750754 else {
751755 let bpKey = keyBackpackByDuck(duckAssetId)
752756 let currentPack = getBackpack(bpKey)
753757 let mList = split(currentPack[bpIdxMat], "_")
754758 let currentAmount = parseIntValue(mList[matType])
755759 let deltaHealth = min([(amount / HEALCOST), (100 - oldHealth)])
756760 let spendAmount = (deltaHealth * HEALCOST)
757761 if ((spendAmount > currentAmount))
758762 then throw(((((("You need " + toString(spendAmount)) + " of ") + matTypes[matType]) + " to heal, but you backpack contains ") + toString(currentAmount)))
759763 else {
760764 let newMat = subOneInList(mList, matType, spendAmount)
761765 [IntegerEntry(keyHealth, (oldHealth + deltaHealth)), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))]
762766 }
763767 }
764768 }
765769
766770
767771
768772 @Callable(i)
769773 func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyAddr))
770774 then throw("permission denied")
771775 else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack)
772776
773777
774778
775779 @Callable(i)
776780 func expeditionBuy (message,sig) = if ((size(i.payments) != 1))
777781 then throw("Exactly one payment required")
778782 else {
779783 let pmt = value(i.payments[0])
780784 if ((pmt.assetId != usdnAssetId))
781785 then throw("Allowed USDN payment only!")
782786 else if ((pmt.amount != EXPUSDN))
783787 then throw(("Payment attached should be " + toString(EXPUSDN)))
784788 else expeditionCommon(false, i.caller, i.transactionId, message, sig)
785789 }
786790
787791
788792
789793 @Callable(i)
790794 func expedition (message,sig) = if ((size(i.payments) != 0))
791795 then throw("expedition doesn't require any payments")
792796 else expeditionCommon(true, i.caller, i.transactionId, message, sig)
793797
794798
795799
796800 @Callable(i)
797801 func upgradeInfra (landAssetIdIgnored) = if ((size(i.payments) != 0))
798802 then throw("Infrastructure upgrade doesn't require any payments")
799803 else upInfraCommon(true, i.caller, 0)
800804
801805
802806
803807 @Callable(i)
804808 func upgradeInfraUsdn (landAssetIdIgnored) = if ((size(i.payments) != 1))
805809 then throw("Exactly one payment required")
806810 else {
807811 let pmt = value(i.payments[0])
808812 if ((pmt.assetId != usdnAssetId))
809813 then throw("Allowed USDN payment only!")
810814 else upInfraCommon(false, i.caller, pmt.amount)
811815 }
812816
813817
814818
815819 @Callable(i)
816820 func activateArtifact (artName) = if ((size(i.payments) != 0))
817821 then throw("Artifact activation doesn't require any payments")
818822 else {
819823 let result = match artName {
820824 case _ =>
821825 if (("PRESALE" == $match0))
822826 then activatePresaleArt(toString(i.caller))
823827 else throw("Unknown artifact")
824828 }
825829 result
826830 }
827831
828832

github/deemru/w8io/026f985 
105.20 ms