tx · GHnDLx9fbaZCDDUUZzSTzCGjWtWvrC3bi3Dnq8Zj8HgV 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.02400000 Waves 2023.01.07 20:48 [2394855] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "GHnDLx9fbaZCDDUUZzSTzCGjWtWvrC3bi3Dnq8Zj8HgV", "fee": 2400000, "feeAssetId": null, "timestamp": 1673113699387, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "42kVNz1M4eaoGuEEJYwg17BTRqxpQy9SbW3QRL9kf59zfvmopPxCyYS3wvBtCKTFEs8EsidM5Yd7Xyqh7wSdtVMs" ], "script": "base64:BgJJCAISABIDCgEIEgASAwoBCBIECgIBCBIECgICAhIECgIBCBIECgIBARIECgIICBIECgICAhIECgICAhIDCgEIEgMKAQgSAwoBCEsABWNoYWluCQCwCQEJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZG5Bc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAgFXBQckbWF0Y2gwASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QMJAAACAgFUBQckbWF0Y2gwASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAICAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAICAVQFByRtYXRjaDAFBHRoaXMJAAIBAg1Vbmtub3duIGNoYWluAAticmVlZGVyQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAgIBVwUHJG1hdGNoMAkBEUBleHRyTm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us": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CAKs3kgsQ12fqrxwYjQd7LqqT65S5TtXMtm8Wq5bCs3N Next: BMPLrL7JaYrzdyMqEQaof9Z2476EU7k8anQRKiWia9m7 Diff:
Old | New | Differences | |
---|---|---|---|
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId) | |
141 | + | ||
142 | + | ||
143 | + | func keyPresaleArtActivatedByAssetIdAndOwner (assetId,ownerAddr) = ((("presaleArtActivatedByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
141 | 144 | ||
142 | 145 | ||
143 | 146 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
549 | 552 | else { | |
550 | 553 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
551 | 554 | let claimResult = claimAll(addr, c._2, pieces) | |
552 | - | ((claimResult._1 :+ BooleanEntry(keyPresaleArtActivatedByAssetId(c._2), true)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) | |
555 | + | (((claimResult._1 :+ BooleanEntry(keyPresaleArtActivatedByAssetId(c._2), true)) :+ BooleanEntry(keyPresaleArtActivatedByAssetIdAndOwner(c._2, addr), true)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) | |
553 | 556 | } | |
554 | 557 | } | |
555 | 558 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let chain = toUtf8String(take(drop(this.bytes, 1), 1)) | |
5 | 5 | ||
6 | 6 | let usdnAssetId = match chain { | |
7 | 7 | case _ => | |
8 | 8 | if (("W" == $match0)) | |
9 | 9 | then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
10 | 10 | else if (("T" == $match0)) | |
11 | 11 | then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let incubatorAddr = match chain { | |
16 | 16 | case _ => | |
17 | 17 | if (("W" == $match0)) | |
18 | 18 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
19 | 19 | else if (("T" == $match0)) | |
20 | 20 | then this | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let breederAddr = match chain { | |
25 | 25 | case _ => | |
26 | 26 | if (("W" == $match0)) | |
27 | 27 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
28 | 28 | else if (("T" == $match0)) | |
29 | 29 | then this | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let economyAddr = match chain { | |
34 | 34 | case _ => | |
35 | 35 | if (("W" == $match0)) | |
36 | 36 | then addressFromStringValue("3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D") | |
37 | 37 | else if (("T" == $match0)) | |
38 | 38 | then addressFromStringValue("3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep") | |
39 | 39 | else throw("Unknown chain") | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
43 | 43 | ||
44 | 44 | let HEALCOST = 10000 | |
45 | 45 | ||
46 | 46 | let LANDPREFIX = "LAND" | |
47 | 47 | ||
48 | 48 | let DUCKPREFIX = "DUCK" | |
49 | 49 | ||
50 | 50 | let DEFAULTLOCATION = "Africa_F_Africa" | |
51 | 51 | ||
52 | 52 | let NUMRES = 6 | |
53 | 53 | ||
54 | 54 | let DAILYRESBYPIECE = 3456000 | |
55 | 55 | ||
56 | 56 | let DAYMILLIS = 86400000 | |
57 | 57 | ||
58 | 58 | let FIVEMINUTESMILLIS = 300000 | |
59 | 59 | ||
60 | 60 | let RESOURCEPRICEMIN = 158549 | |
61 | 61 | ||
62 | 62 | let InfraUpgradeCostS = match chain { | |
63 | 63 | case _ => | |
64 | 64 | if (("W" == $match0)) | |
65 | 65 | then 18921595217 | |
66 | 66 | else if (("T" == $match0)) | |
67 | 67 | then 189215952 | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | let InfraUpgradeCostSUsdn = match chain { | |
72 | 72 | case _ => | |
73 | 73 | if (("W" == $match0)) | |
74 | 74 | then 120000000 | |
75 | 75 | else if (("T" == $match0)) | |
76 | 76 | then 1200000 | |
77 | 77 | else throw("Unknown chain") | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | let EXPMATERIALS = match chain { | |
81 | 81 | case _ => | |
82 | 82 | if (("W" == $match0)) | |
83 | 83 | then 157679960139 | |
84 | 84 | else if (("T" == $match0)) | |
85 | 85 | then 1576799601 | |
86 | 86 | else throw("Unknown chain") | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | let EXPUSDN = match chain { | |
90 | 90 | case _ => | |
91 | 91 | if (("W" == $match0)) | |
92 | 92 | then 1000000000 | |
93 | 93 | else if (("T" == $match0)) | |
94 | 94 | then 10000000 | |
95 | 95 | else throw("Unknown chain") | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | let MULT6 = 1000000 | |
99 | 99 | ||
100 | 100 | let FIVEX = toBigInt(5) | |
101 | 101 | ||
102 | 102 | let TWENTYX = toBigInt(20) | |
103 | 103 | ||
104 | 104 | let TWENTY2X = toBigInt((20 * 20)) | |
105 | 105 | ||
106 | 106 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
107 | 107 | ||
108 | 108 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
109 | 109 | ||
110 | 110 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
111 | 111 | ||
112 | 112 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
113 | 113 | ||
114 | 114 | let continents = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
115 | 115 | ||
116 | 116 | func keyNextFreeLandNum () = "nextLandNum" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyNftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId) | |
141 | + | ||
142 | + | ||
143 | + | func keyPresaleArtActivatedByAssetIdAndOwner (assetId,ownerAddr) = ((("presaleArtActivatedByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
141 | 144 | ||
142 | 145 | ||
143 | 146 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
144 | 147 | ||
145 | 148 | ||
146 | 149 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
147 | 150 | ||
148 | 151 | ||
149 | 152 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
150 | 153 | ||
151 | 154 | ||
152 | 155 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
153 | 156 | ||
154 | 157 | ||
155 | 158 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
156 | 159 | ||
157 | 160 | ||
158 | 161 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
159 | 162 | ||
160 | 163 | ||
161 | 164 | func keyResProportions () = "resTypesProportions" | |
162 | 165 | ||
163 | 166 | ||
164 | 167 | let recLandNum = 0 | |
165 | 168 | ||
166 | 169 | let recLandSize = 1 | |
167 | 170 | ||
168 | 171 | let recTerrains = 2 | |
169 | 172 | ||
170 | 173 | let recContinent = 3 | |
171 | 174 | ||
172 | 175 | let locIdxContinent = 0 | |
173 | 176 | ||
174 | 177 | let locIdxType = 1 | |
175 | 178 | ||
176 | 179 | let locIdxId = 2 | |
177 | 180 | ||
178 | 181 | let bpIdxLevel = 0 | |
179 | 182 | ||
180 | 183 | let bpIdxRes = 1 | |
181 | 184 | ||
182 | 185 | let bpIdxMat = 2 | |
183 | 186 | ||
184 | 187 | let bpIdxProd = 3 | |
185 | 188 | ||
186 | 189 | func asString (v) = match v { | |
187 | 190 | case s: String => | |
188 | 191 | s | |
189 | 192 | case _ => | |
190 | 193 | throw("fail to cast into String") | |
191 | 194 | } | |
192 | 195 | ||
193 | 196 | ||
194 | 197 | func getNeededMaterials (total) = { | |
195 | 198 | let props = split(value(getString(keyResProportions())), "_") | |
196 | 199 | if ((size(props) != NUMRES)) | |
197 | 200 | then throw("Wrong proportions data") | |
198 | 201 | else { | |
199 | 202 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
200 | 203 | let sum = (((((r[0] + r[1]) + r[2]) + r[3]) + r[4]) + r[5]) | |
201 | 204 | if ((0 >= sum)) | |
202 | 205 | then throw("No lands staked") | |
203 | 206 | else { | |
204 | 207 | let norm6 = fraction(total, MULT6, sum) | |
205 | 208 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
206 | 209 | ||
207 | 210 | let $l = r | |
208 | 211 | let $s = size($l) | |
209 | 212 | let $acc0 = nil | |
210 | 213 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
211 | 214 | then $a | |
212 | 215 | else normalizer($a, $l[$i]) | |
213 | 216 | ||
214 | 217 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
215 | 218 | then $a | |
216 | 219 | else throw("List size exceeds 6") | |
217 | 220 | ||
218 | 221 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
219 | 222 | } | |
220 | 223 | } | |
221 | 224 | } | |
222 | 225 | ||
223 | 226 | ||
224 | 227 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
225 | 228 | let need = getNeededMaterials(totalNeed) | |
226 | 229 | func subtractor (acc,idx) = { | |
227 | 230 | let result = (parseIntValue(has[idx]) - need[idx]) | |
228 | 231 | if ((0 > result)) | |
229 | 232 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
230 | 233 | else (acc :+ toString(result)) | |
231 | 234 | } | |
232 | 235 | ||
233 | 236 | if (shouldUseMat) | |
234 | 237 | then { | |
235 | 238 | let $l = [0, 1, 2, 3, 4, 5] | |
236 | 239 | let $s = size($l) | |
237 | 240 | let $acc0 = nil | |
238 | 241 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
239 | 242 | then $a | |
240 | 243 | else subtractor($a, $l[$i]) | |
241 | 244 | ||
242 | 245 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
243 | 246 | then $a | |
244 | 247 | else throw("List size exceeds 6") | |
245 | 248 | ||
246 | 249 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
247 | 250 | } | |
248 | 251 | else has | |
249 | 252 | } | |
250 | 253 | ||
251 | 254 | ||
252 | 255 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
253 | 256 | let props = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
254 | 257 | if ((size(props) != NUMRES)) | |
255 | 258 | then throw("Wrong proportions data") | |
256 | 259 | else { | |
257 | 260 | func updater (acc,i) = { | |
258 | 261 | let result = (parseIntValue(props[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
259 | 262 | if ((0 > result)) | |
260 | 263 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
261 | 264 | else (acc :+ toString(result)) | |
262 | 265 | } | |
263 | 266 | ||
264 | 267 | let r = { | |
265 | 268 | let $l = [0, 1, 2, 3, 4, 5] | |
266 | 269 | let $s = size($l) | |
267 | 270 | let $acc0 = nil | |
268 | 271 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
269 | 272 | then $a | |
270 | 273 | else updater($a, $l[$i]) | |
271 | 274 | ||
272 | 275 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
273 | 276 | then $a | |
274 | 277 | else throw("List size exceeds 6") | |
275 | 278 | ||
276 | 279 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
277 | 280 | } | |
278 | 281 | makeString(r, "_") | |
279 | 282 | } | |
280 | 283 | } | |
281 | 284 | ||
282 | 285 | ||
283 | 286 | 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)] | |
284 | 287 | ||
285 | 288 | ||
286 | 289 | func numPiecesBySize (landSize) = match landSize { | |
287 | 290 | case _ => | |
288 | 291 | if (("S" == $match0)) | |
289 | 292 | then 25 | |
290 | 293 | else if (("M" == $match0)) | |
291 | 294 | then 100 | |
292 | 295 | else if (("L" == $match0)) | |
293 | 296 | then 225 | |
294 | 297 | else if (("XL" == $match0)) | |
295 | 298 | then 400 | |
296 | 299 | else if (("XXL" == $match0)) | |
297 | 300 | then 625 | |
298 | 301 | else throw("Unknown land size") | |
299 | 302 | } | |
300 | 303 | ||
301 | 304 | ||
302 | 305 | func subOneInList (aList,idx,amount) = { | |
303 | 306 | func subber (acc,i) = (acc :+ (if ((i == idx)) | |
304 | 307 | then toString((parseIntValue(aList[i]) - amount)) | |
305 | 308 | else aList[i])) | |
306 | 309 | ||
307 | 310 | let r = { | |
308 | 311 | let $l = [0, 1, 2, 3, 4, 5] | |
309 | 312 | let $s = size($l) | |
310 | 313 | let $acc0 = nil | |
311 | 314 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
312 | 315 | then $a | |
313 | 316 | else subber($a, $l[$i]) | |
314 | 317 | ||
315 | 318 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
316 | 319 | then $a | |
317 | 320 | else throw("List size exceeds 6") | |
318 | 321 | ||
319 | 322 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
320 | 323 | } | |
321 | 324 | makeString(r, "_") | |
322 | 325 | } | |
323 | 326 | ||
324 | 327 | ||
325 | 328 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
326 | 329 | func adder (acc,i) = { | |
327 | 330 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
328 | 331 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
329 | 332 | } | |
330 | 333 | ||
331 | 334 | let r = { | |
332 | 335 | let $l = [0, 1, 2, 3, 4, 5] | |
333 | 336 | let $s = size($l) | |
334 | 337 | let $acc0 = nil | |
335 | 338 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
336 | 339 | then $a | |
337 | 340 | else adder($a, $l[$i]) | |
338 | 341 | ||
339 | 342 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
340 | 343 | then $a | |
341 | 344 | else throw("List size exceeds 6") | |
342 | 345 | ||
343 | 346 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
344 | 347 | } | |
345 | 348 | makeString(r, "_") | |
346 | 349 | } | |
347 | 350 | ||
348 | 351 | ||
349 | 352 | func abs (x) = if ((x >= toBigInt(0))) | |
350 | 353 | then x | |
351 | 354 | else -(x) | |
352 | 355 | ||
353 | 356 | ||
354 | 357 | 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]] | |
355 | 358 | ||
356 | 359 | func genChar (n,freqs) = { | |
357 | 360 | let rem = toInt((n % TWENTYX)) | |
358 | 361 | let letter = if ((freqs[0] > rem)) | |
359 | 362 | then "A" | |
360 | 363 | else if ((freqs[1] > rem)) | |
361 | 364 | then "B" | |
362 | 365 | else if ((freqs[2] > rem)) | |
363 | 366 | then "C" | |
364 | 367 | else if ((freqs[3] > rem)) | |
365 | 368 | then "D" | |
366 | 369 | else if ((freqs[4] > rem)) | |
367 | 370 | then "E" | |
368 | 371 | else "F" | |
369 | 372 | letter | |
370 | 373 | } | |
371 | 374 | ||
372 | 375 | ||
373 | 376 | func getBackpack (bpKey) = { | |
374 | 377 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
375 | 378 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
376 | 379 | then p[bpIdxRes] | |
377 | 380 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
378 | 381 | then p[bpIdxMat] | |
379 | 382 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
380 | 383 | } | |
381 | 384 | ||
382 | 385 | ||
383 | 386 | func expeditionCommon (shouldUseMat,caller,txId,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
384 | 387 | then throw("signature does not match") | |
385 | 388 | else { | |
386 | 389 | let parts = split(toUtf8String(message), ";") | |
387 | 390 | let hp = split(split(parts[0], "|")[0], "_") | |
388 | 391 | let curHP = parseIntValue(hp[0]) | |
389 | 392 | let newHP = parseIntValue(hp[1]) | |
390 | 393 | let locAndTime = split(parts[1], ":") | |
391 | 394 | let targetLocation = split(locAndTime[0], "_") | |
392 | 395 | if ((targetLocation[1] != "E")) | |
393 | 396 | then throw("expedition target location type should be E") | |
394 | 397 | else { | |
395 | 398 | let time = parseIntValue(locAndTime[1]) | |
396 | 399 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
397 | 400 | then true | |
398 | 401 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
399 | 402 | then throw("signature outdated") | |
400 | 403 | else { | |
401 | 404 | let userAddr = toString(caller) | |
402 | 405 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
403 | 406 | let keyHealth = keyDuckHealth(duckAssetId) | |
404 | 407 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
405 | 408 | if ((oldFromState != curHP)) | |
406 | 409 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
407 | 410 | else if ((0 >= curHP)) | |
408 | 411 | then throw("You can't fly with zero health") | |
409 | 412 | else if ((0 >= newHP)) | |
410 | 413 | then $Tuple2(((if (!(shouldUseMat)) | |
411 | 414 | then [ScriptTransfer(caller, EXPUSDN, usdnAssetId)] | |
412 | 415 | else nil) :+ IntegerEntry(keyHealth, 0)), "") | |
413 | 416 | else { | |
414 | 417 | let bpKey = keyBackpackByDuck(duckAssetId) | |
415 | 418 | let currentPack = getBackpack(bpKey) | |
416 | 419 | let mList = split(currentPack[bpIdxMat], "_") | |
417 | 420 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_") | |
418 | 421 | let bigNum = abs(toBigInt(txId)) | |
419 | 422 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), 501) | |
420 | 423 | let landNum = toString(freeNum) | |
421 | 424 | let continentIdx = toInt((bigNum % FIVEX)) | |
422 | 425 | let f = freq[continentIdx] | |
423 | 426 | 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)) | |
424 | 427 | ||
425 | 428 | let t = { | |
426 | 429 | let $l = [1, 2, 3, 4, 5] | |
427 | 430 | let $s = size($l) | |
428 | 431 | let $acc0 = $Tuple2("", (bigNum / FIVEX)) | |
429 | 432 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
430 | 433 | then $a | |
431 | 434 | else terrainGenerator($a, $l[$i]) | |
432 | 435 | ||
433 | 436 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
434 | 437 | then $a | |
435 | 438 | else throw("List size exceeds 5") | |
436 | 439 | ||
437 | 440 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
438 | 441 | } | |
439 | 442 | let continent = continents[continentIdx] | |
440 | 443 | let issue = Issue(keyNftName(landNum, "S"), makeString([landNum, "S", t._1, continent], "_"), 1, 0, false) | |
441 | 444 | let assetId = calculateAssetId(issue) | |
442 | 445 | let id = toBase58String(assetId) | |
443 | 446 | $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) | |
444 | 447 | } | |
445 | 448 | } | |
446 | 449 | } | |
447 | 450 | } | |
448 | 451 | ||
449 | 452 | ||
450 | 453 | func applyBonuses (landAssetId) = { | |
451 | 454 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
452 | 455 | let presaleBonus = if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
453 | 456 | then 3 | |
454 | 457 | else 0 | |
455 | 458 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, infraLevel, 4)) + fraction(DAILYRESBYPIECE, presaleBonus, 20)) | |
456 | 459 | } | |
457 | 460 | ||
458 | 461 | ||
459 | 462 | func checkClaimConditions (addr) = { | |
460 | 463 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
461 | 464 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
462 | 465 | let loc = split(value(curLocation), "_") | |
463 | 466 | if ((loc[locIdxType] != "L")) | |
464 | 467 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
465 | 468 | else { | |
466 | 469 | let landAssetId = loc[locIdxId] | |
467 | 470 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
468 | 471 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
469 | 472 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
470 | 473 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
471 | 474 | if ((owner != addr)) | |
472 | 475 | then throw((LANDPREFIX + " is not yours")) | |
473 | 476 | else { | |
474 | 477 | let d = split(asset.description, "_") | |
475 | 478 | $Tuple4(duckAssetId, landAssetId, d, savedTime) | |
476 | 479 | } | |
477 | 480 | } | |
478 | 481 | } | |
479 | 482 | ||
480 | 483 | ||
481 | 484 | func claimResInternal (addr,amount) = { | |
482 | 485 | let c = checkClaimConditions(addr) | |
483 | 486 | let landSize = c._3[recLandSize] | |
484 | 487 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
485 | 488 | let deltaTime = (lastBlock.timestamp - c._4) | |
486 | 489 | if ((0 > deltaTime)) | |
487 | 490 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
488 | 491 | else { | |
489 | 492 | let pieces = numPiecesBySize(landSize) | |
490 | 493 | let dailyProductionByPiece = applyBonuses(c._2) | |
491 | 494 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
492 | 495 | if ((amount > availRes)) | |
493 | 496 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
494 | 497 | else { | |
495 | 498 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
496 | 499 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
497 | 500 | let bpKey = keyBackpackByDuck(c._1) | |
498 | 501 | let currentPack = getBackpack(bpKey) | |
499 | 502 | let currentRes = split(currentPack[bpIdxRes], "_") | |
500 | 503 | let bpRes = addRes(currentRes, terrainCounts, (deltaTime - newDeltaTime), (pieces / 25), dailyProductionByPiece) | |
501 | 504 | $Tuple3([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]]) | |
502 | 505 | } | |
503 | 506 | } | |
504 | 507 | } | |
505 | 508 | ||
506 | 509 | ||
507 | 510 | func claimAll (addr,landAssetId,pieces) = { | |
508 | 511 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
509 | 512 | let savedTime = value(getInteger(timeKey)) | |
510 | 513 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId), DAYMILLIS) * pieces) | |
511 | 514 | claimResInternal(addr, availRes) | |
512 | 515 | } | |
513 | 516 | ||
514 | 517 | ||
515 | 518 | func upInfraCommon (shouldUseMat,caller,paymentAmount) = { | |
516 | 519 | let addr = toString(caller) | |
517 | 520 | let c = checkClaimConditions(addr) | |
518 | 521 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
519 | 522 | let infraKey = keyInfraLevelByAssetId(c._2) | |
520 | 523 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
521 | 524 | if ((curLevel >= 3)) | |
522 | 525 | then throw("Currently max infrastructure level = 3") | |
523 | 526 | else { | |
524 | 527 | let newLevel = (curLevel + 1) | |
525 | 528 | let cost = fraction(InfraUpgradeCostSUsdn, (pieces * newLevel), 25) | |
526 | 529 | if (if (!(shouldUseMat)) | |
527 | 530 | then (paymentAmount != cost) | |
528 | 531 | else false) | |
529 | 532 | then throw(("Payment attached should be " + toString(cost))) | |
530 | 533 | else { | |
531 | 534 | let bpKey = keyBackpackByDuck(c._1) | |
532 | 535 | let currentPack = getBackpack(bpKey) | |
533 | 536 | let mList = split(currentPack[bpIdxMat], "_") | |
534 | 537 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), 25)), "_") | |
535 | 538 | let claimResult = claimAll(addr, c._2, pieces) | |
536 | 539 | $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))] ++ claimResult._1), newLevel) | |
537 | 540 | } | |
538 | 541 | } | |
539 | 542 | } | |
540 | 543 | ||
541 | 544 | ||
542 | 545 | func activatePresaleArt (addr) = { | |
543 | 546 | let c = checkClaimConditions(addr) | |
544 | 547 | let activationKey = keyPresaleArtActivatedByAssetId(c._2) | |
545 | 548 | if (valueOrElse(getBoolean(activationKey), false)) | |
546 | 549 | then throw("Presale artifact is already activated") | |
547 | 550 | else if ((parseIntValue(c._3[recLandNum]) > 500)) | |
548 | 551 | then throw((((LANDPREFIX + " ") + c._2) + " is not eligible for presale artifact")) | |
549 | 552 | else { | |
550 | 553 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
551 | 554 | let claimResult = claimAll(addr, c._2, pieces) | |
552 | - | ((claimResult._1 :+ BooleanEntry(keyPresaleArtActivatedByAssetId(c._2), true)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) | |
555 | + | (((claimResult._1 :+ BooleanEntry(keyPresaleArtActivatedByAssetId(c._2), true)) :+ BooleanEntry(keyPresaleArtActivatedByAssetIdAndOwner(c._2, addr), true)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) | |
553 | 556 | } | |
554 | 557 | } | |
555 | 558 | ||
556 | 559 | ||
557 | 560 | @Callable(i) | |
558 | 561 | func stakeLand () = { | |
559 | 562 | let pmt = value(i.payments[0]) | |
560 | 563 | let assetId = value(pmt.assetId) | |
561 | 564 | let address = toString(i.caller) | |
562 | 565 | if ((pmt.amount != 1)) | |
563 | 566 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
564 | 567 | else { | |
565 | 568 | let asset = value(assetInfo(assetId)) | |
566 | 569 | if ((asset.issuer != this)) | |
567 | 570 | then throw("Unknown issuer of token") | |
568 | 571 | else if (!(contains(asset.name, LANDPREFIX))) | |
569 | 572 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
570 | 573 | else { | |
571 | 574 | let landNumSize = drop(asset.name, 4) | |
572 | 575 | let landNum = if (contains(landNumSize, "XXL")) | |
573 | 576 | then dropRight(landNumSize, 3) | |
574 | 577 | else if (contains(landNumSize, "XL")) | |
575 | 578 | then dropRight(landNumSize, 2) | |
576 | 579 | else dropRight(landNumSize, 1) | |
577 | 580 | let landNumInt = valueOrErrorMessage(parseInt(landNum), ("Cannot parse land number from " + asset.name)) | |
578 | 581 | let landAssetId = toBase58String(assetId) | |
579 | 582 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
580 | 583 | if (isDefined(getInteger(timeKey))) | |
581 | 584 | then throw((("NFT " + asset.name) + " is already staked")) | |
582 | 585 | else { | |
583 | 586 | let d = split(asset.description, "_") | |
584 | 587 | let terrainCounts = countTerrains(d[recTerrains]) | |
585 | 588 | let props = updateProportions(terrainCounts, (numPiecesBySize(d[recLandSize]) / 25), 1) | |
586 | 589 | [IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), StringEntry(keyResProportions(), props)] | |
587 | 590 | } | |
588 | 591 | } | |
589 | 592 | } | |
590 | 593 | } | |
591 | 594 | ||
592 | 595 | ||
593 | 596 | ||
594 | 597 | @Callable(i) | |
595 | 598 | func unstakeLand (landAssetIdStr) = if ((size(i.payments) != 0)) | |
596 | 599 | then throw("unstake doesn't require any payments") | |
597 | 600 | else { | |
598 | 601 | let addr = toString(i.caller) | |
599 | 602 | let c = checkClaimConditions(addr) | |
600 | 603 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
601 | 604 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
602 | 605 | let props = updateProportions(terrainCounts, (pieces / 25), -1) | |
603 | 606 | let claimResult = claimAll(addr, c._2, pieces) | |
604 | 607 | [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, ":"))] | |
605 | 608 | } | |
606 | 609 | ||
607 | 610 | ||
608 | 611 | ||
609 | 612 | @Callable(i) | |
610 | 613 | func stakeDuck () = { | |
611 | 614 | let pmt = value(i.payments[0]) | |
612 | 615 | let assetId = value(pmt.assetId) | |
613 | 616 | let address = toString(i.caller) | |
614 | 617 | if ((pmt.amount != 1)) | |
615 | 618 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
616 | 619 | else { | |
617 | 620 | let asset = value(assetInfo(assetId)) | |
618 | 621 | if (if ((asset.issuer != incubatorAddr)) | |
619 | 622 | then (asset.issuer != breederAddr) | |
620 | 623 | else false) | |
621 | 624 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
622 | 625 | else if (!(contains(asset.name, DUCKPREFIX))) | |
623 | 626 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
624 | 627 | else { | |
625 | 628 | let assetIdStr = toBase58String(assetId) | |
626 | 629 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
627 | 630 | if (isDefined(getInteger(timeKey))) | |
628 | 631 | then throw((("NFT " + asset.name) + " is already staked")) | |
629 | 632 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
630 | 633 | then throw(("You already staked one duck: " + asset.name)) | |
631 | 634 | else { | |
632 | 635 | let locKey = keyDuckLocation(assetIdStr) | |
633 | 636 | let location = getString(locKey) | |
634 | 637 | let keyHealth = keyDuckHealth(assetIdStr) | |
635 | 638 | let health = getInteger(keyHealth) | |
636 | 639 | let bpKey = keyBackpackByDuck(assetIdStr) | |
637 | 640 | let backpack = getString(bpKey) | |
638 | 641 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
639 | 642 | then nil | |
640 | 643 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(health)) | |
641 | 644 | then nil | |
642 | 645 | else ([IntegerEntry(keyHealth, 100)] ++ (if (isDefined(backpack)) | |
643 | 646 | then nil | |
644 | 647 | else [StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")])))))) | |
645 | 648 | } | |
646 | 649 | } | |
647 | 650 | } | |
648 | 651 | } | |
649 | 652 | ||
650 | 653 | ||
651 | 654 | ||
652 | 655 | @Callable(i) | |
653 | 656 | func unstakeDuck (assetIdStr) = if ((size(i.payments) != 0)) | |
654 | 657 | then throw("unstake doesn't require any payments") | |
655 | 658 | else { | |
656 | 659 | let assetId = fromBase58String(assetIdStr) | |
657 | 660 | let address = toString(i.caller) | |
658 | 661 | let asset = value(assetInfo(assetId)) | |
659 | 662 | if (if ((asset.issuer != incubatorAddr)) | |
660 | 663 | then (asset.issuer != breederAddr) | |
661 | 664 | else false) | |
662 | 665 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
663 | 666 | else if (!(contains(asset.name, DUCKPREFIX))) | |
664 | 667 | then throw((("Only NFT " + DUCKPREFIX) + " tokens can be unstaked")) | |
665 | 668 | else { | |
666 | 669 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
667 | 670 | if (!(isDefined(timeKey))) | |
668 | 671 | then throw((("NFT " + asset.name) + " is not staked")) | |
669 | 672 | else if (!(isDefined(keyStakedDuckByOwner(address)))) | |
670 | 673 | then throw((("The duck " + asset.name) + " is not staked")) | |
671 | 674 | else { | |
672 | 675 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
673 | 676 | if ((owner != address)) | |
674 | 677 | then throw("Staked NFT is not yours") | |
675 | 678 | else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address))] | |
676 | 679 | } | |
677 | 680 | } | |
678 | 681 | } | |
679 | 682 | ||
680 | 683 | ||
681 | 684 | ||
682 | 685 | @Callable(i) | |
683 | 686 | func claimRes (amount,landAssetIdStr) = if ((size(i.payments) != 0)) | |
684 | 687 | then throw("claimRes doesn't require any payments") | |
685 | 688 | else { | |
686 | 689 | let addr = toString(i.originCaller) | |
687 | 690 | let result = claimResInternal(addr, amount) | |
688 | 691 | $Tuple2((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))), result._3[bpIdxRes]) | |
689 | 692 | } | |
690 | 693 | ||
691 | 694 | ||
692 | 695 | ||
693 | 696 | @Callable(i) | |
694 | 697 | func flight (message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
695 | 698 | then throw("signature does not match") | |
696 | 699 | else if ((size(i.payments) != 0)) | |
697 | 700 | then throw("flight doesn't require any payments") | |
698 | 701 | else { | |
699 | 702 | let parts = split(toUtf8String(message), ";") | |
700 | 703 | let hp = split(split(parts[0], "|")[0], "_") | |
701 | 704 | let curHP = parseIntValue(hp[0]) | |
702 | 705 | let newHP = parseIntValue(hp[1]) | |
703 | 706 | let newLocAndTime = split(parts[1], ":") | |
704 | 707 | let newLocation = newLocAndTime[0] | |
705 | 708 | let time = parseIntValue(newLocAndTime[1]) | |
706 | 709 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
707 | 710 | then true | |
708 | 711 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
709 | 712 | then throw("signature outdated") | |
710 | 713 | else { | |
711 | 714 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
712 | 715 | let keyHealth = keyDuckHealth(duckAssetId) | |
713 | 716 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
714 | 717 | if ((oldFromState != curHP)) | |
715 | 718 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
716 | 719 | else if ((0 >= curHP)) | |
717 | 720 | then throw("You can't fly with zero health") | |
718 | 721 | else { | |
719 | 722 | let locKey = keyDuckLocation(duckAssetId) | |
720 | 723 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
721 | 724 | if ((newLocation == curLocation)) | |
722 | 725 | then throw("You can't fly to the same location") | |
723 | 726 | else $Tuple2([StringEntry(locKey, if ((newHP > 0)) | |
724 | 727 | then newLocation | |
725 | 728 | else curLocation), IntegerEntry(keyHealth, newHP)], unit) | |
726 | 729 | } | |
727 | 730 | } | |
728 | 731 | } | |
729 | 732 | ||
730 | 733 | ||
731 | 734 | ||
732 | 735 | @Callable(i) | |
733 | 736 | func setHealth (health,duckAssetId) = if (if ((0 > health)) | |
734 | 737 | then true | |
735 | 738 | else (health > 100)) | |
736 | 739 | then throw("HP should be within 0..100") | |
737 | 740 | else [IntegerEntry(keyDuckHealth(duckAssetId), health)] | |
738 | 741 | ||
739 | 742 | ||
740 | 743 | ||
741 | 744 | @Callable(i) | |
742 | 745 | func heal (matType,amount) = if (if ((0 > matType)) | |
743 | 746 | then true | |
744 | 747 | else (matType >= NUMRES)) | |
745 | 748 | then throw(("Unknown material: " + toString(matType))) | |
746 | 749 | else if ((0 >= amount)) | |
747 | 750 | then throw(("Amount should be positive! " + toString(amount))) | |
748 | 751 | else { | |
749 | 752 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
750 | 753 | let keyHealth = keyDuckHealth(duckAssetId) | |
751 | 754 | let oldHealth = valueOrElse(getInteger(keyHealth), 100) | |
752 | 755 | if ((oldHealth >= 100)) | |
753 | 756 | then throw("HP should be < 100 to heal") | |
754 | 757 | else { | |
755 | 758 | let bpKey = keyBackpackByDuck(duckAssetId) | |
756 | 759 | let currentPack = getBackpack(bpKey) | |
757 | 760 | let mList = split(currentPack[bpIdxMat], "_") | |
758 | 761 | let currentAmount = parseIntValue(mList[matType]) | |
759 | 762 | let deltaHealth = min([(amount / HEALCOST), (100 - oldHealth)]) | |
760 | 763 | let spendAmount = (deltaHealth * HEALCOST) | |
761 | 764 | if ((spendAmount > currentAmount)) | |
762 | 765 | then throw(((((("You need " + toString(spendAmount)) + " of ") + matTypes[matType]) + " to heal, but you backpack contains ") + toString(currentAmount))) | |
763 | 766 | else { | |
764 | 767 | let newMat = subOneInList(mList, matType, spendAmount) | |
765 | 768 | [IntegerEntry(keyHealth, (oldHealth + deltaHealth)), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))] | |
766 | 769 | } | |
767 | 770 | } | |
768 | 771 | } | |
769 | 772 | ||
770 | 773 | ||
771 | 774 | ||
772 | 775 | @Callable(i) | |
773 | 776 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyAddr)) | |
774 | 777 | then throw("permission denied") | |
775 | 778 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
776 | 779 | ||
777 | 780 | ||
778 | 781 | ||
779 | 782 | @Callable(i) | |
780 | 783 | func expeditionBuy (message,sig) = if ((size(i.payments) != 1)) | |
781 | 784 | then throw("Exactly one payment required") | |
782 | 785 | else { | |
783 | 786 | let pmt = value(i.payments[0]) | |
784 | 787 | if ((pmt.assetId != usdnAssetId)) | |
785 | 788 | then throw("Allowed USDN payment only!") | |
786 | 789 | else if ((pmt.amount != EXPUSDN)) | |
787 | 790 | then throw(("Payment attached should be " + toString(EXPUSDN))) | |
788 | 791 | else expeditionCommon(false, i.caller, i.transactionId, message, sig) | |
789 | 792 | } | |
790 | 793 | ||
791 | 794 | ||
792 | 795 | ||
793 | 796 | @Callable(i) | |
794 | 797 | func expedition (message,sig) = if ((size(i.payments) != 0)) | |
795 | 798 | then throw("expedition doesn't require any payments") | |
796 | 799 | else expeditionCommon(true, i.caller, i.transactionId, message, sig) | |
797 | 800 | ||
798 | 801 | ||
799 | 802 | ||
800 | 803 | @Callable(i) | |
801 | 804 | func upgradeInfra (landAssetIdIgnored) = if ((size(i.payments) != 0)) | |
802 | 805 | then throw("Infrastructure upgrade doesn't require any payments") | |
803 | 806 | else upInfraCommon(true, i.caller, 0) | |
804 | 807 | ||
805 | 808 | ||
806 | 809 | ||
807 | 810 | @Callable(i) | |
808 | 811 | func upgradeInfraUsdn (landAssetIdIgnored) = if ((size(i.payments) != 1)) | |
809 | 812 | then throw("Exactly one payment required") | |
810 | 813 | else { | |
811 | 814 | let pmt = value(i.payments[0]) | |
812 | 815 | if ((pmt.assetId != usdnAssetId)) | |
813 | 816 | then throw("Allowed USDN payment only!") | |
814 | 817 | else upInfraCommon(false, i.caller, pmt.amount) | |
815 | 818 | } | |
816 | 819 | ||
817 | 820 | ||
818 | 821 | ||
819 | 822 | @Callable(i) | |
820 | 823 | func activateArtifact (artName) = if ((size(i.payments) != 0)) | |
821 | 824 | then throw("Artifact activation doesn't require any payments") | |
822 | 825 | else { | |
823 | 826 | let result = match artName { | |
824 | 827 | case _ => | |
825 | 828 | if (("PRESALE" == $match0)) | |
826 | 829 | then activatePresaleArt(toString(i.caller)) | |
827 | 830 | else throw("Unknown artifact") | |
828 | 831 | } | |
829 | 832 | result | |
830 | 833 | } | |
831 | 834 | ||
832 | 835 |
github/deemru/w8io/026f985 132.31 ms ◑