tx · DxM4Fr3uH12fuWgKBRcMMZ9oQHfLShDoArG6kHvir8Na 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.07700000 Waves 2023.07.24 12:08 [2679741] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "DxM4Fr3uH12fuWgKBRcMMZ9oQHfLShDoArG6kHvir8Na", "fee": 7700000, "feeAssetId": null, "timestamp": 1690189780708, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "47MyL7BmFhVJG3zzkeHd8HDSDewFKLQxMDDUGXB4MhbytEGPEPoxS5UKERGo33d5M3YSnKiALTqjPoBCtUX8QVYH" ], "script": "base64:BgKyAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgUKAwEBARIAEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgMKAQgSBQoDCAgIEgQKAggIEgcKBQEBAQEBEgMKAQESBQoDAQEIEgMKAQgSAwoBCBIAEgQKAggBEgQKAggBEgMKAQjVAQEUa2V5TGFzdEFyYlRpbWVCeVVzZXIBBGFkZHIJAKwCAgIQbGFzdEFyYlRpbWVVc2VyXwUEYWRkcgAGU0NBTEU4AIDC1y8ADHhwTGV2ZWxTY2FsZQCAGQAPeHBMZXZlbFJlY2lwUG93AKAfABJudW1Qb2ludHNPbkxldmVsVXAAAwAMcmVxdWlyZW1lbnRzCQDMCAICCFN0cmVuZ3RoCQDMCAICCEFjY3VyYWN5CQDMCAICCUludGVsbGVjdAkAzAgCAglFbmR1cmFuY2UJAMwIAgIJRGV4dGVyaXR5CQDMCAICBUxldmVsCQDMCAICBkhlYWx0aAUDbmlsAAxjaGFyU3RyZW5ndGgAAAAMY2hhckFj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wSWR4TWF0CQDMCAIFCm5ld1Byb2RTdHIFA25pbAIBOgkAzAgCBQxwcm9sb2dBY3Rpb24FA25pbAAAAPwsKV0=", "height": 2679741, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BvMzugfkeWcn5ckPb4ECCsXaxgKn14f4nq5jyM2NmtQd Next: 88aqsfbyDA6sgXS2HSdJVj2qFASbuVR7Mxius3Bx3Qiw Diff:
Old | New | Differences | |
---|---|---|---|
665 | 665 | let parts = split(idxCnt, ":") | |
666 | 666 | if ((size(parts) != 2)) | |
667 | 667 | then throw("Incorrect format, should be index:amount") | |
668 | - | else if ((size(parts[0]) != 2)) | |
668 | + | else if (if (!(isPositive)) | |
669 | + | then (size(parts[0]) != 2) | |
670 | + | else false) | |
669 | 671 | then throw("Product idx should be 2 digits, zero padded") | |
670 | 672 | else { | |
671 | 673 | let productIdx = parseIntValue(parts[0]) | |
1309 | 1311 | ||
1310 | 1312 | ||
1311 | 1313 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1312 | - | let $ | |
1314 | + | let $t02927229811 = if ((claimMode == claimModeWh)) | |
1313 | 1315 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1314 | 1316 | else { | |
1315 | 1317 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1319 | 1321 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1320 | 1322 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1321 | 1323 | } | |
1322 | - | let landAssetId = $ | |
1323 | - | let duckId = $ | |
1324 | + | let landAssetId = $t02927229811._1 | |
1325 | + | let duckId = $t02927229811._2 | |
1324 | 1326 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1325 | 1327 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1326 | 1328 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1368 | 1370 | let currentPack = getBackpack(bpKey) | |
1369 | 1371 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1370 | 1372 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1371 | - | let $ | |
1373 | + | let $t03218533056 = if ((claimMode == claimModeWh)) | |
1372 | 1374 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1373 | 1375 | else if ((claimMode == claimModeDuck)) | |
1374 | 1376 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1377 | 1379 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1378 | 1380 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1379 | 1381 | } | |
1380 | - | let whRes = $ | |
1381 | - | let bpRes = $ | |
1382 | - | let loftO = $ | |
1383 | - | let loftF = $ | |
1382 | + | let whRes = $t03218533056._1 | |
1383 | + | let bpRes = $t03218533056._2 | |
1384 | + | let loftO = $t03218533056._3 | |
1385 | + | let loftF = $t03218533056._4 | |
1384 | 1386 | $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]], "_")]) | |
1385 | 1387 | } | |
1386 | 1388 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func keyLastArbTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let SCALE8 = 100000000 | |
8 | 8 | ||
9 | 9 | let xpLevelScale = 3200 | |
10 | 10 | ||
11 | 11 | let xpLevelRecipPow = 4000 | |
12 | 12 | ||
13 | 13 | let numPointsOnLevelUp = 3 | |
14 | 14 | ||
15 | 15 | let requirements = ["Strength", "Accuracy", "Intellect", "Endurance", "Dexterity", "Level", "Health"] | |
16 | 16 | ||
17 | 17 | let charStrength = 0 | |
18 | 18 | ||
19 | 19 | let charAccuracy = 1 | |
20 | 20 | ||
21 | 21 | let charIntellect = 2 | |
22 | 22 | ||
23 | 23 | let charEndurance = 3 | |
24 | 24 | ||
25 | 25 | let charDexterity = 4 | |
26 | 26 | ||
27 | 27 | let NUMSEGMENTS = 6 | |
28 | 28 | ||
29 | 29 | let NUMMAINAUX = 2 | |
30 | 30 | ||
31 | 31 | let MAXSLOTS = 2 | |
32 | 32 | ||
33 | 33 | let MAXPRODINSLOT = 30 | |
34 | 34 | ||
35 | 35 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func keyUserXP (addr) = ("userXP_" + addr) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | let xpClaim = 100000 | |
63 | 63 | ||
64 | 64 | let xpSuccessFlight = 50000 | |
65 | 65 | ||
66 | 66 | let xpFailFlight = 10000 | |
67 | 67 | ||
68 | 68 | let xpCallES = 100000 | |
69 | 69 | ||
70 | 70 | let xpCustomName = 5000000 | |
71 | 71 | ||
72 | 72 | let xpNewSLand = 50000000 | |
73 | 73 | ||
74 | 74 | let xpUpgradeInfra = 100000 | |
75 | 75 | ||
76 | 76 | let xpMerge = 10000000 | |
77 | 77 | ||
78 | 78 | let xpOnboard = 10000000 | |
79 | 79 | ||
80 | 80 | let xpHeal = 10000 | |
81 | 81 | ||
82 | 82 | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func maxHealth (level) = (100 + level) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func levelUp (currLevel,newXP) = { | |
89 | 89 | let newLevel = levelByXP(newXP) | |
90 | 90 | [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))] | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func getDuckStats (stakingContract,duckAssetId) = { | |
95 | 95 | let chars = split(valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0"), "_") | |
96 | 96 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
97 | 97 | let health = valueOrElse(getInteger(stakingContract, keyDuckHealth(duckAssetId)), maxHealth(lvl)) | |
98 | 98 | [parseIntValue(chars[charStrength]), parseIntValue(chars[charAccuracy]), parseIntValue(chars[charIntellect]), parseIntValue(chars[charEndurance]), parseIntValue(chars[charDexterity]), lvl, health] | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | let LANDPREFIX = "LAND" | |
103 | 103 | ||
104 | 104 | let DUCKPREFIX = "DUCK" | |
105 | 105 | ||
106 | 106 | let ARTPRESALE = "PRESALE" | |
107 | 107 | ||
108 | 108 | let NUMRES = 6 | |
109 | 109 | ||
110 | 110 | let DAILYRESBYPIECE = 3456000 | |
111 | 111 | ||
112 | 112 | let DAYMILLIS = 86400000 | |
113 | 113 | ||
114 | 114 | let WHMULTIPLIER = 10000000000 | |
115 | 115 | ||
116 | 116 | let DEFAULTLOCATION = "Africa_F_Africa" | |
117 | 117 | ||
118 | 118 | let RESOURCEPRICEMIN = 39637 | |
119 | 119 | ||
120 | 120 | let ESSELLCOEF = 10 | |
121 | 121 | ||
122 | 122 | 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"] | |
123 | 123 | ||
124 | 124 | let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
125 | 125 | ||
126 | 126 | let COEFF2MAT = 10000000 | |
127 | 127 | ||
128 | 128 | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_30_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_50_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_70_0,0,0,0,0,0,0_201"] | |
129 | 129 | ||
130 | 130 | let rIdxCoeff = 6 | |
131 | 131 | ||
132 | 132 | let rIdxRequirements = 9 | |
133 | 133 | ||
134 | 134 | let rIdxSlots = 10 | |
135 | 135 | ||
136 | 136 | let PRODUCTPKGSIZE = 10 | |
137 | 137 | ||
138 | 138 | let whIdxLevels = 0 | |
139 | 139 | ||
140 | 140 | let whIdxRes = 1 | |
141 | 141 | ||
142 | 142 | let whIdxMat = 2 | |
143 | 143 | ||
144 | 144 | let whIdxProd = 3 | |
145 | 145 | ||
146 | 146 | let whIdxLOFT = 4 | |
147 | 147 | ||
148 | 148 | let volLocked = 0 | |
149 | 149 | ||
150 | 150 | let volOccupied = 1 | |
151 | 151 | ||
152 | 152 | let volFree = 2 | |
153 | 153 | ||
154 | 154 | let volTotal = 3 | |
155 | 155 | ||
156 | 156 | let bpIdxLevel = 0 | |
157 | 157 | ||
158 | 158 | let bpIdxRes = 1 | |
159 | 159 | ||
160 | 160 | let bpIdxMat = 2 | |
161 | 161 | ||
162 | 162 | let bpIdxProd = 3 | |
163 | 163 | ||
164 | 164 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func keyOnboardArtActivatedOnDuck (duckAssetId) = ("onboardArtActivatedOnDuck_" + duckAssetId) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func keyBlocked () = "contractsBlocked" | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | let locIdxType = 1 | |
228 | 228 | ||
229 | 229 | let locIdxId = 2 | |
230 | 230 | ||
231 | 231 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | let KSALLOWXPLEVELS = true | |
235 | 235 | ||
236 | 236 | let chain = take(drop(this.bytes, 1), 1) | |
237 | 237 | ||
238 | 238 | let usdtAssetId = match chain { | |
239 | 239 | case _ => | |
240 | 240 | if ((base58'2W' == $match0)) | |
241 | 241 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
242 | 242 | else if ((base58'2T' == $match0)) | |
243 | 243 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
244 | 244 | else throw("Unknown chain") | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | let defaultRestAddressStr = match chain { | |
248 | 248 | case _ => | |
249 | 249 | if ((base58'2W' == $match0)) | |
250 | 250 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
251 | 251 | else if ((base58'2T' == $match0)) | |
252 | 252 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
253 | 253 | else throw("Unknown chain") | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | let InfraUpgradeCostS = match chain { | |
257 | 257 | case _ => | |
258 | 258 | if ((base58'2W' == $match0)) | |
259 | 259 | then 10000000000 | |
260 | 260 | else if ((base58'2T' == $match0)) | |
261 | 261 | then 100000000 | |
262 | 262 | else throw("Unknown chain") | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | let arbitrageDelay = match chain { | |
266 | 266 | case _ => | |
267 | 267 | if ((base58'2W' == $match0)) | |
268 | 268 | then 600000 | |
269 | 269 | else if ((base58'2T' == $match0)) | |
270 | 270 | then 60000 | |
271 | 271 | else throw("Unknown chain") | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | let SEP = "__" | |
275 | 275 | ||
276 | 276 | let MULT6 = 1000000 | |
277 | 277 | ||
278 | 278 | let MULT8 = 100000000 | |
279 | 279 | ||
280 | 280 | let SSIZE = 25 | |
281 | 281 | ||
282 | 282 | let MSIZE = 100 | |
283 | 283 | ||
284 | 284 | let LSIZE = 225 | |
285 | 285 | ||
286 | 286 | let XLSIZE = 400 | |
287 | 287 | ||
288 | 288 | let XXLSIZE = 625 | |
289 | 289 | ||
290 | 290 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | let IdxCfgStakingDapp = 1 | |
294 | 294 | ||
295 | 295 | let IdxCfgEconomyDapp = 2 | |
296 | 296 | ||
297 | 297 | let IdxCfgGovernanceDapp = 3 | |
298 | 298 | ||
299 | 299 | let IdxCfgWlgDapp = 4 | |
300 | 300 | ||
301 | 301 | func keyRestCfg () = "%s__restConfig" | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func keyRestAddress () = "%s__restAddr" | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
314 | 314 | ||
315 | 315 | let restCfg = readRestCfgOrFail(restContract) | |
316 | 316 | ||
317 | 317 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
318 | 318 | ||
319 | 319 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
320 | 320 | ||
321 | 321 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
322 | 322 | ||
323 | 323 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
324 | 324 | ||
325 | 325 | let recLandNum = 0 | |
326 | 326 | ||
327 | 327 | let recLandSize = 1 | |
328 | 328 | ||
329 | 329 | let recTerrains = 2 | |
330 | 330 | ||
331 | 331 | let recContinent = 3 | |
332 | 332 | ||
333 | 333 | func keyResProportions () = "resTypesProportions" | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
337 | 337 | ||
338 | 338 | ||
339 | 339 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | func asString (v) = match v { | |
343 | 343 | case s: String => | |
344 | 344 | s | |
345 | 345 | case _ => | |
346 | 346 | throw("fail to cast into String") | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func asInt (v) = match v { | |
351 | 351 | case n: Int => | |
352 | 352 | n | |
353 | 353 | case _ => | |
354 | 354 | throw("fail to cast into Int") | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func numPiecesBySize (landSize) = match landSize { | |
359 | 359 | case _ => | |
360 | 360 | if (("S" == $match0)) | |
361 | 361 | then SSIZE | |
362 | 362 | else if (("M" == $match0)) | |
363 | 363 | then MSIZE | |
364 | 364 | else if (("L" == $match0)) | |
365 | 365 | then LSIZE | |
366 | 366 | else if (("XL" == $match0)) | |
367 | 367 | then XLSIZE | |
368 | 368 | else if (("XXL" == $match0)) | |
369 | 369 | then XXLSIZE | |
370 | 370 | else throw("Unknown land size") | |
371 | 371 | } | |
372 | 372 | ||
373 | 373 | ||
374 | 374 | func isDigit (s) = isDefined(parseInt(s)) | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | let incubatorAddr = match chain { | |
378 | 378 | case _ => | |
379 | 379 | if ((base58'2W' == $match0)) | |
380 | 380 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
381 | 381 | else if ((base58'2T' == $match0)) | |
382 | 382 | then this | |
383 | 383 | else throw("Unknown chain") | |
384 | 384 | } | |
385 | 385 | ||
386 | 386 | let breederAddr = match chain { | |
387 | 387 | case _ => | |
388 | 388 | if ((base58'2W' == $match0)) | |
389 | 389 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
390 | 390 | else if ((base58'2T' == $match0)) | |
391 | 391 | then this | |
392 | 392 | else throw("Unknown chain") | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
396 | 396 | ||
397 | 397 | let medKitHp = [30, 60, 120] | |
398 | 398 | ||
399 | 399 | let FIVEMINUTESMILLIS = 300000 | |
400 | 400 | ||
401 | 401 | let RENAMINGCOST = 5000000 | |
402 | 402 | ||
403 | 403 | let MAXNAMELEN = 50 | |
404 | 404 | ||
405 | 405 | let InfraUpgradeCostSUsdt = 10000000 | |
406 | 406 | ||
407 | 407 | let EXPMATERIALS = match chain { | |
408 | 408 | case _ => | |
409 | 409 | if ((base58'2W' == $match0)) | |
410 | 410 | then 252289527462 | |
411 | 411 | else if ((base58'2T' == $match0)) | |
412 | 412 | then 2522895274 | |
413 | 413 | else throw("Unknown chain") | |
414 | 414 | } | |
415 | 415 | ||
416 | 416 | let EXPUSDT = match chain { | |
417 | 417 | case _ => | |
418 | 418 | if ((base58'2W' == $match0)) | |
419 | 419 | then 250000000 | |
420 | 420 | else if ((base58'2T' == $match0)) | |
421 | 421 | then 250000000 | |
422 | 422 | else throw("Unknown chain") | |
423 | 423 | } | |
424 | 424 | ||
425 | 425 | let FIVEX = toBigInt(5) | |
426 | 426 | ||
427 | 427 | let TWENTYX = toBigInt(20) | |
428 | 428 | ||
429 | 429 | let TWENTY2X = toBigInt((20 * 20)) | |
430 | 430 | ||
431 | 431 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
432 | 432 | ||
433 | 433 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
434 | 434 | ||
435 | 435 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
436 | 436 | ||
437 | 437 | let PRESALENUMLANDS = 500 | |
438 | 438 | ||
439 | 439 | func keyNextFreeLandNum () = "nextLandNum" | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | func keyLandCustomNameToAssetId (name) = ("landByCustomName_" + name) | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
449 | 449 | ||
450 | 450 | ||
451 | 451 | func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_") | |
452 | 452 | ||
453 | 453 | ||
454 | 454 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
455 | 455 | ||
456 | 456 | ||
457 | 457 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
458 | 458 | ||
459 | 459 | ||
460 | 460 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
461 | 461 | ||
462 | 462 | ||
463 | 463 | func keyOldies () = "oldiesList" | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | let claimModeWh = 0 | |
467 | 467 | ||
468 | 468 | let claimModeDuck = 1 | |
469 | 469 | ||
470 | 470 | let claimModeWhThenDuck = 2 | |
471 | 471 | ||
472 | 472 | let flHealth = 0 | |
473 | 473 | ||
474 | 474 | let flTimestamp = 5 | |
475 | 475 | ||
476 | 476 | let flBonus = 6 | |
477 | 477 | ||
478 | 478 | let flProdsUsed = 7 | |
479 | 479 | ||
480 | 480 | func nftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
481 | 481 | ||
482 | 482 | ||
483 | 483 | func distributeByWeights (total,weights) = { | |
484 | 484 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
485 | 485 | if ((0 >= sum)) | |
486 | 486 | then throw("Zero weights sum") | |
487 | 487 | else { | |
488 | 488 | let norm6 = fraction(total, MULT6, sum) | |
489 | 489 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
490 | 490 | ||
491 | 491 | let $l = weights | |
492 | 492 | let $s = size($l) | |
493 | 493 | let $acc0 = nil | |
494 | 494 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
495 | 495 | then $a | |
496 | 496 | else normalizer($a, $l[$i]) | |
497 | 497 | ||
498 | 498 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
499 | 499 | then $a | |
500 | 500 | else throw("List size exceeds 6") | |
501 | 501 | ||
502 | 502 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
503 | 503 | } | |
504 | 504 | } | |
505 | 505 | ||
506 | 506 | ||
507 | 507 | func getNeededMaterials (total) = { | |
508 | 508 | let props = split(value(getString(keyResProportions())), "_") | |
509 | 509 | if ((size(props) != NUMRES)) | |
510 | 510 | then throw("Wrong proportions data") | |
511 | 511 | else { | |
512 | 512 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
513 | 513 | distributeByWeights(total, r) | |
514 | 514 | } | |
515 | 515 | } | |
516 | 516 | ||
517 | 517 | ||
518 | 518 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
519 | 519 | let need = getNeededMaterials(totalNeed) | |
520 | 520 | func subtractor (acc,idx) = { | |
521 | 521 | let result = (parseIntValue(has[idx]) - need[idx]) | |
522 | 522 | if ((0 > result)) | |
523 | 523 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
524 | 524 | else (acc :+ toString(result)) | |
525 | 525 | } | |
526 | 526 | ||
527 | 527 | if (shouldUseMat) | |
528 | 528 | then { | |
529 | 529 | let $l = [0, 1, 2, 3, 4, 5] | |
530 | 530 | let $s = size($l) | |
531 | 531 | let $acc0 = nil | |
532 | 532 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
533 | 533 | then $a | |
534 | 534 | else subtractor($a, $l[$i]) | |
535 | 535 | ||
536 | 536 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
537 | 537 | then $a | |
538 | 538 | else throw("List size exceeds 6") | |
539 | 539 | ||
540 | 540 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
541 | 541 | } | |
542 | 542 | else has | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | func subtractEquipment (oldEq,pUsed) = { | |
547 | 547 | func subUsed (acc,idxAmt) = { | |
548 | 548 | let parts = split(idxAmt, ",") | |
549 | 549 | if ((size(parts) != 2)) | |
550 | 550 | then throw("Incorrect format, should be index,amount") | |
551 | 551 | else { | |
552 | 552 | let idx = parseIntValue(parts[0]) | |
553 | 553 | if (if ((0 > idx)) | |
554 | 554 | then true | |
555 | 555 | else (idx >= size(productionMatrix))) | |
556 | 556 | then throw("Unknown product idx") | |
557 | 557 | else { | |
558 | 558 | let amt = parseIntValue(parts[1]) | |
559 | 559 | let eqParts = split(acc, (parts[0] + ":")) | |
560 | 560 | if ((size(eqParts) != 2)) | |
561 | 561 | then throw((("You don't have " + prodTypes[idx]) + " equipped")) | |
562 | 562 | else { | |
563 | 563 | let tmp = eqParts[1] | |
564 | 564 | let numLen = if (isDigit(take(drop(tmp, 1), 1))) | |
565 | 565 | then 2 | |
566 | 566 | else 1 | |
567 | 567 | let curr = parseIntValue(take(tmp, numLen)) | |
568 | 568 | let tail = drop(tmp, numLen) | |
569 | 569 | let newAmt = if ((curr >= amt)) | |
570 | 570 | then (curr - amt) | |
571 | 571 | else throw(((((("You equipped " + toString(curr)) + " of ") + prodTypes[idx]) + ", but tried to use ") + toString(amt))) | |
572 | 572 | ((((eqParts[0] + parts[0]) + ":") + toString(newAmt)) + tail) | |
573 | 573 | } | |
574 | 574 | } | |
575 | 575 | } | |
576 | 576 | } | |
577 | 577 | ||
578 | 578 | let $l = split(pUsed, "_") | |
579 | 579 | let $s = size($l) | |
580 | 580 | let $acc0 = oldEq | |
581 | 581 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
582 | 582 | then $a | |
583 | 583 | else subUsed($a, $l[$i]) | |
584 | 584 | ||
585 | 585 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
586 | 586 | then $a | |
587 | 587 | else throw("List size exceeds 10") | |
588 | 588 | ||
589 | 589 | $f0_2($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) | |
590 | 590 | } | |
591 | 591 | ||
592 | 592 | ||
593 | 593 | func prodStrToBytes (prodStr) = { | |
594 | 594 | let pList = if ((prodStr == "")) | |
595 | 595 | then nil | |
596 | 596 | else split(prodStr, "_") | |
597 | 597 | func toBV (acc,recipe) = { | |
598 | 598 | let j = (size(acc) / 8) | |
599 | 599 | let curr = if ((size(pList) > j)) | |
600 | 600 | then parseIntValue(pList[j]) | |
601 | 601 | else 0 | |
602 | 602 | (acc + toBytes(curr)) | |
603 | 603 | } | |
604 | 604 | ||
605 | 605 | let $l = productionMatrix | |
606 | 606 | let $s = size($l) | |
607 | 607 | let $acc0 = base58'' | |
608 | 608 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
609 | 609 | then $a | |
610 | 610 | else toBV($a, $l[$i]) | |
611 | 611 | ||
612 | 612 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
613 | 613 | then $a | |
614 | 614 | else throw("List size exceeds 50") | |
615 | 615 | ||
616 | 616 | $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) | |
617 | 617 | } | |
618 | 618 | ||
619 | 619 | ||
620 | 620 | func bytesToProdStr (bv) = { | |
621 | 621 | func fromBV (acc,recipe) = { | |
622 | 622 | let j = size(acc) | |
623 | 623 | let b = take(drop(bv, (8 * j)), 8) | |
624 | 624 | (acc :+ toString(toInt(b))) | |
625 | 625 | } | |
626 | 626 | ||
627 | 627 | makeString({ | |
628 | 628 | let $l = productionMatrix | |
629 | 629 | let $s = size($l) | |
630 | 630 | let $acc0 = nil | |
631 | 631 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
632 | 632 | then $a | |
633 | 633 | else fromBV($a, $l[$i]) | |
634 | 634 | ||
635 | 635 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
636 | 636 | then $a | |
637 | 637 | else throw("List size exceeds 50") | |
638 | 638 | ||
639 | 639 | $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) | |
640 | 640 | }, "_") | |
641 | 641 | } | |
642 | 642 | ||
643 | 643 | ||
644 | 644 | func checkStatRequirements (duckStats,reqs) = { | |
645 | 645 | func check (acc,j) = if ((parseIntValue(reqs[j]) > duckStats[j])) | |
646 | 646 | then throw(("Requirement not satisfied: " + requirements[j])) | |
647 | 647 | else true | |
648 | 648 | ||
649 | 649 | let $l = [0, 1, 2, 3, 4, 5, 6] | |
650 | 650 | let $s = size($l) | |
651 | 651 | let $acc0 = false | |
652 | 652 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
653 | 653 | then $a | |
654 | 654 | else check($a, $l[$i]) | |
655 | 655 | ||
656 | 656 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
657 | 657 | then $a | |
658 | 658 | else throw("List size exceeds 7") | |
659 | 659 | ||
660 | 660 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7) | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | func addProdB (idxCnt,pList,isPositive,segment,mainAux,slot,duckStats) = { | |
665 | 665 | let parts = split(idxCnt, ":") | |
666 | 666 | if ((size(parts) != 2)) | |
667 | 667 | then throw("Incorrect format, should be index:amount") | |
668 | - | else if ((size(parts[0]) != 2)) | |
668 | + | else if (if (!(isPositive)) | |
669 | + | then (size(parts[0]) != 2) | |
670 | + | else false) | |
669 | 671 | then throw("Product idx should be 2 digits, zero padded") | |
670 | 672 | else { | |
671 | 673 | let productIdx = parseIntValue(parts[0]) | |
672 | 674 | let count = parseIntValue(parts[1]) | |
673 | 675 | if (if ((0 > productIdx)) | |
674 | 676 | then true | |
675 | 677 | else (productIdx >= size(productionMatrix))) | |
676 | 678 | then throw("Unknown product idx") | |
677 | 679 | else if ((0 > count)) | |
678 | 680 | then throw("Count can't be negative") | |
679 | 681 | else if ((count > MAXPRODINSLOT)) | |
680 | 682 | then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx])) | |
681 | 683 | else if ((count == 0)) | |
682 | 684 | then $Tuple2(pList, false) | |
683 | 685 | else { | |
684 | 686 | let head = take(pList, (8 * productIdx)) | |
685 | 687 | let curr = toInt(take(drop(pList, (8 * productIdx)), 8)) | |
686 | 688 | let tail = drop(pList, (8 * (productIdx + 1))) | |
687 | 689 | let recipe = split(productionMatrix[productIdx], "_") | |
688 | 690 | if (if (!(isPositive)) | |
689 | 691 | then (count > curr) | |
690 | 692 | else false) | |
691 | 693 | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count))) | |
692 | 694 | else { | |
693 | 695 | let isBigItem = if (if (!(isPositive)) | |
694 | 696 | then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ",")) | |
695 | 697 | else false) | |
696 | 698 | then { | |
697 | 699 | let compat = recipe[rIdxSlots] | |
698 | 700 | if ((compat == "")) | |
699 | 701 | then throw("Item cannot be equipped") | |
700 | 702 | else { | |
701 | 703 | let c = parseIntValue(compat) | |
702 | 704 | let cSeg = (c / 100) | |
703 | 705 | if ((segment != cSeg)) | |
704 | 706 | then throw("Segment incompatible") | |
705 | 707 | else { | |
706 | 708 | let cMainAux = ((c % 100) / 10) | |
707 | 709 | if ((mainAux != cMainAux)) | |
708 | 710 | then throw("Slot incompatible") | |
709 | 711 | else { | |
710 | 712 | let cNumSlots = (c % 10) | |
711 | 713 | if (if ((slot != 0)) | |
712 | 714 | then (cNumSlots > 1) | |
713 | 715 | else false) | |
714 | 716 | then throw("Big items should occupy slot 0") | |
715 | 717 | else (cNumSlots > 1) | |
716 | 718 | } | |
717 | 719 | } | |
718 | 720 | } | |
719 | 721 | } | |
720 | 722 | else false | |
721 | 723 | $Tuple2(((head + toBytes((curr + (if (isPositive) | |
722 | 724 | then count | |
723 | 725 | else -(count))))) + tail), isBigItem) | |
724 | 726 | } | |
725 | 727 | } | |
726 | 728 | } | |
727 | 729 | } | |
728 | 730 | ||
729 | 731 | ||
730 | 732 | func slotsGroupB (g,bpIn,isPositive,segment,mainAux,reqs) = if ((g != "")) | |
731 | 733 | then { | |
732 | 734 | let slots = split(g, ",") | |
733 | 735 | if ((size(slots) > MAXSLOTS)) | |
734 | 736 | then throw("Wrong slots format") | |
735 | 737 | else { | |
736 | 738 | let s0 = slots[0] | |
737 | 739 | let s1 = if ((size(slots) > 1)) | |
738 | 740 | then slots[1] | |
739 | 741 | else "" | |
740 | 742 | if (if ((s0 == "")) | |
741 | 743 | then (s1 == "") | |
742 | 744 | else false) | |
743 | 745 | then bpIn | |
744 | 746 | else { | |
745 | 747 | let tmpS0 = if ((s0 != "")) | |
746 | 748 | then addProdB(s0, bpIn, isPositive, segment, mainAux, 0, reqs) | |
747 | 749 | else $Tuple2(bpIn, false) | |
748 | 750 | if ((s1 != "")) | |
749 | 751 | then if (tmpS0._2) | |
750 | 752 | then throw("Big item already occupies slot") | |
751 | 753 | else addProdB(s1, tmpS0._1, isPositive, segment, mainAux, 1, reqs)._1 | |
752 | 754 | else tmpS0._1 | |
753 | 755 | } | |
754 | 756 | } | |
755 | 757 | } | |
756 | 758 | else bpIn | |
757 | 759 | ||
758 | 760 | ||
759 | 761 | func dressB (segList,pBytes,isPositive,reqs) = { | |
760 | 762 | func segment (acc,seg) = { | |
761 | 763 | let j = acc._1 | |
762 | 764 | let mainAux = split(seg, ";") | |
763 | 765 | if ((size(mainAux) != NUMMAINAUX)) | |
764 | 766 | then throw("Wrong segment format") | |
765 | 767 | else { | |
766 | 768 | let m = mainAux[0] | |
767 | 769 | let a = mainAux[1] | |
768 | 770 | if (if ((m == "")) | |
769 | 771 | then (a == "") | |
770 | 772 | else false) | |
771 | 773 | then $Tuple2((j + 1), acc._2) | |
772 | 774 | else { | |
773 | 775 | let tmpM = slotsGroupB(m, acc._2, isPositive, j, 0, reqs) | |
774 | 776 | $Tuple2((j + 1), slotsGroupB(a, tmpM, isPositive, j, 1, reqs)) | |
775 | 777 | } | |
776 | 778 | } | |
777 | 779 | } | |
778 | 780 | ||
779 | 781 | ( let $l = segList | |
780 | 782 | let $s = size($l) | |
781 | 783 | let $acc0 = $Tuple2(0, pBytes) | |
782 | 784 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
783 | 785 | then $a | |
784 | 786 | else segment($a, $l[$i]) | |
785 | 787 | ||
786 | 788 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
787 | 789 | then $a | |
788 | 790 | else throw("List size exceeds 6") | |
789 | 791 | ||
790 | 792 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6))._2 | |
791 | 793 | } | |
792 | 794 | ||
793 | 795 | ||
794 | 796 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
795 | 797 | then throw("Wrong proportions data") | |
796 | 798 | else { | |
797 | 799 | func updater (acc,i) = { | |
798 | 800 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
799 | 801 | if ((0 > result)) | |
800 | 802 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
801 | 803 | else (acc :+ toString(result)) | |
802 | 804 | } | |
803 | 805 | ||
804 | 806 | let r = { | |
805 | 807 | let $l = [0, 1, 2, 3, 4, 5] | |
806 | 808 | let $s = size($l) | |
807 | 809 | let $acc0 = nil | |
808 | 810 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
809 | 811 | then $a | |
810 | 812 | else updater($a, $l[$i]) | |
811 | 813 | ||
812 | 814 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
813 | 815 | then $a | |
814 | 816 | else throw("List size exceeds 6") | |
815 | 817 | ||
816 | 818 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
817 | 819 | } | |
818 | 820 | makeString(r, "_") | |
819 | 821 | } | |
820 | 822 | ||
821 | 823 | ||
822 | 824 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
823 | 825 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
824 | 826 | updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign) | |
825 | 827 | } | |
826 | 828 | ||
827 | 829 | ||
828 | 830 | 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)] | |
829 | 831 | ||
830 | 832 | ||
831 | 833 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
832 | 834 | func adder (acc,i) = { | |
833 | 835 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
834 | 836 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
835 | 837 | } | |
836 | 838 | ||
837 | 839 | let r = { | |
838 | 840 | let $l = [0, 1, 2, 3, 4, 5] | |
839 | 841 | let $s = size($l) | |
840 | 842 | let $acc0 = nil | |
841 | 843 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
842 | 844 | then $a | |
843 | 845 | else adder($a, $l[$i]) | |
844 | 846 | ||
845 | 847 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
846 | 848 | then $a | |
847 | 849 | else throw("List size exceeds 6") | |
848 | 850 | ||
849 | 851 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
850 | 852 | } | |
851 | 853 | makeString(r, "_") | |
852 | 854 | } | |
853 | 855 | ||
854 | 856 | ||
855 | 857 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
856 | 858 | func adder (acc,i) = { | |
857 | 859 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
858 | 860 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
859 | 861 | } | |
860 | 862 | ||
861 | 863 | let $l = [0, 1, 2, 3, 4, 5] | |
862 | 864 | let $s = size($l) | |
863 | 865 | let $acc0 = $Tuple2(nil, 0) | |
864 | 866 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
865 | 867 | then $a | |
866 | 868 | else adder($a, $l[$i]) | |
867 | 869 | ||
868 | 870 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
869 | 871 | then $a | |
870 | 872 | else throw("List size exceeds 6") | |
871 | 873 | ||
872 | 874 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
873 | 875 | } | |
874 | 876 | ||
875 | 877 | ||
876 | 878 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
877 | 879 | let resListToClaim = resToClaim._1 | |
878 | 880 | let resAmToClaim = resToClaim._2 | |
879 | 881 | if ((resAmToClaim == 0)) | |
880 | 882 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
881 | 883 | else if ((whSpaceLeft >= resAmToClaim)) | |
882 | 884 | then { | |
883 | 885 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
884 | 886 | ||
885 | 887 | let r = { | |
886 | 888 | let $l = [0, 1, 2, 3, 4, 5] | |
887 | 889 | let $s = size($l) | |
888 | 890 | let $acc0 = nil | |
889 | 891 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
890 | 892 | then $a | |
891 | 893 | else addLists($a, $l[$i]) | |
892 | 894 | ||
893 | 895 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
894 | 896 | then $a | |
895 | 897 | else throw("List size exceeds 6") | |
896 | 898 | ||
897 | 899 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
898 | 900 | } | |
899 | 901 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
900 | 902 | } | |
901 | 903 | else { | |
902 | 904 | func addPartLists (acc,i) = { | |
903 | 905 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
904 | 906 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
905 | 907 | } | |
906 | 908 | ||
907 | 909 | let r = { | |
908 | 910 | let $l = [0, 1, 2, 3, 4, 5] | |
909 | 911 | let $s = size($l) | |
910 | 912 | let $acc0 = $Tuple2(nil, nil) | |
911 | 913 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
912 | 914 | then $a | |
913 | 915 | else addPartLists($a, $l[$i]) | |
914 | 916 | ||
915 | 917 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
916 | 918 | then $a | |
917 | 919 | else throw("List size exceeds 6") | |
918 | 920 | ||
919 | 921 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
920 | 922 | } | |
921 | 923 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
922 | 924 | } | |
923 | 925 | } | |
924 | 926 | ||
925 | 927 | ||
926 | 928 | func abs (x) = if ((x >= toBigInt(0))) | |
927 | 929 | then x | |
928 | 930 | else -(x) | |
929 | 931 | ||
930 | 932 | ||
931 | 933 | 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]] | |
932 | 934 | ||
933 | 935 | func genChar (n,freqs) = { | |
934 | 936 | let rem = toInt((n % TWENTYX)) | |
935 | 937 | let letter = if ((freqs[0] > rem)) | |
936 | 938 | then "A" | |
937 | 939 | else if ((freqs[1] > rem)) | |
938 | 940 | then "B" | |
939 | 941 | else if ((freqs[2] > rem)) | |
940 | 942 | then "C" | |
941 | 943 | else if ((freqs[3] > rem)) | |
942 | 944 | then "D" | |
943 | 945 | else if ((freqs[4] > rem)) | |
944 | 946 | then "E" | |
945 | 947 | else "F" | |
946 | 948 | letter | |
947 | 949 | } | |
948 | 950 | ||
949 | 951 | ||
950 | 952 | func genTerrains (seed,continentIdx) = { | |
951 | 953 | let f = freq[continentIdx] | |
952 | 954 | 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)) | |
953 | 955 | ||
954 | 956 | let t = { | |
955 | 957 | let $l = [1, 2, 3, 4, 5] | |
956 | 958 | let $s = size($l) | |
957 | 959 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
958 | 960 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
959 | 961 | then $a | |
960 | 962 | else terrainGenerator($a, $l[$i]) | |
961 | 963 | ||
962 | 964 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
963 | 965 | then $a | |
964 | 966 | else throw("List size exceeds 5") | |
965 | 967 | ||
966 | 968 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
967 | 969 | } | |
968 | 970 | t._1 | |
969 | 971 | } | |
970 | 972 | ||
971 | 973 | ||
972 | 974 | func getBackpack (bpKey) = { | |
973 | 975 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
974 | 976 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
975 | 977 | then p[bpIdxRes] | |
976 | 978 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
977 | 979 | then p[bpIdxMat] | |
978 | 980 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
979 | 981 | } | |
980 | 982 | ||
981 | 983 | ||
982 | 984 | func getWarehouseTotalVolume (volPrefix) = { | |
983 | 985 | let parts = split(volPrefix, "_") | |
984 | 986 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
985 | 987 | } | |
986 | 988 | ||
987 | 989 | ||
988 | 990 | func getWarehouseOccupiedVol (currentWh) = { | |
989 | 991 | let goods = currentWh[whIdxProd] | |
990 | 992 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
991 | 993 | ||
992 | 994 | func sumProd (acc,item) = { | |
993 | 995 | let idx = acc._1 | |
994 | 996 | let pkgs = (((parseIntValue(item) + PRODUCTPKGSIZE) - 1) / PRODUCTPKGSIZE) | |
995 | 997 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
996 | 998 | } | |
997 | 999 | ||
998 | 1000 | let whResVol = { | |
999 | 1001 | let $l = split(currentWh[whIdxRes], "_") | |
1000 | 1002 | let $s = size($l) | |
1001 | 1003 | let $acc0 = 0 | |
1002 | 1004 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1003 | 1005 | then $a | |
1004 | 1006 | else sumResMat($a, $l[$i]) | |
1005 | 1007 | ||
1006 | 1008 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1007 | 1009 | then $a | |
1008 | 1010 | else throw("List size exceeds 6") | |
1009 | 1011 | ||
1010 | 1012 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1011 | 1013 | } | |
1012 | 1014 | let whMatVol = { | |
1013 | 1015 | let $l = split(currentWh[whIdxMat], "_") | |
1014 | 1016 | let $s = size($l) | |
1015 | 1017 | let $acc0 = 0 | |
1016 | 1018 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1017 | 1019 | then $a | |
1018 | 1020 | else sumResMat($a, $l[$i]) | |
1019 | 1021 | ||
1020 | 1022 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1021 | 1023 | then $a | |
1022 | 1024 | else throw("List size exceeds 6") | |
1023 | 1025 | ||
1024 | 1026 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1025 | 1027 | } | |
1026 | 1028 | let whGoodsVol = if ((goods == "")) | |
1027 | 1029 | then 0 | |
1028 | 1030 | else ( let $l = split_4C(goods, "_") | |
1029 | 1031 | let $s = size($l) | |
1030 | 1032 | let $acc0 = $Tuple2(0, 0) | |
1031 | 1033 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1032 | 1034 | then $a | |
1033 | 1035 | else sumProd($a, $l[$i]) | |
1034 | 1036 | ||
1035 | 1037 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1036 | 1038 | then $a | |
1037 | 1039 | else throw("List size exceeds 50") | |
1038 | 1040 | ||
1039 | 1041 | $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 | |
1040 | 1042 | ((whResVol + whMatVol) + whGoodsVol) | |
1041 | 1043 | } | |
1042 | 1044 | ||
1043 | 1045 | ||
1044 | 1046 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
1045 | 1047 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
1046 | 1048 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
1047 | 1049 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
1048 | 1050 | let wh = split_4C(whStr, ":") | |
1049 | 1051 | let whOccupied = getWarehouseOccupiedVol(wh) | |
1050 | 1052 | let whLoft = if ((5 > size(wh))) | |
1051 | 1053 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
1052 | 1054 | else { | |
1053 | 1055 | let loft = split(wh[whIdxLOFT], "_") | |
1054 | 1056 | let whLocked = parseIntValue(loft[volLocked]) | |
1055 | 1057 | let occ = if ((size(loft) > 1)) | |
1056 | 1058 | then parseIntValue(loft[volOccupied]) | |
1057 | 1059 | else whOccupied | |
1058 | 1060 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
1059 | 1061 | } | |
1060 | 1062 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
1061 | 1063 | then wh[whIdxRes] | |
1062 | 1064 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
1063 | 1065 | then wh[whIdxMat] | |
1064 | 1066 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
1065 | 1067 | } | |
1066 | 1068 | ||
1067 | 1069 | ||
1068 | 1070 | func getWarehouseSpaceLeft (currentWh) = { | |
1069 | 1071 | let occupiedVol = getWarehouseOccupiedVol(currentWh) | |
1070 | 1072 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
1071 | 1073 | ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol) | |
1072 | 1074 | } | |
1073 | 1075 | ||
1074 | 1076 | ||
1075 | 1077 | func toVolume (amount,pkgSize) = { | |
1076 | 1078 | let pkgs = if ((amount >= 0)) | |
1077 | 1079 | then (((amount + pkgSize) - 1) / pkgSize) | |
1078 | 1080 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
1079 | 1081 | (pkgs * MULT8) | |
1080 | 1082 | } | |
1081 | 1083 | ||
1082 | 1084 | ||
1083 | 1085 | func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3)) | |
1084 | 1086 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
1085 | 1087 | else { | |
1086 | 1088 | let resParts = split(cargoParts[0], "_") | |
1087 | 1089 | let matParts = split(cargoParts[1], "_") | |
1088 | 1090 | let prodParts = if ((cargoParts[2] == "")) | |
1089 | 1091 | then nil | |
1090 | 1092 | else split(cargoParts[2], "_") | |
1091 | 1093 | if ((size(resParts) != NUMRES)) | |
1092 | 1094 | then throw("All 6 resources should be passed") | |
1093 | 1095 | else if ((size(matParts) != NUMRES)) | |
1094 | 1096 | then throw("All 6 materials should be passed") | |
1095 | 1097 | else { | |
1096 | 1098 | let whSpaceLeft = getWarehouseSpaceLeft(currentWh) | |
1097 | 1099 | let currWhRes = split(currentWh[whIdxRes], "_") | |
1098 | 1100 | let currWhMat = split(currentWh[whIdxMat], "_") | |
1099 | 1101 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
1100 | 1102 | then nil | |
1101 | 1103 | else split(currentWh[whIdxProd], "_") | |
1102 | 1104 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1103 | 1105 | let currentPackMat = split(currentPack[bpIdxMat], "_") | |
1104 | 1106 | let currentPackProd = if ((currentPack[bpIdxProd] == "")) | |
1105 | 1107 | then nil | |
1106 | 1108 | else split(currentPack[bpIdxProd], "_") | |
1107 | 1109 | func mvR (acc,item) = { | |
1108 | 1110 | let i = acc._1 | |
1109 | 1111 | let am = parseIntValue(item) | |
1110 | 1112 | let whr = parseIntValue(currWhRes[i]) | |
1111 | 1113 | let bpr = parseIntValue(currentPackRes[i]) | |
1112 | 1114 | if ((am == 0)) | |
1113 | 1115 | then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4) | |
1114 | 1116 | else if ((am > 0)) | |
1115 | 1117 | then if ((am > bpr)) | |
1116 | 1118 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available")) | |
1117 | 1119 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1118 | 1120 | else if ((-(am) > whr)) | |
1119 | 1121 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available")) | |
1120 | 1122 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1121 | 1123 | } | |
1122 | 1124 | ||
1123 | 1125 | let r = { | |
1124 | 1126 | let $l = resParts | |
1125 | 1127 | let $s = size($l) | |
1126 | 1128 | let $acc0 = $Tuple4(0, nil, nil, 0) | |
1127 | 1129 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1128 | 1130 | then $a | |
1129 | 1131 | else mvR($a, $l[$i]) | |
1130 | 1132 | ||
1131 | 1133 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1132 | 1134 | then $a | |
1133 | 1135 | else throw("List size exceeds 6") | |
1134 | 1136 | ||
1135 | 1137 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1136 | 1138 | } | |
1137 | 1139 | func mvM (acc,item) = { | |
1138 | 1140 | let i = acc._1 | |
1139 | 1141 | let am = parseIntValue(item) | |
1140 | 1142 | let whm = parseIntValue(currWhMat[i]) | |
1141 | 1143 | let bpm = parseIntValue(currentPackMat[i]) | |
1142 | 1144 | if ((am == 0)) | |
1143 | 1145 | then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4) | |
1144 | 1146 | else if ((am > 0)) | |
1145 | 1147 | then if ((am > bpm)) | |
1146 | 1148 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available")) | |
1147 | 1149 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1148 | 1150 | else if ((-(am) > whm)) | |
1149 | 1151 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available")) | |
1150 | 1152 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1151 | 1153 | } | |
1152 | 1154 | ||
1153 | 1155 | let m = { | |
1154 | 1156 | let $l = matParts | |
1155 | 1157 | let $s = size($l) | |
1156 | 1158 | let $acc0 = $Tuple4(0, nil, nil, r._4) | |
1157 | 1159 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1158 | 1160 | then $a | |
1159 | 1161 | else mvM($a, $l[$i]) | |
1160 | 1162 | ||
1161 | 1163 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1162 | 1164 | then $a | |
1163 | 1165 | else throw("List size exceeds 6") | |
1164 | 1166 | ||
1165 | 1167 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1166 | 1168 | } | |
1167 | 1169 | func mvP (acc,item) = { | |
1168 | 1170 | let i = acc._1 | |
1169 | 1171 | let am = parseIntValue(item) | |
1170 | 1172 | let whp = if ((size(currWhProd) > i)) | |
1171 | 1173 | then parseIntValue(currWhProd[i]) | |
1172 | 1174 | else 0 | |
1173 | 1175 | let bpp = if ((size(currentPackProd) > i)) | |
1174 | 1176 | then parseIntValue(currentPackProd[i]) | |
1175 | 1177 | else 0 | |
1176 | 1178 | if ((am == 0)) | |
1177 | 1179 | then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4) | |
1178 | 1180 | else if ((am > 0)) | |
1179 | 1181 | then if ((am > bpp)) | |
1180 | 1182 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available")) | |
1181 | 1183 | else { | |
1182 | 1184 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1183 | 1185 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1184 | 1186 | } | |
1185 | 1187 | else if ((-(am) > whp)) | |
1186 | 1188 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available")) | |
1187 | 1189 | else { | |
1188 | 1190 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1189 | 1191 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1190 | 1192 | } | |
1191 | 1193 | } | |
1192 | 1194 | ||
1193 | 1195 | let p = if ((size(prodParts) != 0)) | |
1194 | 1196 | then { | |
1195 | 1197 | let $l = prodParts | |
1196 | 1198 | let $s = size($l) | |
1197 | 1199 | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
1198 | 1200 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1199 | 1201 | then $a | |
1200 | 1202 | else mvP($a, $l[$i]) | |
1201 | 1203 | ||
1202 | 1204 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1203 | 1205 | then $a | |
1204 | 1206 | else throw("List size exceeds 50") | |
1205 | 1207 | ||
1206 | 1208 | $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) | |
1207 | 1209 | } | |
1208 | 1210 | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
1209 | 1211 | let volSaldo = p._4 | |
1210 | 1212 | if ((volSaldo > whSpaceLeft)) | |
1211 | 1213 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
1212 | 1214 | else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo) | |
1213 | 1215 | } | |
1214 | 1216 | } | |
1215 | 1217 | ||
1216 | 1218 | ||
1217 | 1219 | func expeditionInternal (caller,txId) = { | |
1218 | 1220 | let userAddr = toString(caller) | |
1219 | 1221 | let bigNum = abs(toBigInt(txId)) | |
1220 | 1222 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1221 | 1223 | let landNum = toString(freeNum) | |
1222 | 1224 | let continentIdx = toInt((bigNum % FIVEX)) | |
1223 | 1225 | let terrains = genTerrains(bigNum, continentIdx) | |
1224 | 1226 | let continent = continents[continentIdx] | |
1225 | 1227 | let issue = Issue(nftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
1226 | 1228 | let assetId = calculateAssetId(issue) | |
1227 | 1229 | let id = toBase58String(assetId) | |
1228 | 1230 | $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)) | |
1229 | 1231 | } | |
1230 | 1232 | ||
1231 | 1233 | ||
1232 | 1234 | func flightCommon (userAddr,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
1233 | 1235 | then throw("signature does not match") | |
1234 | 1236 | else { | |
1235 | 1237 | let parts = split(toUtf8String(message), ";") | |
1236 | 1238 | let flightLog = split(parts[0], "|") | |
1237 | 1239 | let hp = split(flightLog[flHealth], "_") | |
1238 | 1240 | let curHP = parseIntValue(hp[0]) | |
1239 | 1241 | let newHP = parseIntValue(hp[1]) | |
1240 | 1242 | let newLocTxVer = split(parts[1], ":") | |
1241 | 1243 | let newLocation = newLocTxVer[0] | |
1242 | 1244 | let time = parseIntValue(flightLog[flTimestamp]) | |
1243 | 1245 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1244 | 1246 | then true | |
1245 | 1247 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1246 | 1248 | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1247 | 1249 | else { | |
1248 | 1250 | let txFromMsg = newLocTxVer[1] | |
1249 | 1251 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "") | |
1250 | 1252 | if ((lastTx != txFromMsg)) | |
1251 | 1253 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1252 | 1254 | else { | |
1253 | 1255 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1254 | 1256 | let keyHealth = keyDuckHealth(duckAssetId) | |
1255 | 1257 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1256 | 1258 | let oldFromState = valueOrElse(getInteger(keyHealth), maxHP) | |
1257 | 1259 | if ((oldFromState != curHP)) | |
1258 | 1260 | then throw(((("oldHealth=" + toString(oldFromState)) + " from state does not match one from flight log=") + toString(curHP))) | |
1259 | 1261 | else if ((0 >= curHP)) | |
1260 | 1262 | then throw("You can't fly with zero health") | |
1261 | 1263 | else { | |
1262 | 1264 | let bonus = if ((size(flightLog) > flBonus)) | |
1263 | 1265 | then flightLog[flBonus] | |
1264 | 1266 | else "" | |
1265 | 1267 | let prodUsed = if ((size(flightLog) > flProdsUsed)) | |
1266 | 1268 | then flightLog[flProdsUsed] | |
1267 | 1269 | else "" | |
1268 | 1270 | let sentAmount = if (if ((newHP > 0)) | |
1269 | 1271 | then (bonus == "$") | |
1270 | 1272 | else false) | |
1271 | 1273 | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1272 | 1274 | else 0 | |
1273 | 1275 | $Tuple5(newHP, duckAssetId, sentAmount, newLocation, prodUsed) | |
1274 | 1276 | } | |
1275 | 1277 | } | |
1276 | 1278 | } | |
1277 | 1279 | } | |
1278 | 1280 | ||
1279 | 1281 | ||
1280 | 1282 | func expeditionCommon (caller,txId,message,sig) = { | |
1281 | 1283 | let userAddr = toString(caller) | |
1282 | 1284 | let f = flightCommon(userAddr, message, sig) | |
1283 | 1285 | let duckAssetId = f._2 | |
1284 | 1286 | let keyHealth = keyDuckHealth(duckAssetId) | |
1285 | 1287 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1286 | 1288 | let currentPack = getBackpack(bpKey) | |
1287 | 1289 | let mList = split(currentPack[bpIdxMat], "_") | |
1288 | 1290 | let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_") | |
1289 | 1291 | let eqKey = keyDuckEquipment(duckAssetId) | |
1290 | 1292 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
1291 | 1293 | let newEq = subtractEquipment(currentEq, f._5) | |
1292 | 1294 | if ((0 >= f._1)) | |
1293 | 1295 | then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(eqKey, newEq)], "", 0) | |
1294 | 1296 | else { | |
1295 | 1297 | let e = expeditionInternal(caller, txId) | |
1296 | 1298 | let id = e._2._1 | |
1297 | 1299 | $Tuple3(((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(eqKey, newEq)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id, f._3) | |
1298 | 1300 | } | |
1299 | 1301 | } | |
1300 | 1302 | ||
1301 | 1303 | ||
1302 | 1304 | func applyBonuses (landAssetId,pieces) = { | |
1303 | 1305 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1304 | 1306 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1305 | 1307 | let add6 = (infraLevel / 6) | |
1306 | 1308 | let add7 = (infraLevel / 7) | |
1307 | 1309 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
1308 | 1310 | } | |
1309 | 1311 | ||
1310 | 1312 | ||
1311 | 1313 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1312 | - | let $ | |
1314 | + | let $t02927229811 = if ((claimMode == claimModeWh)) | |
1313 | 1315 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1314 | 1316 | else { | |
1315 | 1317 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1316 | 1318 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1317 | 1319 | let loc = split(value(curLocation), "_") | |
1318 | 1320 | if ((loc[locIdxType] != "L")) | |
1319 | 1321 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1320 | 1322 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1321 | 1323 | } | |
1322 | - | let landAssetId = $ | |
1323 | - | let duckId = $ | |
1324 | + | let landAssetId = $t02927229811._1 | |
1325 | + | let duckId = $t02927229811._2 | |
1324 | 1326 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1325 | 1327 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1326 | 1328 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1327 | 1329 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1328 | 1330 | if ((owner != addr)) | |
1329 | 1331 | then throw((LANDPREFIX + " is not yours")) | |
1330 | 1332 | else { | |
1331 | 1333 | let d = split(asset.description, "_") | |
1332 | 1334 | $Tuple4(duckId, landAssetId, d, savedTime) | |
1333 | 1335 | } | |
1334 | 1336 | } | |
1335 | 1337 | ||
1336 | 1338 | ||
1337 | 1339 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
1338 | 1340 | then throw("Negative amount") | |
1339 | 1341 | else { | |
1340 | 1342 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
1341 | 1343 | let landSize = c._3[recLandSize] | |
1342 | 1344 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1343 | 1345 | let deltaTime = (lastBlock.timestamp - c._4) | |
1344 | 1346 | if ((0 > deltaTime)) | |
1345 | 1347 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
1346 | 1348 | else { | |
1347 | 1349 | let pieces = numPiecesBySize(landSize) | |
1348 | 1350 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
1349 | 1351 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
1350 | 1352 | if ((amount > availRes)) | |
1351 | 1353 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
1352 | 1354 | else { | |
1353 | 1355 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
1354 | 1356 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
1355 | 1357 | let landIndex = (pieces / SSIZE) | |
1356 | 1358 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
1357 | 1359 | let whKey = keyWarehouseByLand(c._2) | |
1358 | 1360 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
1359 | 1361 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1360 | 1362 | let loft = split(currentWh[whIdxLOFT], "_") | |
1361 | 1363 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1362 | 1364 | if (if ((claimMode == claimModeWh)) | |
1363 | 1365 | then (amount > whSpaceLeft) | |
1364 | 1366 | else false) | |
1365 | 1367 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1366 | 1368 | else { | |
1367 | 1369 | let bpKey = keyBackpackByDuck(c._1) | |
1368 | 1370 | let currentPack = getBackpack(bpKey) | |
1369 | 1371 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1370 | 1372 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1371 | - | let $ | |
1373 | + | let $t03218533056 = if ((claimMode == claimModeWh)) | |
1372 | 1374 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1373 | 1375 | else if ((claimMode == claimModeDuck)) | |
1374 | 1376 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1375 | 1377 | else { | |
1376 | 1378 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1377 | 1379 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1378 | 1380 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1379 | 1381 | } | |
1380 | - | let whRes = $ | |
1381 | - | let bpRes = $ | |
1382 | - | let loftO = $ | |
1383 | - | let loftF = $ | |
1382 | + | let whRes = $t03218533056._1 | |
1383 | + | let bpRes = $t03218533056._2 | |
1384 | + | let loftO = $t03218533056._3 | |
1385 | + | let loftF = $t03218533056._4 | |
1384 | 1386 | $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]], "_")]) | |
1385 | 1387 | } | |
1386 | 1388 | } | |
1387 | 1389 | } | |
1388 | 1390 | } | |
1389 | 1391 | ||
1390 | 1392 | ||
1391 | 1393 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1392 | 1394 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1393 | 1395 | let savedTime = value(getInteger(timeKey)) | |
1394 | 1396 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1395 | 1397 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1396 | 1398 | } | |
1397 | 1399 | ||
1398 | 1400 | ||
1399 | 1401 | func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = { | |
1400 | 1402 | let addr = toString(caller) | |
1401 | 1403 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId) | |
1402 | 1404 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1403 | 1405 | let infraKey = keyInfraLevelByAssetId(c._2) | |
1404 | 1406 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
1405 | 1407 | if ((curLevel >= 3)) | |
1406 | 1408 | then throw("Currently max infrastructure level = 3") | |
1407 | 1409 | else { | |
1408 | 1410 | let newLevel = (curLevel + 1) | |
1409 | 1411 | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1410 | 1412 | if (if (!(shouldUseMat)) | |
1411 | 1413 | then (paymentAmount != cost) | |
1412 | 1414 | else false) | |
1413 | 1415 | then throw(("Payment attached should be " + toString(cost))) | |
1414 | 1416 | else { | |
1415 | 1417 | let bpKey = keyBackpackByDuck(c._1) | |
1416 | 1418 | let currentPack = getBackpack(bpKey) | |
1417 | 1419 | let mList = split(currentPack[bpIdxMat], "_") | |
1418 | 1420 | let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE) | |
1419 | 1421 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_") | |
1420 | 1422 | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1421 | 1423 | let whData = claimResult._5 | |
1422 | 1424 | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1423 | 1425 | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1424 | 1426 | let newVol = getWarehouseTotalVolume(newVolData) | |
1425 | 1427 | let loft = split(whData[whIdxLOFT], "_") | |
1426 | 1428 | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1427 | 1429 | $Tuple3(([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, matUsed) | |
1428 | 1430 | } | |
1429 | 1431 | } | |
1430 | 1432 | } | |
1431 | 1433 | ||
1432 | 1434 | ||
1433 | 1435 | func updateDuckStatsInternal (duckAssetId,deltaXP) = if (!(KSALLOWXPLEVELS)) | |
1434 | 1436 | then $Tuple2(nil, 0) | |
1435 | 1437 | else { | |
1436 | 1438 | let lvlKey = keyDuckLevel(duckAssetId) | |
1437 | 1439 | let xpKey = keyDuckXP(duckAssetId) | |
1438 | 1440 | let xp = valueOrElse(getInteger(stakingContract, xpKey), 0) | |
1439 | 1441 | let newXP = (xp + deltaXP) | |
1440 | 1442 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP) | |
1441 | 1443 | let keyPoints = keyDuckFreePoints(duckAssetId) | |
1442 | 1444 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP) | |
1443 | 1445 | } | |
1444 | 1446 | ||
1445 | 1447 | ||
1446 | 1448 | func updateAccStatsInternal (addr,deltaXP) = if (!(KSALLOWXPLEVELS)) | |
1447 | 1449 | then $Tuple2(nil, 0) | |
1448 | 1450 | else { | |
1449 | 1451 | let lvlKey = keyUserLevel(addr) | |
1450 | 1452 | let xpKey = keyUserXP(addr) | |
1451 | 1453 | let xp = valueOrElse(getInteger(stakingContract, xpKey), 0) | |
1452 | 1454 | let newXP = (xp + deltaXP) | |
1453 | 1455 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP) | |
1454 | 1456 | let keyPoints = keyUserFreePoints(addr) | |
1455 | 1457 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP) | |
1456 | 1458 | } | |
1457 | 1459 | ||
1458 | 1460 | ||
1459 | 1461 | func activateOnboardArt (addr) = { | |
1460 | 1462 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1461 | 1463 | let refByKey = keyAddressRefBy(addr) | |
1462 | 1464 | let refBy = getString(refByKey) | |
1463 | 1465 | if (!(isDefined(refBy))) | |
1464 | 1466 | then throw("You are not eligible for ONBOARD artifact") | |
1465 | 1467 | else { | |
1466 | 1468 | let artKey = keyOnboardArtDuckActivatedBy(addr) | |
1467 | 1469 | let artDuck = getString(artKey) | |
1468 | 1470 | if (isDefined(artDuck)) | |
1469 | 1471 | then throw(("You already used your ONBOARD artifact on duck " + value(artDuck))) | |
1470 | 1472 | else { | |
1471 | 1473 | let duckActivatorKey = keyOnboardArtActivatedOnDuck(duckAssetId) | |
1472 | 1474 | let duckActivator = getString(duckActivatorKey) | |
1473 | 1475 | if (isDefined(duckActivator)) | |
1474 | 1476 | then throw(((("The duck " + duckAssetId) + " already got points from ONBOARD artifact from user ") + value(duckActivator))) | |
1475 | 1477 | else ([StringEntry(artKey, duckAssetId), StringEntry(duckActivatorKey, addr)] ++ updateDuckStatsInternal(duckAssetId, xpOnboard)._1) | |
1476 | 1478 | } | |
1477 | 1479 | } | |
1478 | 1480 | } | |
1479 | 1481 | ||
1480 | 1482 | ||
1481 | 1483 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1482 | 1484 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1483 | 1485 | let landAssetId = c._2 | |
1484 | 1486 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1485 | 1487 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1486 | 1488 | if ((valueOrElse(getInteger(activationKey), 0) > 0)) | |
1487 | 1489 | then throw("Presale artifact is already activated") | |
1488 | 1490 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1489 | 1491 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1490 | 1492 | else { | |
1491 | 1493 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1492 | 1494 | ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1493 | 1495 | } | |
1494 | 1496 | } | |
1495 | 1497 | ||
1496 | 1498 | ||
1497 | 1499 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = { | |
1498 | 1500 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1499 | 1501 | func checkMerge (acc,landAssetId) = { | |
1500 | 1502 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1501 | 1503 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1502 | 1504 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
1503 | 1505 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1504 | 1506 | if ((owner != addr)) | |
1505 | 1507 | then throw((LANDPREFIX + " is not yours")) | |
1506 | 1508 | else { | |
1507 | 1509 | let d = split(asset.description, "_") | |
1508 | 1510 | let continent = d[recContinent] | |
1509 | 1511 | if (if ((acc._3 != "")) | |
1510 | 1512 | then (acc._3 != continent) | |
1511 | 1513 | else false) | |
1512 | 1514 | then throw("Lands should be on the same continent to merge") | |
1513 | 1515 | else { | |
1514 | 1516 | let landSize = d[recLandSize] | |
1515 | 1517 | let sizesIn = acc._1 | |
1516 | 1518 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
1517 | 1519 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
1518 | 1520 | let pieces = numPiecesBySize(landSize) | |
1519 | 1521 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)) | |
1520 | 1522 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1521 | 1523 | let reqLevel = match landSize { | |
1522 | 1524 | case _ => | |
1523 | 1525 | if (("S" == $match0)) | |
1524 | 1526 | then 3 | |
1525 | 1527 | else if (("M" == $match0)) | |
1526 | 1528 | then 4 | |
1527 | 1529 | else if (("L" == $match0)) | |
1528 | 1530 | then 5 | |
1529 | 1531 | else if (("XL" == $match0)) | |
1530 | 1532 | then 6 | |
1531 | 1533 | else throw("Only S, M, L, XL can merge") | |
1532 | 1534 | } | |
1533 | 1535 | if ((infraLevel != reqLevel)) | |
1534 | 1536 | then throw("All lands should be maxed to merge") | |
1535 | 1537 | else { | |
1536 | 1538 | let landNum = d[recLandNum] | |
1537 | 1539 | let terrainCounts = countTerrains(d[recTerrains]) | |
1538 | 1540 | let deltaTime = (lastBlock.timestamp - savedTime) | |
1539 | 1541 | if ((0 > deltaTime)) | |
1540 | 1542 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
1541 | 1543 | else { | |
1542 | 1544 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1543 | 1545 | let landIndex = (pieces / SSIZE) | |
1544 | 1546 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1545 | 1547 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, landIndex, -1) | |
1546 | 1548 | let lands = acc._7 | |
1547 | 1549 | let idx = indexOf(lands, landAssetId) | |
1548 | 1550 | if (!(isDefined(idx))) | |
1549 | 1551 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1550 | 1552 | else { | |
1551 | 1553 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
1552 | 1554 | let customName = valueOrElse(getString(customKey), "") | |
1553 | 1555 | $Tuple8(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)), (acc._8 + pieces)) | |
1554 | 1556 | } | |
1555 | 1557 | } | |
1556 | 1558 | } | |
1557 | 1559 | } | |
1558 | 1560 | } | |
1559 | 1561 | } | |
1560 | 1562 | ||
1561 | 1563 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1562 | 1564 | let currentPack = getBackpack(bpKey) | |
1563 | 1565 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
1564 | 1566 | let landsKey = keyStakedLandsByOwner(addr) | |
1565 | 1567 | let landsStr = getString(landsKey) | |
1566 | 1568 | let landsIn = if (isDefined(landsStr)) | |
1567 | 1569 | then split_51C(value(landsStr), "_") | |
1568 | 1570 | else nil | |
1569 | 1571 | let r = { | |
1570 | 1572 | let $l = landAssetIds | |
1571 | 1573 | let $s = size($l) | |
1572 | 1574 | let $acc0 = $Tuple8(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn, 0) | |
1573 | 1575 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1574 | 1576 | then $a | |
1575 | 1577 | else checkMerge($a, $l[$i]) | |
1576 | 1578 | ||
1577 | 1579 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1578 | 1580 | then $a | |
1579 | 1581 | else throw("List size exceeds 5") | |
1580 | 1582 | ||
1581 | 1583 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1582 | 1584 | } | |
1583 | 1585 | let continent = r._3 | |
1584 | 1586 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
1585 | 1587 | let terrains = genTerrains(abs(toBigInt(txId)), continentIdx) | |
1586 | 1588 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1587 | 1589 | let newLandNum = toString(freeNum) | |
1588 | 1590 | let issue = Issue(nftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
1589 | 1591 | let assetId = calculateAssetId(issue) | |
1590 | 1592 | let newLandAssetId = toBase58String(assetId) | |
1591 | 1593 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
1592 | 1594 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1593 | 1595 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1594 | 1596 | $Tuple2((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1595 | 1597 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
1596 | 1598 | else DeleteEntry(landsKey))) :+ IntegerEntry(piecesKey, if ((r._8 > stakedPieces)) | |
1597 | 1599 | then 0 | |
1598 | 1600 | else (stakedPieces - r._8))) :+ 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) | |
1599 | 1601 | } | |
1600 | 1602 | ||
1601 | 1603 | ||
1602 | 1604 | func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0) | |
1603 | 1605 | ||
1604 | 1606 | ||
1605 | 1607 | func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1606 | 1608 | let cost = (InfraUpgradeCostSUsdt * 4) | |
1607 | 1609 | if (if (!(shouldUseMat)) | |
1608 | 1610 | then (paymentAmount != cost) | |
1609 | 1611 | else false) | |
1610 | 1612 | then throw(("Payment attached should be " + toString(cost))) | |
1611 | 1613 | else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4)) | |
1612 | 1614 | } | |
1613 | 1615 | ||
1614 | 1616 | ||
1615 | 1617 | func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1616 | 1618 | let cost = (InfraUpgradeCostSUsdt * 47) | |
1617 | 1619 | if (if (!(shouldUseMat)) | |
1618 | 1620 | then (paymentAmount != cost) | |
1619 | 1621 | else false) | |
1620 | 1622 | then throw(("Payment attached should be " + toString(cost))) | |
1621 | 1623 | else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47)) | |
1622 | 1624 | } | |
1623 | 1625 | ||
1624 | 1626 | ||
1625 | 1627 | func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1626 | 1628 | let cost = (InfraUpgradeCostSUsdt * 54) | |
1627 | 1629 | if (if (!(shouldUseMat)) | |
1628 | 1630 | then (paymentAmount != cost) | |
1629 | 1631 | else false) | |
1630 | 1632 | then throw(("Payment attached should be " + toString(cost))) | |
1631 | 1633 | else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54)) | |
1632 | 1634 | } | |
1633 | 1635 | ||
1634 | 1636 | ||
1635 | 1637 | func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = { | |
1636 | 1638 | let mergeResult = match size(landAssetIds) { | |
1637 | 1639 | case _ => | |
1638 | 1640 | if ((4 == $match0)) | |
1639 | 1641 | then s2m(addr, landAssetIds, txId) | |
1640 | 1642 | else if ((3 == $match0)) | |
1641 | 1643 | then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1642 | 1644 | else if ((5 == $match0)) | |
1643 | 1645 | then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1644 | 1646 | else if ((2 == $match0)) | |
1645 | 1647 | then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1646 | 1648 | else throw("Unknown merge") | |
1647 | 1649 | } | |
1648 | 1650 | mergeResult | |
1649 | 1651 | } | |
1650 | 1652 | ||
1651 | 1653 | ||
1652 | 1654 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1653 | 1655 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1654 | 1656 | else false) | |
1655 | 1657 | then throw("Contracts are under maintenance") | |
1656 | 1658 | else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId)) | |
1657 | 1659 | ||
1658 | 1660 | ||
1659 | 1661 | @Callable(i) | |
1660 | 1662 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1661 | 1663 | then throw("Permission denied") | |
1662 | 1664 | else [StringEntry(keyRestAddress(), restAddr)] | |
1663 | 1665 | ||
1664 | 1666 | ||
1665 | 1667 | ||
1666 | 1668 | @Callable(i) | |
1667 | 1669 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1668 | 1670 | then throw("permission denied") | |
1669 | 1671 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1670 | 1672 | ||
1671 | 1673 | ||
1672 | 1674 | ||
1673 | 1675 | @Callable(i) | |
1674 | 1676 | func stakeLand () = { | |
1675 | 1677 | let prologAction = prolog(i) | |
1676 | 1678 | if ((size(i.payments) != 1)) | |
1677 | 1679 | then throw("Exactly one payment required") | |
1678 | 1680 | else { | |
1679 | 1681 | let pmt = value(i.payments[0]) | |
1680 | 1682 | let assetId = value(pmt.assetId) | |
1681 | 1683 | let address = toString(i.caller) | |
1682 | 1684 | if ((pmt.amount != 1)) | |
1683 | 1685 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1684 | 1686 | else { | |
1685 | 1687 | let asset = value(assetInfo(assetId)) | |
1686 | 1688 | if ((asset.issuer != this)) | |
1687 | 1689 | then throw("Unknown issuer of token") | |
1688 | 1690 | else if (!(contains(asset.name, LANDPREFIX))) | |
1689 | 1691 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1690 | 1692 | else { | |
1691 | 1693 | let landNumSize = drop(asset.name, 4) | |
1692 | 1694 | let landNum = if (contains(landNumSize, "XXL")) | |
1693 | 1695 | then dropRight(landNumSize, 3) | |
1694 | 1696 | else if (contains(landNumSize, "XL")) | |
1695 | 1697 | then dropRight(landNumSize, 2) | |
1696 | 1698 | else dropRight(landNumSize, 1) | |
1697 | 1699 | if (!(isDefined(parseInt(landNum)))) | |
1698 | 1700 | then throw(("Cannot parse land number from " + asset.name)) | |
1699 | 1701 | else { | |
1700 | 1702 | let landAssetId = toBase58String(assetId) | |
1701 | 1703 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1702 | 1704 | if (isDefined(getInteger(timeKey))) | |
1703 | 1705 | then throw((("NFT " + asset.name) + " is already staked")) | |
1704 | 1706 | else { | |
1705 | 1707 | let d = split(asset.description, "_") | |
1706 | 1708 | let terrainCounts = countTerrains(d[recTerrains]) | |
1707 | 1709 | let pieces = numPiecesBySize(d[recLandSize]) | |
1708 | 1710 | let props = updateProportions(terrainCounts, (pieces / SSIZE), 1) | |
1709 | 1711 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1710 | 1712 | let landsKey = keyStakedLandsByOwner(address) | |
1711 | 1713 | let landsStr = getString(landsKey) | |
1712 | 1714 | let lands = if (isDefined(landsStr)) | |
1713 | 1715 | then split_51C(value(landsStr), "_") | |
1714 | 1716 | else nil | |
1715 | 1717 | if (containsElement(lands, landAssetId)) | |
1716 | 1718 | then throw(("Your staked lands already contain " + landAssetId)) | |
1717 | 1719 | else { | |
1718 | 1720 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1719 | 1721 | let piecesKey = keyStakedPiecesByOwner(address) | |
1720 | 1722 | let oldPieces = valueOrElse(getInteger(piecesKey), 0) | |
1721 | 1723 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [address], nil)) | |
1722 | 1724 | $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), prologAction], wlgResult) | |
1723 | 1725 | } | |
1724 | 1726 | } | |
1725 | 1727 | } | |
1726 | 1728 | } | |
1727 | 1729 | } | |
1728 | 1730 | } | |
1729 | 1731 | } | |
1730 | 1732 | ||
1731 | 1733 | ||
1732 | 1734 | ||
1733 | 1735 | @Callable(i) | |
1734 | 1736 | func unstakeLand (landAssetIdIn) = { | |
1735 | 1737 | let prologAction = prolog(i) | |
1736 | 1738 | if ((size(i.payments) != 0)) | |
1737 | 1739 | then throw("No payments required") | |
1738 | 1740 | else { | |
1739 | 1741 | let addr = toString(i.caller) | |
1740 | 1742 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1741 | 1743 | let landAssetId = c._2 | |
1742 | 1744 | let landsKey = keyStakedLandsByOwner(addr) | |
1743 | 1745 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1744 | 1746 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1745 | 1747 | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
1746 | 1748 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1747 | 1749 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1748 | 1750 | let idx = indexOf(lands, landAssetId) | |
1749 | 1751 | if (!(isDefined(idx))) | |
1750 | 1752 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1751 | 1753 | else { | |
1752 | 1754 | let now = lastBlock.timestamp | |
1753 | 1755 | let govReleaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1754 | 1756 | if ((govReleaseTime >= now)) | |
1755 | 1757 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(govReleaseTime))) | |
1756 | 1758 | else { | |
1757 | 1759 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastArbTimeByUser(addr)), 0) + arbitrageDelay) | |
1758 | 1760 | if ((arbReleaseTime > now)) | |
1759 | 1761 | then throw(("Your staked lands took part in arbitrage, cannot unstake until " + toString(arbReleaseTime))) | |
1760 | 1762 | else { | |
1761 | 1763 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1762 | 1764 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1763 | 1765 | let newPieces = if ((pieces > stakedPieces)) | |
1764 | 1766 | then 0 | |
1765 | 1767 | else (stakedPieces - pieces) | |
1766 | 1768 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [addr], nil)) | |
1767 | 1769 | $Tuple2([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)) | |
1768 | 1770 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1769 | 1771 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces), prologAction], wlgResult) | |
1770 | 1772 | } | |
1771 | 1773 | } | |
1772 | 1774 | } | |
1773 | 1775 | } | |
1774 | 1776 | } | |
1775 | 1777 | ||
1776 | 1778 | ||
1777 | 1779 | ||
1778 | 1780 | @Callable(i) | |
1779 | 1781 | func stakeDuck () = { | |
1780 | 1782 | let prologAction = prolog(i) | |
1781 | 1783 | if ((size(i.payments) != 1)) | |
1782 | 1784 | then throw("Exactly one payment required") | |
1783 | 1785 | else { | |
1784 | 1786 | let pmt = value(i.payments[0]) | |
1785 | 1787 | let assetId = value(pmt.assetId) | |
1786 | 1788 | let address = toString(i.caller) | |
1787 | 1789 | if ((pmt.amount != 1)) | |
1788 | 1790 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
1789 | 1791 | else { | |
1790 | 1792 | let asset = value(assetInfo(assetId)) | |
1791 | 1793 | if (if ((asset.issuer != incubatorAddr)) | |
1792 | 1794 | then (asset.issuer != breederAddr) | |
1793 | 1795 | else false) | |
1794 | 1796 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
1795 | 1797 | else if (!(contains(asset.name, DUCKPREFIX))) | |
1796 | 1798 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
1797 | 1799 | else { | |
1798 | 1800 | let assetIdStr = toBase58String(assetId) | |
1799 | 1801 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
1800 | 1802 | if (isDefined(getInteger(timeKey))) | |
1801 | 1803 | then throw((("NFT " + asset.name) + " is already staked")) | |
1802 | 1804 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
1803 | 1805 | then throw(("You already staked one duck: " + asset.name)) | |
1804 | 1806 | else { | |
1805 | 1807 | let locKey = keyDuckLocation(assetIdStr) | |
1806 | 1808 | let location = getString(locKey) | |
1807 | 1809 | let bpKey = keyBackpackByDuck(assetIdStr) | |
1808 | 1810 | let backpack = getString(bpKey) | |
1809 | 1811 | let keyHealth = keyDuckHealth(assetIdStr) | |
1810 | 1812 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
1811 | 1813 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1812 | 1814 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
1813 | 1815 | then nil | |
1814 | 1816 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
1815 | 1817 | then nil | |
1816 | 1818 | else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyHealth, curHealth)) :+ prologAction))))) | |
1817 | 1819 | } | |
1818 | 1820 | } | |
1819 | 1821 | } | |
1820 | 1822 | } | |
1821 | 1823 | } | |
1822 | 1824 | ||
1823 | 1825 | ||
1824 | 1826 | ||
1825 | 1827 | @Callable(i) | |
1826 | 1828 | func unstakeDuck (assetIdStr) = { | |
1827 | 1829 | let prologAction = prolog(i) | |
1828 | 1830 | if ((size(i.payments) != 0)) | |
1829 | 1831 | then throw("No payments required") | |
1830 | 1832 | else { | |
1831 | 1833 | let assetId = fromBase58String(assetIdStr) | |
1832 | 1834 | let address = toString(i.caller) | |
1833 | 1835 | let asset = value(assetInfo(assetId)) | |
1834 | 1836 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
1835 | 1837 | if (!(isDefined(getInteger(timeKey)))) | |
1836 | 1838 | then throw((("NFT " + asset.name) + " is not staked")) | |
1837 | 1839 | else if (!(isDefined(getString(keyStakedDuckByOwner(address))))) | |
1838 | 1840 | then throw((("The duck " + asset.name) + " is not staked")) | |
1839 | 1841 | else { | |
1840 | 1842 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
1841 | 1843 | if ((owner != address)) | |
1842 | 1844 | then throw("Staked NFT is not yours") | |
1843 | 1845 | else { | |
1844 | 1846 | let keyHealth = keyDuckHealth(assetIdStr) | |
1845 | 1847 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
1846 | 1848 | let health = valueOrElse(getInteger(keyHealth), maxHP) | |
1847 | 1849 | if ((maxHP > health)) | |
1848 | 1850 | then throw((("Please heal your duck to " + toString(maxHP)) + "hp before unstaking")) | |
1849 | 1851 | 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] | |
1850 | 1852 | } | |
1851 | 1853 | } | |
1852 | 1854 | } | |
1853 | 1855 | } | |
1854 | 1856 | ||
1855 | 1857 | ||
1856 | 1858 | ||
1857 | 1859 | @Callable(i) | |
1858 | 1860 | func claimRes (amount,landAssetIdStr) = { | |
1859 | 1861 | let prologAction = prolog(i) | |
1860 | 1862 | if ((size(i.payments) != 0)) | |
1861 | 1863 | then throw("No payments required") | |
1862 | 1864 | else { | |
1863 | 1865 | let addr = toString(i.originCaller) | |
1864 | 1866 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
1865 | 1867 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1866 | 1868 | $Tuple2(((((result._1 ++ updateDuckStatsInternal(duckAssetId, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._3[bpIdxRes]) | |
1867 | 1869 | } | |
1868 | 1870 | } | |
1869 | 1871 | ||
1870 | 1872 | ||
1871 | 1873 | ||
1872 | 1874 | @Callable(i) | |
1873 | 1875 | func claimResToWH (amount,landAssetIdStr) = { | |
1874 | 1876 | let prologAction = prolog(i) | |
1875 | 1877 | if ((size(i.payments) != 0)) | |
1876 | 1878 | then throw("No payments required") | |
1877 | 1879 | else { | |
1878 | 1880 | let addr = toString(i.originCaller) | |
1879 | 1881 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
1880 | 1882 | $Tuple2(((((result._1 ++ updateAccStatsInternal(addr, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._5[whIdxRes]) | |
1881 | 1883 | } | |
1882 | 1884 | } | |
1883 | 1885 | ||
1884 | 1886 | ||
1885 | 1887 | ||
1886 | 1888 | @Callable(i) | |
1887 | 1889 | func flight (message,sig) = { | |
1888 | 1890 | let prologAction = prolog(i) | |
1889 | 1891 | if ((size(i.payments) != 0)) | |
1890 | 1892 | then throw("No payments required") | |
1891 | 1893 | else { | |
1892 | 1894 | let userAddr = toString(i.caller) | |
1893 | 1895 | let f = flightCommon(userAddr, message, sig) | |
1894 | 1896 | let duckAssetId = f._2 | |
1895 | 1897 | let locKey = keyDuckLocation(duckAssetId) | |
1896 | 1898 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1897 | 1899 | if ((f._4 == curLocation)) | |
1898 | 1900 | then throw("You can't fly to the same location") | |
1899 | 1901 | else { | |
1900 | 1902 | let eqKey = keyDuckEquipment(duckAssetId) | |
1901 | 1903 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
1902 | 1904 | let newEq = subtractEquipment(currentEq, f._5) | |
1903 | 1905 | $Tuple2(([StringEntry(locKey, if ((f._1 > 0)) | |
1904 | 1906 | then f._4 | |
1905 | 1907 | else curLocation), StringEntry(eqKey, newEq), IntegerEntry(keyDuckHealth(duckAssetId), f._1), prologAction] ++ updateDuckStatsInternal(duckAssetId, if ((f._1 > 0)) | |
1906 | 1908 | then xpSuccessFlight | |
1907 | 1909 | else xpFailFlight)._1), f._3) | |
1908 | 1910 | } | |
1909 | 1911 | } | |
1910 | 1912 | } | |
1911 | 1913 | ||
1912 | 1914 | ||
1913 | 1915 | ||
1914 | 1916 | @Callable(i) | |
1915 | 1917 | func heal (quantityL1,quantityL2,quantityL3) = { | |
1916 | 1918 | let prologAction = prolog(i) | |
1917 | 1919 | if (if (if ((0 > quantityL1)) | |
1918 | 1920 | then true | |
1919 | 1921 | else (0 > quantityL2)) | |
1920 | 1922 | then true | |
1921 | 1923 | else (0 > quantityL3)) | |
1922 | 1924 | then throw("Quantity cannot be negative") | |
1923 | 1925 | else { | |
1924 | 1926 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1925 | 1927 | let qts = [quantityL1, quantityL2, quantityL3] | |
1926 | 1928 | let keyHealth = keyDuckHealth(duckAssetId) | |
1927 | 1929 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1928 | 1930 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1929 | 1931 | if ((oldHealth >= maxHP)) | |
1930 | 1932 | then throw((("HP should be < " + toString(maxHP)) + " to heal")) | |
1931 | 1933 | else { | |
1932 | 1934 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1933 | 1935 | let currentPack = getBackpack(bpKey) | |
1934 | 1936 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1935 | 1937 | then nil | |
1936 | 1938 | else split(currentPack[bpIdxProd], "_") | |
1937 | 1939 | func iterateProd (acc,ignoredItem) = { | |
1938 | 1940 | let n = acc._2 | |
1939 | 1941 | let x = if ((size(prodList) > n)) | |
1940 | 1942 | then parseIntValue(prodList[n]) | |
1941 | 1943 | else 0 | |
1942 | 1944 | if ((3 > n)) | |
1943 | 1945 | then { | |
1944 | 1946 | let q = qts[n] | |
1945 | 1947 | if ((q > x)) | |
1946 | 1948 | then throw(((("You have only " + toString(x)) + " of ") + prodTypes[n])) | |
1947 | 1949 | else $Tuple3((acc._1 :+ toString((x - q))), (n + 1), (acc._3 + (medKitHp[n] * q))) | |
1948 | 1950 | } | |
1949 | 1951 | else $Tuple3((acc._1 :+ toString(x)), (n + 1), acc._3) | |
1950 | 1952 | } | |
1951 | 1953 | ||
1952 | 1954 | let result = { | |
1953 | 1955 | let $l = productionMatrix | |
1954 | 1956 | let $s = size($l) | |
1955 | 1957 | let $acc0 = $Tuple3(nil, 0, 0) | |
1956 | 1958 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1957 | 1959 | then $a | |
1958 | 1960 | else iterateProd($a, $l[$i]) | |
1959 | 1961 | ||
1960 | 1962 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1961 | 1963 | then $a | |
1962 | 1964 | else throw("List size exceeds 50") | |
1963 | 1965 | ||
1964 | 1966 | $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) | |
1965 | 1967 | } | |
1966 | 1968 | let newHealth = min([maxHP, (oldHealth + result._3)]) | |
1967 | 1969 | $Tuple2(([IntegerEntry(keyHealth, newHealth), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString(result._1, "_")], ":")), prologAction] ++ updateDuckStatsInternal(duckAssetId, (xpHeal * ((quantityL1 + quantityL2) + quantityL3)))._1), newHealth) | |
1968 | 1970 | } | |
1969 | 1971 | } | |
1970 | 1972 | } | |
1971 | 1973 | ||
1972 | 1974 | ||
1973 | 1975 | ||
1974 | 1976 | @Callable(i) | |
1975 | 1977 | func healES () = { | |
1976 | 1978 | let prologAction = prolog(i) | |
1977 | 1979 | if ((size(i.payments) != 1)) | |
1978 | 1980 | then throw("Exactly one payment required") | |
1979 | 1981 | else { | |
1980 | 1982 | let pmt = value(i.payments[0]) | |
1981 | 1983 | if ((pmt.assetId != usdtAssetId)) | |
1982 | 1984 | then throw("Allowed USDT payment only!") | |
1983 | 1985 | else { | |
1984 | 1986 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1985 | 1987 | let keyHealth = keyDuckHealth(duckAssetId) | |
1986 | 1988 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1987 | 1989 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1988 | 1990 | if ((oldHealth > 0)) | |
1989 | 1991 | then throw("HP should be 0 to call Emergency Service") | |
1990 | 1992 | else { | |
1991 | 1993 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1992 | 1994 | let currentPack = getBackpack(bpKey) | |
1993 | 1995 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1994 | 1996 | then nil | |
1995 | 1997 | else split(currentPack[bpIdxProd], "_") | |
1996 | 1998 | let medKitAmount1 = if ((size(prodList) > 0)) | |
1997 | 1999 | then parseIntValue(prodList[0]) | |
1998 | 2000 | else 0 | |
1999 | 2001 | let medKitAmount2 = if ((size(prodList) > 1)) | |
2000 | 2002 | then parseIntValue(prodList[1]) | |
2001 | 2003 | else 0 | |
2002 | 2004 | let medKitAmount3 = if ((size(prodList) > 2)) | |
2003 | 2005 | then parseIntValue(prodList[2]) | |
2004 | 2006 | else 0 | |
2005 | 2007 | if (if (if ((medKitAmount1 > 0)) | |
2006 | 2008 | then true | |
2007 | 2009 | else (medKitAmount2 > 0)) | |
2008 | 2010 | then true | |
2009 | 2011 | else (medKitAmount3 > 0)) | |
2010 | 2012 | then throw("You have to use own Medical Kit") | |
2011 | 2013 | else { | |
2012 | 2014 | let existStr = getString(economyContract, keyEsWarehouse()) | |
2013 | 2015 | let existAmounts = if (isDefined(existStr)) | |
2014 | 2016 | then split(value(existStr), "_") | |
2015 | 2017 | else nil | |
2016 | 2018 | let existAmount = if ((size(existAmounts) > 0)) | |
2017 | 2019 | then parseIntValue(existAmounts[0]) | |
2018 | 2020 | else 0 | |
2019 | 2021 | if ((0 >= existAmount)) | |
2020 | 2022 | then throw("There are no Medical Kits L1 at Emergency Service storage") | |
2021 | 2023 | else { | |
2022 | 2024 | let newHealth = (oldHealth + medKitHp[0]) | |
2023 | 2025 | let newES = makeString([toString((existAmount - 1)), removeByIndex(existAmounts, 0)], "_") | |
2024 | 2026 | let recipe = split(productionMatrix[0], "_") | |
2025 | 2027 | let totalMat = getRecipeMaterials(recipe) | |
2026 | 2028 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * PRODUCTPKGSIZE)) | |
2027 | 2029 | if ((pmt.amount != sellPrice)) | |
2028 | 2030 | then throw(("Payment attached should be " + toString(sellPrice))) | |
2029 | 2031 | else { | |
2030 | 2032 | let result = asString(invoke(economyContract, "updateEsStorage", [newES], [AttachedPayment(usdtAssetId, sellPrice)])) | |
2031 | 2033 | $Tuple2(([IntegerEntry(keyHealth, newHealth), prologAction] ++ updateDuckStatsInternal(duckAssetId, xpCallES)._1), result) | |
2032 | 2034 | } | |
2033 | 2035 | } | |
2034 | 2036 | } | |
2035 | 2037 | } | |
2036 | 2038 | } | |
2037 | 2039 | } | |
2038 | 2040 | } | |
2039 | 2041 | ||
2040 | 2042 | ||
2041 | 2043 | ||
2042 | 2044 | @Callable(i) | |
2043 | 2045 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract)) | |
2044 | 2046 | then throw("permission denied") | |
2045 | 2047 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
2046 | 2048 | ||
2047 | 2049 | ||
2048 | 2050 | ||
2049 | 2051 | @Callable(i) | |
2050 | 2052 | func buySLand () = { | |
2051 | 2053 | let prologAction = prolog(i) | |
2052 | 2054 | if ((size(i.payments) != 1)) | |
2053 | 2055 | then throw("Exactly one payment required") | |
2054 | 2056 | else { | |
2055 | 2057 | let pmt = value(i.payments[0]) | |
2056 | 2058 | if ((pmt.assetId != usdtAssetId)) | |
2057 | 2059 | then throw("Allowed USDT payment only!") | |
2058 | 2060 | else if ((pmt.amount != EXPUSDT)) | |
2059 | 2061 | then throw(("Payment attached should be " + toString(EXPUSDT))) | |
2060 | 2062 | else { | |
2061 | 2063 | let result = expeditionInternal(i.caller, i.transactionId) | |
2062 | 2064 | $Tuple2((((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ updateAccStatsInternal(toString(i.caller), xpNewSLand)._1) :+ prologAction), result._2._1) | |
2063 | 2065 | } | |
2064 | 2066 | } | |
2065 | 2067 | } | |
2066 | 2068 | ||
2067 | 2069 | ||
2068 | 2070 | ||
2069 | 2071 | @Callable(i) | |
2070 | 2072 | func expedition (message,sig) = { | |
2071 | 2073 | let prologAction = prolog(i) | |
2072 | 2074 | if ((size(i.payments) != 0)) | |
2073 | 2075 | then throw("No payments required") | |
2074 | 2076 | else { | |
2075 | 2077 | let result = expeditionCommon(i.caller, i.transactionId, message, sig) | |
2076 | 2078 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2077 | 2079 | $Tuple2(((result._1 ++ updateDuckStatsInternal(duckAssetId, xpNewSLand)._1) :+ prologAction), $Tuple2(result._2, result._3)) | |
2078 | 2080 | } | |
2079 | 2081 | } | |
2080 | 2082 | ||
2081 | 2083 | ||
2082 | 2084 | ||
2083 | 2085 | @Callable(i) | |
2084 | 2086 | func upgradeInfra (landAssetId) = { | |
2085 | 2087 | let prologAction = prolog(i) | |
2086 | 2088 | if ((size(i.payments) != 0)) | |
2087 | 2089 | then throw("No payments required") | |
2088 | 2090 | else { | |
2089 | 2091 | let result = upInfraCommon(true, i.caller, 0, landAssetId) | |
2090 | 2092 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2091 | 2093 | $Tuple2(((result._1 :+ prologAction) ++ updateDuckStatsInternal(duckAssetId, fraction(xpUpgradeInfra, result._3, MULT8))._1), result._2) | |
2092 | 2094 | } | |
2093 | 2095 | } | |
2094 | 2096 | ||
2095 | 2097 | ||
2096 | 2098 | ||
2097 | 2099 | @Callable(i) | |
2098 | 2100 | func upgradeInfraUsdt (landAssetId) = if ((i.caller != this)) | |
2099 | 2101 | then throw("Permission denied") | |
2100 | 2102 | else { | |
2101 | 2103 | let prologAction = prolog(i) | |
2102 | 2104 | if ((size(i.payments) != 1)) | |
2103 | 2105 | then throw("Exactly one payment required") | |
2104 | 2106 | else { | |
2105 | 2107 | let pmt = value(i.payments[0]) | |
2106 | 2108 | if ((pmt.assetId != usdtAssetId)) | |
2107 | 2109 | then throw("Allowed USDT payment only!") | |
2108 | 2110 | else { | |
2109 | 2111 | let result = upInfraCommon(false, i.caller, pmt.amount, landAssetId) | |
2110 | 2112 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
2111 | 2113 | } | |
2112 | 2114 | } | |
2113 | 2115 | } | |
2114 | 2116 | ||
2115 | 2117 | ||
2116 | 2118 | ||
2117 | 2119 | @Callable(i) | |
2118 | 2120 | func activateArtifact (artName,landAssetIdOpt) = { | |
2119 | 2121 | let prologAction = prolog(i) | |
2120 | 2122 | if ((size(i.payments) != 0)) | |
2121 | 2123 | then throw("No payments required") | |
2122 | 2124 | else { | |
2123 | 2125 | let addr = toString(i.caller) | |
2124 | 2126 | let result = match artName { | |
2125 | 2127 | case _ => | |
2126 | 2128 | if (("PRESALE" == $match0)) | |
2127 | 2129 | then activatePresaleArt(addr, landAssetIdOpt) | |
2128 | 2130 | else if (("ONBOARD" == $match0)) | |
2129 | 2131 | then activateOnboardArt(addr) | |
2130 | 2132 | else throw("Unknown artifact") | |
2131 | 2133 | } | |
2132 | 2134 | (result :+ prologAction) | |
2133 | 2135 | } | |
2134 | 2136 | } | |
2135 | 2137 | ||
2136 | 2138 | ||
2137 | 2139 | ||
2138 | 2140 | @Callable(i) | |
2139 | 2141 | func mergeLands (landAssetIds) = { | |
2140 | 2142 | let prologAction = prolog(i) | |
2141 | 2143 | if ((size(i.payments) != 0)) | |
2142 | 2144 | then throw("No payments required") | |
2143 | 2145 | else { | |
2144 | 2146 | let result = mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
2145 | 2147 | $Tuple2(((result._1 :+ prologAction) ++ updateAccStatsInternal(toString(i.caller), xpMerge)._1), result._2) | |
2146 | 2148 | } | |
2147 | 2149 | } | |
2148 | 2150 | ||
2149 | 2151 | ||
2150 | 2152 | ||
2151 | 2153 | @Callable(i) | |
2152 | 2154 | func mergeLandsUsdt (landAssetIds) = { | |
2153 | 2155 | let prologAction = prolog(i) | |
2154 | 2156 | if ((size(i.payments) != 1)) | |
2155 | 2157 | then throw("Exactly one payment required") | |
2156 | 2158 | else { | |
2157 | 2159 | let pmt = value(i.payments[0]) | |
2158 | 2160 | if ((pmt.assetId != usdtAssetId)) | |
2159 | 2161 | then throw("Allowed USDT payment only!") | |
2160 | 2162 | else { | |
2161 | 2163 | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
2162 | 2164 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
2163 | 2165 | } | |
2164 | 2166 | } | |
2165 | 2167 | } | |
2166 | 2168 | ||
2167 | 2169 | ||
2168 | 2170 | ||
2169 | 2171 | @Callable(i) | |
2170 | 2172 | func cargoExchange (cargoListStr,landAssetId) = { | |
2171 | 2173 | let prologAction = prolog(i) | |
2172 | 2174 | if ((size(i.payments) != 0)) | |
2173 | 2175 | then throw("No payments required") | |
2174 | 2176 | else { | |
2175 | 2177 | let cargoParts = split_4C(cargoListStr, ":") | |
2176 | 2178 | let addr = toString(i.originCaller) | |
2177 | 2179 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2178 | 2180 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
2179 | 2181 | if (!(isDefined(getInteger(timeKey)))) | |
2180 | 2182 | then throw((asset.name + " is not staked")) | |
2181 | 2183 | else { | |
2182 | 2184 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
2183 | 2185 | if ((owner != addr)) | |
2184 | 2186 | then throw((LANDPREFIX + " is not yours")) | |
2185 | 2187 | else { | |
2186 | 2188 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2187 | 2189 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2188 | 2190 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2189 | 2191 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
2190 | 2192 | let loc = split(value(curLocation), "_") | |
2191 | 2193 | if ((loc[locIdxType] != "L")) | |
2192 | 2194 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
2193 | 2195 | else if ((loc[locIdxId] != landAssetId)) | |
2194 | 2196 | then throw(("Duck should be on the land " + landAssetId)) | |
2195 | 2197 | else { | |
2196 | 2198 | let whKey = keyWarehouseByLand(landAssetId) | |
2197 | 2199 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
2198 | 2200 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2199 | 2201 | let currentPack = getBackpack(bpKey) | |
2200 | 2202 | let result = moveStuff(cargoParts, currentWh, currentPack) | |
2201 | 2203 | let loft = split(currentWh[whIdxLOFT], "_") | |
2202 | 2204 | let loftO = (parseIntValue(loft[volOccupied]) + result._7) | |
2203 | 2205 | let loftF = (parseIntValue(loft[volFree]) - result._7) | |
2204 | 2206 | [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] | |
2205 | 2207 | } | |
2206 | 2208 | } | |
2207 | 2209 | } | |
2208 | 2210 | } | |
2209 | 2211 | } | |
2210 | 2212 | ||
2211 | 2213 | ||
2212 | 2214 | ||
2213 | 2215 | @Callable(i) | |
2214 | 2216 | func saveWarehouse (whStr,landAssetId) = if ((i.caller != economyContract)) | |
2215 | 2217 | then throw("Access denied") | |
2216 | 2218 | else { | |
2217 | 2219 | let whKey = keyWarehouseByLand(landAssetId) | |
2218 | 2220 | let wh = split_4C(whStr, ":") | |
2219 | 2221 | if ((size(wh) != 5)) | |
2220 | 2222 | then throw("warehouse string should contain 4 ':' separators") | |
2221 | 2223 | else { | |
2222 | 2224 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
2223 | 2225 | let loftO = getWarehouseOccupiedVol(wh) | |
2224 | 2226 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
2225 | 2227 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
2226 | 2228 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2227 | 2229 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2228 | 2230 | } | |
2229 | 2231 | } | |
2230 | 2232 | ||
2231 | 2233 | ||
2232 | 2234 | ||
2233 | 2235 | @Callable(i) | |
2234 | 2236 | func fixWarehouseFormat (landAssetId) = if ((i.caller != restContract)) | |
2235 | 2237 | then throw("Access denied") | |
2236 | 2238 | else { | |
2237 | 2239 | let whKey = keyWarehouseByLand(landAssetId) | |
2238 | 2240 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2239 | 2241 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2240 | 2242 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2241 | 2243 | let wh = getWarehouse(whKey, landIndex, infraLevel) | |
2242 | 2244 | let loftL = asInt(invoke(economyContract, "recalcLockedVolumeREADONLY", [landAssetId, wh], nil)) | |
2243 | 2245 | let loftO = getWarehouseOccupiedVol(wh) | |
2244 | 2246 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
2245 | 2247 | let loftF = ((loftT - loftL) - loftO) | |
2246 | 2248 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2247 | 2249 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2248 | 2250 | } | |
2249 | 2251 | ||
2250 | 2252 | ||
2251 | 2253 | ||
2252 | 2254 | @Callable(i) | |
2253 | 2255 | func fixStakedPieces (address) = if ((i.caller != restContract)) | |
2254 | 2256 | then throw("Access denied") | |
2255 | 2257 | else { | |
2256 | 2258 | let stakedPieces = if ((address == "")) | |
2257 | 2259 | then 0 | |
2258 | 2260 | else { | |
2259 | 2261 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(address)) | |
2260 | 2262 | let lands = if (isDefined(landsStr)) | |
2261 | 2263 | then split_51C(value(landsStr), "_") | |
2262 | 2264 | else nil | |
2263 | 2265 | func oneLand (acc,landAssetId) = { | |
2264 | 2266 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2265 | 2267 | let landSize = split(asset.description, "_")[recLandSize] | |
2266 | 2268 | (acc + numPiecesBySize(landSize)) | |
2267 | 2269 | } | |
2268 | 2270 | ||
2269 | 2271 | let $l = lands | |
2270 | 2272 | let $s = size($l) | |
2271 | 2273 | let $acc0 = 0 | |
2272 | 2274 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2273 | 2275 | then $a | |
2274 | 2276 | else oneLand($a, $l[$i]) | |
2275 | 2277 | ||
2276 | 2278 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2277 | 2279 | then $a | |
2278 | 2280 | else throw("List size exceeds 100") | |
2279 | 2281 | ||
2280 | 2282 | $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($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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
2281 | 2283 | } | |
2282 | 2284 | $Tuple2([IntegerEntry(keyStakedPiecesByOwner(address), stakedPieces)], stakedPieces) | |
2283 | 2285 | } | |
2284 | 2286 | ||
2285 | 2287 | ||
2286 | 2288 | ||
2287 | 2289 | @Callable(i) | |
2288 | 2290 | func setCustomName (assetId,customName,type) = { | |
2289 | 2291 | let prologAction = prolog(i) | |
2290 | 2292 | if ((size(i.payments) != 1)) | |
2291 | 2293 | then throw("Exactly one payment required") | |
2292 | 2294 | else { | |
2293 | 2295 | let pmt = value(i.payments[0]) | |
2294 | 2296 | if ((pmt.assetId != usdtAssetId)) | |
2295 | 2297 | then throw("Allowed USDT payment only!") | |
2296 | 2298 | else if ((pmt.amount != RENAMINGCOST)) | |
2297 | 2299 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
2298 | 2300 | else if (contains(customName, "__")) | |
2299 | 2301 | then throw(("Name should not contain '__': " + customName)) | |
2300 | 2302 | else if ((size(customName) > MAXNAMELEN)) | |
2301 | 2303 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
2302 | 2304 | else { | |
2303 | 2305 | let addr = toString(i.originCaller) | |
2304 | 2306 | let actions = match type { | |
2305 | 2307 | case _ => | |
2306 | 2308 | if (("ACCOUNT" == $match0)) | |
2307 | 2309 | then { | |
2308 | 2310 | let reverseKey = keyCustomNameToAddress(customName) | |
2309 | 2311 | let nameOwner = getString(reverseKey) | |
2310 | 2312 | if (isDefined(nameOwner)) | |
2311 | 2313 | then throw(("Name already registered: " + customName)) | |
2312 | 2314 | else { | |
2313 | 2315 | let addrToNameKey = keyAddressToCustomName(addr) | |
2314 | 2316 | let oldName = getString(addrToNameKey) | |
2315 | 2317 | let freeOld = if (isDefined(oldName)) | |
2316 | 2318 | then [DeleteEntry(keyCustomNameToAddress(value(oldName)))] | |
2317 | 2319 | else nil | |
2318 | 2320 | (((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
2319 | 2321 | } | |
2320 | 2322 | } | |
2321 | 2323 | else if (("LAND" == $match0)) | |
2322 | 2324 | then { | |
2323 | 2325 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2324 | 2326 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2325 | 2327 | if (!(isDefined(getInteger(timeKey)))) | |
2326 | 2328 | then throw((asset.name + " is not staked")) | |
2327 | 2329 | else { | |
2328 | 2330 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2329 | 2331 | if ((owner != addr)) | |
2330 | 2332 | then throw((LANDPREFIX + " is not yours")) | |
2331 | 2333 | else { | |
2332 | 2334 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
2333 | 2335 | let nameOwner = getString(reverseKey) | |
2334 | 2336 | if (isDefined(nameOwner)) | |
2335 | 2337 | then throw(("Name already registered: " + customName)) | |
2336 | 2338 | else { | |
2337 | 2339 | let assetToNameKey = keyLandAssetIdToCustomName(assetId) | |
2338 | 2340 | let oldName = getString(assetToNameKey) | |
2339 | 2341 | let freeOld = if (isDefined(oldName)) | |
2340 | 2342 | then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))] | |
2341 | 2343 | else nil | |
2342 | 2344 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
2343 | 2345 | } | |
2344 | 2346 | } | |
2345 | 2347 | } | |
2346 | 2348 | } | |
2347 | 2349 | else if (("DUCK" == $match0)) | |
2348 | 2350 | then { | |
2349 | 2351 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2350 | 2352 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2351 | 2353 | if (if (!(isDefined(getInteger(timeKey)))) | |
2352 | 2354 | then true | |
2353 | 2355 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
2354 | 2356 | then throw((asset.name + " is not staked")) | |
2355 | 2357 | else { | |
2356 | 2358 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2357 | 2359 | if ((owner != addr)) | |
2358 | 2360 | then throw((DUCKPREFIX + " is not yours")) | |
2359 | 2361 | else { | |
2360 | 2362 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
2361 | 2363 | let nameOwner = getString(reverseKey) | |
2362 | 2364 | if (isDefined(nameOwner)) | |
2363 | 2365 | then throw(("Name already registered: " + customName)) | |
2364 | 2366 | else { | |
2365 | 2367 | let assetToNameKey = keyDuckAssetIdToCustomName(assetId) | |
2366 | 2368 | let oldName = getString(assetToNameKey) | |
2367 | 2369 | let freeOld = if (isDefined(oldName)) | |
2368 | 2370 | then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))] | |
2369 | 2371 | else nil | |
2370 | 2372 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateDuckStatsInternal(assetId, xpCustomName)._1) | |
2371 | 2373 | } | |
2372 | 2374 | } | |
2373 | 2375 | } | |
2374 | 2376 | } | |
2375 | 2377 | else throw("Unknown entity type") | |
2376 | 2378 | } | |
2377 | 2379 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0) | |
2378 | 2380 | } | |
2379 | 2381 | } | |
2380 | 2382 | } | |
2381 | 2383 | ||
2382 | 2384 | ||
2383 | 2385 | ||
2384 | 2386 | @Callable(i) | |
2385 | 2387 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
2386 | 2388 | then throw("Permission denied") | |
2387 | 2389 | else { | |
2388 | 2390 | let prologAction = prolog(i) | |
2389 | 2391 | if ((size(i.payments) != 0)) | |
2390 | 2392 | then throw("No payments required") | |
2391 | 2393 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
2392 | 2394 | then throw(("Invalid address: " + oldPlayer)) | |
2393 | 2395 | else if (!(isDefined(addressFromString(newPlayer)))) | |
2394 | 2396 | then throw(("Invalid address: " + newPlayer)) | |
2395 | 2397 | else { | |
2396 | 2398 | let oldsKey = keyOldies() | |
2397 | 2399 | let olds = getString(oldsKey) | |
2398 | 2400 | let oldies = if (isDefined(olds)) | |
2399 | 2401 | then split_4C(value(olds), "_") | |
2400 | 2402 | else nil | |
2401 | 2403 | if (containsElement(oldies, newPlayer)) | |
2402 | 2404 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
2403 | 2405 | else { | |
2404 | 2406 | let refByKey = keyAddressRefBy(newPlayer) | |
2405 | 2407 | let refBy = getString(refByKey) | |
2406 | 2408 | if (if (isDefined(refBy)) | |
2407 | 2409 | then isDefined(addressFromString(value(refBy))) | |
2408 | 2410 | else false) | |
2409 | 2411 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
2410 | 2412 | else { | |
2411 | 2413 | let refsKey = keyAddressReferrals(oldPlayer) | |
2412 | 2414 | let refs = getString(refsKey) | |
2413 | 2415 | let refsArray = if (isDefined(refs)) | |
2414 | 2416 | then split_4C(value(refs), "_") | |
2415 | 2417 | else nil | |
2416 | 2418 | if (containsElement(refsArray, newPlayer)) | |
2417 | 2419 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
2418 | 2420 | else { | |
2419 | 2421 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
2420 | 2422 | let newOlds = if (containsElement(oldies, oldPlayer)) | |
2421 | 2423 | then value(olds) | |
2422 | 2424 | else makeString_2C((oldies :+ oldPlayer), "_") | |
2423 | 2425 | $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0) | |
2424 | 2426 | } | |
2425 | 2427 | } | |
2426 | 2428 | } | |
2427 | 2429 | } | |
2428 | 2430 | } | |
2429 | 2431 | ||
2430 | 2432 | ||
2431 | 2433 | ||
2432 | 2434 | @Callable(i) | |
2433 | 2435 | func distributePoints (strength,accuracy,intellect,endurance,dexterity) = { | |
2434 | 2436 | let prologAction = prolog(i) | |
2435 | 2437 | if ((size(i.payments) != 0)) | |
2436 | 2438 | then throw("No payments required") | |
2437 | 2439 | else { | |
2438 | 2440 | let addr = toString(i.originCaller) | |
2439 | 2441 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2440 | 2442 | let freeKeyAcc = keyUserFreePoints(addr) | |
2441 | 2443 | let freePointsAcc = valueOrElse(getInteger(stakingContract, freeKeyAcc), 0) | |
2442 | 2444 | let freeKeyDuck = keyDuckFreePoints(duckAssetId) | |
2443 | 2445 | let freePointsDuck = valueOrElse(getInteger(stakingContract, freeKeyDuck), 0) | |
2444 | 2446 | let sumFree = (freePointsAcc + freePointsDuck) | |
2445 | 2447 | let sumToDistribute = ((((strength + accuracy) + intellect) + endurance) + dexterity) | |
2446 | 2448 | if ((sumToDistribute > sumFree)) | |
2447 | 2449 | then throw((("There are only " + toString(sumFree)) + " free points to distribute")) | |
2448 | 2450 | else { | |
2449 | 2451 | let charsKey = keyDuckChars(duckAssetId) | |
2450 | 2452 | let chars = split(valueOrElse(getString(stakingContract, charsKey), "0_0_0_0_0"), "_") | |
2451 | 2453 | let newAcc = (freePointsAcc - sumToDistribute) | |
2452 | 2454 | $Tuple2([IntegerEntry(freeKeyAcc, if ((0 > newAcc)) | |
2453 | 2455 | then 0 | |
2454 | 2456 | else newAcc), IntegerEntry(freeKeyDuck, if ((0 > newAcc)) | |
2455 | 2457 | then (freePointsDuck + newAcc) | |
2456 | 2458 | else freePointsDuck), StringEntry(charsKey, makeString([toString((parseIntValue(chars[charStrength]) + strength)), toString((parseIntValue(chars[charAccuracy]) + accuracy)), toString((parseIntValue(chars[charIntellect]) + intellect)), toString((parseIntValue(chars[charEndurance]) + endurance)), toString((parseIntValue(chars[charDexterity]) + dexterity))], "_")), prologAction], 0) | |
2457 | 2459 | } | |
2458 | 2460 | } | |
2459 | 2461 | } | |
2460 | 2462 | ||
2461 | 2463 | ||
2462 | 2464 | ||
2463 | 2465 | @Callable(i) | |
2464 | 2466 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
2465 | 2467 | ||
2466 | 2468 | ||
2467 | 2469 | ||
2468 | 2470 | @Callable(i) | |
2469 | 2471 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
2470 | 2472 | let terrainCounts = countTerrains(terrains) | |
2471 | 2473 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
2472 | 2474 | } | |
2473 | 2475 | ||
2474 | 2476 | ||
2475 | 2477 | ||
2476 | 2478 | @Callable(i) | |
2477 | 2479 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
2478 | 2480 | ||
2479 | 2481 | ||
2480 | 2482 | ||
2481 | 2483 | @Callable(i) | |
2482 | 2484 | func getWarehouseREADONLY (landAssetId) = { | |
2483 | 2485 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2484 | 2486 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2485 | 2487 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2486 | 2488 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
2487 | 2489 | } | |
2488 | 2490 | ||
2489 | 2491 | ||
2490 | 2492 | ||
2491 | 2493 | @Callable(i) | |
2492 | 2494 | func saveLastTx () = if (if ((i.caller != wlgContract)) | |
2493 | 2495 | then (i.caller != economyContract) | |
2494 | 2496 | else false) | |
2495 | 2497 | then throw("Access denied") | |
2496 | 2498 | else $Tuple2([prolog(i)], 42) | |
2497 | 2499 | ||
2498 | 2500 | ||
2499 | 2501 | ||
2500 | 2502 | @Callable(i) | |
2501 | 2503 | func updateDuckStats (duckAssetId,deltaXP) = if ((i.caller != economyContract)) | |
2502 | 2504 | then throw("Access denied") | |
2503 | 2505 | else updateDuckStatsInternal(duckAssetId, deltaXP) | |
2504 | 2506 | ||
2505 | 2507 | ||
2506 | 2508 | ||
2507 | 2509 | @Callable(i) | |
2508 | 2510 | func updateAccStats (addr,deltaXP) = if ((i.caller != economyContract)) | |
2509 | 2511 | then throw("Access denied") | |
2510 | 2512 | else updateAccStatsInternal(addr, deltaXP) | |
2511 | 2513 | ||
2512 | 2514 | ||
2513 | 2515 | ||
2514 | 2516 | @Callable(i) | |
2515 | 2517 | func equipDuck (equipment) = { | |
2516 | 2518 | let prologAction = prolog(i) | |
2517 | 2519 | if ((size(i.payments) != 0)) | |
2518 | 2520 | then throw("No payments required") | |
2519 | 2521 | else { | |
2520 | 2522 | let addr = toString(i.originCaller) | |
2521 | 2523 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2522 | 2524 | let eqKey = keyDuckEquipment(duckAssetId) | |
2523 | 2525 | let currentSegs = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_") | |
2524 | 2526 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2525 | 2527 | let currentPack = getBackpack(bpKey) | |
2526 | 2528 | let newEq = split(equipment, "_") | |
2527 | 2529 | if ((size(newEq) != NUMSEGMENTS)) | |
2528 | 2530 | then throw("Wrong equipment string") | |
2529 | 2531 | else { | |
2530 | 2532 | let reqs = getDuckStats(this, duckAssetId) | |
2531 | 2533 | let tempProdB = dressB(currentSegs, prodStrToBytes(currentPack[bpIdxProd]), true, reqs) | |
2532 | 2534 | let newProdB = dressB(newEq, tempProdB, false, reqs) | |
2533 | 2535 | let newProdStr = bytesToProdStr(newProdB) | |
2534 | 2536 | $Tuple2([StringEntry(eqKey, equipment), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProdStr], ":")), prologAction], 0) | |
2535 | 2537 | } | |
2536 | 2538 | } | |
2537 | 2539 | } | |
2538 | 2540 | ||
2539 | 2541 |
github/deemru/w8io/026f985 251.13 ms ◑