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