tx · DyWv9okH8JzzgEuc4VAD3dNV7aD4sqx7VfhGq9mXN3C3 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.03100000 Waves 2023.01.17 20:22 [2409224] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "DyWv9okH8JzzgEuc4VAD3dNV7aD4sqx7VfhGq9mXN3C3", "fee": 3100000, "feeAssetId": null, "timestamp": 1673976100366, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "4SMKgA98zV6rv6MV5fraFhgCtVCZUU1FFMR9yosVREfs4WXjvaPvju2vG9Za1ukVtHtKZ7VaEvvVBdPuHHZX4MgA" ], "script": "base64:BgJYCAISABIDCgEIEgASAwoBCBIECgIBCBIECgICAhIECgIBCBIECgIBARIECgIICBIECgICAhIECgICAhIDCgEIEgMKAQgSAwoBCBIDCgEYEgMKARgSAwoBAVwABWNoYWluCQCwCQEJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZG5Bc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAgFXBQckbWF0Y2gwASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QMJAAACAgFUBQckbWF0Y2gwASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAICAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAICAVQFByRtYXRjaDAFBHRoaXMJAAIBAg1Vbmtub3duIGNoYWluAAticmVlZGVyQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAgIBVwUHJG1hdGNoM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: original | compacted Prev: 9Sd9fKnJy22Q6qdjKALnRW5DMrLQZSXSp1rnJeVj6gbc Next: FR76mzTwWg3XDkGzkWB4iXtjtQn3nhwwdm6VvUqUQBno Diff:
Old | New | Differences | |
---|---|---|---|
1013 | 1013 | ||
1014 | 1014 | ||
1015 | 1015 | @Callable(i) | |
1016 | - | func mergeLands (landAssetIds) = if ((i.caller != this)) | |
1017 | - | then throw("permission denied") | |
1018 | - | else if ((size(i.payments) != 0)) | |
1019 | - | then throw("Lands merging doesn't require any payments") | |
1020 | - | else mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1016 | + | func mergeLands (landAssetIds) = if ((size(i.payments) != 0)) | |
1017 | + | then throw("Lands merging doesn't require any payments") | |
1018 | + | else mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1021 | 1019 | ||
1022 | 1020 | ||
1023 | 1021 | ||
1024 | 1022 | @Callable(i) | |
1025 | - | func mergeLandsUsdn (landAssetIds) = if ((i.caller != this)) | |
1026 | - | then throw("permission denied") | |
1027 | - | else if ((size(i.payments) != 1)) | |
1028 | - | then throw("Exactly one payment required") | |
1029 | - | else { | |
1030 | - | let pmt = value(i.payments[0]) | |
1031 | - | if ((pmt.assetId != usdnAssetId)) | |
1032 | - | then throw("Allowed USDN payment only!") | |
1033 | - | else { | |
1034 | - | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1035 | - | $Tuple2((result._1 :+ ScriptTransfer(economyAddr, pmt.amount, usdnAssetId)), result._2) | |
1036 | - | } | |
1037 | - | } | |
1023 | + | func mergeLandsUsdn (landAssetIds) = if ((size(i.payments) != 1)) | |
1024 | + | then throw("Exactly one payment required") | |
1025 | + | else { | |
1026 | + | let pmt = value(i.payments[0]) | |
1027 | + | if ((pmt.assetId != usdnAssetId)) | |
1028 | + | then throw("Allowed USDN payment only!") | |
1029 | + | else { | |
1030 | + | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1031 | + | $Tuple2((result._1 :+ ScriptTransfer(economyAddr, pmt.amount, usdnAssetId)), result._2) | |
1032 | + | } | |
1033 | + | } | |
1034 | + | ||
1035 | + | ||
1036 | + | ||
1037 | + | @Callable(i) | |
1038 | + | func splitByProportionsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
1038 | 1039 | ||
1039 | 1040 |
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 SSIZE = 25 | |
55 | 55 | ||
56 | 56 | let MSIZE = 100 | |
57 | 57 | ||
58 | 58 | let LSIZE = 225 | |
59 | 59 | ||
60 | 60 | let XLSIZE = 400 | |
61 | 61 | ||
62 | 62 | let XXLSIZE = 625 | |
63 | 63 | ||
64 | 64 | let DAILYRESBYPIECE = 3456000 | |
65 | 65 | ||
66 | 66 | let DAYMILLIS = 86400000 | |
67 | 67 | ||
68 | 68 | let FIVEMINUTESMILLIS = 300000 | |
69 | 69 | ||
70 | 70 | let RESOURCEPRICEMIN = 158549 | |
71 | 71 | ||
72 | 72 | let InfraUpgradeCostS = match chain { | |
73 | 73 | case _ => | |
74 | 74 | if (("W" == $match0)) | |
75 | 75 | then 6307198406 | |
76 | 76 | else if (("T" == $match0)) | |
77 | 77 | then 63071984 | |
78 | 78 | else throw("Unknown chain") | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | let InfraUpgradeCostSUsdn = match chain { | |
82 | 82 | case _ => | |
83 | 83 | if (("W" == $match0)) | |
84 | 84 | then 40000000 | |
85 | 85 | else if (("T" == $match0)) | |
86 | 86 | then 400000 | |
87 | 87 | else throw("Unknown chain") | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | let EXPMATERIALS = match chain { | |
91 | 91 | case _ => | |
92 | 92 | if (("W" == $match0)) | |
93 | 93 | then 157679960139 | |
94 | 94 | else if (("T" == $match0)) | |
95 | 95 | then 1576799601 | |
96 | 96 | else throw("Unknown chain") | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | let EXPUSDN = match chain { | |
100 | 100 | case _ => | |
101 | 101 | if (("W" == $match0)) | |
102 | 102 | then 1000000000 | |
103 | 103 | else if (("T" == $match0)) | |
104 | 104 | then 10000000 | |
105 | 105 | else throw("Unknown chain") | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | let MULT6 = 1000000 | |
109 | 109 | ||
110 | 110 | let FIVEX = toBigInt(5) | |
111 | 111 | ||
112 | 112 | let TWENTYX = toBigInt(20) | |
113 | 113 | ||
114 | 114 | let TWENTY2X = toBigInt((20 * 20)) | |
115 | 115 | ||
116 | 116 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
117 | 117 | ||
118 | 118 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
119 | 119 | ||
120 | 120 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
121 | 121 | ||
122 | 122 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
123 | 123 | ||
124 | 124 | let continents = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
125 | 125 | ||
126 | 126 | let ARTPRESALE = "PRESALE" | |
127 | 127 | ||
128 | 128 | let PRESALENUMLANDS = 500 | |
129 | 129 | ||
130 | 130 | func keyNextFreeLandNum () = "nextLandNum" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyNftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func keyPresaleArtActivatedByAssetIdAndOwner (assetId,ownerAddr) = ((("presaleArtActivatedByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_") | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyResProportions () = "resTypesProportions" | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | let recLandNum = 0 | |
188 | 188 | ||
189 | 189 | let recLandSize = 1 | |
190 | 190 | ||
191 | 191 | let recTerrains = 2 | |
192 | 192 | ||
193 | 193 | let recContinent = 3 | |
194 | 194 | ||
195 | 195 | let locIdxContinent = 0 | |
196 | 196 | ||
197 | 197 | let locIdxType = 1 | |
198 | 198 | ||
199 | 199 | let locIdxId = 2 | |
200 | 200 | ||
201 | 201 | let bpIdxLevel = 0 | |
202 | 202 | ||
203 | 203 | let bpIdxRes = 1 | |
204 | 204 | ||
205 | 205 | let bpIdxMat = 2 | |
206 | 206 | ||
207 | 207 | let bpIdxProd = 3 | |
208 | 208 | ||
209 | 209 | func asString (v) = match v { | |
210 | 210 | case s: String => | |
211 | 211 | s | |
212 | 212 | case _ => | |
213 | 213 | throw("fail to cast into String") | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func getNeededMaterials (total) = { | |
218 | 218 | let props = split(value(getString(keyResProportions())), "_") | |
219 | 219 | if ((size(props) != NUMRES)) | |
220 | 220 | then throw("Wrong proportions data") | |
221 | 221 | else { | |
222 | 222 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
223 | 223 | let sum = (((((r[0] + r[1]) + r[2]) + r[3]) + r[4]) + r[5]) | |
224 | 224 | if ((0 >= sum)) | |
225 | 225 | then throw("No lands staked") | |
226 | 226 | else { | |
227 | 227 | let norm6 = fraction(total, MULT6, sum) | |
228 | 228 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
229 | 229 | ||
230 | 230 | let $l = r | |
231 | 231 | let $s = size($l) | |
232 | 232 | let $acc0 = nil | |
233 | 233 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
234 | 234 | then $a | |
235 | 235 | else normalizer($a, $l[$i]) | |
236 | 236 | ||
237 | 237 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
238 | 238 | then $a | |
239 | 239 | else throw("List size exceeds 6") | |
240 | 240 | ||
241 | 241 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
242 | 242 | } | |
243 | 243 | } | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
248 | 248 | let need = getNeededMaterials(totalNeed) | |
249 | 249 | func subtractor (acc,idx) = { | |
250 | 250 | let result = (parseIntValue(has[idx]) - need[idx]) | |
251 | 251 | if ((0 > result)) | |
252 | 252 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
253 | 253 | else (acc :+ toString(result)) | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | if (shouldUseMat) | |
257 | 257 | then { | |
258 | 258 | let $l = [0, 1, 2, 3, 4, 5] | |
259 | 259 | let $s = size($l) | |
260 | 260 | let $acc0 = nil | |
261 | 261 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
262 | 262 | then $a | |
263 | 263 | else subtractor($a, $l[$i]) | |
264 | 264 | ||
265 | 265 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
266 | 266 | then $a | |
267 | 267 | else throw("List size exceeds 6") | |
268 | 268 | ||
269 | 269 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
270 | 270 | } | |
271 | 271 | else has | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
276 | 276 | then throw("Wrong proportions data") | |
277 | 277 | else { | |
278 | 278 | func updater (acc,i) = { | |
279 | 279 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
280 | 280 | if ((0 > result)) | |
281 | 281 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
282 | 282 | else (acc :+ toString(result)) | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | let r = { | |
286 | 286 | let $l = [0, 1, 2, 3, 4, 5] | |
287 | 287 | let $s = size($l) | |
288 | 288 | let $acc0 = nil | |
289 | 289 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
290 | 290 | then $a | |
291 | 291 | else updater($a, $l[$i]) | |
292 | 292 | ||
293 | 293 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
294 | 294 | then $a | |
295 | 295 | else throw("List size exceeds 6") | |
296 | 296 | ||
297 | 297 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
298 | 298 | } | |
299 | 299 | makeString(r, "_") | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
304 | 304 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
305 | 305 | updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign) | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | 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)] | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func numPiecesBySize (landSize) = match landSize { | |
313 | 313 | case _ => | |
314 | 314 | if (("S" == $match0)) | |
315 | 315 | then SSIZE | |
316 | 316 | else if (("M" == $match0)) | |
317 | 317 | then MSIZE | |
318 | 318 | else if (("L" == $match0)) | |
319 | 319 | then LSIZE | |
320 | 320 | else if (("XL" == $match0)) | |
321 | 321 | then XLSIZE | |
322 | 322 | else if (("XXL" == $match0)) | |
323 | 323 | then XXLSIZE | |
324 | 324 | else throw("Unknown land size") | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func subOneInList (aList,idx,amount) = { | |
329 | 329 | func subber (acc,i) = (acc :+ (if ((i == idx)) | |
330 | 330 | then toString((parseIntValue(aList[i]) - amount)) | |
331 | 331 | else aList[i])) | |
332 | 332 | ||
333 | 333 | let r = { | |
334 | 334 | let $l = [0, 1, 2, 3, 4, 5] | |
335 | 335 | let $s = size($l) | |
336 | 336 | let $acc0 = nil | |
337 | 337 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
338 | 338 | then $a | |
339 | 339 | else subber($a, $l[$i]) | |
340 | 340 | ||
341 | 341 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
342 | 342 | then $a | |
343 | 343 | else throw("List size exceeds 6") | |
344 | 344 | ||
345 | 345 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
346 | 346 | } | |
347 | 347 | makeString(r, "_") | |
348 | 348 | } | |
349 | 349 | ||
350 | 350 | ||
351 | 351 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
352 | 352 | func adder (acc,i) = { | |
353 | 353 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
354 | 354 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | let r = { | |
358 | 358 | let $l = [0, 1, 2, 3, 4, 5] | |
359 | 359 | let $s = size($l) | |
360 | 360 | let $acc0 = nil | |
361 | 361 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
362 | 362 | then $a | |
363 | 363 | else adder($a, $l[$i]) | |
364 | 364 | ||
365 | 365 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
366 | 366 | then $a | |
367 | 367 | else throw("List size exceeds 6") | |
368 | 368 | ||
369 | 369 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
370 | 370 | } | |
371 | 371 | makeString(r, "_") | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | func abs (x) = if ((x >= toBigInt(0))) | |
376 | 376 | then x | |
377 | 377 | else -(x) | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | 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]] | |
381 | 381 | ||
382 | 382 | func genChar (n,freqs) = { | |
383 | 383 | let rem = toInt((n % TWENTYX)) | |
384 | 384 | let letter = if ((freqs[0] > rem)) | |
385 | 385 | then "A" | |
386 | 386 | else if ((freqs[1] > rem)) | |
387 | 387 | then "B" | |
388 | 388 | else if ((freqs[2] > rem)) | |
389 | 389 | then "C" | |
390 | 390 | else if ((freqs[3] > rem)) | |
391 | 391 | then "D" | |
392 | 392 | else if ((freqs[4] > rem)) | |
393 | 393 | then "E" | |
394 | 394 | else "F" | |
395 | 395 | letter | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | 399 | func genTerrains (seed,continentIdx) = { | |
400 | 400 | let f = freq[continentIdx] | |
401 | 401 | 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)) | |
402 | 402 | ||
403 | 403 | let t = { | |
404 | 404 | let $l = [1, 2, 3, 4, 5] | |
405 | 405 | let $s = size($l) | |
406 | 406 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
407 | 407 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
408 | 408 | then $a | |
409 | 409 | else terrainGenerator($a, $l[$i]) | |
410 | 410 | ||
411 | 411 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
412 | 412 | then $a | |
413 | 413 | else throw("List size exceeds 5") | |
414 | 414 | ||
415 | 415 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
416 | 416 | } | |
417 | 417 | t._1 | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | func getBackpack (bpKey) = { | |
422 | 422 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
423 | 423 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
424 | 424 | then p[bpIdxRes] | |
425 | 425 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
426 | 426 | then p[bpIdxMat] | |
427 | 427 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
428 | 428 | } | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | func expeditionCommon (shouldUseMat,caller,txId,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
432 | 432 | then throw("signature does not match") | |
433 | 433 | else { | |
434 | 434 | let parts = split(toUtf8String(message), ";") | |
435 | 435 | let hp = split(split(parts[0], "|")[0], "_") | |
436 | 436 | let curHP = parseIntValue(hp[0]) | |
437 | 437 | let newHP = parseIntValue(hp[1]) | |
438 | 438 | let locAndTime = split(parts[1], ":") | |
439 | 439 | let targetLocation = split(locAndTime[0], "_") | |
440 | 440 | if ((targetLocation[1] != "E")) | |
441 | 441 | then throw("expedition target location type should be E") | |
442 | 442 | else { | |
443 | 443 | let time = parseIntValue(locAndTime[1]) | |
444 | 444 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
445 | 445 | then true | |
446 | 446 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
447 | 447 | then throw("signature outdated") | |
448 | 448 | else { | |
449 | 449 | let userAddr = toString(caller) | |
450 | 450 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
451 | 451 | let keyHealth = keyDuckHealth(duckAssetId) | |
452 | 452 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
453 | 453 | if ((oldFromState != curHP)) | |
454 | 454 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
455 | 455 | else if ((0 >= curHP)) | |
456 | 456 | then throw("You can't fly with zero health") | |
457 | 457 | else if ((0 >= newHP)) | |
458 | 458 | then $Tuple2(((if (!(shouldUseMat)) | |
459 | 459 | then [ScriptTransfer(caller, EXPUSDN, usdnAssetId)] | |
460 | 460 | else nil) :+ IntegerEntry(keyHealth, 0)), "") | |
461 | 461 | else { | |
462 | 462 | let bpKey = keyBackpackByDuck(duckAssetId) | |
463 | 463 | let currentPack = getBackpack(bpKey) | |
464 | 464 | let mList = split(currentPack[bpIdxMat], "_") | |
465 | 465 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_") | |
466 | 466 | let bigNum = abs(toBigInt(txId)) | |
467 | 467 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
468 | 468 | let landNum = toString(freeNum) | |
469 | 469 | let continentIdx = toInt((bigNum % FIVEX)) | |
470 | 470 | let terrains = genTerrains(bigNum, continentIdx) | |
471 | 471 | let continent = continents[continentIdx] | |
472 | 472 | let issue = Issue(keyNftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
473 | 473 | let assetId = calculateAssetId(issue) | |
474 | 474 | let id = toBase58String(assetId) | |
475 | 475 | $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) | |
476 | 476 | } | |
477 | 477 | } | |
478 | 478 | } | |
479 | 479 | } | |
480 | 480 | ||
481 | 481 | ||
482 | 482 | func applyBonuses (landAssetId,pieces) = { | |
483 | 483 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
484 | 484 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
485 | 485 | then pieces | |
486 | 486 | else 0) | |
487 | 487 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, infraLevel, 4)) + fraction(DAILYRESBYPIECE, (artPieces * 3), (pieces * 20))) | |
488 | 488 | } | |
489 | 489 | ||
490 | 490 | ||
491 | 491 | func checkClaimConditions (addr) = { | |
492 | 492 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
493 | 493 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
494 | 494 | let loc = split(value(curLocation), "_") | |
495 | 495 | if ((loc[locIdxType] != "L")) | |
496 | 496 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
497 | 497 | else { | |
498 | 498 | let landAssetId = loc[locIdxId] | |
499 | 499 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
500 | 500 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
501 | 501 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Your duck is on " + asset.name) + ", which is not staked")) | |
502 | 502 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
503 | 503 | if ((owner != addr)) | |
504 | 504 | then throw((LANDPREFIX + " is not yours")) | |
505 | 505 | else { | |
506 | 506 | let d = split(asset.description, "_") | |
507 | 507 | $Tuple4(duckAssetId, landAssetId, d, savedTime) | |
508 | 508 | } | |
509 | 509 | } | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | func claimResInternal (addr,amount) = if ((0 > amount)) | |
514 | 514 | then throw("Negative amount") | |
515 | 515 | else { | |
516 | 516 | let c = checkClaimConditions(addr) | |
517 | 517 | let landSize = c._3[recLandSize] | |
518 | 518 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
519 | 519 | let deltaTime = (lastBlock.timestamp - c._4) | |
520 | 520 | if ((0 > deltaTime)) | |
521 | 521 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
522 | 522 | else { | |
523 | 523 | let pieces = numPiecesBySize(landSize) | |
524 | 524 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
525 | 525 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
526 | 526 | if ((amount > availRes)) | |
527 | 527 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
528 | 528 | else { | |
529 | 529 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
530 | 530 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
531 | 531 | let bpKey = keyBackpackByDuck(c._1) | |
532 | 532 | let currentPack = getBackpack(bpKey) | |
533 | 533 | let currentRes = split(currentPack[bpIdxRes], "_") | |
534 | 534 | let bpRes = addRes(currentRes, terrainCounts, (deltaTime - newDeltaTime), (pieces / SSIZE), dailyProductionByPiece) | |
535 | 535 | $Tuple3([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]]) | |
536 | 536 | } | |
537 | 537 | } | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | 541 | func claimAll (addr,landAssetId,pieces) = { | |
542 | 542 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
543 | 543 | let savedTime = value(getInteger(timeKey)) | |
544 | 544 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
545 | 545 | claimResInternal(addr, availRes) | |
546 | 546 | } | |
547 | 547 | ||
548 | 548 | ||
549 | 549 | func upInfraCommon (shouldUseMat,caller,paymentAmount) = { | |
550 | 550 | let addr = toString(caller) | |
551 | 551 | let c = checkClaimConditions(addr) | |
552 | 552 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
553 | 553 | let infraKey = keyInfraLevelByAssetId(c._2) | |
554 | 554 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
555 | 555 | if ((curLevel >= 3)) | |
556 | 556 | then throw("Currently max infrastructure level = 3") | |
557 | 557 | else { | |
558 | 558 | let newLevel = (curLevel + 1) | |
559 | 559 | let cost = fraction(InfraUpgradeCostSUsdn, (pieces * newLevel), SSIZE) | |
560 | 560 | if (if (!(shouldUseMat)) | |
561 | 561 | then (paymentAmount != cost) | |
562 | 562 | else false) | |
563 | 563 | then throw(("Payment attached should be " + toString(cost))) | |
564 | 564 | else { | |
565 | 565 | let bpKey = keyBackpackByDuck(c._1) | |
566 | 566 | let currentPack = getBackpack(bpKey) | |
567 | 567 | let mList = split(currentPack[bpIdxMat], "_") | |
568 | 568 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)), "_") | |
569 | 569 | let claimResult = claimAll(addr, c._2, pieces) | |
570 | 570 | $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))] ++ claimResult._1), newLevel) | |
571 | 571 | } | |
572 | 572 | } | |
573 | 573 | } | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | func activatePresaleArt (addr) = { | |
577 | 577 | let c = checkClaimConditions(addr) | |
578 | 578 | let landAssetId = c._2 | |
579 | 579 | let activationKey = keyPresaleArtActivatedByAssetId(landAssetId) | |
580 | 580 | if (valueOrElse(getBoolean(activationKey), false)) | |
581 | 581 | then throw("Presale artifact is already activated") | |
582 | 582 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
583 | 583 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
584 | 584 | else { | |
585 | 585 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
586 | 586 | let claimResult = claimAll(addr, landAssetId, pieces) | |
587 | 587 | (((((claimResult._1 :+ BooleanEntry(activationKey, true)) :+ BooleanEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, addr), true)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId), pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) | |
588 | 588 | } | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = { | |
593 | 593 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
594 | 594 | func checkMerge (acc,landAssetId) = { | |
595 | 595 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
596 | 596 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
597 | 597 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
598 | 598 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
599 | 599 | if ((owner != addr)) | |
600 | 600 | then throw((LANDPREFIX + " is not yours")) | |
601 | 601 | else { | |
602 | 602 | let d = split(asset.description, "_") | |
603 | 603 | let continent = d[recContinent] | |
604 | 604 | if (if ((acc._3 != "")) | |
605 | 605 | then (acc._3 != continent) | |
606 | 606 | else false) | |
607 | 607 | then throw("Lands should be on the same continent to merge") | |
608 | 608 | else { | |
609 | 609 | let landSize = d[recLandSize] | |
610 | 610 | let sizesIn = acc._1 | |
611 | 611 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
612 | 612 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
613 | 613 | let pieces = numPiecesBySize(landSize) | |
614 | 614 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
615 | 615 | then pieces | |
616 | 616 | else 0)) | |
617 | 617 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
618 | 618 | let reqLevel = match landSize { | |
619 | 619 | case _ => | |
620 | 620 | if (("S" == $match0)) | |
621 | 621 | then 3 | |
622 | 622 | else if (("M" == $match0)) | |
623 | 623 | then 4 | |
624 | 624 | else if (("L" == $match0)) | |
625 | 625 | then 5 | |
626 | 626 | else if (("XL" == $match0)) | |
627 | 627 | then 6 | |
628 | 628 | else throw("Only S, M, L, XL can merge") | |
629 | 629 | } | |
630 | 630 | if ((infraLevel != reqLevel)) | |
631 | 631 | then throw("All lands should be maxed to merge") | |
632 | 632 | else { | |
633 | 633 | let landNum = d[recLandNum] | |
634 | 634 | let terrainCounts = countTerrains(d[recTerrains]) | |
635 | 635 | let deltaTime = (lastBlock.timestamp - savedTime) | |
636 | 636 | if ((0 > deltaTime)) | |
637 | 637 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
638 | 638 | else { | |
639 | 639 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
640 | 640 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, (pieces / SSIZE), dailyProductionByPiece) | |
641 | 641 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, (pieces / SSIZE), -1) | |
642 | 642 | $Tuple6(sizesOut, arts, continent, bpRes, (((((((((((((acc._5 :+ DeleteEntry(keyStakedTimeByAssetId(landAssetId))) :+ DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))) :+ DeleteEntry(keyLandToAssetId(landNum))) :+ DeleteEntry(keyNftName(landNum, landSize))) :+ DeleteEntry(keyLandAssetIdToOwner(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetId(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyPresaleArtActivatedByAssetId(landAssetId))) :+ DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ Burn(fromBase58String(landAssetId), 1)), props) | |
643 | 643 | } | |
644 | 644 | } | |
645 | 645 | } | |
646 | 646 | } | |
647 | 647 | } | |
648 | 648 | ||
649 | 649 | let bpKey = keyBackpackByDuck(duckAssetId) | |
650 | 650 | let currentPack = getBackpack(bpKey) | |
651 | 651 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
652 | 652 | let r = { | |
653 | 653 | let $l = landAssetIds | |
654 | 654 | let $s = size($l) | |
655 | 655 | let $acc0 = $Tuple6(formula, 0, "", currentPack[bpIdxRes], nil, propStr) | |
656 | 656 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
657 | 657 | then $a | |
658 | 658 | else checkMerge($a, $l[$i]) | |
659 | 659 | ||
660 | 660 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
661 | 661 | then $a | |
662 | 662 | else throw("List size exceeds 4") | |
663 | 663 | ||
664 | 664 | $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4) | |
665 | 665 | } | |
666 | 666 | let continent = r._3 | |
667 | 667 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
668 | 668 | let terrains = genTerrains(abs(toBigInt(txId)), continentIdx) | |
669 | 669 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
670 | 670 | let newLandNum = toString(freeNum) | |
671 | 671 | let issue = Issue(keyNftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
672 | 672 | let assetId = calculateAssetId(issue) | |
673 | 673 | let newLandAssetId = toBase58String(assetId) | |
674 | 674 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
675 | 675 | $Tuple2((((((((((((((r._5 :+ IntegerEntry(keyNextFreeLandNum(), (freeNum + 1))) :+ issue) :+ StringEntry(keyLandToAssetId(newLandNum), newLandAssetId)) :+ StringEntry(keyLandAssetIdToOwner(newLandAssetId), addr)) :+ StringEntry(keyLandNumToOwner(newLandNum), addr)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, newLandAssetId), r._2)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, newLandAssetId, addr), r._2)) :+ IntegerEntry(keyInfraLevelByAssetId(newLandAssetId), newLevel)) :+ IntegerEntry(keyInfraLevelByAssetIdAndOwner(newLandAssetId, addr), newLevel)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], r._4, newMat, currentPack[bpIdxProd]], ":"))) :+ StringEntry(keyResProportions(), r._6)) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
676 | 676 | } | |
677 | 677 | ||
678 | 678 | ||
679 | 679 | func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0) | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
683 | 683 | let cost = (InfraUpgradeCostSUsdn * 4) | |
684 | 684 | if (if (!(shouldUseMat)) | |
685 | 685 | then (paymentAmount != cost) | |
686 | 686 | else false) | |
687 | 687 | then throw(("Payment attached should be " + toString(cost))) | |
688 | 688 | else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4)) | |
689 | 689 | } | |
690 | 690 | ||
691 | 691 | ||
692 | 692 | func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
693 | 693 | let cost = (InfraUpgradeCostSUsdn * 47) | |
694 | 694 | if (if (!(shouldUseMat)) | |
695 | 695 | then (paymentAmount != cost) | |
696 | 696 | else false) | |
697 | 697 | then throw(("Payment attached should be " + toString(cost))) | |
698 | 698 | else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47)) | |
699 | 699 | } | |
700 | 700 | ||
701 | 701 | ||
702 | 702 | func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
703 | 703 | let cost = (InfraUpgradeCostSUsdn * 54) | |
704 | 704 | if (if (!(shouldUseMat)) | |
705 | 705 | then (paymentAmount != cost) | |
706 | 706 | else false) | |
707 | 707 | then throw(("Payment attached should be " + toString(cost))) | |
708 | 708 | else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54)) | |
709 | 709 | } | |
710 | 710 | ||
711 | 711 | ||
712 | 712 | func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = { | |
713 | 713 | let mergeResult = match size(landAssetIds) { | |
714 | 714 | case _ => | |
715 | 715 | if ((4 == $match0)) | |
716 | 716 | then s2m(addr, landAssetIds, txId) | |
717 | 717 | else if ((3 == $match0)) | |
718 | 718 | then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
719 | 719 | else if ((5 == $match0)) | |
720 | 720 | then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
721 | 721 | else if ((2 == $match0)) | |
722 | 722 | then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
723 | 723 | else throw("Unknown merge") | |
724 | 724 | } | |
725 | 725 | mergeResult | |
726 | 726 | } | |
727 | 727 | ||
728 | 728 | ||
729 | 729 | @Callable(i) | |
730 | 730 | func stakeLand () = if ((size(i.payments) != 1)) | |
731 | 731 | then throw("Exactly one payment required") | |
732 | 732 | else { | |
733 | 733 | let pmt = value(i.payments[0]) | |
734 | 734 | let assetId = value(pmt.assetId) | |
735 | 735 | let address = toString(i.caller) | |
736 | 736 | if ((pmt.amount != 1)) | |
737 | 737 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
738 | 738 | else { | |
739 | 739 | let asset = value(assetInfo(assetId)) | |
740 | 740 | if ((asset.issuer != this)) | |
741 | 741 | then throw("Unknown issuer of token") | |
742 | 742 | else if (!(contains(asset.name, LANDPREFIX))) | |
743 | 743 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
744 | 744 | else { | |
745 | 745 | let landNumSize = drop(asset.name, 4) | |
746 | 746 | let landNum = if (contains(landNumSize, "XXL")) | |
747 | 747 | then dropRight(landNumSize, 3) | |
748 | 748 | else if (contains(landNumSize, "XL")) | |
749 | 749 | then dropRight(landNumSize, 2) | |
750 | 750 | else dropRight(landNumSize, 1) | |
751 | 751 | if (!(isDefined(parseInt(landNum)))) | |
752 | 752 | then throw(("Cannot parse land number from " + asset.name)) | |
753 | 753 | else { | |
754 | 754 | let landAssetId = toBase58String(assetId) | |
755 | 755 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
756 | 756 | if (isDefined(getInteger(timeKey))) | |
757 | 757 | then throw((("NFT " + asset.name) + " is already staked")) | |
758 | 758 | else { | |
759 | 759 | let d = split(asset.description, "_") | |
760 | 760 | let terrainCounts = countTerrains(d[recTerrains]) | |
761 | 761 | let props = updateProportions(terrainCounts, (numPiecesBySize(d[recLandSize]) / SSIZE), 1) | |
762 | 762 | [IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), StringEntry(keyResProportions(), props)] | |
763 | 763 | } | |
764 | 764 | } | |
765 | 765 | } | |
766 | 766 | } | |
767 | 767 | } | |
768 | 768 | ||
769 | 769 | ||
770 | 770 | ||
771 | 771 | @Callable(i) | |
772 | 772 | func unstakeLand (landAssetIdStr) = if ((size(i.payments) != 0)) | |
773 | 773 | then throw("unstake doesn't require any payments") | |
774 | 774 | else { | |
775 | 775 | let addr = toString(i.caller) | |
776 | 776 | let c = checkClaimConditions(addr) | |
777 | 777 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
778 | 778 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
779 | 779 | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
780 | 780 | let claimResult = claimAll(addr, c._2, pieces) | |
781 | 781 | [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, ":"))] | |
782 | 782 | } | |
783 | 783 | ||
784 | 784 | ||
785 | 785 | ||
786 | 786 | @Callable(i) | |
787 | 787 | func stakeDuck () = if ((size(i.payments) != 1)) | |
788 | 788 | then throw("Exactly one payment required") | |
789 | 789 | else { | |
790 | 790 | let pmt = value(i.payments[0]) | |
791 | 791 | let assetId = value(pmt.assetId) | |
792 | 792 | let address = toString(i.caller) | |
793 | 793 | if ((pmt.amount != 1)) | |
794 | 794 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
795 | 795 | else { | |
796 | 796 | let asset = value(assetInfo(assetId)) | |
797 | 797 | if (if ((asset.issuer != incubatorAddr)) | |
798 | 798 | then (asset.issuer != breederAddr) | |
799 | 799 | else false) | |
800 | 800 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
801 | 801 | else if (!(contains(asset.name, DUCKPREFIX))) | |
802 | 802 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
803 | 803 | else { | |
804 | 804 | let assetIdStr = toBase58String(assetId) | |
805 | 805 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
806 | 806 | if (isDefined(getInteger(timeKey))) | |
807 | 807 | then throw((("NFT " + asset.name) + " is already staked")) | |
808 | 808 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
809 | 809 | then throw(("You already staked one duck: " + asset.name)) | |
810 | 810 | else { | |
811 | 811 | let locKey = keyDuckLocation(assetIdStr) | |
812 | 812 | let location = getString(locKey) | |
813 | 813 | let bpKey = keyBackpackByDuck(assetIdStr) | |
814 | 814 | let backpack = getString(bpKey) | |
815 | 815 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
816 | 816 | then nil | |
817 | 817 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
818 | 818 | then nil | |
819 | 819 | else ([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyDuckHealth(assetIdStr), 100)))))) | |
820 | 820 | } | |
821 | 821 | } | |
822 | 822 | } | |
823 | 823 | } | |
824 | 824 | ||
825 | 825 | ||
826 | 826 | ||
827 | 827 | @Callable(i) | |
828 | 828 | func unstakeDuck (assetIdStr) = if ((size(i.payments) != 0)) | |
829 | 829 | then throw("unstake doesn't require any payments") | |
830 | 830 | else { | |
831 | 831 | let assetId = fromBase58String(assetIdStr) | |
832 | 832 | let address = toString(i.caller) | |
833 | 833 | let asset = value(assetInfo(assetId)) | |
834 | 834 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
835 | 835 | if (!(isDefined(timeKey))) | |
836 | 836 | then throw((("NFT " + asset.name) + " is not staked")) | |
837 | 837 | else if (!(isDefined(keyStakedDuckByOwner(address)))) | |
838 | 838 | then throw((("The duck " + asset.name) + " is not staked")) | |
839 | 839 | else { | |
840 | 840 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
841 | 841 | if ((owner != address)) | |
842 | 842 | then throw("Staked NFT is not yours") | |
843 | 843 | else { | |
844 | 844 | let keyHealth = keyDuckHealth(assetIdStr) | |
845 | 845 | let health = getInteger(keyHealth) | |
846 | 846 | if ((health != 100)) | |
847 | 847 | then throw("Please heal your duck before unstaking") | |
848 | 848 | else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyHealth), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address))] | |
849 | 849 | } | |
850 | 850 | } | |
851 | 851 | } | |
852 | 852 | ||
853 | 853 | ||
854 | 854 | ||
855 | 855 | @Callable(i) | |
856 | 856 | func claimRes (amount,landAssetIdStr) = if ((size(i.payments) != 0)) | |
857 | 857 | then throw("claimRes doesn't require any payments") | |
858 | 858 | else { | |
859 | 859 | let addr = toString(i.originCaller) | |
860 | 860 | let result = claimResInternal(addr, amount) | |
861 | 861 | $Tuple2((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))), result._3[bpIdxRes]) | |
862 | 862 | } | |
863 | 863 | ||
864 | 864 | ||
865 | 865 | ||
866 | 866 | @Callable(i) | |
867 | 867 | func flight (message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
868 | 868 | then throw("signature does not match") | |
869 | 869 | else if ((size(i.payments) != 0)) | |
870 | 870 | then throw("flight doesn't require any payments") | |
871 | 871 | else { | |
872 | 872 | let parts = split(toUtf8String(message), ";") | |
873 | 873 | let hp = split(split(parts[0], "|")[0], "_") | |
874 | 874 | let curHP = parseIntValue(hp[0]) | |
875 | 875 | let newHP = parseIntValue(hp[1]) | |
876 | 876 | let newLocAndTime = split(parts[1], ":") | |
877 | 877 | let newLocation = newLocAndTime[0] | |
878 | 878 | let time = parseIntValue(newLocAndTime[1]) | |
879 | 879 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
880 | 880 | then true | |
881 | 881 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
882 | 882 | then throw("signature outdated") | |
883 | 883 | else { | |
884 | 884 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
885 | 885 | let keyHealth = keyDuckHealth(duckAssetId) | |
886 | 886 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
887 | 887 | if ((oldFromState != curHP)) | |
888 | 888 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
889 | 889 | else if ((0 >= curHP)) | |
890 | 890 | then throw("You can't fly with zero health") | |
891 | 891 | else { | |
892 | 892 | let locKey = keyDuckLocation(duckAssetId) | |
893 | 893 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
894 | 894 | if ((newLocation == curLocation)) | |
895 | 895 | then throw("You can't fly to the same location") | |
896 | 896 | else $Tuple2([StringEntry(locKey, if ((newHP > 0)) | |
897 | 897 | then newLocation | |
898 | 898 | else curLocation), IntegerEntry(keyHealth, newHP)], unit) | |
899 | 899 | } | |
900 | 900 | } | |
901 | 901 | } | |
902 | 902 | ||
903 | 903 | ||
904 | 904 | ||
905 | 905 | @Callable(i) | |
906 | 906 | func setHealth (health,duckAssetId) = if (if ((0 > health)) | |
907 | 907 | then true | |
908 | 908 | else (health > 100)) | |
909 | 909 | then throw("HP should be within 0..100") | |
910 | 910 | else [IntegerEntry(keyDuckHealth(duckAssetId), health)] | |
911 | 911 | ||
912 | 912 | ||
913 | 913 | ||
914 | 914 | @Callable(i) | |
915 | 915 | func heal (matType,amount) = if (if ((0 > matType)) | |
916 | 916 | then true | |
917 | 917 | else (matType >= NUMRES)) | |
918 | 918 | then throw(("Unknown material: " + toString(matType))) | |
919 | 919 | else if ((0 >= amount)) | |
920 | 920 | then throw(("Amount should be positive! " + toString(amount))) | |
921 | 921 | else { | |
922 | 922 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
923 | 923 | let keyHealth = keyDuckHealth(duckAssetId) | |
924 | 924 | let oldHealth = valueOrElse(getInteger(keyHealth), 100) | |
925 | 925 | if ((oldHealth >= 100)) | |
926 | 926 | then throw("HP should be < 100 to heal") | |
927 | 927 | else { | |
928 | 928 | let bpKey = keyBackpackByDuck(duckAssetId) | |
929 | 929 | let currentPack = getBackpack(bpKey) | |
930 | 930 | let mList = split(currentPack[bpIdxMat], "_") | |
931 | 931 | let currentAmount = parseIntValue(mList[matType]) | |
932 | 932 | let deltaHealth = min([(amount / HEALCOST), (100 - oldHealth)]) | |
933 | 933 | let spendAmount = (deltaHealth * HEALCOST) | |
934 | 934 | if ((spendAmount > currentAmount)) | |
935 | 935 | then throw(((((("You need " + toString(spendAmount)) + " of ") + matTypes[matType]) + " to heal, but you backpack contains ") + toString(currentAmount))) | |
936 | 936 | else { | |
937 | 937 | let newMat = subOneInList(mList, matType, spendAmount) | |
938 | 938 | [IntegerEntry(keyHealth, (oldHealth + deltaHealth)), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))] | |
939 | 939 | } | |
940 | 940 | } | |
941 | 941 | } | |
942 | 942 | ||
943 | 943 | ||
944 | 944 | ||
945 | 945 | @Callable(i) | |
946 | 946 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyAddr)) | |
947 | 947 | then throw("permission denied") | |
948 | 948 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
949 | 949 | ||
950 | 950 | ||
951 | 951 | ||
952 | 952 | @Callable(i) | |
953 | 953 | func expeditionBuy (message,sig) = if ((size(i.payments) != 1)) | |
954 | 954 | then throw("Exactly one payment required") | |
955 | 955 | else { | |
956 | 956 | let pmt = value(i.payments[0]) | |
957 | 957 | if ((pmt.assetId != usdnAssetId)) | |
958 | 958 | then throw("Allowed USDN payment only!") | |
959 | 959 | else if ((pmt.amount != EXPUSDN)) | |
960 | 960 | then throw(("Payment attached should be " + toString(EXPUSDN))) | |
961 | 961 | else { | |
962 | 962 | let result = expeditionCommon(false, i.caller, i.transactionId, message, sig) | |
963 | 963 | if ((result._2 == "")) | |
964 | 964 | then result | |
965 | 965 | else $Tuple2((result._1 :+ ScriptTransfer(economyAddr, pmt.amount, usdnAssetId)), result._2) | |
966 | 966 | } | |
967 | 967 | } | |
968 | 968 | ||
969 | 969 | ||
970 | 970 | ||
971 | 971 | @Callable(i) | |
972 | 972 | func expedition (message,sig) = if ((size(i.payments) != 0)) | |
973 | 973 | then throw("expedition doesn't require any payments") | |
974 | 974 | else expeditionCommon(true, i.caller, i.transactionId, message, sig) | |
975 | 975 | ||
976 | 976 | ||
977 | 977 | ||
978 | 978 | @Callable(i) | |
979 | 979 | func upgradeInfra (landAssetIdIgnored) = if ((size(i.payments) != 0)) | |
980 | 980 | then throw("Infrastructure upgrade doesn't require any payments") | |
981 | 981 | else upInfraCommon(true, i.caller, 0) | |
982 | 982 | ||
983 | 983 | ||
984 | 984 | ||
985 | 985 | @Callable(i) | |
986 | 986 | func upgradeInfraUsdn (landAssetIdIgnored) = if ((size(i.payments) != 1)) | |
987 | 987 | then throw("Exactly one payment required") | |
988 | 988 | else { | |
989 | 989 | let pmt = value(i.payments[0]) | |
990 | 990 | if ((pmt.assetId != usdnAssetId)) | |
991 | 991 | then throw("Allowed USDN payment only!") | |
992 | 992 | else { | |
993 | 993 | let result = upInfraCommon(false, i.caller, pmt.amount) | |
994 | 994 | $Tuple2((result._1 :+ ScriptTransfer(economyAddr, pmt.amount, usdnAssetId)), result._2) | |
995 | 995 | } | |
996 | 996 | } | |
997 | 997 | ||
998 | 998 | ||
999 | 999 | ||
1000 | 1000 | @Callable(i) | |
1001 | 1001 | func activateArtifact (artName) = if ((size(i.payments) != 0)) | |
1002 | 1002 | then throw("Artifact activation doesn't require any payments") | |
1003 | 1003 | else { | |
1004 | 1004 | let result = match artName { | |
1005 | 1005 | case _ => | |
1006 | 1006 | if (("PRESALE" == $match0)) | |
1007 | 1007 | then activatePresaleArt(toString(i.caller)) | |
1008 | 1008 | else throw("Unknown artifact") | |
1009 | 1009 | } | |
1010 | 1010 | result | |
1011 | 1011 | } | |
1012 | 1012 | ||
1013 | 1013 | ||
1014 | 1014 | ||
1015 | 1015 | @Callable(i) | |
1016 | - | func mergeLands (landAssetIds) = if ((i.caller != this)) | |
1017 | - | then throw("permission denied") | |
1018 | - | else if ((size(i.payments) != 0)) | |
1019 | - | then throw("Lands merging doesn't require any payments") | |
1020 | - | else mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1016 | + | func mergeLands (landAssetIds) = if ((size(i.payments) != 0)) | |
1017 | + | then throw("Lands merging doesn't require any payments") | |
1018 | + | else mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1021 | 1019 | ||
1022 | 1020 | ||
1023 | 1021 | ||
1024 | 1022 | @Callable(i) | |
1025 | - | func mergeLandsUsdn (landAssetIds) = if ((i.caller != this)) | |
1026 | - | then throw("permission denied") | |
1027 | - | else if ((size(i.payments) != 1)) | |
1028 | - | then throw("Exactly one payment required") | |
1029 | - | else { | |
1030 | - | let pmt = value(i.payments[0]) | |
1031 | - | if ((pmt.assetId != usdnAssetId)) | |
1032 | - | then throw("Allowed USDN payment only!") | |
1033 | - | else { | |
1034 | - | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1035 | - | $Tuple2((result._1 :+ ScriptTransfer(economyAddr, pmt.amount, usdnAssetId)), result._2) | |
1036 | - | } | |
1037 | - | } | |
1023 | + | func mergeLandsUsdn (landAssetIds) = if ((size(i.payments) != 1)) | |
1024 | + | then throw("Exactly one payment required") | |
1025 | + | else { | |
1026 | + | let pmt = value(i.payments[0]) | |
1027 | + | if ((pmt.assetId != usdnAssetId)) | |
1028 | + | then throw("Allowed USDN payment only!") | |
1029 | + | else { | |
1030 | + | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1031 | + | $Tuple2((result._1 :+ ScriptTransfer(economyAddr, pmt.amount, usdnAssetId)), result._2) | |
1032 | + | } | |
1033 | + | } | |
1034 | + | ||
1035 | + | ||
1036 | + | ||
1037 | + | @Callable(i) | |
1038 | + | func splitByProportionsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
1038 | 1039 | ||
1039 | 1040 |
github/deemru/w8io/169f3d6 143.55 ms ◑