tx · HhcmQtpDBkhfc4ABTYY5V24h5T9ui3dc6YjDKiUAoTsQ 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.05800000 Waves 2023.05.30 02:16 [2599918] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "HhcmQtpDBkhfc4ABTYY5V24h5T9ui3dc6YjDKiUAoTsQ", "fee": 5800000, "feeAssetId": null, "timestamp": 1685402137114, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "3iH777znCe3jo4YPjaU5ZkRUk4kZJQQ9cMM15SXpTwzmYb9ajin95box4rKzHHrEP4G2z7PyEyVRhagfVskmZeWY" ], "script": "base64:BgKZAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgQKAgEIEgQKAgEBEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgMKAQgSBQoDCAgIEgQKAggIEgMKAQESBQoDAQEIEgMKAQgSAwoBCJ4BAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgANaW5jdWJhdG9yQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM1BFa3RWdXgyUmhjaFNONjNEc0RvNGI0bXo0UXF6S1NlRHYDCQAAAgEBVAUHJG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6AF5G6nA=", "height": 2599918, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FthxRrbD4mpvwvvs5X7nEGjKx6yJXT5EhN1PbvSZLWJm Next: 4q6ouRod1hEvZwfysQaMo3k3GadujLiHv2mjwHv2cAhD Diff:
Old | New | Differences | |
---|---|---|---|
1783 | 1783 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1784 | 1784 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1785 | 1785 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1786 | - | let whStr = getWarehouse(whKey, landIndex, infraLevel) | |
1787 | - | let ordStr = valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:") | |
1788 | - | nil | |
1786 | + | let wh = getWarehouse(whKey, landIndex, infraLevel) | |
1787 | + | let loftL = asInt(invoke(economyContract, "recalcLockedVolumeREADONLY", [landAssetId, wh], nil)) | |
1788 | + | let loftO = getWarehouseOccupiedVol(wh) | |
1789 | + | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
1790 | + | let loftF = ((loftT - loftL) - loftO) | |
1791 | + | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
1792 | + | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
1789 | 1793 | } | |
1790 | 1794 | ||
1791 | 1795 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let chain = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let usdtAssetId = match chain { | |
7 | 7 | case _ => | |
8 | 8 | if ((base58'2W' == $match0)) | |
9 | 9 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
10 | 10 | else if ((base58'2T' == $match0)) | |
11 | 11 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let incubatorAddr = match chain { | |
16 | 16 | case _ => | |
17 | 17 | if ((base58'2W' == $match0)) | |
18 | 18 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
19 | 19 | else if ((base58'2T' == $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 ((base58'2W' == $match0)) | |
27 | 27 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
28 | 28 | else if ((base58'2T' == $match0)) | |
29 | 29 | then this | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let defaultRestAddressStr = match chain { | |
34 | 34 | case _ => | |
35 | 35 | if ((base58'2W' == $match0)) | |
36 | 36 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
37 | 37 | else if ((base58'2T' == $match0)) | |
38 | 38 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
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 = 39637 | |
71 | 71 | ||
72 | 72 | let WHMULTIPLIER = 10000000000 | |
73 | 73 | ||
74 | 74 | let RENAMINGCOST = 5000000 | |
75 | 75 | ||
76 | 76 | let MAXNAMELEN = 50 | |
77 | 77 | ||
78 | 78 | let InfraUpgradeCostS = match chain { | |
79 | 79 | case _ => | |
80 | 80 | if ((base58'2W' == $match0)) | |
81 | 81 | then 10000000000 | |
82 | 82 | else if ((base58'2T' == $match0)) | |
83 | 83 | then 100000000 | |
84 | 84 | else throw("Unknown chain") | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | let InfraUpgradeCostSUsdt = match chain { | |
88 | 88 | case _ => | |
89 | 89 | if ((base58'2W' == $match0)) | |
90 | 90 | then 10000000 | |
91 | 91 | else if ((base58'2T' == $match0)) | |
92 | 92 | then 10000000 | |
93 | 93 | else throw("Unknown chain") | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | let EXPMATERIALS = match chain { | |
97 | 97 | case _ => | |
98 | 98 | if ((base58'2W' == $match0)) | |
99 | 99 | then 252289527462 | |
100 | 100 | else if ((base58'2T' == $match0)) | |
101 | 101 | then 2522895274 | |
102 | 102 | else throw("Unknown chain") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | let EXPUSDT = match chain { | |
106 | 106 | case _ => | |
107 | 107 | if ((base58'2W' == $match0)) | |
108 | 108 | then 250000000 | |
109 | 109 | else if ((base58'2T' == $match0)) | |
110 | 110 | then 250000000 | |
111 | 111 | else throw("Unknown chain") | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | let SEP = "__" | |
115 | 115 | ||
116 | 116 | let MULT6 = 1000000 | |
117 | 117 | ||
118 | 118 | let MULT8 = 100000000 | |
119 | 119 | ||
120 | 120 | let FIVEX = toBigInt(5) | |
121 | 121 | ||
122 | 122 | let TWENTYX = toBigInt(20) | |
123 | 123 | ||
124 | 124 | let TWENTY2X = toBigInt((20 * 20)) | |
125 | 125 | ||
126 | 126 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
127 | 127 | ||
128 | 128 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
129 | 129 | ||
130 | 130 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
131 | 131 | ||
132 | 132 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
133 | 133 | ||
134 | 134 | let continents = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
135 | 135 | ||
136 | 136 | let ARTPRESALE = "PRESALE" | |
137 | 137 | ||
138 | 138 | let PRESALENUMLANDS = 500 | |
139 | 139 | ||
140 | 140 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | let IdxCfgStakingDapp = 1 | |
147 | 147 | ||
148 | 148 | let IdxCfgEconomyDapp = 2 | |
149 | 149 | ||
150 | 150 | let IdxCfgGovernanceDapp = 3 | |
151 | 151 | ||
152 | 152 | func keyRestCfg () = "%s__restConfig" | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyRestAddress () = "%s__restAddr" | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
165 | 165 | ||
166 | 166 | let restCfg = readRestCfgOrFail(restContract) | |
167 | 167 | ||
168 | 168 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
169 | 169 | ||
170 | 170 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
171 | 171 | ||
172 | 172 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func keyNextFreeLandNum () = "nextLandNum" | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func keyLandCustomNameToAssetId (name) = ("landByCustomName_" + name) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func keyPresaleArtActivatedByAssetIdAndOwner (assetId,ownerAddr) = ((("presaleArtActivatedByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_") | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func keyOldies () = "oldiesList" | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func keyResProportions () = "resTypesProportions" | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func keyBlocked () = "contractsBlocked" | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | let recLandNum = 0 | |
272 | 272 | ||
273 | 273 | let recLandSize = 1 | |
274 | 274 | ||
275 | 275 | let recTerrains = 2 | |
276 | 276 | ||
277 | 277 | let recContinent = 3 | |
278 | 278 | ||
279 | 279 | let locIdxContinent = 0 | |
280 | 280 | ||
281 | 281 | let locIdxType = 1 | |
282 | 282 | ||
283 | 283 | let locIdxId = 2 | |
284 | 284 | ||
285 | 285 | let bpIdxLevel = 0 | |
286 | 286 | ||
287 | 287 | let bpIdxRes = 1 | |
288 | 288 | ||
289 | 289 | let bpIdxMat = 2 | |
290 | 290 | ||
291 | 291 | let bpIdxProd = 3 | |
292 | 292 | ||
293 | 293 | let whIdxLevels = 0 | |
294 | 294 | ||
295 | 295 | let whIdxRes = 1 | |
296 | 296 | ||
297 | 297 | let whIdxMat = 2 | |
298 | 298 | ||
299 | 299 | let whIdxProd = 3 | |
300 | 300 | ||
301 | 301 | let whIdxLOFT = 4 | |
302 | 302 | ||
303 | 303 | let volLocked = 0 | |
304 | 304 | ||
305 | 305 | let volOccupied = 1 | |
306 | 306 | ||
307 | 307 | let volFree = 2 | |
308 | 308 | ||
309 | 309 | let volTotal = 3 | |
310 | 310 | ||
311 | 311 | let claimModeWh = 0 | |
312 | 312 | ||
313 | 313 | let claimModeDuck = 1 | |
314 | 314 | ||
315 | 315 | let claimModeWhThenDuck = 2 | |
316 | 316 | ||
317 | 317 | let flHealth = 0 | |
318 | 318 | ||
319 | 319 | let flMission = 1 | |
320 | 320 | ||
321 | 321 | let flObstacles = 2 | |
322 | 322 | ||
323 | 323 | let flWinds = 3 | |
324 | 324 | ||
325 | 325 | let flPath = 4 | |
326 | 326 | ||
327 | 327 | let flTimestamp = 5 | |
328 | 328 | ||
329 | 329 | let flBonus = 6 | |
330 | 330 | ||
331 | 331 | let productPackages = [10, 10, 10, 100, 100, 100, 10, 10, 10, 100, 100, 100, 10, 10, 10] | |
332 | 332 | ||
333 | 333 | func nftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | func asString (v) = match v { | |
337 | 337 | case s: String => | |
338 | 338 | s | |
339 | 339 | case _ => | |
340 | 340 | throw("fail to cast into String") | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func asInt (v) = match v { | |
345 | 345 | case n: Int => | |
346 | 346 | n | |
347 | 347 | case _ => | |
348 | 348 | throw("fail to cast into Int") | |
349 | 349 | } | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | func distributeByWeights (total,weights) = { | |
353 | 353 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
354 | 354 | if ((0 >= sum)) | |
355 | 355 | then throw("Zero weights sum") | |
356 | 356 | else { | |
357 | 357 | let norm6 = fraction(total, MULT6, sum) | |
358 | 358 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
359 | 359 | ||
360 | 360 | let $l = weights | |
361 | 361 | let $s = size($l) | |
362 | 362 | let $acc0 = nil | |
363 | 363 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
364 | 364 | then $a | |
365 | 365 | else normalizer($a, $l[$i]) | |
366 | 366 | ||
367 | 367 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
368 | 368 | then $a | |
369 | 369 | else throw("List size exceeds 6") | |
370 | 370 | ||
371 | 371 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
372 | 372 | } | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func getNeededMaterials (total) = { | |
377 | 377 | let props = split(value(getString(keyResProportions())), "_") | |
378 | 378 | if ((size(props) != NUMRES)) | |
379 | 379 | then throw("Wrong proportions data") | |
380 | 380 | else { | |
381 | 381 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
382 | 382 | distributeByWeights(total, r) | |
383 | 383 | } | |
384 | 384 | } | |
385 | 385 | ||
386 | 386 | ||
387 | 387 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
388 | 388 | let need = getNeededMaterials(totalNeed) | |
389 | 389 | func subtractor (acc,idx) = { | |
390 | 390 | let result = (parseIntValue(has[idx]) - need[idx]) | |
391 | 391 | if ((0 > result)) | |
392 | 392 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
393 | 393 | else (acc :+ toString(result)) | |
394 | 394 | } | |
395 | 395 | ||
396 | 396 | if (shouldUseMat) | |
397 | 397 | then { | |
398 | 398 | let $l = [0, 1, 2, 3, 4, 5] | |
399 | 399 | let $s = size($l) | |
400 | 400 | let $acc0 = nil | |
401 | 401 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
402 | 402 | then $a | |
403 | 403 | else subtractor($a, $l[$i]) | |
404 | 404 | ||
405 | 405 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
406 | 406 | then $a | |
407 | 407 | else throw("List size exceeds 6") | |
408 | 408 | ||
409 | 409 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
410 | 410 | } | |
411 | 411 | else has | |
412 | 412 | } | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
416 | 416 | then throw("Wrong proportions data") | |
417 | 417 | else { | |
418 | 418 | func updater (acc,i) = { | |
419 | 419 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
420 | 420 | if ((0 > result)) | |
421 | 421 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
422 | 422 | else (acc :+ toString(result)) | |
423 | 423 | } | |
424 | 424 | ||
425 | 425 | let r = { | |
426 | 426 | let $l = [0, 1, 2, 3, 4, 5] | |
427 | 427 | let $s = size($l) | |
428 | 428 | let $acc0 = nil | |
429 | 429 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
430 | 430 | then $a | |
431 | 431 | else updater($a, $l[$i]) | |
432 | 432 | ||
433 | 433 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
434 | 434 | then $a | |
435 | 435 | else throw("List size exceeds 6") | |
436 | 436 | ||
437 | 437 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
438 | 438 | } | |
439 | 439 | makeString(r, "_") | |
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | 443 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
444 | 444 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
445 | 445 | updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign) | |
446 | 446 | } | |
447 | 447 | ||
448 | 448 | ||
449 | 449 | 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)] | |
450 | 450 | ||
451 | 451 | ||
452 | 452 | func numPiecesBySize (landSize) = match landSize { | |
453 | 453 | case _ => | |
454 | 454 | if (("S" == $match0)) | |
455 | 455 | then SSIZE | |
456 | 456 | else if (("M" == $match0)) | |
457 | 457 | then MSIZE | |
458 | 458 | else if (("L" == $match0)) | |
459 | 459 | then LSIZE | |
460 | 460 | else if (("XL" == $match0)) | |
461 | 461 | then XLSIZE | |
462 | 462 | else if (("XXL" == $match0)) | |
463 | 463 | then XXLSIZE | |
464 | 464 | else throw("Unknown land size") | |
465 | 465 | } | |
466 | 466 | ||
467 | 467 | ||
468 | 468 | func subOneInList (aList,idx,amount) = { | |
469 | 469 | func subber (acc,i) = (acc :+ (if ((i == idx)) | |
470 | 470 | then toString((parseIntValue(aList[i]) - amount)) | |
471 | 471 | else aList[i])) | |
472 | 472 | ||
473 | 473 | let r = { | |
474 | 474 | let $l = [0, 1, 2, 3, 4, 5] | |
475 | 475 | let $s = size($l) | |
476 | 476 | let $acc0 = nil | |
477 | 477 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
478 | 478 | then $a | |
479 | 479 | else subber($a, $l[$i]) | |
480 | 480 | ||
481 | 481 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
482 | 482 | then $a | |
483 | 483 | else throw("List size exceeds 6") | |
484 | 484 | ||
485 | 485 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
486 | 486 | } | |
487 | 487 | makeString(r, "_") | |
488 | 488 | } | |
489 | 489 | ||
490 | 490 | ||
491 | 491 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
492 | 492 | func adder (acc,i) = { | |
493 | 493 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
494 | 494 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
495 | 495 | } | |
496 | 496 | ||
497 | 497 | let r = { | |
498 | 498 | let $l = [0, 1, 2, 3, 4, 5] | |
499 | 499 | let $s = size($l) | |
500 | 500 | let $acc0 = nil | |
501 | 501 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
502 | 502 | then $a | |
503 | 503 | else adder($a, $l[$i]) | |
504 | 504 | ||
505 | 505 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
506 | 506 | then $a | |
507 | 507 | else throw("List size exceeds 6") | |
508 | 508 | ||
509 | 509 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
510 | 510 | } | |
511 | 511 | makeString(r, "_") | |
512 | 512 | } | |
513 | 513 | ||
514 | 514 | ||
515 | 515 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
516 | 516 | func adder (acc,i) = { | |
517 | 517 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
518 | 518 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
519 | 519 | } | |
520 | 520 | ||
521 | 521 | let $l = [0, 1, 2, 3, 4, 5] | |
522 | 522 | let $s = size($l) | |
523 | 523 | let $acc0 = $Tuple2(nil, 0) | |
524 | 524 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
525 | 525 | then $a | |
526 | 526 | else adder($a, $l[$i]) | |
527 | 527 | ||
528 | 528 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
529 | 529 | then $a | |
530 | 530 | else throw("List size exceeds 6") | |
531 | 531 | ||
532 | 532 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
533 | 533 | } | |
534 | 534 | ||
535 | 535 | ||
536 | 536 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
537 | 537 | let resListToClaim = resToClaim._1 | |
538 | 538 | let resAmToClaim = resToClaim._2 | |
539 | 539 | if ((resAmToClaim == 0)) | |
540 | 540 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
541 | 541 | else if ((whSpaceLeft >= resAmToClaim)) | |
542 | 542 | then { | |
543 | 543 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
544 | 544 | ||
545 | 545 | let r = { | |
546 | 546 | let $l = [0, 1, 2, 3, 4, 5] | |
547 | 547 | let $s = size($l) | |
548 | 548 | let $acc0 = nil | |
549 | 549 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
550 | 550 | then $a | |
551 | 551 | else addLists($a, $l[$i]) | |
552 | 552 | ||
553 | 553 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
554 | 554 | then $a | |
555 | 555 | else throw("List size exceeds 6") | |
556 | 556 | ||
557 | 557 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
558 | 558 | } | |
559 | 559 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
560 | 560 | } | |
561 | 561 | else { | |
562 | 562 | func addPartLists (acc,i) = { | |
563 | 563 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
564 | 564 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
565 | 565 | } | |
566 | 566 | ||
567 | 567 | let r = { | |
568 | 568 | let $l = [0, 1, 2, 3, 4, 5] | |
569 | 569 | let $s = size($l) | |
570 | 570 | let $acc0 = $Tuple2(nil, nil) | |
571 | 571 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
572 | 572 | then $a | |
573 | 573 | else addPartLists($a, $l[$i]) | |
574 | 574 | ||
575 | 575 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
576 | 576 | then $a | |
577 | 577 | else throw("List size exceeds 6") | |
578 | 578 | ||
579 | 579 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
580 | 580 | } | |
581 | 581 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
582 | 582 | } | |
583 | 583 | } | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | func abs (x) = if ((x >= toBigInt(0))) | |
587 | 587 | then x | |
588 | 588 | else -(x) | |
589 | 589 | ||
590 | 590 | ||
591 | 591 | 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]] | |
592 | 592 | ||
593 | 593 | func genChar (n,freqs) = { | |
594 | 594 | let rem = toInt((n % TWENTYX)) | |
595 | 595 | let letter = if ((freqs[0] > rem)) | |
596 | 596 | then "A" | |
597 | 597 | else if ((freqs[1] > rem)) | |
598 | 598 | then "B" | |
599 | 599 | else if ((freqs[2] > rem)) | |
600 | 600 | then "C" | |
601 | 601 | else if ((freqs[3] > rem)) | |
602 | 602 | then "D" | |
603 | 603 | else if ((freqs[4] > rem)) | |
604 | 604 | then "E" | |
605 | 605 | else "F" | |
606 | 606 | letter | |
607 | 607 | } | |
608 | 608 | ||
609 | 609 | ||
610 | 610 | func genTerrains (seed,continentIdx) = { | |
611 | 611 | let f = freq[continentIdx] | |
612 | 612 | 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)) | |
613 | 613 | ||
614 | 614 | let t = { | |
615 | 615 | let $l = [1, 2, 3, 4, 5] | |
616 | 616 | let $s = size($l) | |
617 | 617 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
618 | 618 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
619 | 619 | then $a | |
620 | 620 | else terrainGenerator($a, $l[$i]) | |
621 | 621 | ||
622 | 622 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
623 | 623 | then $a | |
624 | 624 | else throw("List size exceeds 5") | |
625 | 625 | ||
626 | 626 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
627 | 627 | } | |
628 | 628 | t._1 | |
629 | 629 | } | |
630 | 630 | ||
631 | 631 | ||
632 | 632 | func getBackpack (bpKey) = { | |
633 | 633 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
634 | 634 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
635 | 635 | then p[bpIdxRes] | |
636 | 636 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
637 | 637 | then p[bpIdxMat] | |
638 | 638 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
639 | 639 | } | |
640 | 640 | ||
641 | 641 | ||
642 | 642 | func getWarehouseTotalVolume (volPrefix) = { | |
643 | 643 | let parts = split(volPrefix, "_") | |
644 | 644 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
645 | 645 | } | |
646 | 646 | ||
647 | 647 | ||
648 | 648 | func getWarehouseOccupiedVol (currentWh) = { | |
649 | 649 | let goods = currentWh[whIdxProd] | |
650 | 650 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
651 | 651 | ||
652 | 652 | func sumProd (acc,item) = { | |
653 | 653 | let idx = acc._1 | |
654 | 654 | let pkgSize = productPackages[idx] | |
655 | 655 | let pkgs = (((parseIntValue(item) + pkgSize) - 1) / pkgSize) | |
656 | 656 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
657 | 657 | } | |
658 | 658 | ||
659 | 659 | let whResVol = { | |
660 | 660 | let $l = split(currentWh[whIdxRes], "_") | |
661 | 661 | let $s = size($l) | |
662 | 662 | let $acc0 = 0 | |
663 | 663 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
664 | 664 | then $a | |
665 | 665 | else sumResMat($a, $l[$i]) | |
666 | 666 | ||
667 | 667 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
668 | 668 | then $a | |
669 | 669 | else throw("List size exceeds 6") | |
670 | 670 | ||
671 | 671 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
672 | 672 | } | |
673 | 673 | let whMatVol = { | |
674 | 674 | let $l = split(currentWh[whIdxMat], "_") | |
675 | 675 | let $s = size($l) | |
676 | 676 | let $acc0 = 0 | |
677 | 677 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
678 | 678 | then $a | |
679 | 679 | else sumResMat($a, $l[$i]) | |
680 | 680 | ||
681 | 681 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
682 | 682 | then $a | |
683 | 683 | else throw("List size exceeds 6") | |
684 | 684 | ||
685 | 685 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
686 | 686 | } | |
687 | 687 | let whGoodsVol = if ((goods == "")) | |
688 | 688 | then 0 | |
689 | 689 | else ( let $l = split_4C(goods, "_") | |
690 | 690 | let $s = size($l) | |
691 | 691 | let $acc0 = $Tuple2(0, 0) | |
692 | 692 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
693 | 693 | then $a | |
694 | 694 | else sumProd($a, $l[$i]) | |
695 | 695 | ||
696 | 696 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
697 | 697 | then $a | |
698 | 698 | else throw("List size exceeds 50") | |
699 | 699 | ||
700 | 700 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._2 | |
701 | 701 | ((whResVol + whMatVol) + whGoodsVol) | |
702 | 702 | } | |
703 | 703 | ||
704 | 704 | ||
705 | 705 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
706 | 706 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
707 | 707 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
708 | 708 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
709 | 709 | let wh = split_4C(whStr, ":") | |
710 | 710 | let whOccupied = getWarehouseOccupiedVol(wh) | |
711 | 711 | let whLoft = if ((5 > size(wh))) | |
712 | 712 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
713 | 713 | else { | |
714 | 714 | let loft = split(wh[whIdxLOFT], "_") | |
715 | 715 | let whLocked = parseIntValue(loft[volLocked]) | |
716 | 716 | let occ = if ((size(loft) > 1)) | |
717 | 717 | then parseIntValue(loft[volOccupied]) | |
718 | 718 | else whOccupied | |
719 | 719 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
720 | 720 | } | |
721 | 721 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
722 | 722 | then wh[whIdxRes] | |
723 | 723 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
724 | 724 | then wh[whIdxMat] | |
725 | 725 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
726 | 726 | } | |
727 | 727 | ||
728 | 728 | ||
729 | 729 | func getWarehouseSpaceLeft (currentWh) = { | |
730 | 730 | let occupiedVol = getWarehouseOccupiedVol(currentWh) | |
731 | 731 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
732 | 732 | ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol) | |
733 | 733 | } | |
734 | 734 | ||
735 | 735 | ||
736 | 736 | func toVolume (amount,pkgSize) = { | |
737 | 737 | let pkgs = if ((amount >= 0)) | |
738 | 738 | then (((amount + pkgSize) - 1) / pkgSize) | |
739 | 739 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
740 | 740 | (pkgs * MULT8) | |
741 | 741 | } | |
742 | 742 | ||
743 | 743 | ||
744 | 744 | func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3)) | |
745 | 745 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
746 | 746 | else { | |
747 | 747 | let resParts = split(cargoParts[0], "_") | |
748 | 748 | let matParts = split(cargoParts[1], "_") | |
749 | 749 | let prodParts = if ((cargoParts[2] == "")) | |
750 | 750 | then nil | |
751 | 751 | else split(cargoParts[2], "_") | |
752 | 752 | if ((size(resParts) != NUMRES)) | |
753 | 753 | then throw("All 6 resources should be passed") | |
754 | 754 | else if ((size(matParts) != NUMRES)) | |
755 | 755 | then throw("All 6 materials should be passed") | |
756 | 756 | else { | |
757 | 757 | let whSpaceLeft = getWarehouseSpaceLeft(currentWh) | |
758 | 758 | let currWhRes = split(currentWh[whIdxRes], "_") | |
759 | 759 | let currWhMat = split(currentWh[whIdxMat], "_") | |
760 | 760 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
761 | 761 | then nil | |
762 | 762 | else split(currentWh[whIdxProd], "_") | |
763 | 763 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
764 | 764 | let currentPackMat = split(currentPack[bpIdxMat], "_") | |
765 | 765 | let currentPackProd = if ((currentPack[bpIdxProd] == "")) | |
766 | 766 | then nil | |
767 | 767 | else split(currentPack[bpIdxProd], "_") | |
768 | 768 | func mvR (acc,item) = { | |
769 | 769 | let i = acc._1 | |
770 | 770 | let am = parseIntValue(item) | |
771 | 771 | let whr = parseIntValue(currWhRes[i]) | |
772 | 772 | let bpr = parseIntValue(currentPackRes[i]) | |
773 | 773 | if ((am == 0)) | |
774 | 774 | then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4) | |
775 | 775 | else if ((am > 0)) | |
776 | 776 | then if ((am > bpr)) | |
777 | 777 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available")) | |
778 | 778 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
779 | 779 | else if ((-(am) > whr)) | |
780 | 780 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available")) | |
781 | 781 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
782 | 782 | } | |
783 | 783 | ||
784 | 784 | let r = { | |
785 | 785 | let $l = resParts | |
786 | 786 | let $s = size($l) | |
787 | 787 | let $acc0 = $Tuple4(0, nil, nil, 0) | |
788 | 788 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
789 | 789 | then $a | |
790 | 790 | else mvR($a, $l[$i]) | |
791 | 791 | ||
792 | 792 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
793 | 793 | then $a | |
794 | 794 | else throw("List size exceeds 6") | |
795 | 795 | ||
796 | 796 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
797 | 797 | } | |
798 | 798 | func mvM (acc,item) = { | |
799 | 799 | let i = acc._1 | |
800 | 800 | let am = parseIntValue(item) | |
801 | 801 | let whm = parseIntValue(currWhMat[i]) | |
802 | 802 | let bpm = parseIntValue(currentPackMat[i]) | |
803 | 803 | if ((am == 0)) | |
804 | 804 | then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4) | |
805 | 805 | else if ((am > 0)) | |
806 | 806 | then if ((am > bpm)) | |
807 | 807 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available")) | |
808 | 808 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
809 | 809 | else if ((-(am) > whm)) | |
810 | 810 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available")) | |
811 | 811 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
812 | 812 | } | |
813 | 813 | ||
814 | 814 | let m = { | |
815 | 815 | let $l = matParts | |
816 | 816 | let $s = size($l) | |
817 | 817 | let $acc0 = $Tuple4(0, nil, nil, r._4) | |
818 | 818 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
819 | 819 | then $a | |
820 | 820 | else mvM($a, $l[$i]) | |
821 | 821 | ||
822 | 822 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
823 | 823 | then $a | |
824 | 824 | else throw("List size exceeds 6") | |
825 | 825 | ||
826 | 826 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
827 | 827 | } | |
828 | 828 | func mvP (acc,item) = { | |
829 | 829 | let i = acc._1 | |
830 | 830 | let pkgSize = productPackages[i] | |
831 | 831 | let am = parseIntValue(item) | |
832 | 832 | let whp = if ((size(currWhProd) > i)) | |
833 | 833 | then parseIntValue(currWhProd[i]) | |
834 | 834 | else 0 | |
835 | 835 | let bpp = if ((size(currentPackProd) > i)) | |
836 | 836 | then parseIntValue(currentPackProd[i]) | |
837 | 837 | else 0 | |
838 | 838 | if ((am == 0)) | |
839 | 839 | then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4) | |
840 | 840 | else if ((am > 0)) | |
841 | 841 | then if ((am > bpp)) | |
842 | 842 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available")) | |
843 | 843 | else { | |
844 | 844 | let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize)) | |
845 | 845 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
846 | 846 | } | |
847 | 847 | else if ((-(am) > whp)) | |
848 | 848 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available")) | |
849 | 849 | else { | |
850 | 850 | let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize)) | |
851 | 851 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
852 | 852 | } | |
853 | 853 | } | |
854 | 854 | ||
855 | 855 | let p = if ((size(prodParts) != 0)) | |
856 | 856 | then { | |
857 | 857 | let $l = prodParts | |
858 | 858 | let $s = size($l) | |
859 | 859 | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
860 | 860 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
861 | 861 | then $a | |
862 | 862 | else mvP($a, $l[$i]) | |
863 | 863 | ||
864 | 864 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
865 | 865 | then $a | |
866 | 866 | else throw("List size exceeds 50") | |
867 | 867 | ||
868 | 868 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
869 | 869 | } | |
870 | 870 | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
871 | 871 | let volSaldo = p._4 | |
872 | 872 | if ((volSaldo > whSpaceLeft)) | |
873 | 873 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
874 | 874 | else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo) | |
875 | 875 | } | |
876 | 876 | } | |
877 | 877 | ||
878 | 878 | ||
879 | 879 | func expeditionInternal (caller,txId) = { | |
880 | 880 | let userAddr = toString(caller) | |
881 | 881 | let bigNum = abs(toBigInt(txId)) | |
882 | 882 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
883 | 883 | let landNum = toString(freeNum) | |
884 | 884 | let continentIdx = toInt((bigNum % FIVEX)) | |
885 | 885 | let terrains = genTerrains(bigNum, continentIdx) | |
886 | 886 | let continent = continents[continentIdx] | |
887 | 887 | let issue = Issue(nftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
888 | 888 | let assetId = calculateAssetId(issue) | |
889 | 889 | let id = toBase58String(assetId) | |
890 | 890 | $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)], $Tuple2(id, continent)) | |
891 | 891 | } | |
892 | 892 | ||
893 | 893 | ||
894 | 894 | func expeditionCommon (shouldUseMat,caller,txId,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
895 | 895 | then throw("signature does not match") | |
896 | 896 | else { | |
897 | 897 | let parts = split(toUtf8String(message), ";") | |
898 | 898 | let hp = split(split(parts[0], "|")[0], "_") | |
899 | 899 | let curHP = parseIntValue(hp[0]) | |
900 | 900 | let newHP = parseIntValue(hp[1]) | |
901 | 901 | let locAndTime = split(parts[1], ":") | |
902 | 902 | let targetLocation = split(locAndTime[0], "_") | |
903 | 903 | if ((targetLocation[1] != "E")) | |
904 | 904 | then throw("expedition target location type should be E") | |
905 | 905 | else { | |
906 | 906 | let time = parseIntValue(locAndTime[1]) | |
907 | 907 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
908 | 908 | then true | |
909 | 909 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
910 | 910 | then throw("signature outdated") | |
911 | 911 | else { | |
912 | 912 | let userAddr = toString(caller) | |
913 | 913 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
914 | 914 | let keyHealth = keyDuckHealth(duckAssetId) | |
915 | 915 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
916 | 916 | if ((oldFromState != curHP)) | |
917 | 917 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
918 | 918 | else if ((0 >= curHP)) | |
919 | 919 | then throw("You can't fly with zero health") | |
920 | 920 | else if ((0 >= newHP)) | |
921 | 921 | then $Tuple2(((if (!(shouldUseMat)) | |
922 | 922 | then [ScriptTransfer(caller, EXPUSDT, usdtAssetId)] | |
923 | 923 | else nil) :+ IntegerEntry(keyHealth, 0)), "") | |
924 | 924 | else { | |
925 | 925 | let bpKey = keyBackpackByDuck(duckAssetId) | |
926 | 926 | let currentPack = getBackpack(bpKey) | |
927 | 927 | let mList = split(currentPack[bpIdxMat], "_") | |
928 | 928 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_") | |
929 | 929 | let e = expeditionInternal(caller, txId) | |
930 | 930 | let id = e._2._1 | |
931 | 931 | $Tuple2((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, newHP)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id) | |
932 | 932 | } | |
933 | 933 | } | |
934 | 934 | } | |
935 | 935 | } | |
936 | 936 | ||
937 | 937 | ||
938 | 938 | func applyBonuses (landAssetId,pieces) = { | |
939 | 939 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
940 | 940 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
941 | 941 | then pieces | |
942 | 942 | else 0) | |
943 | 943 | let add6 = (infraLevel / 6) | |
944 | 944 | let add7 = (infraLevel / 7) | |
945 | 945 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
946 | 946 | } | |
947 | 947 | ||
948 | 948 | ||
949 | 949 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
950 | 950 | let $t02687927418 = if ((claimMode == claimModeWh)) | |
951 | 951 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
952 | 952 | else { | |
953 | 953 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
954 | 954 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
955 | 955 | let loc = split(value(curLocation), "_") | |
956 | 956 | if ((loc[locIdxType] != "L")) | |
957 | 957 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
958 | 958 | else $Tuple2(loc[locIdxId], duckAssetId) | |
959 | 959 | } | |
960 | 960 | let landAssetId = $t02687927418._1 | |
961 | 961 | let duckId = $t02687927418._2 | |
962 | 962 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
963 | 963 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
964 | 964 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
965 | 965 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
966 | 966 | if ((owner != addr)) | |
967 | 967 | then throw((LANDPREFIX + " is not yours")) | |
968 | 968 | else { | |
969 | 969 | let d = split(asset.description, "_") | |
970 | 970 | $Tuple4(duckId, landAssetId, d, savedTime) | |
971 | 971 | } | |
972 | 972 | } | |
973 | 973 | ||
974 | 974 | ||
975 | 975 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
976 | 976 | then throw("Negative amount") | |
977 | 977 | else { | |
978 | 978 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
979 | 979 | let landSize = c._3[recLandSize] | |
980 | 980 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
981 | 981 | let deltaTime = (lastBlock.timestamp - c._4) | |
982 | 982 | if ((0 > deltaTime)) | |
983 | 983 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
984 | 984 | else { | |
985 | 985 | let pieces = numPiecesBySize(landSize) | |
986 | 986 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
987 | 987 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
988 | 988 | if ((amount > availRes)) | |
989 | 989 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
990 | 990 | else { | |
991 | 991 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
992 | 992 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
993 | 993 | let landIndex = (pieces / SSIZE) | |
994 | 994 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
995 | 995 | let whKey = keyWarehouseByLand(c._2) | |
996 | 996 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
997 | 997 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
998 | 998 | let loft = split(currentWh[whIdxLOFT], "_") | |
999 | 999 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1000 | 1000 | if (if ((claimMode == claimModeWh)) | |
1001 | 1001 | then (amount > whSpaceLeft) | |
1002 | 1002 | else false) | |
1003 | 1003 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1004 | 1004 | else { | |
1005 | 1005 | let bpKey = keyBackpackByDuck(c._1) | |
1006 | 1006 | let currentPack = getBackpack(bpKey) | |
1007 | 1007 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1008 | 1008 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1009 | 1009 | let $t02979230663 = if ((claimMode == claimModeWh)) | |
1010 | 1010 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1011 | 1011 | else if ((claimMode == claimModeDuck)) | |
1012 | 1012 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1013 | 1013 | else { | |
1014 | 1014 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1015 | 1015 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1016 | 1016 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1017 | 1017 | } | |
1018 | 1018 | let whRes = $t02979230663._1 | |
1019 | 1019 | let bpRes = $t02979230663._2 | |
1020 | 1020 | let loftO = $t02979230663._3 | |
1021 | 1021 | let loftF = $t02979230663._4 | |
1022 | 1022 | $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxLevels], whRes, currentWh[whIdxMat], currentWh[whIdxProd], makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")]) | |
1023 | 1023 | } | |
1024 | 1024 | } | |
1025 | 1025 | } | |
1026 | 1026 | } | |
1027 | 1027 | ||
1028 | 1028 | ||
1029 | 1029 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1030 | 1030 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1031 | 1031 | let savedTime = value(getInteger(timeKey)) | |
1032 | 1032 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1033 | 1033 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1034 | 1034 | } | |
1035 | 1035 | ||
1036 | 1036 | ||
1037 | 1037 | func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = { | |
1038 | 1038 | let addr = toString(caller) | |
1039 | 1039 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId) | |
1040 | 1040 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1041 | 1041 | let infraKey = keyInfraLevelByAssetId(c._2) | |
1042 | 1042 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
1043 | 1043 | if ((curLevel >= 3)) | |
1044 | 1044 | then throw("Currently max infrastructure level = 3") | |
1045 | 1045 | else { | |
1046 | 1046 | let newLevel = (curLevel + 1) | |
1047 | 1047 | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1048 | 1048 | if (if (!(shouldUseMat)) | |
1049 | 1049 | then (paymentAmount != cost) | |
1050 | 1050 | else false) | |
1051 | 1051 | then throw(("Payment attached should be " + toString(cost))) | |
1052 | 1052 | else { | |
1053 | 1053 | let bpKey = keyBackpackByDuck(c._1) | |
1054 | 1054 | let currentPack = getBackpack(bpKey) | |
1055 | 1055 | let mList = split(currentPack[bpIdxMat], "_") | |
1056 | 1056 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)), "_") | |
1057 | 1057 | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1058 | 1058 | let whData = claimResult._5 | |
1059 | 1059 | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1060 | 1060 | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1061 | 1061 | let newVol = getWarehouseTotalVolume(newVolData) | |
1062 | 1062 | let loft = split(whData[whIdxLOFT], "_") | |
1063 | 1063 | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1064 | 1064 | $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], newLoftStr], ":"))] ++ claimResult._1), newLevel) | |
1065 | 1065 | } | |
1066 | 1066 | } | |
1067 | 1067 | } | |
1068 | 1068 | ||
1069 | 1069 | ||
1070 | 1070 | func activateOnboardArt (addr) = 0 | |
1071 | 1071 | ||
1072 | 1072 | ||
1073 | 1073 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1074 | 1074 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1075 | 1075 | let landAssetId = c._2 | |
1076 | 1076 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1077 | 1077 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1078 | 1078 | if ((valueOrElse(getInteger(activationKey), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
1079 | 1079 | then pieces | |
1080 | 1080 | else 0) > 0)) | |
1081 | 1081 | then throw("Presale artifact is already activated") | |
1082 | 1082 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1083 | 1083 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1084 | 1084 | else { | |
1085 | 1085 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1086 | 1086 | ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1087 | 1087 | } | |
1088 | 1088 | } | |
1089 | 1089 | ||
1090 | 1090 | ||
1091 | 1091 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = { | |
1092 | 1092 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1093 | 1093 | func checkMerge (acc,landAssetId) = { | |
1094 | 1094 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1095 | 1095 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1096 | 1096 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
1097 | 1097 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1098 | 1098 | if ((owner != addr)) | |
1099 | 1099 | then throw((LANDPREFIX + " is not yours")) | |
1100 | 1100 | else { | |
1101 | 1101 | let d = split(asset.description, "_") | |
1102 | 1102 | let continent = d[recContinent] | |
1103 | 1103 | if (if ((acc._3 != "")) | |
1104 | 1104 | then (acc._3 != continent) | |
1105 | 1105 | else false) | |
1106 | 1106 | then throw("Lands should be on the same continent to merge") | |
1107 | 1107 | else { | |
1108 | 1108 | let landSize = d[recLandSize] | |
1109 | 1109 | let sizesIn = acc._1 | |
1110 | 1110 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
1111 | 1111 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
1112 | 1112 | let pieces = numPiecesBySize(landSize) | |
1113 | 1113 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
1114 | 1114 | then pieces | |
1115 | 1115 | else 0)) | |
1116 | 1116 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1117 | 1117 | let reqLevel = match landSize { | |
1118 | 1118 | case _ => | |
1119 | 1119 | if (("S" == $match0)) | |
1120 | 1120 | then 3 | |
1121 | 1121 | else if (("M" == $match0)) | |
1122 | 1122 | then 4 | |
1123 | 1123 | else if (("L" == $match0)) | |
1124 | 1124 | then 5 | |
1125 | 1125 | else if (("XL" == $match0)) | |
1126 | 1126 | then 6 | |
1127 | 1127 | else throw("Only S, M, L, XL can merge") | |
1128 | 1128 | } | |
1129 | 1129 | if ((infraLevel != reqLevel)) | |
1130 | 1130 | then throw("All lands should be maxed to merge") | |
1131 | 1131 | else { | |
1132 | 1132 | let landNum = d[recLandNum] | |
1133 | 1133 | let terrainCounts = countTerrains(d[recTerrains]) | |
1134 | 1134 | let deltaTime = (lastBlock.timestamp - savedTime) | |
1135 | 1135 | if ((0 > deltaTime)) | |
1136 | 1136 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
1137 | 1137 | else { | |
1138 | 1138 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1139 | 1139 | let landIndex = (pieces / SSIZE) | |
1140 | 1140 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1141 | 1141 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, landIndex, -1) | |
1142 | 1142 | let lands = acc._7 | |
1143 | 1143 | let idx = indexOf(lands, landAssetId) | |
1144 | 1144 | if (!(isDefined(idx))) | |
1145 | 1145 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1146 | 1146 | else { | |
1147 | 1147 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
1148 | 1148 | let customName = valueOrElse(getString(customKey), "") | |
1149 | 1149 | $Tuple7(sizesOut, arts, continent, bpRes, (((((((((((((acc._5 :+ DeleteEntry(keyStakedTimeByAssetId(landAssetId))) :+ DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))) :+ DeleteEntry(keyLandToAssetId(landNum))) :+ DeleteEntry(keyLandAssetIdToOwner(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetId(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ DeleteEntry(keyWarehouseByLand(landAssetId))) :+ DeleteEntry(customKey)) :+ DeleteEntry(keyLandCustomNameToAssetId(customName))) :+ Burn(fromBase58String(landAssetId), 1)), props, removeByIndex(lands, value(idx))) | |
1150 | 1150 | } | |
1151 | 1151 | } | |
1152 | 1152 | } | |
1153 | 1153 | } | |
1154 | 1154 | } | |
1155 | 1155 | } | |
1156 | 1156 | ||
1157 | 1157 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1158 | 1158 | let currentPack = getBackpack(bpKey) | |
1159 | 1159 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
1160 | 1160 | let landsKey = keyStakedLandsByOwner(addr) | |
1161 | 1161 | let landsStr = getString(landsKey) | |
1162 | 1162 | let landsIn = if (isDefined(landsStr)) | |
1163 | 1163 | then split_51C(value(landsStr), "_") | |
1164 | 1164 | else nil | |
1165 | 1165 | let r = { | |
1166 | 1166 | let $l = landAssetIds | |
1167 | 1167 | let $s = size($l) | |
1168 | 1168 | let $acc0 = $Tuple7(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn) | |
1169 | 1169 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1170 | 1170 | then $a | |
1171 | 1171 | else checkMerge($a, $l[$i]) | |
1172 | 1172 | ||
1173 | 1173 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1174 | 1174 | then $a | |
1175 | 1175 | else throw("List size exceeds 5") | |
1176 | 1176 | ||
1177 | 1177 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1178 | 1178 | } | |
1179 | 1179 | let continent = r._3 | |
1180 | 1180 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
1181 | 1181 | let terrains = genTerrains(abs(toBigInt(txId)), continentIdx) | |
1182 | 1182 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1183 | 1183 | let newLandNum = toString(freeNum) | |
1184 | 1184 | let issue = Issue(nftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
1185 | 1185 | let assetId = calculateAssetId(issue) | |
1186 | 1186 | let newLandAssetId = toBase58String(assetId) | |
1187 | 1187 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
1188 | 1188 | $Tuple2(((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1189 | 1189 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
1190 | 1190 | else DeleteEntry(landsKey))) :+ 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) | |
1191 | 1191 | } | |
1192 | 1192 | ||
1193 | 1193 | ||
1194 | 1194 | func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0) | |
1195 | 1195 | ||
1196 | 1196 | ||
1197 | 1197 | func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1198 | 1198 | let cost = (InfraUpgradeCostSUsdt * 4) | |
1199 | 1199 | if (if (!(shouldUseMat)) | |
1200 | 1200 | then (paymentAmount != cost) | |
1201 | 1201 | else false) | |
1202 | 1202 | then throw(("Payment attached should be " + toString(cost))) | |
1203 | 1203 | else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4)) | |
1204 | 1204 | } | |
1205 | 1205 | ||
1206 | 1206 | ||
1207 | 1207 | func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1208 | 1208 | let cost = (InfraUpgradeCostSUsdt * 47) | |
1209 | 1209 | if (if (!(shouldUseMat)) | |
1210 | 1210 | then (paymentAmount != cost) | |
1211 | 1211 | else false) | |
1212 | 1212 | then throw(("Payment attached should be " + toString(cost))) | |
1213 | 1213 | else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47)) | |
1214 | 1214 | } | |
1215 | 1215 | ||
1216 | 1216 | ||
1217 | 1217 | func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1218 | 1218 | let cost = (InfraUpgradeCostSUsdt * 54) | |
1219 | 1219 | if (if (!(shouldUseMat)) | |
1220 | 1220 | then (paymentAmount != cost) | |
1221 | 1221 | else false) | |
1222 | 1222 | then throw(("Payment attached should be " + toString(cost))) | |
1223 | 1223 | else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54)) | |
1224 | 1224 | } | |
1225 | 1225 | ||
1226 | 1226 | ||
1227 | 1227 | func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = { | |
1228 | 1228 | let mergeResult = match size(landAssetIds) { | |
1229 | 1229 | case _ => | |
1230 | 1230 | if ((4 == $match0)) | |
1231 | 1231 | then s2m(addr, landAssetIds, txId) | |
1232 | 1232 | else if ((3 == $match0)) | |
1233 | 1233 | then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1234 | 1234 | else if ((5 == $match0)) | |
1235 | 1235 | then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1236 | 1236 | else if ((2 == $match0)) | |
1237 | 1237 | then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1238 | 1238 | else throw("Unknown merge") | |
1239 | 1239 | } | |
1240 | 1240 | mergeResult | |
1241 | 1241 | } | |
1242 | 1242 | ||
1243 | 1243 | ||
1244 | 1244 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1245 | 1245 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1246 | 1246 | else false) | |
1247 | 1247 | then throw("Contracts are under maintenance") | |
1248 | 1248 | else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId)) | |
1249 | 1249 | ||
1250 | 1250 | ||
1251 | 1251 | @Callable(i) | |
1252 | 1252 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1253 | 1253 | then throw("Permission denied") | |
1254 | 1254 | else [StringEntry(keyRestAddress(), restAddr)] | |
1255 | 1255 | ||
1256 | 1256 | ||
1257 | 1257 | ||
1258 | 1258 | @Callable(i) | |
1259 | 1259 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1260 | 1260 | then throw("permission denied") | |
1261 | 1261 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1262 | 1262 | ||
1263 | 1263 | ||
1264 | 1264 | ||
1265 | 1265 | @Callable(i) | |
1266 | 1266 | func stakeLand () = { | |
1267 | 1267 | let prologAction = prolog(i) | |
1268 | 1268 | if ((size(i.payments) != 1)) | |
1269 | 1269 | then throw("Exactly one payment required") | |
1270 | 1270 | else { | |
1271 | 1271 | let pmt = value(i.payments[0]) | |
1272 | 1272 | let assetId = value(pmt.assetId) | |
1273 | 1273 | let address = toString(i.caller) | |
1274 | 1274 | if ((pmt.amount != 1)) | |
1275 | 1275 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1276 | 1276 | else { | |
1277 | 1277 | let asset = value(assetInfo(assetId)) | |
1278 | 1278 | if ((asset.issuer != this)) | |
1279 | 1279 | then throw("Unknown issuer of token") | |
1280 | 1280 | else if (!(contains(asset.name, LANDPREFIX))) | |
1281 | 1281 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1282 | 1282 | else { | |
1283 | 1283 | let landNumSize = drop(asset.name, 4) | |
1284 | 1284 | let landNum = if (contains(landNumSize, "XXL")) | |
1285 | 1285 | then dropRight(landNumSize, 3) | |
1286 | 1286 | else if (contains(landNumSize, "XL")) | |
1287 | 1287 | then dropRight(landNumSize, 2) | |
1288 | 1288 | else dropRight(landNumSize, 1) | |
1289 | 1289 | if (!(isDefined(parseInt(landNum)))) | |
1290 | 1290 | then throw(("Cannot parse land number from " + asset.name)) | |
1291 | 1291 | else { | |
1292 | 1292 | let landAssetId = toBase58String(assetId) | |
1293 | 1293 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1294 | 1294 | if (isDefined(getInteger(timeKey))) | |
1295 | 1295 | then throw((("NFT " + asset.name) + " is already staked")) | |
1296 | 1296 | else { | |
1297 | 1297 | let d = split(asset.description, "_") | |
1298 | 1298 | let terrainCounts = countTerrains(d[recTerrains]) | |
1299 | 1299 | let pieces = numPiecesBySize(d[recLandSize]) | |
1300 | 1300 | let props = updateProportions(terrainCounts, (pieces / SSIZE), 1) | |
1301 | 1301 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
1302 | 1302 | then pieces | |
1303 | 1303 | else 0) | |
1304 | 1304 | let landsStr = getString(keyStakedLandsByOwner(address)) | |
1305 | 1305 | let lands = if (isDefined(landsStr)) | |
1306 | 1306 | then split_51C(value(landsStr), "_") | |
1307 | 1307 | else nil | |
1308 | 1308 | if (containsElement(lands, landAssetId)) | |
1309 | 1309 | then throw(("Your staked lands already contain " + landAssetId)) | |
1310 | 1310 | else [IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(keyStakedLandsByOwner(address), makeString_11C((lands :+ landAssetId), "_")), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), StringEntry(keyResProportions(), props), prologAction] | |
1311 | 1311 | } | |
1312 | 1312 | } | |
1313 | 1313 | } | |
1314 | 1314 | } | |
1315 | 1315 | } | |
1316 | 1316 | } | |
1317 | 1317 | ||
1318 | 1318 | ||
1319 | 1319 | ||
1320 | 1320 | @Callable(i) | |
1321 | 1321 | func unstakeLand (landAssetIdIn) = { | |
1322 | 1322 | let prologAction = prolog(i) | |
1323 | 1323 | if ((size(i.payments) != 0)) | |
1324 | 1324 | then throw("No payments required") | |
1325 | 1325 | else { | |
1326 | 1326 | let addr = toString(i.caller) | |
1327 | 1327 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1328 | 1328 | let landAssetId = c._2 | |
1329 | 1329 | let landsKey = keyStakedLandsByOwner(addr) | |
1330 | 1330 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1331 | 1331 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1332 | 1332 | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
1333 | 1333 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1334 | 1334 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1335 | 1335 | let idx = indexOf(lands, landAssetId) | |
1336 | 1336 | if (!(isDefined(idx))) | |
1337 | 1337 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1338 | 1338 | else { | |
1339 | 1339 | let t = value(blockInfoByHeight(height)).timestamp | |
1340 | 1340 | let releaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1341 | 1341 | if ((releaseTime >= t)) | |
1342 | 1342 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(releaseTime))) | |
1343 | 1343 | else [ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
1344 | 1344 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1345 | 1345 | else DeleteEntry(landsKey), prologAction] | |
1346 | 1346 | } | |
1347 | 1347 | } | |
1348 | 1348 | } | |
1349 | 1349 | ||
1350 | 1350 | ||
1351 | 1351 | ||
1352 | 1352 | @Callable(i) | |
1353 | 1353 | func stakeDuck () = { | |
1354 | 1354 | let prologAction = prolog(i) | |
1355 | 1355 | if ((size(i.payments) != 1)) | |
1356 | 1356 | then throw("Exactly one payment required") | |
1357 | 1357 | else { | |
1358 | 1358 | let pmt = value(i.payments[0]) | |
1359 | 1359 | let assetId = value(pmt.assetId) | |
1360 | 1360 | let address = toString(i.caller) | |
1361 | 1361 | if ((pmt.amount != 1)) | |
1362 | 1362 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
1363 | 1363 | else { | |
1364 | 1364 | let asset = value(assetInfo(assetId)) | |
1365 | 1365 | if (if ((asset.issuer != incubatorAddr)) | |
1366 | 1366 | then (asset.issuer != breederAddr) | |
1367 | 1367 | else false) | |
1368 | 1368 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
1369 | 1369 | else if (!(contains(asset.name, DUCKPREFIX))) | |
1370 | 1370 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
1371 | 1371 | else { | |
1372 | 1372 | let assetIdStr = toBase58String(assetId) | |
1373 | 1373 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
1374 | 1374 | if (isDefined(getInteger(timeKey))) | |
1375 | 1375 | then throw((("NFT " + asset.name) + " is already staked")) | |
1376 | 1376 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
1377 | 1377 | then throw(("You already staked one duck: " + asset.name)) | |
1378 | 1378 | else { | |
1379 | 1379 | let locKey = keyDuckLocation(assetIdStr) | |
1380 | 1380 | let location = getString(locKey) | |
1381 | 1381 | let bpKey = keyBackpackByDuck(assetIdStr) | |
1382 | 1382 | let backpack = getString(bpKey) | |
1383 | 1383 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
1384 | 1384 | then nil | |
1385 | 1385 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
1386 | 1386 | then nil | |
1387 | 1387 | else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyDuckHealth(assetIdStr), 100)) :+ prologAction))))) | |
1388 | 1388 | } | |
1389 | 1389 | } | |
1390 | 1390 | } | |
1391 | 1391 | } | |
1392 | 1392 | } | |
1393 | 1393 | ||
1394 | 1394 | ||
1395 | 1395 | ||
1396 | 1396 | @Callable(i) | |
1397 | 1397 | func unstakeDuck (assetIdStr) = { | |
1398 | 1398 | let prologAction = prolog(i) | |
1399 | 1399 | if ((size(i.payments) != 0)) | |
1400 | 1400 | then throw("No payments required") | |
1401 | 1401 | else { | |
1402 | 1402 | let assetId = fromBase58String(assetIdStr) | |
1403 | 1403 | let address = toString(i.caller) | |
1404 | 1404 | let asset = value(assetInfo(assetId)) | |
1405 | 1405 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
1406 | 1406 | if (!(isDefined(getInteger(timeKey)))) | |
1407 | 1407 | then throw((("NFT " + asset.name) + " is not staked")) | |
1408 | 1408 | else if (!(isDefined(getString(keyStakedDuckByOwner(address))))) | |
1409 | 1409 | then throw((("The duck " + asset.name) + " is not staked")) | |
1410 | 1410 | else { | |
1411 | 1411 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
1412 | 1412 | if ((owner != address)) | |
1413 | 1413 | then throw("Staked NFT is not yours") | |
1414 | 1414 | else { | |
1415 | 1415 | let keyHealth = keyDuckHealth(assetIdStr) | |
1416 | 1416 | let health = valueOrElse(getInteger(keyHealth), 100) | |
1417 | 1417 | if ((100 > health)) | |
1418 | 1418 | then throw("Please heal your duck before unstaking") | |
1419 | 1419 | else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyHealth), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address)), prologAction] | |
1420 | 1420 | } | |
1421 | 1421 | } | |
1422 | 1422 | } | |
1423 | 1423 | } | |
1424 | 1424 | ||
1425 | 1425 | ||
1426 | 1426 | ||
1427 | 1427 | @Callable(i) | |
1428 | 1428 | func claimRes (amount,landAssetIdStr) = { | |
1429 | 1429 | let prologAction = prolog(i) | |
1430 | 1430 | if ((size(i.payments) != 0)) | |
1431 | 1431 | then throw("No payments required") | |
1432 | 1432 | else { | |
1433 | 1433 | let addr = toString(i.originCaller) | |
1434 | 1434 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
1435 | 1435 | $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._3[bpIdxRes]) | |
1436 | 1436 | } | |
1437 | 1437 | } | |
1438 | 1438 | ||
1439 | 1439 | ||
1440 | 1440 | ||
1441 | 1441 | @Callable(i) | |
1442 | 1442 | func claimResToWH (amount,landAssetIdStr) = { | |
1443 | 1443 | let prologAction = prolog(i) | |
1444 | 1444 | if ((size(i.payments) != 0)) | |
1445 | 1445 | then throw("No payments required") | |
1446 | 1446 | else { | |
1447 | 1447 | let addr = toString(i.originCaller) | |
1448 | 1448 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
1449 | 1449 | $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._5[whIdxRes]) | |
1450 | 1450 | } | |
1451 | 1451 | } | |
1452 | 1452 | ||
1453 | 1453 | ||
1454 | 1454 | ||
1455 | 1455 | @Callable(i) | |
1456 | 1456 | func flight (message,sig) = { | |
1457 | 1457 | let prologAction = prolog(i) | |
1458 | 1458 | if (!(sigVerify_8Kb(message, sig, pub))) | |
1459 | 1459 | then throw("signature does not match") | |
1460 | 1460 | else if ((size(i.payments) != 0)) | |
1461 | 1461 | then throw("No payments required") | |
1462 | 1462 | else { | |
1463 | 1463 | let parts = split(toUtf8String(message), ";") | |
1464 | 1464 | let flightLog = split(parts[0], "|") | |
1465 | 1465 | let hp = split(flightLog[flHealth], "_") | |
1466 | 1466 | let curHP = parseIntValue(hp[0]) | |
1467 | 1467 | let newHP = parseIntValue(hp[1]) | |
1468 | 1468 | let newLocTxVer = split(parts[1], ":") | |
1469 | 1469 | let newLocation = newLocTxVer[0] | |
1470 | 1470 | let time = parseIntValue(flightLog[flTimestamp]) | |
1471 | 1471 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1472 | 1472 | then true | |
1473 | 1473 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1474 | 1474 | then throw("signature outdated") | |
1475 | 1475 | else { | |
1476 | 1476 | let txFromMsg = newLocTxVer[1] | |
1477 | 1477 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(toString(i.originCaller))), "") | |
1478 | 1478 | if ((lastTx != txFromMsg)) | |
1479 | 1479 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1480 | 1480 | else { | |
1481 | 1481 | let userAddr = toString(i.caller) | |
1482 | 1482 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1483 | 1483 | let keyHealth = keyDuckHealth(duckAssetId) | |
1484 | 1484 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
1485 | 1485 | if ((oldFromState != curHP)) | |
1486 | 1486 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
1487 | 1487 | else if ((0 >= curHP)) | |
1488 | 1488 | then throw("You can't fly with zero health") | |
1489 | 1489 | else { | |
1490 | 1490 | let locKey = keyDuckLocation(duckAssetId) | |
1491 | 1491 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1492 | 1492 | if ((newLocation == curLocation)) | |
1493 | 1493 | then throw("You can't fly to the same location") | |
1494 | 1494 | else { | |
1495 | 1495 | let bonus = if ((size(flightLog) > flBonus)) | |
1496 | 1496 | then flightLog[flBonus] | |
1497 | 1497 | else "" | |
1498 | 1498 | let sentAmount = if (if ((newHP > 0)) | |
1499 | 1499 | then (bonus == "$") | |
1500 | 1500 | else false) | |
1501 | 1501 | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1502 | 1502 | else 0 | |
1503 | 1503 | $Tuple2([StringEntry(locKey, if ((newHP > 0)) | |
1504 | 1504 | then newLocation | |
1505 | 1505 | else curLocation), IntegerEntry(keyHealth, newHP), prologAction], sentAmount) | |
1506 | 1506 | } | |
1507 | 1507 | } | |
1508 | 1508 | } | |
1509 | 1509 | } | |
1510 | 1510 | } | |
1511 | 1511 | } | |
1512 | 1512 | ||
1513 | 1513 | ||
1514 | 1514 | ||
1515 | 1515 | @Callable(i) | |
1516 | 1516 | func setHealth (health,duckAssetId) = { | |
1517 | 1517 | let prologAction = prolog(i) | |
1518 | 1518 | if (if ((0 > health)) | |
1519 | 1519 | then true | |
1520 | 1520 | else (health > 100)) | |
1521 | 1521 | then throw("HP should be within 0..100") | |
1522 | 1522 | else [IntegerEntry(keyDuckHealth(duckAssetId), health), prologAction] | |
1523 | 1523 | } | |
1524 | 1524 | ||
1525 | 1525 | ||
1526 | 1526 | ||
1527 | 1527 | @Callable(i) | |
1528 | 1528 | func heal (matType,amount) = { | |
1529 | 1529 | let prologAction = prolog(i) | |
1530 | 1530 | if (if ((0 > matType)) | |
1531 | 1531 | then true | |
1532 | 1532 | else (matType >= NUMRES)) | |
1533 | 1533 | then throw(("Unknown material: " + toString(matType))) | |
1534 | 1534 | else if ((0 >= amount)) | |
1535 | 1535 | then throw(("Amount should be positive! " + toString(amount))) | |
1536 | 1536 | else { | |
1537 | 1537 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1538 | 1538 | let keyHealth = keyDuckHealth(duckAssetId) | |
1539 | 1539 | let oldHealth = valueOrElse(getInteger(keyHealth), 100) | |
1540 | 1540 | if ((oldHealth >= 100)) | |
1541 | 1541 | then throw("HP should be < 100 to heal") | |
1542 | 1542 | else { | |
1543 | 1543 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1544 | 1544 | let currentPack = getBackpack(bpKey) | |
1545 | 1545 | let mList = split(currentPack[bpIdxMat], "_") | |
1546 | 1546 | let currentAmount = parseIntValue(mList[matType]) | |
1547 | 1547 | let deltaHealth = min([(amount / HEALCOST), (100 - oldHealth)]) | |
1548 | 1548 | let spendAmount = (deltaHealth * HEALCOST) | |
1549 | 1549 | if ((spendAmount > currentAmount)) | |
1550 | 1550 | then throw(((((("You need " + toString(spendAmount)) + " of ") + matTypes[matType]) + " to heal, but you backpack contains ") + toString(currentAmount))) | |
1551 | 1551 | else { | |
1552 | 1552 | let newMat = subOneInList(mList, matType, spendAmount) | |
1553 | 1553 | [IntegerEntry(keyHealth, (oldHealth + deltaHealth)), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), prologAction] | |
1554 | 1554 | } | |
1555 | 1555 | } | |
1556 | 1556 | } | |
1557 | 1557 | } | |
1558 | 1558 | ||
1559 | 1559 | ||
1560 | 1560 | ||
1561 | 1561 | @Callable(i) | |
1562 | 1562 | func updateBackpack (duckAssetId,newPack) = { | |
1563 | 1563 | let prologAction = prolog(i) | |
1564 | 1564 | if ((i.caller != economyContract)) | |
1565 | 1565 | then throw("permission denied") | |
1566 | 1566 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack), prologAction], newPack) | |
1567 | 1567 | } | |
1568 | 1568 | ||
1569 | 1569 | ||
1570 | 1570 | ||
1571 | 1571 | @Callable(i) | |
1572 | 1572 | func buySLand () = { | |
1573 | 1573 | let prologAction = prolog(i) | |
1574 | 1574 | if ((size(i.payments) != 1)) | |
1575 | 1575 | then throw("Exactly one payment required") | |
1576 | 1576 | else { | |
1577 | 1577 | let pmt = value(i.payments[0]) | |
1578 | 1578 | if ((pmt.assetId != usdtAssetId)) | |
1579 | 1579 | then throw("Allowed USDT payment only!") | |
1580 | 1580 | else if ((pmt.amount != EXPUSDT)) | |
1581 | 1581 | then throw(("Payment attached should be " + toString(EXPUSDT))) | |
1582 | 1582 | else { | |
1583 | 1583 | let result = expeditionInternal(i.caller, i.transactionId) | |
1584 | 1584 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2._1) | |
1585 | 1585 | } | |
1586 | 1586 | } | |
1587 | 1587 | } | |
1588 | 1588 | ||
1589 | 1589 | ||
1590 | 1590 | ||
1591 | 1591 | @Callable(i) | |
1592 | 1592 | func expedition (message,sig) = { | |
1593 | 1593 | let prologAction = prolog(i) | |
1594 | 1594 | if ((size(i.payments) != 0)) | |
1595 | 1595 | then throw("No payments required") | |
1596 | 1596 | else { | |
1597 | 1597 | let result = expeditionCommon(true, i.caller, i.transactionId, message, sig) | |
1598 | 1598 | $Tuple2((result._1 :+ prologAction), result._2) | |
1599 | 1599 | } | |
1600 | 1600 | } | |
1601 | 1601 | ||
1602 | 1602 | ||
1603 | 1603 | ||
1604 | 1604 | @Callable(i) | |
1605 | 1605 | func upgradeInfra (landAssetId) = { | |
1606 | 1606 | let prologAction = prolog(i) | |
1607 | 1607 | if ((size(i.payments) != 0)) | |
1608 | 1608 | then throw("No payments required") | |
1609 | 1609 | else { | |
1610 | 1610 | let result = upInfraCommon(true, i.caller, 0, landAssetId) | |
1611 | 1611 | $Tuple2((result._1 :+ prologAction), result._2) | |
1612 | 1612 | } | |
1613 | 1613 | } | |
1614 | 1614 | ||
1615 | 1615 | ||
1616 | 1616 | ||
1617 | 1617 | @Callable(i) | |
1618 | 1618 | func upgradeInfraUsdt (landAssetId) = if ((i.caller != this)) | |
1619 | 1619 | then throw("Permission denied") | |
1620 | 1620 | else { | |
1621 | 1621 | let prologAction = prolog(i) | |
1622 | 1622 | if ((size(i.payments) != 1)) | |
1623 | 1623 | then throw("Exactly one payment required") | |
1624 | 1624 | else { | |
1625 | 1625 | let pmt = value(i.payments[0]) | |
1626 | 1626 | if ((pmt.assetId != usdtAssetId)) | |
1627 | 1627 | then throw("Allowed USDT payment only!") | |
1628 | 1628 | else { | |
1629 | 1629 | let result = upInfraCommon(false, i.caller, pmt.amount, landAssetId) | |
1630 | 1630 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
1631 | 1631 | } | |
1632 | 1632 | } | |
1633 | 1633 | } | |
1634 | 1634 | ||
1635 | 1635 | ||
1636 | 1636 | ||
1637 | 1637 | @Callable(i) | |
1638 | 1638 | func activateArtifact (artName,landAssetId) = { | |
1639 | 1639 | let prologAction = prolog(i) | |
1640 | 1640 | if ((size(i.payments) != 0)) | |
1641 | 1641 | then throw("No payments required") | |
1642 | 1642 | else { | |
1643 | 1643 | let result = match artName { | |
1644 | 1644 | case _ => | |
1645 | 1645 | if (("PRESALE" == $match0)) | |
1646 | 1646 | then activatePresaleArt(toString(i.caller), landAssetId) | |
1647 | 1647 | else throw("Unknown artifact") | |
1648 | 1648 | } | |
1649 | 1649 | (result :+ prologAction) | |
1650 | 1650 | } | |
1651 | 1651 | } | |
1652 | 1652 | ||
1653 | 1653 | ||
1654 | 1654 | ||
1655 | 1655 | @Callable(i) | |
1656 | 1656 | func mergeLands (landAssetIds) = { | |
1657 | 1657 | let prologAction = prolog(i) | |
1658 | 1658 | if ((size(i.payments) != 0)) | |
1659 | 1659 | then throw("No payments required") | |
1660 | 1660 | else { | |
1661 | 1661 | let result = mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1662 | 1662 | $Tuple2((result._1 :+ prologAction), result._2) | |
1663 | 1663 | } | |
1664 | 1664 | } | |
1665 | 1665 | ||
1666 | 1666 | ||
1667 | 1667 | ||
1668 | 1668 | @Callable(i) | |
1669 | 1669 | func mergeLandsUsdt (landAssetIds) = { | |
1670 | 1670 | let prologAction = prolog(i) | |
1671 | 1671 | if ((size(i.payments) != 1)) | |
1672 | 1672 | then throw("Exactly one payment required") | |
1673 | 1673 | else { | |
1674 | 1674 | let pmt = value(i.payments[0]) | |
1675 | 1675 | if ((pmt.assetId != usdtAssetId)) | |
1676 | 1676 | then throw("Allowed USDT payment only!") | |
1677 | 1677 | else { | |
1678 | 1678 | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1679 | 1679 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
1680 | 1680 | } | |
1681 | 1681 | } | |
1682 | 1682 | } | |
1683 | 1683 | ||
1684 | 1684 | ||
1685 | 1685 | ||
1686 | 1686 | @Callable(i) | |
1687 | 1687 | func cargoExchange (cargoListStr,landAssetId) = { | |
1688 | 1688 | let prologAction = prolog(i) | |
1689 | 1689 | if ((size(i.payments) != 0)) | |
1690 | 1690 | then throw("No payments required") | |
1691 | 1691 | else { | |
1692 | 1692 | let cargoParts = split_4C(cargoListStr, ":") | |
1693 | 1693 | let addr = toString(i.originCaller) | |
1694 | 1694 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1695 | 1695 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1696 | 1696 | if (!(isDefined(getInteger(timeKey)))) | |
1697 | 1697 | then throw((asset.name + " is not staked")) | |
1698 | 1698 | else { | |
1699 | 1699 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1700 | 1700 | if ((owner != addr)) | |
1701 | 1701 | then throw((LANDPREFIX + " is not yours")) | |
1702 | 1702 | else { | |
1703 | 1703 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1704 | 1704 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1705 | 1705 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1706 | 1706 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1707 | 1707 | let loc = split(value(curLocation), "_") | |
1708 | 1708 | if ((loc[locIdxType] != "L")) | |
1709 | 1709 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1710 | 1710 | else if ((loc[locIdxId] != landAssetId)) | |
1711 | 1711 | then throw(("Duck should be on the land " + landAssetId)) | |
1712 | 1712 | else { | |
1713 | 1713 | let whKey = keyWarehouseByLand(landAssetId) | |
1714 | 1714 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1715 | 1715 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1716 | 1716 | let currentPack = getBackpack(bpKey) | |
1717 | 1717 | let result = moveStuff(cargoParts, currentWh, currentPack) | |
1718 | 1718 | let loft = split(currentWh[whIdxLOFT], "_") | |
1719 | 1719 | let loftO = (parseIntValue(loft[volOccupied]) + result._7) | |
1720 | 1720 | let loftF = (parseIntValue(loft[volFree]) - result._7) | |
1721 | 1721 | [StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], result._4, result._5, result._6], ":")), StringEntry(whKey, makeString_2C([currentWh[whIdxLevels], result._1, result._2, result._3, makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")], ":")), prologAction] | |
1722 | 1722 | } | |
1723 | 1723 | } | |
1724 | 1724 | } | |
1725 | 1725 | } | |
1726 | 1726 | } | |
1727 | 1727 | ||
1728 | 1728 | ||
1729 | 1729 | ||
1730 | 1730 | @Callable(i) | |
1731 | 1731 | func saveWarehouse (whStr,landAssetId) = { | |
1732 | 1732 | let prologAction = prolog(i) | |
1733 | 1733 | if ((i.caller != economyContract)) | |
1734 | 1734 | then throw("Access denied") | |
1735 | 1735 | else { | |
1736 | 1736 | let whKey = keyWarehouseByLand(landAssetId) | |
1737 | 1737 | let wh = split_4C(whStr, ":") | |
1738 | 1738 | if ((size(wh) != 5)) | |
1739 | 1739 | then throw("warehouse string should contain 4 ':' separators") | |
1740 | 1740 | else { | |
1741 | 1741 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
1742 | 1742 | let loftO = getWarehouseOccupiedVol(wh) | |
1743 | 1743 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
1744 | 1744 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
1745 | 1745 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
1746 | 1746 | $Tuple2([StringEntry(whKey, newWhStr), prologAction], newWhStr) | |
1747 | 1747 | } | |
1748 | 1748 | } | |
1749 | 1749 | } | |
1750 | 1750 | ||
1751 | 1751 | ||
1752 | 1752 | ||
1753 | 1753 | @Callable(i) | |
1754 | 1754 | func replaceBooleanArtifact (landAssetId) = if ((i.caller != restContract)) | |
1755 | 1755 | then throw("Access denied") | |
1756 | 1756 | else { | |
1757 | 1757 | let boolKey = keyPresaleArtActivatedByAssetId(landAssetId) | |
1758 | 1758 | let intKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1759 | 1759 | let boolArt = getBoolean(boolKey) | |
1760 | 1760 | if (isDefined(boolArt)) | |
1761 | 1761 | then { | |
1762 | 1762 | let d = split(value(assetInfo(fromBase58String(landAssetId))).description, "_") | |
1763 | 1763 | let pieces = numPiecesBySize(d[recLandSize]) | |
1764 | 1764 | let artPieces = valueOrElse(getInteger(intKey), pieces) | |
1765 | 1765 | let owner = getString(keyLandAssetIdToOwner(landAssetId)) | |
1766 | 1766 | let ownerRecords = if (isDefined(owner)) | |
1767 | 1767 | then [IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, value(owner)), artPieces), DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, value(owner)))] | |
1768 | 1768 | else nil | |
1769 | 1769 | if (value(boolArt)) | |
1770 | 1770 | then $Tuple2(((ownerRecords :+ IntegerEntry(intKey, artPieces)) :+ DeleteEntry(boolKey)), 2) | |
1771 | 1771 | else $Tuple2([DeleteEntry(boolKey)], 1) | |
1772 | 1772 | } | |
1773 | 1773 | else $Tuple2(nil, 0) | |
1774 | 1774 | } | |
1775 | 1775 | ||
1776 | 1776 | ||
1777 | 1777 | ||
1778 | 1778 | @Callable(i) | |
1779 | 1779 | func fixWarehouseFormat (landAssetId) = if ((i.caller != restContract)) | |
1780 | 1780 | then throw("Access denied") | |
1781 | 1781 | else { | |
1782 | 1782 | let whKey = keyWarehouseByLand(landAssetId) | |
1783 | 1783 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1784 | 1784 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1785 | 1785 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1786 | - | let whStr = getWarehouse(whKey, landIndex, infraLevel) | |
1787 | - | let ordStr = valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:") | |
1788 | - | nil | |
1786 | + | let wh = getWarehouse(whKey, landIndex, infraLevel) | |
1787 | + | let loftL = asInt(invoke(economyContract, "recalcLockedVolumeREADONLY", [landAssetId, wh], nil)) | |
1788 | + | let loftO = getWarehouseOccupiedVol(wh) | |
1789 | + | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
1790 | + | let loftF = ((loftT - loftL) - loftO) | |
1791 | + | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
1792 | + | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
1789 | 1793 | } | |
1790 | 1794 | ||
1791 | 1795 | ||
1792 | 1796 | ||
1793 | 1797 | @Callable(i) | |
1794 | 1798 | func setCustomName (assetId,customName,type) = { | |
1795 | 1799 | let prologAction = prolog(i) | |
1796 | 1800 | if ((size(i.payments) != 1)) | |
1797 | 1801 | then throw("Exactly one payment required") | |
1798 | 1802 | else { | |
1799 | 1803 | let pmt = value(i.payments[0]) | |
1800 | 1804 | if ((pmt.assetId != usdtAssetId)) | |
1801 | 1805 | then throw("Allowed USDT payment only!") | |
1802 | 1806 | else if ((pmt.amount != RENAMINGCOST)) | |
1803 | 1807 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
1804 | 1808 | else if (contains(customName, "__")) | |
1805 | 1809 | then throw(("Name should not contain '__': " + customName)) | |
1806 | 1810 | else if ((size(customName) > MAXNAMELEN)) | |
1807 | 1811 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
1808 | 1812 | else { | |
1809 | 1813 | let addr = toString(i.originCaller) | |
1810 | 1814 | let actions = match type { | |
1811 | 1815 | case _ => | |
1812 | 1816 | if (("ACCOUNT" == $match0)) | |
1813 | 1817 | then { | |
1814 | 1818 | let reverseKey = keyCustomNameToAddress(customName) | |
1815 | 1819 | let oldName = getString(reverseKey) | |
1816 | 1820 | if (isDefined(oldName)) | |
1817 | 1821 | then throw(("Name already registered: " + customName)) | |
1818 | 1822 | else [StringEntry(keyAddressToCustomName(addr), customName), StringEntry(reverseKey, addr)] | |
1819 | 1823 | } | |
1820 | 1824 | else if (("LAND" == $match0)) | |
1821 | 1825 | then { | |
1822 | 1826 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1823 | 1827 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1824 | 1828 | if (!(isDefined(getInteger(timeKey)))) | |
1825 | 1829 | then throw((asset.name + " is not staked")) | |
1826 | 1830 | else { | |
1827 | 1831 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1828 | 1832 | if ((owner != addr)) | |
1829 | 1833 | then throw((LANDPREFIX + " is not yours")) | |
1830 | 1834 | else { | |
1831 | 1835 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
1832 | 1836 | let oldName = getString(reverseKey) | |
1833 | 1837 | if (isDefined(oldName)) | |
1834 | 1838 | then throw(("Name already registered: " + customName)) | |
1835 | 1839 | else [StringEntry(keyLandAssetIdToCustomName(assetId), customName), StringEntry(reverseKey, assetId)] | |
1836 | 1840 | } | |
1837 | 1841 | } | |
1838 | 1842 | } | |
1839 | 1843 | else if (("DUCK" == $match0)) | |
1840 | 1844 | then { | |
1841 | 1845 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1842 | 1846 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1843 | 1847 | if (if (!(isDefined(getInteger(timeKey)))) | |
1844 | 1848 | then true | |
1845 | 1849 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
1846 | 1850 | then throw((asset.name + " is not staked")) | |
1847 | 1851 | else { | |
1848 | 1852 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1849 | 1853 | if ((owner != addr)) | |
1850 | 1854 | then throw((DUCKPREFIX + " is not yours")) | |
1851 | 1855 | else { | |
1852 | 1856 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
1853 | 1857 | let oldName = getString(reverseKey) | |
1854 | 1858 | if (isDefined(oldName)) | |
1855 | 1859 | then throw(("Name already registered: " + customName)) | |
1856 | 1860 | else [StringEntry(keyDuckAssetIdToCustomName(assetId), customName), StringEntry(reverseKey, assetId)] | |
1857 | 1861 | } | |
1858 | 1862 | } | |
1859 | 1863 | } | |
1860 | 1864 | else throw("Unknown entity type") | |
1861 | 1865 | } | |
1862 | 1866 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0) | |
1863 | 1867 | } | |
1864 | 1868 | } | |
1865 | 1869 | } | |
1866 | 1870 | ||
1867 | 1871 | ||
1868 | 1872 | ||
1869 | 1873 | @Callable(i) | |
1870 | 1874 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
1871 | 1875 | then throw("Permission denied") | |
1872 | 1876 | else { | |
1873 | 1877 | let prologAction = prolog(i) | |
1874 | 1878 | if ((size(i.payments) != 0)) | |
1875 | 1879 | then throw("No payments required") | |
1876 | 1880 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
1877 | 1881 | then throw(("Invalid address: " + oldPlayer)) | |
1878 | 1882 | else if (!(isDefined(addressFromString(newPlayer)))) | |
1879 | 1883 | then throw(("Invalid address: " + newPlayer)) | |
1880 | 1884 | else { | |
1881 | 1885 | let oldsKey = keyOldies() | |
1882 | 1886 | let olds = getString(oldsKey) | |
1883 | 1887 | let oldies = if (isDefined(olds)) | |
1884 | 1888 | then split_4C(value(olds), "_") | |
1885 | 1889 | else nil | |
1886 | 1890 | if (containsElement(oldies, newPlayer)) | |
1887 | 1891 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
1888 | 1892 | else { | |
1889 | 1893 | let refByKey = keyAddressRefBy(newPlayer) | |
1890 | 1894 | let refBy = getString(refByKey) | |
1891 | 1895 | if (if (isDefined(refBy)) | |
1892 | 1896 | then isDefined(addressFromString(value(refBy))) | |
1893 | 1897 | else false) | |
1894 | 1898 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
1895 | 1899 | else { | |
1896 | 1900 | let refsKey = keyAddressReferrals(oldPlayer) | |
1897 | 1901 | let refs = getString(refsKey) | |
1898 | 1902 | let refsArray = if (isDefined(refs)) | |
1899 | 1903 | then split_4C(value(refs), "_") | |
1900 | 1904 | else nil | |
1901 | 1905 | if (containsElement(refsArray, newPlayer)) | |
1902 | 1906 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
1903 | 1907 | else { | |
1904 | 1908 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
1905 | 1909 | let newOlds = makeString_2C((oldies :+ oldPlayer), "_") | |
1906 | 1910 | $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0) | |
1907 | 1911 | } | |
1908 | 1912 | } | |
1909 | 1913 | } | |
1910 | 1914 | } | |
1911 | 1915 | } | |
1912 | 1916 | ||
1913 | 1917 | ||
1914 | 1918 | ||
1915 | 1919 | @Callable(i) | |
1916 | 1920 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
1917 | 1921 | ||
1918 | 1922 | ||
1919 | 1923 | ||
1920 | 1924 | @Callable(i) | |
1921 | 1925 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
1922 | 1926 | let terrainCounts = countTerrains(terrains) | |
1923 | 1927 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
1924 | 1928 | } | |
1925 | 1929 | ||
1926 | 1930 | ||
1927 | 1931 | ||
1928 | 1932 | @Callable(i) | |
1929 | 1933 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
1930 | 1934 | ||
1931 | 1935 | ||
1932 | 1936 | ||
1933 | 1937 | @Callable(i) | |
1934 | 1938 | func getWarehouseREADONLY (landAssetId) = { | |
1935 | 1939 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1936 | 1940 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1937 | 1941 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1938 | 1942 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
1939 | 1943 | } | |
1940 | 1944 | ||
1941 | 1945 |
github/deemru/w8io/026f985 199.68 ms ◑