tx · 88aqsfbyDA6sgXS2HSdJVj2qFASbuVR7Mxius3Bx3Qiw 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.07700000 Waves 2023.07.24 21:41 [2680319] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "88aqsfbyDA6sgXS2HSdJVj2qFASbuVR7Mxius3Bx3Qiw", "fee": 7700000, "feeAssetId": null, "timestamp": 1690224104319, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "5rXphv7ERRw4zunVAox9kYYj6eSjo9FwR4849pAqdZq9DmQFueTGnWhNryqxAvvxZ9bLnvkuQavmQ8s87L9U3nXb" ], "script": "base64:BgKyAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgUKAwEBARIAEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgMKAQgSBQoDCAgIEgQKAggIEgcKBQEBAQEBEgMKAQESBQoDAQEIEgMKAQgSAwoBCBIAEgQKAggBEgQKAggBEgMKAQjVAQEUa2V5TGFzdEFyYlRpbWVCeVVzZXIBBGFkZHIJAKwCAgIQbGFzdEFyYlRpbWVVc2VyXwUEYWRkcgAGU0NBTEU4AIDC1y8ADHhwTGV2ZWxTY2FsZQCAGQAPeHBMZXZlbFJlY2lwUG93AKAfABJudW1Qb2ludHNPbkxldmVsVXAAAwAMcmVxdWlyZW1lbnRzCQDMCAICCFN0cmVuZ3RoCQDMCAICCEFjY3VyYWN5CQDMCAICCUludGVsbGVjdAkAzAgCAglFbmR1cmFuY2UJAMwIAgIJRGV4dGVyaXR5CQDMCAICBUxldmVsCQDMCAICBkhlYWx0aAUDbmlsAAxjaGFyU3RyZW5ndGgAAAAMY2hhck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GJwSWR4TWF0CQDMCAIFCm5ld1Byb2RTdHIFA25pbAIBOgkAzAgCBQxwcm9sb2dBY3Rpb24FA25pbAAAAJ5rkPQ=", "height": 2680319, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DxM4Fr3uH12fuWgKBRcMMZ9oQHfLShDoArG6kHvir8Na Next: D8uqJHWL7Tc5vfnvgzQicoFshC6jEYzCFEgYtkKTDiy3 Diff:
Old | New | Differences | |
---|---|---|---|
59 | 59 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
60 | 60 | ||
61 | 61 | ||
62 | - | let xpClaim = | |
63 | - | ||
64 | - | let xpSuccessFlight = | |
65 | - | ||
66 | - | let xpFailFlight = | |
62 | + | let xpClaim = 10000 | |
63 | + | ||
64 | + | let xpSuccessFlight = 10000 | |
65 | + | ||
66 | + | let xpFailFlight = 2000 | |
67 | 67 | ||
68 | 68 | let xpCallES = 100000 | |
69 | 69 | ||
70 | - | let xpCustomName = | |
71 | - | ||
72 | - | let xpNewSLand = | |
73 | - | ||
74 | - | let xpUpgradeInfra = | |
75 | - | ||
76 | - | let xpMerge = | |
77 | - | ||
78 | - | let xpOnboard = | |
70 | + | let xpCustomName = 1000000 | |
71 | + | ||
72 | + | let xpNewSLand = 5000000 | |
73 | + | ||
74 | + | let xpUpgradeInfra = 10000 | |
75 | + | ||
76 | + | let xpMerge = 1000000 | |
77 | + | ||
78 | + | let xpOnboard = 1000000 | |
79 | 79 | ||
80 | 80 | let xpHeal = 10000 | |
81 | 81 | ||
1311 | 1311 | ||
1312 | 1312 | ||
1313 | 1313 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1314 | - | let $ | |
1314 | + | let $t02927529814 = if ((claimMode == claimModeWh)) | |
1315 | 1315 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1316 | 1316 | else { | |
1317 | 1317 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1321 | 1321 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1322 | 1322 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1323 | 1323 | } | |
1324 | - | let landAssetId = $ | |
1325 | - | let duckId = $ | |
1324 | + | let landAssetId = $t02927529814._1 | |
1325 | + | let duckId = $t02927529814._2 | |
1326 | 1326 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1327 | 1327 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1328 | 1328 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1370 | 1370 | let currentPack = getBackpack(bpKey) | |
1371 | 1371 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1372 | 1372 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1373 | - | let $ | |
1373 | + | let $t03218833059 = if ((claimMode == claimModeWh)) | |
1374 | 1374 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1375 | 1375 | else if ((claimMode == claimModeDuck)) | |
1376 | 1376 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1379 | 1379 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1380 | 1380 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1381 | 1381 | } | |
1382 | - | let whRes = $ | |
1383 | - | let bpRes = $ | |
1384 | - | let loftO = $ | |
1385 | - | let loftF = $ | |
1382 | + | let whRes = $t03218833059._1 | |
1383 | + | let bpRes = $t03218833059._2 | |
1384 | + | let loftO = $t03218833059._3 | |
1385 | + | let loftF = $t03218833059._4 | |
1386 | 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]], "_")]) | |
1387 | 1387 | } | |
1388 | 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 | - | let xpClaim = | |
63 | - | ||
64 | - | let xpSuccessFlight = | |
65 | - | ||
66 | - | let xpFailFlight = | |
62 | + | let xpClaim = 10000 | |
63 | + | ||
64 | + | let xpSuccessFlight = 10000 | |
65 | + | ||
66 | + | let xpFailFlight = 2000 | |
67 | 67 | ||
68 | 68 | let xpCallES = 100000 | |
69 | 69 | ||
70 | - | let xpCustomName = | |
71 | - | ||
72 | - | let xpNewSLand = | |
73 | - | ||
74 | - | let xpUpgradeInfra = | |
75 | - | ||
76 | - | let xpMerge = | |
77 | - | ||
78 | - | let xpOnboard = | |
70 | + | let xpCustomName = 1000000 | |
71 | + | ||
72 | + | let xpNewSLand = 5000000 | |
73 | + | ||
74 | + | let xpUpgradeInfra = 10000 | |
75 | + | ||
76 | + | let xpMerge = 1000000 | |
77 | + | ||
78 | + | let xpOnboard = 1000000 | |
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 | 668 | else if (if (!(isPositive)) | |
669 | 669 | then (size(parts[0]) != 2) | |
670 | 670 | else false) | |
671 | 671 | then throw("Product idx should be 2 digits, zero padded") | |
672 | 672 | else { | |
673 | 673 | let productIdx = parseIntValue(parts[0]) | |
674 | 674 | let count = parseIntValue(parts[1]) | |
675 | 675 | if (if ((0 > productIdx)) | |
676 | 676 | then true | |
677 | 677 | else (productIdx >= size(productionMatrix))) | |
678 | 678 | then throw("Unknown product idx") | |
679 | 679 | else if ((0 > count)) | |
680 | 680 | then throw("Count can't be negative") | |
681 | 681 | else if ((count > MAXPRODINSLOT)) | |
682 | 682 | then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx])) | |
683 | 683 | else if ((count == 0)) | |
684 | 684 | then $Tuple2(pList, false) | |
685 | 685 | else { | |
686 | 686 | let head = take(pList, (8 * productIdx)) | |
687 | 687 | let curr = toInt(take(drop(pList, (8 * productIdx)), 8)) | |
688 | 688 | let tail = drop(pList, (8 * (productIdx + 1))) | |
689 | 689 | let recipe = split(productionMatrix[productIdx], "_") | |
690 | 690 | if (if (!(isPositive)) | |
691 | 691 | then (count > curr) | |
692 | 692 | else false) | |
693 | 693 | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count))) | |
694 | 694 | else { | |
695 | 695 | let isBigItem = if (if (!(isPositive)) | |
696 | 696 | then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ",")) | |
697 | 697 | else false) | |
698 | 698 | then { | |
699 | 699 | let compat = recipe[rIdxSlots] | |
700 | 700 | if ((compat == "")) | |
701 | 701 | then throw("Item cannot be equipped") | |
702 | 702 | else { | |
703 | 703 | let c = parseIntValue(compat) | |
704 | 704 | let cSeg = (c / 100) | |
705 | 705 | if ((segment != cSeg)) | |
706 | 706 | then throw("Segment incompatible") | |
707 | 707 | else { | |
708 | 708 | let cMainAux = ((c % 100) / 10) | |
709 | 709 | if ((mainAux != cMainAux)) | |
710 | 710 | then throw("Slot incompatible") | |
711 | 711 | else { | |
712 | 712 | let cNumSlots = (c % 10) | |
713 | 713 | if (if ((slot != 0)) | |
714 | 714 | then (cNumSlots > 1) | |
715 | 715 | else false) | |
716 | 716 | then throw("Big items should occupy slot 0") | |
717 | 717 | else (cNumSlots > 1) | |
718 | 718 | } | |
719 | 719 | } | |
720 | 720 | } | |
721 | 721 | } | |
722 | 722 | else false | |
723 | 723 | $Tuple2(((head + toBytes((curr + (if (isPositive) | |
724 | 724 | then count | |
725 | 725 | else -(count))))) + tail), isBigItem) | |
726 | 726 | } | |
727 | 727 | } | |
728 | 728 | } | |
729 | 729 | } | |
730 | 730 | ||
731 | 731 | ||
732 | 732 | func slotsGroupB (g,bpIn,isPositive,segment,mainAux,reqs) = if ((g != "")) | |
733 | 733 | then { | |
734 | 734 | let slots = split(g, ",") | |
735 | 735 | if ((size(slots) > MAXSLOTS)) | |
736 | 736 | then throw("Wrong slots format") | |
737 | 737 | else { | |
738 | 738 | let s0 = slots[0] | |
739 | 739 | let s1 = if ((size(slots) > 1)) | |
740 | 740 | then slots[1] | |
741 | 741 | else "" | |
742 | 742 | if (if ((s0 == "")) | |
743 | 743 | then (s1 == "") | |
744 | 744 | else false) | |
745 | 745 | then bpIn | |
746 | 746 | else { | |
747 | 747 | let tmpS0 = if ((s0 != "")) | |
748 | 748 | then addProdB(s0, bpIn, isPositive, segment, mainAux, 0, reqs) | |
749 | 749 | else $Tuple2(bpIn, false) | |
750 | 750 | if ((s1 != "")) | |
751 | 751 | then if (tmpS0._2) | |
752 | 752 | then throw("Big item already occupies slot") | |
753 | 753 | else addProdB(s1, tmpS0._1, isPositive, segment, mainAux, 1, reqs)._1 | |
754 | 754 | else tmpS0._1 | |
755 | 755 | } | |
756 | 756 | } | |
757 | 757 | } | |
758 | 758 | else bpIn | |
759 | 759 | ||
760 | 760 | ||
761 | 761 | func dressB (segList,pBytes,isPositive,reqs) = { | |
762 | 762 | func segment (acc,seg) = { | |
763 | 763 | let j = acc._1 | |
764 | 764 | let mainAux = split(seg, ";") | |
765 | 765 | if ((size(mainAux) != NUMMAINAUX)) | |
766 | 766 | then throw("Wrong segment format") | |
767 | 767 | else { | |
768 | 768 | let m = mainAux[0] | |
769 | 769 | let a = mainAux[1] | |
770 | 770 | if (if ((m == "")) | |
771 | 771 | then (a == "") | |
772 | 772 | else false) | |
773 | 773 | then $Tuple2((j + 1), acc._2) | |
774 | 774 | else { | |
775 | 775 | let tmpM = slotsGroupB(m, acc._2, isPositive, j, 0, reqs) | |
776 | 776 | $Tuple2((j + 1), slotsGroupB(a, tmpM, isPositive, j, 1, reqs)) | |
777 | 777 | } | |
778 | 778 | } | |
779 | 779 | } | |
780 | 780 | ||
781 | 781 | ( let $l = segList | |
782 | 782 | let $s = size($l) | |
783 | 783 | let $acc0 = $Tuple2(0, pBytes) | |
784 | 784 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
785 | 785 | then $a | |
786 | 786 | else segment($a, $l[$i]) | |
787 | 787 | ||
788 | 788 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
789 | 789 | then $a | |
790 | 790 | else throw("List size exceeds 6") | |
791 | 791 | ||
792 | 792 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6))._2 | |
793 | 793 | } | |
794 | 794 | ||
795 | 795 | ||
796 | 796 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
797 | 797 | then throw("Wrong proportions data") | |
798 | 798 | else { | |
799 | 799 | func updater (acc,i) = { | |
800 | 800 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
801 | 801 | if ((0 > result)) | |
802 | 802 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
803 | 803 | else (acc :+ toString(result)) | |
804 | 804 | } | |
805 | 805 | ||
806 | 806 | let r = { | |
807 | 807 | let $l = [0, 1, 2, 3, 4, 5] | |
808 | 808 | let $s = size($l) | |
809 | 809 | let $acc0 = nil | |
810 | 810 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
811 | 811 | then $a | |
812 | 812 | else updater($a, $l[$i]) | |
813 | 813 | ||
814 | 814 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
815 | 815 | then $a | |
816 | 816 | else throw("List size exceeds 6") | |
817 | 817 | ||
818 | 818 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
819 | 819 | } | |
820 | 820 | makeString(r, "_") | |
821 | 821 | } | |
822 | 822 | ||
823 | 823 | ||
824 | 824 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
825 | 825 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
826 | 826 | updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign) | |
827 | 827 | } | |
828 | 828 | ||
829 | 829 | ||
830 | 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)] | |
831 | 831 | ||
832 | 832 | ||
833 | 833 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
834 | 834 | func adder (acc,i) = { | |
835 | 835 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
836 | 836 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
837 | 837 | } | |
838 | 838 | ||
839 | 839 | let r = { | |
840 | 840 | let $l = [0, 1, 2, 3, 4, 5] | |
841 | 841 | let $s = size($l) | |
842 | 842 | let $acc0 = nil | |
843 | 843 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
844 | 844 | then $a | |
845 | 845 | else adder($a, $l[$i]) | |
846 | 846 | ||
847 | 847 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
848 | 848 | then $a | |
849 | 849 | else throw("List size exceeds 6") | |
850 | 850 | ||
851 | 851 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
852 | 852 | } | |
853 | 853 | makeString(r, "_") | |
854 | 854 | } | |
855 | 855 | ||
856 | 856 | ||
857 | 857 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
858 | 858 | func adder (acc,i) = { | |
859 | 859 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
860 | 860 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
861 | 861 | } | |
862 | 862 | ||
863 | 863 | let $l = [0, 1, 2, 3, 4, 5] | |
864 | 864 | let $s = size($l) | |
865 | 865 | let $acc0 = $Tuple2(nil, 0) | |
866 | 866 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
867 | 867 | then $a | |
868 | 868 | else adder($a, $l[$i]) | |
869 | 869 | ||
870 | 870 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
871 | 871 | then $a | |
872 | 872 | else throw("List size exceeds 6") | |
873 | 873 | ||
874 | 874 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
875 | 875 | } | |
876 | 876 | ||
877 | 877 | ||
878 | 878 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
879 | 879 | let resListToClaim = resToClaim._1 | |
880 | 880 | let resAmToClaim = resToClaim._2 | |
881 | 881 | if ((resAmToClaim == 0)) | |
882 | 882 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
883 | 883 | else if ((whSpaceLeft >= resAmToClaim)) | |
884 | 884 | then { | |
885 | 885 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
886 | 886 | ||
887 | 887 | let r = { | |
888 | 888 | let $l = [0, 1, 2, 3, 4, 5] | |
889 | 889 | let $s = size($l) | |
890 | 890 | let $acc0 = nil | |
891 | 891 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
892 | 892 | then $a | |
893 | 893 | else addLists($a, $l[$i]) | |
894 | 894 | ||
895 | 895 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
896 | 896 | then $a | |
897 | 897 | else throw("List size exceeds 6") | |
898 | 898 | ||
899 | 899 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
900 | 900 | } | |
901 | 901 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
902 | 902 | } | |
903 | 903 | else { | |
904 | 904 | func addPartLists (acc,i) = { | |
905 | 905 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
906 | 906 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
907 | 907 | } | |
908 | 908 | ||
909 | 909 | let r = { | |
910 | 910 | let $l = [0, 1, 2, 3, 4, 5] | |
911 | 911 | let $s = size($l) | |
912 | 912 | let $acc0 = $Tuple2(nil, nil) | |
913 | 913 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
914 | 914 | then $a | |
915 | 915 | else addPartLists($a, $l[$i]) | |
916 | 916 | ||
917 | 917 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
918 | 918 | then $a | |
919 | 919 | else throw("List size exceeds 6") | |
920 | 920 | ||
921 | 921 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
922 | 922 | } | |
923 | 923 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
924 | 924 | } | |
925 | 925 | } | |
926 | 926 | ||
927 | 927 | ||
928 | 928 | func abs (x) = if ((x >= toBigInt(0))) | |
929 | 929 | then x | |
930 | 930 | else -(x) | |
931 | 931 | ||
932 | 932 | ||
933 | 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]] | |
934 | 934 | ||
935 | 935 | func genChar (n,freqs) = { | |
936 | 936 | let rem = toInt((n % TWENTYX)) | |
937 | 937 | let letter = if ((freqs[0] > rem)) | |
938 | 938 | then "A" | |
939 | 939 | else if ((freqs[1] > rem)) | |
940 | 940 | then "B" | |
941 | 941 | else if ((freqs[2] > rem)) | |
942 | 942 | then "C" | |
943 | 943 | else if ((freqs[3] > rem)) | |
944 | 944 | then "D" | |
945 | 945 | else if ((freqs[4] > rem)) | |
946 | 946 | then "E" | |
947 | 947 | else "F" | |
948 | 948 | letter | |
949 | 949 | } | |
950 | 950 | ||
951 | 951 | ||
952 | 952 | func genTerrains (seed,continentIdx) = { | |
953 | 953 | let f = freq[continentIdx] | |
954 | 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)) | |
955 | 955 | ||
956 | 956 | let t = { | |
957 | 957 | let $l = [1, 2, 3, 4, 5] | |
958 | 958 | let $s = size($l) | |
959 | 959 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
960 | 960 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
961 | 961 | then $a | |
962 | 962 | else terrainGenerator($a, $l[$i]) | |
963 | 963 | ||
964 | 964 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
965 | 965 | then $a | |
966 | 966 | else throw("List size exceeds 5") | |
967 | 967 | ||
968 | 968 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
969 | 969 | } | |
970 | 970 | t._1 | |
971 | 971 | } | |
972 | 972 | ||
973 | 973 | ||
974 | 974 | func getBackpack (bpKey) = { | |
975 | 975 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
976 | 976 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
977 | 977 | then p[bpIdxRes] | |
978 | 978 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
979 | 979 | then p[bpIdxMat] | |
980 | 980 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
981 | 981 | } | |
982 | 982 | ||
983 | 983 | ||
984 | 984 | func getWarehouseTotalVolume (volPrefix) = { | |
985 | 985 | let parts = split(volPrefix, "_") | |
986 | 986 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
987 | 987 | } | |
988 | 988 | ||
989 | 989 | ||
990 | 990 | func getWarehouseOccupiedVol (currentWh) = { | |
991 | 991 | let goods = currentWh[whIdxProd] | |
992 | 992 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
993 | 993 | ||
994 | 994 | func sumProd (acc,item) = { | |
995 | 995 | let idx = acc._1 | |
996 | 996 | let pkgs = (((parseIntValue(item) + PRODUCTPKGSIZE) - 1) / PRODUCTPKGSIZE) | |
997 | 997 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
998 | 998 | } | |
999 | 999 | ||
1000 | 1000 | let whResVol = { | |
1001 | 1001 | let $l = split(currentWh[whIdxRes], "_") | |
1002 | 1002 | let $s = size($l) | |
1003 | 1003 | let $acc0 = 0 | |
1004 | 1004 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1005 | 1005 | then $a | |
1006 | 1006 | else sumResMat($a, $l[$i]) | |
1007 | 1007 | ||
1008 | 1008 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1009 | 1009 | then $a | |
1010 | 1010 | else throw("List size exceeds 6") | |
1011 | 1011 | ||
1012 | 1012 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1013 | 1013 | } | |
1014 | 1014 | let whMatVol = { | |
1015 | 1015 | let $l = split(currentWh[whIdxMat], "_") | |
1016 | 1016 | let $s = size($l) | |
1017 | 1017 | let $acc0 = 0 | |
1018 | 1018 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1019 | 1019 | then $a | |
1020 | 1020 | else sumResMat($a, $l[$i]) | |
1021 | 1021 | ||
1022 | 1022 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1023 | 1023 | then $a | |
1024 | 1024 | else throw("List size exceeds 6") | |
1025 | 1025 | ||
1026 | 1026 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1027 | 1027 | } | |
1028 | 1028 | let whGoodsVol = if ((goods == "")) | |
1029 | 1029 | then 0 | |
1030 | 1030 | else ( let $l = split_4C(goods, "_") | |
1031 | 1031 | let $s = size($l) | |
1032 | 1032 | let $acc0 = $Tuple2(0, 0) | |
1033 | 1033 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1034 | 1034 | then $a | |
1035 | 1035 | else sumProd($a, $l[$i]) | |
1036 | 1036 | ||
1037 | 1037 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1038 | 1038 | then $a | |
1039 | 1039 | else throw("List size exceeds 50") | |
1040 | 1040 | ||
1041 | 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 | |
1042 | 1042 | ((whResVol + whMatVol) + whGoodsVol) | |
1043 | 1043 | } | |
1044 | 1044 | ||
1045 | 1045 | ||
1046 | 1046 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
1047 | 1047 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
1048 | 1048 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
1049 | 1049 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
1050 | 1050 | let wh = split_4C(whStr, ":") | |
1051 | 1051 | let whOccupied = getWarehouseOccupiedVol(wh) | |
1052 | 1052 | let whLoft = if ((5 > size(wh))) | |
1053 | 1053 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
1054 | 1054 | else { | |
1055 | 1055 | let loft = split(wh[whIdxLOFT], "_") | |
1056 | 1056 | let whLocked = parseIntValue(loft[volLocked]) | |
1057 | 1057 | let occ = if ((size(loft) > 1)) | |
1058 | 1058 | then parseIntValue(loft[volOccupied]) | |
1059 | 1059 | else whOccupied | |
1060 | 1060 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
1061 | 1061 | } | |
1062 | 1062 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
1063 | 1063 | then wh[whIdxRes] | |
1064 | 1064 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
1065 | 1065 | then wh[whIdxMat] | |
1066 | 1066 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
1067 | 1067 | } | |
1068 | 1068 | ||
1069 | 1069 | ||
1070 | 1070 | func getWarehouseSpaceLeft (currentWh) = { | |
1071 | 1071 | let occupiedVol = getWarehouseOccupiedVol(currentWh) | |
1072 | 1072 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
1073 | 1073 | ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol) | |
1074 | 1074 | } | |
1075 | 1075 | ||
1076 | 1076 | ||
1077 | 1077 | func toVolume (amount,pkgSize) = { | |
1078 | 1078 | let pkgs = if ((amount >= 0)) | |
1079 | 1079 | then (((amount + pkgSize) - 1) / pkgSize) | |
1080 | 1080 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
1081 | 1081 | (pkgs * MULT8) | |
1082 | 1082 | } | |
1083 | 1083 | ||
1084 | 1084 | ||
1085 | 1085 | func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3)) | |
1086 | 1086 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
1087 | 1087 | else { | |
1088 | 1088 | let resParts = split(cargoParts[0], "_") | |
1089 | 1089 | let matParts = split(cargoParts[1], "_") | |
1090 | 1090 | let prodParts = if ((cargoParts[2] == "")) | |
1091 | 1091 | then nil | |
1092 | 1092 | else split(cargoParts[2], "_") | |
1093 | 1093 | if ((size(resParts) != NUMRES)) | |
1094 | 1094 | then throw("All 6 resources should be passed") | |
1095 | 1095 | else if ((size(matParts) != NUMRES)) | |
1096 | 1096 | then throw("All 6 materials should be passed") | |
1097 | 1097 | else { | |
1098 | 1098 | let whSpaceLeft = getWarehouseSpaceLeft(currentWh) | |
1099 | 1099 | let currWhRes = split(currentWh[whIdxRes], "_") | |
1100 | 1100 | let currWhMat = split(currentWh[whIdxMat], "_") | |
1101 | 1101 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
1102 | 1102 | then nil | |
1103 | 1103 | else split(currentWh[whIdxProd], "_") | |
1104 | 1104 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1105 | 1105 | let currentPackMat = split(currentPack[bpIdxMat], "_") | |
1106 | 1106 | let currentPackProd = if ((currentPack[bpIdxProd] == "")) | |
1107 | 1107 | then nil | |
1108 | 1108 | else split(currentPack[bpIdxProd], "_") | |
1109 | 1109 | func mvR (acc,item) = { | |
1110 | 1110 | let i = acc._1 | |
1111 | 1111 | let am = parseIntValue(item) | |
1112 | 1112 | let whr = parseIntValue(currWhRes[i]) | |
1113 | 1113 | let bpr = parseIntValue(currentPackRes[i]) | |
1114 | 1114 | if ((am == 0)) | |
1115 | 1115 | then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4) | |
1116 | 1116 | else if ((am > 0)) | |
1117 | 1117 | then if ((am > bpr)) | |
1118 | 1118 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available")) | |
1119 | 1119 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1120 | 1120 | else if ((-(am) > whr)) | |
1121 | 1121 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available")) | |
1122 | 1122 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1123 | 1123 | } | |
1124 | 1124 | ||
1125 | 1125 | let r = { | |
1126 | 1126 | let $l = resParts | |
1127 | 1127 | let $s = size($l) | |
1128 | 1128 | let $acc0 = $Tuple4(0, nil, nil, 0) | |
1129 | 1129 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1130 | 1130 | then $a | |
1131 | 1131 | else mvR($a, $l[$i]) | |
1132 | 1132 | ||
1133 | 1133 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1134 | 1134 | then $a | |
1135 | 1135 | else throw("List size exceeds 6") | |
1136 | 1136 | ||
1137 | 1137 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1138 | 1138 | } | |
1139 | 1139 | func mvM (acc,item) = { | |
1140 | 1140 | let i = acc._1 | |
1141 | 1141 | let am = parseIntValue(item) | |
1142 | 1142 | let whm = parseIntValue(currWhMat[i]) | |
1143 | 1143 | let bpm = parseIntValue(currentPackMat[i]) | |
1144 | 1144 | if ((am == 0)) | |
1145 | 1145 | then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4) | |
1146 | 1146 | else if ((am > 0)) | |
1147 | 1147 | then if ((am > bpm)) | |
1148 | 1148 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available")) | |
1149 | 1149 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1150 | 1150 | else if ((-(am) > whm)) | |
1151 | 1151 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available")) | |
1152 | 1152 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1153 | 1153 | } | |
1154 | 1154 | ||
1155 | 1155 | let m = { | |
1156 | 1156 | let $l = matParts | |
1157 | 1157 | let $s = size($l) | |
1158 | 1158 | let $acc0 = $Tuple4(0, nil, nil, r._4) | |
1159 | 1159 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1160 | 1160 | then $a | |
1161 | 1161 | else mvM($a, $l[$i]) | |
1162 | 1162 | ||
1163 | 1163 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1164 | 1164 | then $a | |
1165 | 1165 | else throw("List size exceeds 6") | |
1166 | 1166 | ||
1167 | 1167 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1168 | 1168 | } | |
1169 | 1169 | func mvP (acc,item) = { | |
1170 | 1170 | let i = acc._1 | |
1171 | 1171 | let am = parseIntValue(item) | |
1172 | 1172 | let whp = if ((size(currWhProd) > i)) | |
1173 | 1173 | then parseIntValue(currWhProd[i]) | |
1174 | 1174 | else 0 | |
1175 | 1175 | let bpp = if ((size(currentPackProd) > i)) | |
1176 | 1176 | then parseIntValue(currentPackProd[i]) | |
1177 | 1177 | else 0 | |
1178 | 1178 | if ((am == 0)) | |
1179 | 1179 | then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4) | |
1180 | 1180 | else if ((am > 0)) | |
1181 | 1181 | then if ((am > bpp)) | |
1182 | 1182 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available")) | |
1183 | 1183 | else { | |
1184 | 1184 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1185 | 1185 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1186 | 1186 | } | |
1187 | 1187 | else if ((-(am) > whp)) | |
1188 | 1188 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available")) | |
1189 | 1189 | else { | |
1190 | 1190 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1191 | 1191 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1192 | 1192 | } | |
1193 | 1193 | } | |
1194 | 1194 | ||
1195 | 1195 | let p = if ((size(prodParts) != 0)) | |
1196 | 1196 | then { | |
1197 | 1197 | let $l = prodParts | |
1198 | 1198 | let $s = size($l) | |
1199 | 1199 | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
1200 | 1200 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1201 | 1201 | then $a | |
1202 | 1202 | else mvP($a, $l[$i]) | |
1203 | 1203 | ||
1204 | 1204 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1205 | 1205 | then $a | |
1206 | 1206 | else throw("List size exceeds 50") | |
1207 | 1207 | ||
1208 | 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) | |
1209 | 1209 | } | |
1210 | 1210 | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
1211 | 1211 | let volSaldo = p._4 | |
1212 | 1212 | if ((volSaldo > whSpaceLeft)) | |
1213 | 1213 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
1214 | 1214 | else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo) | |
1215 | 1215 | } | |
1216 | 1216 | } | |
1217 | 1217 | ||
1218 | 1218 | ||
1219 | 1219 | func expeditionInternal (caller,txId) = { | |
1220 | 1220 | let userAddr = toString(caller) | |
1221 | 1221 | let bigNum = abs(toBigInt(txId)) | |
1222 | 1222 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1223 | 1223 | let landNum = toString(freeNum) | |
1224 | 1224 | let continentIdx = toInt((bigNum % FIVEX)) | |
1225 | 1225 | let terrains = genTerrains(bigNum, continentIdx) | |
1226 | 1226 | let continent = continents[continentIdx] | |
1227 | 1227 | let issue = Issue(nftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
1228 | 1228 | let assetId = calculateAssetId(issue) | |
1229 | 1229 | let id = toBase58String(assetId) | |
1230 | 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)) | |
1231 | 1231 | } | |
1232 | 1232 | ||
1233 | 1233 | ||
1234 | 1234 | func flightCommon (userAddr,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
1235 | 1235 | then throw("signature does not match") | |
1236 | 1236 | else { | |
1237 | 1237 | let parts = split(toUtf8String(message), ";") | |
1238 | 1238 | let flightLog = split(parts[0], "|") | |
1239 | 1239 | let hp = split(flightLog[flHealth], "_") | |
1240 | 1240 | let curHP = parseIntValue(hp[0]) | |
1241 | 1241 | let newHP = parseIntValue(hp[1]) | |
1242 | 1242 | let newLocTxVer = split(parts[1], ":") | |
1243 | 1243 | let newLocation = newLocTxVer[0] | |
1244 | 1244 | let time = parseIntValue(flightLog[flTimestamp]) | |
1245 | 1245 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1246 | 1246 | then true | |
1247 | 1247 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1248 | 1248 | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1249 | 1249 | else { | |
1250 | 1250 | let txFromMsg = newLocTxVer[1] | |
1251 | 1251 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "") | |
1252 | 1252 | if ((lastTx != txFromMsg)) | |
1253 | 1253 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1254 | 1254 | else { | |
1255 | 1255 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1256 | 1256 | let keyHealth = keyDuckHealth(duckAssetId) | |
1257 | 1257 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1258 | 1258 | let oldFromState = valueOrElse(getInteger(keyHealth), maxHP) | |
1259 | 1259 | if ((oldFromState != curHP)) | |
1260 | 1260 | then throw(((("oldHealth=" + toString(oldFromState)) + " from state does not match one from flight log=") + toString(curHP))) | |
1261 | 1261 | else if ((0 >= curHP)) | |
1262 | 1262 | then throw("You can't fly with zero health") | |
1263 | 1263 | else { | |
1264 | 1264 | let bonus = if ((size(flightLog) > flBonus)) | |
1265 | 1265 | then flightLog[flBonus] | |
1266 | 1266 | else "" | |
1267 | 1267 | let prodUsed = if ((size(flightLog) > flProdsUsed)) | |
1268 | 1268 | then flightLog[flProdsUsed] | |
1269 | 1269 | else "" | |
1270 | 1270 | let sentAmount = if (if ((newHP > 0)) | |
1271 | 1271 | then (bonus == "$") | |
1272 | 1272 | else false) | |
1273 | 1273 | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1274 | 1274 | else 0 | |
1275 | 1275 | $Tuple5(newHP, duckAssetId, sentAmount, newLocation, prodUsed) | |
1276 | 1276 | } | |
1277 | 1277 | } | |
1278 | 1278 | } | |
1279 | 1279 | } | |
1280 | 1280 | ||
1281 | 1281 | ||
1282 | 1282 | func expeditionCommon (caller,txId,message,sig) = { | |
1283 | 1283 | let userAddr = toString(caller) | |
1284 | 1284 | let f = flightCommon(userAddr, message, sig) | |
1285 | 1285 | let duckAssetId = f._2 | |
1286 | 1286 | let keyHealth = keyDuckHealth(duckAssetId) | |
1287 | 1287 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1288 | 1288 | let currentPack = getBackpack(bpKey) | |
1289 | 1289 | let mList = split(currentPack[bpIdxMat], "_") | |
1290 | 1290 | let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_") | |
1291 | 1291 | let eqKey = keyDuckEquipment(duckAssetId) | |
1292 | 1292 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
1293 | 1293 | let newEq = subtractEquipment(currentEq, f._5) | |
1294 | 1294 | if ((0 >= f._1)) | |
1295 | 1295 | then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(eqKey, newEq)], "", 0) | |
1296 | 1296 | else { | |
1297 | 1297 | let e = expeditionInternal(caller, txId) | |
1298 | 1298 | let id = e._2._1 | |
1299 | 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) | |
1300 | 1300 | } | |
1301 | 1301 | } | |
1302 | 1302 | ||
1303 | 1303 | ||
1304 | 1304 | func applyBonuses (landAssetId,pieces) = { | |
1305 | 1305 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1306 | 1306 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1307 | 1307 | let add6 = (infraLevel / 6) | |
1308 | 1308 | let add7 = (infraLevel / 7) | |
1309 | 1309 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
1310 | 1310 | } | |
1311 | 1311 | ||
1312 | 1312 | ||
1313 | 1313 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1314 | - | let $ | |
1314 | + | let $t02927529814 = if ((claimMode == claimModeWh)) | |
1315 | 1315 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1316 | 1316 | else { | |
1317 | 1317 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1318 | 1318 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1319 | 1319 | let loc = split(value(curLocation), "_") | |
1320 | 1320 | if ((loc[locIdxType] != "L")) | |
1321 | 1321 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1322 | 1322 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1323 | 1323 | } | |
1324 | - | let landAssetId = $ | |
1325 | - | let duckId = $ | |
1324 | + | let landAssetId = $t02927529814._1 | |
1325 | + | let duckId = $t02927529814._2 | |
1326 | 1326 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1327 | 1327 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1328 | 1328 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1329 | 1329 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1330 | 1330 | if ((owner != addr)) | |
1331 | 1331 | then throw((LANDPREFIX + " is not yours")) | |
1332 | 1332 | else { | |
1333 | 1333 | let d = split(asset.description, "_") | |
1334 | 1334 | $Tuple4(duckId, landAssetId, d, savedTime) | |
1335 | 1335 | } | |
1336 | 1336 | } | |
1337 | 1337 | ||
1338 | 1338 | ||
1339 | 1339 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
1340 | 1340 | then throw("Negative amount") | |
1341 | 1341 | else { | |
1342 | 1342 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
1343 | 1343 | let landSize = c._3[recLandSize] | |
1344 | 1344 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1345 | 1345 | let deltaTime = (lastBlock.timestamp - c._4) | |
1346 | 1346 | if ((0 > deltaTime)) | |
1347 | 1347 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
1348 | 1348 | else { | |
1349 | 1349 | let pieces = numPiecesBySize(landSize) | |
1350 | 1350 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
1351 | 1351 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
1352 | 1352 | if ((amount > availRes)) | |
1353 | 1353 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
1354 | 1354 | else { | |
1355 | 1355 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
1356 | 1356 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
1357 | 1357 | let landIndex = (pieces / SSIZE) | |
1358 | 1358 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
1359 | 1359 | let whKey = keyWarehouseByLand(c._2) | |
1360 | 1360 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
1361 | 1361 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1362 | 1362 | let loft = split(currentWh[whIdxLOFT], "_") | |
1363 | 1363 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1364 | 1364 | if (if ((claimMode == claimModeWh)) | |
1365 | 1365 | then (amount > whSpaceLeft) | |
1366 | 1366 | else false) | |
1367 | 1367 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1368 | 1368 | else { | |
1369 | 1369 | let bpKey = keyBackpackByDuck(c._1) | |
1370 | 1370 | let currentPack = getBackpack(bpKey) | |
1371 | 1371 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1372 | 1372 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1373 | - | let $ | |
1373 | + | let $t03218833059 = if ((claimMode == claimModeWh)) | |
1374 | 1374 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1375 | 1375 | else if ((claimMode == claimModeDuck)) | |
1376 | 1376 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1377 | 1377 | else { | |
1378 | 1378 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1379 | 1379 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1380 | 1380 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1381 | 1381 | } | |
1382 | - | let whRes = $ | |
1383 | - | let bpRes = $ | |
1384 | - | let loftO = $ | |
1385 | - | let loftF = $ | |
1382 | + | let whRes = $t03218833059._1 | |
1383 | + | let bpRes = $t03218833059._2 | |
1384 | + | let loftO = $t03218833059._3 | |
1385 | + | let loftF = $t03218833059._4 | |
1386 | 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]], "_")]) | |
1387 | 1387 | } | |
1388 | 1388 | } | |
1389 | 1389 | } | |
1390 | 1390 | } | |
1391 | 1391 | ||
1392 | 1392 | ||
1393 | 1393 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1394 | 1394 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1395 | 1395 | let savedTime = value(getInteger(timeKey)) | |
1396 | 1396 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1397 | 1397 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1398 | 1398 | } | |
1399 | 1399 | ||
1400 | 1400 | ||
1401 | 1401 | func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = { | |
1402 | 1402 | let addr = toString(caller) | |
1403 | 1403 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId) | |
1404 | 1404 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1405 | 1405 | let infraKey = keyInfraLevelByAssetId(c._2) | |
1406 | 1406 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
1407 | 1407 | if ((curLevel >= 3)) | |
1408 | 1408 | then throw("Currently max infrastructure level = 3") | |
1409 | 1409 | else { | |
1410 | 1410 | let newLevel = (curLevel + 1) | |
1411 | 1411 | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1412 | 1412 | if (if (!(shouldUseMat)) | |
1413 | 1413 | then (paymentAmount != cost) | |
1414 | 1414 | else false) | |
1415 | 1415 | then throw(("Payment attached should be " + toString(cost))) | |
1416 | 1416 | else { | |
1417 | 1417 | let bpKey = keyBackpackByDuck(c._1) | |
1418 | 1418 | let currentPack = getBackpack(bpKey) | |
1419 | 1419 | let mList = split(currentPack[bpIdxMat], "_") | |
1420 | 1420 | let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE) | |
1421 | 1421 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_") | |
1422 | 1422 | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1423 | 1423 | let whData = claimResult._5 | |
1424 | 1424 | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1425 | 1425 | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1426 | 1426 | let newVol = getWarehouseTotalVolume(newVolData) | |
1427 | 1427 | let loft = split(whData[whIdxLOFT], "_") | |
1428 | 1428 | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1429 | 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) | |
1430 | 1430 | } | |
1431 | 1431 | } | |
1432 | 1432 | } | |
1433 | 1433 | ||
1434 | 1434 | ||
1435 | 1435 | func updateDuckStatsInternal (duckAssetId,deltaXP) = if (!(KSALLOWXPLEVELS)) | |
1436 | 1436 | then $Tuple2(nil, 0) | |
1437 | 1437 | else { | |
1438 | 1438 | let lvlKey = keyDuckLevel(duckAssetId) | |
1439 | 1439 | let xpKey = keyDuckXP(duckAssetId) | |
1440 | 1440 | let xp = valueOrElse(getInteger(stakingContract, xpKey), 0) | |
1441 | 1441 | let newXP = (xp + deltaXP) | |
1442 | 1442 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP) | |
1443 | 1443 | let keyPoints = keyDuckFreePoints(duckAssetId) | |
1444 | 1444 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP) | |
1445 | 1445 | } | |
1446 | 1446 | ||
1447 | 1447 | ||
1448 | 1448 | func updateAccStatsInternal (addr,deltaXP) = if (!(KSALLOWXPLEVELS)) | |
1449 | 1449 | then $Tuple2(nil, 0) | |
1450 | 1450 | else { | |
1451 | 1451 | let lvlKey = keyUserLevel(addr) | |
1452 | 1452 | let xpKey = keyUserXP(addr) | |
1453 | 1453 | let xp = valueOrElse(getInteger(stakingContract, xpKey), 0) | |
1454 | 1454 | let newXP = (xp + deltaXP) | |
1455 | 1455 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP) | |
1456 | 1456 | let keyPoints = keyUserFreePoints(addr) | |
1457 | 1457 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP) | |
1458 | 1458 | } | |
1459 | 1459 | ||
1460 | 1460 | ||
1461 | 1461 | func activateOnboardArt (addr) = { | |
1462 | 1462 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1463 | 1463 | let refByKey = keyAddressRefBy(addr) | |
1464 | 1464 | let refBy = getString(refByKey) | |
1465 | 1465 | if (!(isDefined(refBy))) | |
1466 | 1466 | then throw("You are not eligible for ONBOARD artifact") | |
1467 | 1467 | else { | |
1468 | 1468 | let artKey = keyOnboardArtDuckActivatedBy(addr) | |
1469 | 1469 | let artDuck = getString(artKey) | |
1470 | 1470 | if (isDefined(artDuck)) | |
1471 | 1471 | then throw(("You already used your ONBOARD artifact on duck " + value(artDuck))) | |
1472 | 1472 | else { | |
1473 | 1473 | let duckActivatorKey = keyOnboardArtActivatedOnDuck(duckAssetId) | |
1474 | 1474 | let duckActivator = getString(duckActivatorKey) | |
1475 | 1475 | if (isDefined(duckActivator)) | |
1476 | 1476 | then throw(((("The duck " + duckAssetId) + " already got points from ONBOARD artifact from user ") + value(duckActivator))) | |
1477 | 1477 | else ([StringEntry(artKey, duckAssetId), StringEntry(duckActivatorKey, addr)] ++ updateDuckStatsInternal(duckAssetId, xpOnboard)._1) | |
1478 | 1478 | } | |
1479 | 1479 | } | |
1480 | 1480 | } | |
1481 | 1481 | ||
1482 | 1482 | ||
1483 | 1483 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1484 | 1484 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1485 | 1485 | let landAssetId = c._2 | |
1486 | 1486 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1487 | 1487 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1488 | 1488 | if ((valueOrElse(getInteger(activationKey), 0) > 0)) | |
1489 | 1489 | then throw("Presale artifact is already activated") | |
1490 | 1490 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1491 | 1491 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1492 | 1492 | else { | |
1493 | 1493 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1494 | 1494 | ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1495 | 1495 | } | |
1496 | 1496 | } | |
1497 | 1497 | ||
1498 | 1498 | ||
1499 | 1499 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = { | |
1500 | 1500 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1501 | 1501 | func checkMerge (acc,landAssetId) = { | |
1502 | 1502 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1503 | 1503 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1504 | 1504 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
1505 | 1505 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1506 | 1506 | if ((owner != addr)) | |
1507 | 1507 | then throw((LANDPREFIX + " is not yours")) | |
1508 | 1508 | else { | |
1509 | 1509 | let d = split(asset.description, "_") | |
1510 | 1510 | let continent = d[recContinent] | |
1511 | 1511 | if (if ((acc._3 != "")) | |
1512 | 1512 | then (acc._3 != continent) | |
1513 | 1513 | else false) | |
1514 | 1514 | then throw("Lands should be on the same continent to merge") | |
1515 | 1515 | else { | |
1516 | 1516 | let landSize = d[recLandSize] | |
1517 | 1517 | let sizesIn = acc._1 | |
1518 | 1518 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
1519 | 1519 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
1520 | 1520 | let pieces = numPiecesBySize(landSize) | |
1521 | 1521 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)) | |
1522 | 1522 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1523 | 1523 | let reqLevel = match landSize { | |
1524 | 1524 | case _ => | |
1525 | 1525 | if (("S" == $match0)) | |
1526 | 1526 | then 3 | |
1527 | 1527 | else if (("M" == $match0)) | |
1528 | 1528 | then 4 | |
1529 | 1529 | else if (("L" == $match0)) | |
1530 | 1530 | then 5 | |
1531 | 1531 | else if (("XL" == $match0)) | |
1532 | 1532 | then 6 | |
1533 | 1533 | else throw("Only S, M, L, XL can merge") | |
1534 | 1534 | } | |
1535 | 1535 | if ((infraLevel != reqLevel)) | |
1536 | 1536 | then throw("All lands should be maxed to merge") | |
1537 | 1537 | else { | |
1538 | 1538 | let landNum = d[recLandNum] | |
1539 | 1539 | let terrainCounts = countTerrains(d[recTerrains]) | |
1540 | 1540 | let deltaTime = (lastBlock.timestamp - savedTime) | |
1541 | 1541 | if ((0 > deltaTime)) | |
1542 | 1542 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
1543 | 1543 | else { | |
1544 | 1544 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1545 | 1545 | let landIndex = (pieces / SSIZE) | |
1546 | 1546 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1547 | 1547 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, landIndex, -1) | |
1548 | 1548 | let lands = acc._7 | |
1549 | 1549 | let idx = indexOf(lands, landAssetId) | |
1550 | 1550 | if (!(isDefined(idx))) | |
1551 | 1551 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1552 | 1552 | else { | |
1553 | 1553 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
1554 | 1554 | let customName = valueOrElse(getString(customKey), "") | |
1555 | 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)) | |
1556 | 1556 | } | |
1557 | 1557 | } | |
1558 | 1558 | } | |
1559 | 1559 | } | |
1560 | 1560 | } | |
1561 | 1561 | } | |
1562 | 1562 | ||
1563 | 1563 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1564 | 1564 | let currentPack = getBackpack(bpKey) | |
1565 | 1565 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
1566 | 1566 | let landsKey = keyStakedLandsByOwner(addr) | |
1567 | 1567 | let landsStr = getString(landsKey) | |
1568 | 1568 | let landsIn = if (isDefined(landsStr)) | |
1569 | 1569 | then split_51C(value(landsStr), "_") | |
1570 | 1570 | else nil | |
1571 | 1571 | let r = { | |
1572 | 1572 | let $l = landAssetIds | |
1573 | 1573 | let $s = size($l) | |
1574 | 1574 | let $acc0 = $Tuple8(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn, 0) | |
1575 | 1575 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1576 | 1576 | then $a | |
1577 | 1577 | else checkMerge($a, $l[$i]) | |
1578 | 1578 | ||
1579 | 1579 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1580 | 1580 | then $a | |
1581 | 1581 | else throw("List size exceeds 5") | |
1582 | 1582 | ||
1583 | 1583 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1584 | 1584 | } | |
1585 | 1585 | let continent = r._3 | |
1586 | 1586 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
1587 | 1587 | let terrains = genTerrains(abs(toBigInt(txId)), continentIdx) | |
1588 | 1588 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1589 | 1589 | let newLandNum = toString(freeNum) | |
1590 | 1590 | let issue = Issue(nftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
1591 | 1591 | let assetId = calculateAssetId(issue) | |
1592 | 1592 | let newLandAssetId = toBase58String(assetId) | |
1593 | 1593 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
1594 | 1594 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1595 | 1595 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1596 | 1596 | $Tuple2((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1597 | 1597 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
1598 | 1598 | else DeleteEntry(landsKey))) :+ IntegerEntry(piecesKey, if ((r._8 > stakedPieces)) | |
1599 | 1599 | then 0 | |
1600 | 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) | |
1601 | 1601 | } | |
1602 | 1602 | ||
1603 | 1603 | ||
1604 | 1604 | func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0) | |
1605 | 1605 | ||
1606 | 1606 | ||
1607 | 1607 | func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1608 | 1608 | let cost = (InfraUpgradeCostSUsdt * 4) | |
1609 | 1609 | if (if (!(shouldUseMat)) | |
1610 | 1610 | then (paymentAmount != cost) | |
1611 | 1611 | else false) | |
1612 | 1612 | then throw(("Payment attached should be " + toString(cost))) | |
1613 | 1613 | else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4)) | |
1614 | 1614 | } | |
1615 | 1615 | ||
1616 | 1616 | ||
1617 | 1617 | func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1618 | 1618 | let cost = (InfraUpgradeCostSUsdt * 47) | |
1619 | 1619 | if (if (!(shouldUseMat)) | |
1620 | 1620 | then (paymentAmount != cost) | |
1621 | 1621 | else false) | |
1622 | 1622 | then throw(("Payment attached should be " + toString(cost))) | |
1623 | 1623 | else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47)) | |
1624 | 1624 | } | |
1625 | 1625 | ||
1626 | 1626 | ||
1627 | 1627 | func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1628 | 1628 | let cost = (InfraUpgradeCostSUsdt * 54) | |
1629 | 1629 | if (if (!(shouldUseMat)) | |
1630 | 1630 | then (paymentAmount != cost) | |
1631 | 1631 | else false) | |
1632 | 1632 | then throw(("Payment attached should be " + toString(cost))) | |
1633 | 1633 | else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54)) | |
1634 | 1634 | } | |
1635 | 1635 | ||
1636 | 1636 | ||
1637 | 1637 | func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = { | |
1638 | 1638 | let mergeResult = match size(landAssetIds) { | |
1639 | 1639 | case _ => | |
1640 | 1640 | if ((4 == $match0)) | |
1641 | 1641 | then s2m(addr, landAssetIds, txId) | |
1642 | 1642 | else if ((3 == $match0)) | |
1643 | 1643 | then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1644 | 1644 | else if ((5 == $match0)) | |
1645 | 1645 | then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1646 | 1646 | else if ((2 == $match0)) | |
1647 | 1647 | then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1648 | 1648 | else throw("Unknown merge") | |
1649 | 1649 | } | |
1650 | 1650 | mergeResult | |
1651 | 1651 | } | |
1652 | 1652 | ||
1653 | 1653 | ||
1654 | 1654 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1655 | 1655 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1656 | 1656 | else false) | |
1657 | 1657 | then throw("Contracts are under maintenance") | |
1658 | 1658 | else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId)) | |
1659 | 1659 | ||
1660 | 1660 | ||
1661 | 1661 | @Callable(i) | |
1662 | 1662 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1663 | 1663 | then throw("Permission denied") | |
1664 | 1664 | else [StringEntry(keyRestAddress(), restAddr)] | |
1665 | 1665 | ||
1666 | 1666 | ||
1667 | 1667 | ||
1668 | 1668 | @Callable(i) | |
1669 | 1669 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1670 | 1670 | then throw("permission denied") | |
1671 | 1671 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1672 | 1672 | ||
1673 | 1673 | ||
1674 | 1674 | ||
1675 | 1675 | @Callable(i) | |
1676 | 1676 | func stakeLand () = { | |
1677 | 1677 | let prologAction = prolog(i) | |
1678 | 1678 | if ((size(i.payments) != 1)) | |
1679 | 1679 | then throw("Exactly one payment required") | |
1680 | 1680 | else { | |
1681 | 1681 | let pmt = value(i.payments[0]) | |
1682 | 1682 | let assetId = value(pmt.assetId) | |
1683 | 1683 | let address = toString(i.caller) | |
1684 | 1684 | if ((pmt.amount != 1)) | |
1685 | 1685 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1686 | 1686 | else { | |
1687 | 1687 | let asset = value(assetInfo(assetId)) | |
1688 | 1688 | if ((asset.issuer != this)) | |
1689 | 1689 | then throw("Unknown issuer of token") | |
1690 | 1690 | else if (!(contains(asset.name, LANDPREFIX))) | |
1691 | 1691 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1692 | 1692 | else { | |
1693 | 1693 | let landNumSize = drop(asset.name, 4) | |
1694 | 1694 | let landNum = if (contains(landNumSize, "XXL")) | |
1695 | 1695 | then dropRight(landNumSize, 3) | |
1696 | 1696 | else if (contains(landNumSize, "XL")) | |
1697 | 1697 | then dropRight(landNumSize, 2) | |
1698 | 1698 | else dropRight(landNumSize, 1) | |
1699 | 1699 | if (!(isDefined(parseInt(landNum)))) | |
1700 | 1700 | then throw(("Cannot parse land number from " + asset.name)) | |
1701 | 1701 | else { | |
1702 | 1702 | let landAssetId = toBase58String(assetId) | |
1703 | 1703 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1704 | 1704 | if (isDefined(getInteger(timeKey))) | |
1705 | 1705 | then throw((("NFT " + asset.name) + " is already staked")) | |
1706 | 1706 | else { | |
1707 | 1707 | let d = split(asset.description, "_") | |
1708 | 1708 | let terrainCounts = countTerrains(d[recTerrains]) | |
1709 | 1709 | let pieces = numPiecesBySize(d[recLandSize]) | |
1710 | 1710 | let props = updateProportions(terrainCounts, (pieces / SSIZE), 1) | |
1711 | 1711 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1712 | 1712 | let landsKey = keyStakedLandsByOwner(address) | |
1713 | 1713 | let landsStr = getString(landsKey) | |
1714 | 1714 | let lands = if (isDefined(landsStr)) | |
1715 | 1715 | then split_51C(value(landsStr), "_") | |
1716 | 1716 | else nil | |
1717 | 1717 | if (containsElement(lands, landAssetId)) | |
1718 | 1718 | then throw(("Your staked lands already contain " + landAssetId)) | |
1719 | 1719 | else { | |
1720 | 1720 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1721 | 1721 | let piecesKey = keyStakedPiecesByOwner(address) | |
1722 | 1722 | let oldPieces = valueOrElse(getInteger(piecesKey), 0) | |
1723 | 1723 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [address], nil)) | |
1724 | 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) | |
1725 | 1725 | } | |
1726 | 1726 | } | |
1727 | 1727 | } | |
1728 | 1728 | } | |
1729 | 1729 | } | |
1730 | 1730 | } | |
1731 | 1731 | } | |
1732 | 1732 | ||
1733 | 1733 | ||
1734 | 1734 | ||
1735 | 1735 | @Callable(i) | |
1736 | 1736 | func unstakeLand (landAssetIdIn) = { | |
1737 | 1737 | let prologAction = prolog(i) | |
1738 | 1738 | if ((size(i.payments) != 0)) | |
1739 | 1739 | then throw("No payments required") | |
1740 | 1740 | else { | |
1741 | 1741 | let addr = toString(i.caller) | |
1742 | 1742 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1743 | 1743 | let landAssetId = c._2 | |
1744 | 1744 | let landsKey = keyStakedLandsByOwner(addr) | |
1745 | 1745 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1746 | 1746 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1747 | 1747 | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
1748 | 1748 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1749 | 1749 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1750 | 1750 | let idx = indexOf(lands, landAssetId) | |
1751 | 1751 | if (!(isDefined(idx))) | |
1752 | 1752 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1753 | 1753 | else { | |
1754 | 1754 | let now = lastBlock.timestamp | |
1755 | 1755 | let govReleaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1756 | 1756 | if ((govReleaseTime >= now)) | |
1757 | 1757 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(govReleaseTime))) | |
1758 | 1758 | else { | |
1759 | 1759 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastArbTimeByUser(addr)), 0) + arbitrageDelay) | |
1760 | 1760 | if ((arbReleaseTime > now)) | |
1761 | 1761 | then throw(("Your staked lands took part in arbitrage, cannot unstake until " + toString(arbReleaseTime))) | |
1762 | 1762 | else { | |
1763 | 1763 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1764 | 1764 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1765 | 1765 | let newPieces = if ((pieces > stakedPieces)) | |
1766 | 1766 | then 0 | |
1767 | 1767 | else (stakedPieces - pieces) | |
1768 | 1768 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [addr], nil)) | |
1769 | 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)) | |
1770 | 1770 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1771 | 1771 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces), prologAction], wlgResult) | |
1772 | 1772 | } | |
1773 | 1773 | } | |
1774 | 1774 | } | |
1775 | 1775 | } | |
1776 | 1776 | } | |
1777 | 1777 | ||
1778 | 1778 | ||
1779 | 1779 | ||
1780 | 1780 | @Callable(i) | |
1781 | 1781 | func stakeDuck () = { | |
1782 | 1782 | let prologAction = prolog(i) | |
1783 | 1783 | if ((size(i.payments) != 1)) | |
1784 | 1784 | then throw("Exactly one payment required") | |
1785 | 1785 | else { | |
1786 | 1786 | let pmt = value(i.payments[0]) | |
1787 | 1787 | let assetId = value(pmt.assetId) | |
1788 | 1788 | let address = toString(i.caller) | |
1789 | 1789 | if ((pmt.amount != 1)) | |
1790 | 1790 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
1791 | 1791 | else { | |
1792 | 1792 | let asset = value(assetInfo(assetId)) | |
1793 | 1793 | if (if ((asset.issuer != incubatorAddr)) | |
1794 | 1794 | then (asset.issuer != breederAddr) | |
1795 | 1795 | else false) | |
1796 | 1796 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
1797 | 1797 | else if (!(contains(asset.name, DUCKPREFIX))) | |
1798 | 1798 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
1799 | 1799 | else { | |
1800 | 1800 | let assetIdStr = toBase58String(assetId) | |
1801 | 1801 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
1802 | 1802 | if (isDefined(getInteger(timeKey))) | |
1803 | 1803 | then throw((("NFT " + asset.name) + " is already staked")) | |
1804 | 1804 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
1805 | 1805 | then throw(("You already staked one duck: " + asset.name)) | |
1806 | 1806 | else { | |
1807 | 1807 | let locKey = keyDuckLocation(assetIdStr) | |
1808 | 1808 | let location = getString(locKey) | |
1809 | 1809 | let bpKey = keyBackpackByDuck(assetIdStr) | |
1810 | 1810 | let backpack = getString(bpKey) | |
1811 | 1811 | let keyHealth = keyDuckHealth(assetIdStr) | |
1812 | 1812 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
1813 | 1813 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1814 | 1814 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
1815 | 1815 | then nil | |
1816 | 1816 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
1817 | 1817 | then nil | |
1818 | 1818 | else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyHealth, curHealth)) :+ prologAction))))) | |
1819 | 1819 | } | |
1820 | 1820 | } | |
1821 | 1821 | } | |
1822 | 1822 | } | |
1823 | 1823 | } | |
1824 | 1824 | ||
1825 | 1825 | ||
1826 | 1826 | ||
1827 | 1827 | @Callable(i) | |
1828 | 1828 | func unstakeDuck (assetIdStr) = { | |
1829 | 1829 | let prologAction = prolog(i) | |
1830 | 1830 | if ((size(i.payments) != 0)) | |
1831 | 1831 | then throw("No payments required") | |
1832 | 1832 | else { | |
1833 | 1833 | let assetId = fromBase58String(assetIdStr) | |
1834 | 1834 | let address = toString(i.caller) | |
1835 | 1835 | let asset = value(assetInfo(assetId)) | |
1836 | 1836 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
1837 | 1837 | if (!(isDefined(getInteger(timeKey)))) | |
1838 | 1838 | then throw((("NFT " + asset.name) + " is not staked")) | |
1839 | 1839 | else if (!(isDefined(getString(keyStakedDuckByOwner(address))))) | |
1840 | 1840 | then throw((("The duck " + asset.name) + " is not staked")) | |
1841 | 1841 | else { | |
1842 | 1842 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
1843 | 1843 | if ((owner != address)) | |
1844 | 1844 | then throw("Staked NFT is not yours") | |
1845 | 1845 | else { | |
1846 | 1846 | let keyHealth = keyDuckHealth(assetIdStr) | |
1847 | 1847 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
1848 | 1848 | let health = valueOrElse(getInteger(keyHealth), maxHP) | |
1849 | 1849 | if ((maxHP > health)) | |
1850 | 1850 | then throw((("Please heal your duck to " + toString(maxHP)) + "hp before unstaking")) | |
1851 | 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] | |
1852 | 1852 | } | |
1853 | 1853 | } | |
1854 | 1854 | } | |
1855 | 1855 | } | |
1856 | 1856 | ||
1857 | 1857 | ||
1858 | 1858 | ||
1859 | 1859 | @Callable(i) | |
1860 | 1860 | func claimRes (amount,landAssetIdStr) = { | |
1861 | 1861 | let prologAction = prolog(i) | |
1862 | 1862 | if ((size(i.payments) != 0)) | |
1863 | 1863 | then throw("No payments required") | |
1864 | 1864 | else { | |
1865 | 1865 | let addr = toString(i.originCaller) | |
1866 | 1866 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
1867 | 1867 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1868 | 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]) | |
1869 | 1869 | } | |
1870 | 1870 | } | |
1871 | 1871 | ||
1872 | 1872 | ||
1873 | 1873 | ||
1874 | 1874 | @Callable(i) | |
1875 | 1875 | func claimResToWH (amount,landAssetIdStr) = { | |
1876 | 1876 | let prologAction = prolog(i) | |
1877 | 1877 | if ((size(i.payments) != 0)) | |
1878 | 1878 | then throw("No payments required") | |
1879 | 1879 | else { | |
1880 | 1880 | let addr = toString(i.originCaller) | |
1881 | 1881 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
1882 | 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]) | |
1883 | 1883 | } | |
1884 | 1884 | } | |
1885 | 1885 | ||
1886 | 1886 | ||
1887 | 1887 | ||
1888 | 1888 | @Callable(i) | |
1889 | 1889 | func flight (message,sig) = { | |
1890 | 1890 | let prologAction = prolog(i) | |
1891 | 1891 | if ((size(i.payments) != 0)) | |
1892 | 1892 | then throw("No payments required") | |
1893 | 1893 | else { | |
1894 | 1894 | let userAddr = toString(i.caller) | |
1895 | 1895 | let f = flightCommon(userAddr, message, sig) | |
1896 | 1896 | let duckAssetId = f._2 | |
1897 | 1897 | let locKey = keyDuckLocation(duckAssetId) | |
1898 | 1898 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1899 | 1899 | if ((f._4 == curLocation)) | |
1900 | 1900 | then throw("You can't fly to the same location") | |
1901 | 1901 | else { | |
1902 | 1902 | let eqKey = keyDuckEquipment(duckAssetId) | |
1903 | 1903 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
1904 | 1904 | let newEq = subtractEquipment(currentEq, f._5) | |
1905 | 1905 | $Tuple2(([StringEntry(locKey, if ((f._1 > 0)) | |
1906 | 1906 | then f._4 | |
1907 | 1907 | else curLocation), StringEntry(eqKey, newEq), IntegerEntry(keyDuckHealth(duckAssetId), f._1), prologAction] ++ updateDuckStatsInternal(duckAssetId, if ((f._1 > 0)) | |
1908 | 1908 | then xpSuccessFlight | |
1909 | 1909 | else xpFailFlight)._1), f._3) | |
1910 | 1910 | } | |
1911 | 1911 | } | |
1912 | 1912 | } | |
1913 | 1913 | ||
1914 | 1914 | ||
1915 | 1915 | ||
1916 | 1916 | @Callable(i) | |
1917 | 1917 | func heal (quantityL1,quantityL2,quantityL3) = { | |
1918 | 1918 | let prologAction = prolog(i) | |
1919 | 1919 | if (if (if ((0 > quantityL1)) | |
1920 | 1920 | then true | |
1921 | 1921 | else (0 > quantityL2)) | |
1922 | 1922 | then true | |
1923 | 1923 | else (0 > quantityL3)) | |
1924 | 1924 | then throw("Quantity cannot be negative") | |
1925 | 1925 | else { | |
1926 | 1926 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1927 | 1927 | let qts = [quantityL1, quantityL2, quantityL3] | |
1928 | 1928 | let keyHealth = keyDuckHealth(duckAssetId) | |
1929 | 1929 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1930 | 1930 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1931 | 1931 | if ((oldHealth >= maxHP)) | |
1932 | 1932 | then throw((("HP should be < " + toString(maxHP)) + " to heal")) | |
1933 | 1933 | else { | |
1934 | 1934 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1935 | 1935 | let currentPack = getBackpack(bpKey) | |
1936 | 1936 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1937 | 1937 | then nil | |
1938 | 1938 | else split(currentPack[bpIdxProd], "_") | |
1939 | 1939 | func iterateProd (acc,ignoredItem) = { | |
1940 | 1940 | let n = acc._2 | |
1941 | 1941 | let x = if ((size(prodList) > n)) | |
1942 | 1942 | then parseIntValue(prodList[n]) | |
1943 | 1943 | else 0 | |
1944 | 1944 | if ((3 > n)) | |
1945 | 1945 | then { | |
1946 | 1946 | let q = qts[n] | |
1947 | 1947 | if ((q > x)) | |
1948 | 1948 | then throw(((("You have only " + toString(x)) + " of ") + prodTypes[n])) | |
1949 | 1949 | else $Tuple3((acc._1 :+ toString((x - q))), (n + 1), (acc._3 + (medKitHp[n] * q))) | |
1950 | 1950 | } | |
1951 | 1951 | else $Tuple3((acc._1 :+ toString(x)), (n + 1), acc._3) | |
1952 | 1952 | } | |
1953 | 1953 | ||
1954 | 1954 | let result = { | |
1955 | 1955 | let $l = productionMatrix | |
1956 | 1956 | let $s = size($l) | |
1957 | 1957 | let $acc0 = $Tuple3(nil, 0, 0) | |
1958 | 1958 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1959 | 1959 | then $a | |
1960 | 1960 | else iterateProd($a, $l[$i]) | |
1961 | 1961 | ||
1962 | 1962 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1963 | 1963 | then $a | |
1964 | 1964 | else throw("List size exceeds 50") | |
1965 | 1965 | ||
1966 | 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) | |
1967 | 1967 | } | |
1968 | 1968 | let newHealth = min([maxHP, (oldHealth + result._3)]) | |
1969 | 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) | |
1970 | 1970 | } | |
1971 | 1971 | } | |
1972 | 1972 | } | |
1973 | 1973 | ||
1974 | 1974 | ||
1975 | 1975 | ||
1976 | 1976 | @Callable(i) | |
1977 | 1977 | func healES () = { | |
1978 | 1978 | let prologAction = prolog(i) | |
1979 | 1979 | if ((size(i.payments) != 1)) | |
1980 | 1980 | then throw("Exactly one payment required") | |
1981 | 1981 | else { | |
1982 | 1982 | let pmt = value(i.payments[0]) | |
1983 | 1983 | if ((pmt.assetId != usdtAssetId)) | |
1984 | 1984 | then throw("Allowed USDT payment only!") | |
1985 | 1985 | else { | |
1986 | 1986 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1987 | 1987 | let keyHealth = keyDuckHealth(duckAssetId) | |
1988 | 1988 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1989 | 1989 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1990 | 1990 | if ((oldHealth > 0)) | |
1991 | 1991 | then throw("HP should be 0 to call Emergency Service") | |
1992 | 1992 | else { | |
1993 | 1993 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1994 | 1994 | let currentPack = getBackpack(bpKey) | |
1995 | 1995 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1996 | 1996 | then nil | |
1997 | 1997 | else split(currentPack[bpIdxProd], "_") | |
1998 | 1998 | let medKitAmount1 = if ((size(prodList) > 0)) | |
1999 | 1999 | then parseIntValue(prodList[0]) | |
2000 | 2000 | else 0 | |
2001 | 2001 | let medKitAmount2 = if ((size(prodList) > 1)) | |
2002 | 2002 | then parseIntValue(prodList[1]) | |
2003 | 2003 | else 0 | |
2004 | 2004 | let medKitAmount3 = if ((size(prodList) > 2)) | |
2005 | 2005 | then parseIntValue(prodList[2]) | |
2006 | 2006 | else 0 | |
2007 | 2007 | if (if (if ((medKitAmount1 > 0)) | |
2008 | 2008 | then true | |
2009 | 2009 | else (medKitAmount2 > 0)) | |
2010 | 2010 | then true | |
2011 | 2011 | else (medKitAmount3 > 0)) | |
2012 | 2012 | then throw("You have to use own Medical Kit") | |
2013 | 2013 | else { | |
2014 | 2014 | let existStr = getString(economyContract, keyEsWarehouse()) | |
2015 | 2015 | let existAmounts = if (isDefined(existStr)) | |
2016 | 2016 | then split(value(existStr), "_") | |
2017 | 2017 | else nil | |
2018 | 2018 | let existAmount = if ((size(existAmounts) > 0)) | |
2019 | 2019 | then parseIntValue(existAmounts[0]) | |
2020 | 2020 | else 0 | |
2021 | 2021 | if ((0 >= existAmount)) | |
2022 | 2022 | then throw("There are no Medical Kits L1 at Emergency Service storage") | |
2023 | 2023 | else { | |
2024 | 2024 | let newHealth = (oldHealth + medKitHp[0]) | |
2025 | 2025 | let newES = makeString([toString((existAmount - 1)), removeByIndex(existAmounts, 0)], "_") | |
2026 | 2026 | let recipe = split(productionMatrix[0], "_") | |
2027 | 2027 | let totalMat = getRecipeMaterials(recipe) | |
2028 | 2028 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * PRODUCTPKGSIZE)) | |
2029 | 2029 | if ((pmt.amount != sellPrice)) | |
2030 | 2030 | then throw(("Payment attached should be " + toString(sellPrice))) | |
2031 | 2031 | else { | |
2032 | 2032 | let result = asString(invoke(economyContract, "updateEsStorage", [newES], [AttachedPayment(usdtAssetId, sellPrice)])) | |
2033 | 2033 | $Tuple2(([IntegerEntry(keyHealth, newHealth), prologAction] ++ updateDuckStatsInternal(duckAssetId, xpCallES)._1), result) | |
2034 | 2034 | } | |
2035 | 2035 | } | |
2036 | 2036 | } | |
2037 | 2037 | } | |
2038 | 2038 | } | |
2039 | 2039 | } | |
2040 | 2040 | } | |
2041 | 2041 | ||
2042 | 2042 | ||
2043 | 2043 | ||
2044 | 2044 | @Callable(i) | |
2045 | 2045 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract)) | |
2046 | 2046 | then throw("permission denied") | |
2047 | 2047 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
2048 | 2048 | ||
2049 | 2049 | ||
2050 | 2050 | ||
2051 | 2051 | @Callable(i) | |
2052 | 2052 | func buySLand () = { | |
2053 | 2053 | let prologAction = prolog(i) | |
2054 | 2054 | if ((size(i.payments) != 1)) | |
2055 | 2055 | then throw("Exactly one payment required") | |
2056 | 2056 | else { | |
2057 | 2057 | let pmt = value(i.payments[0]) | |
2058 | 2058 | if ((pmt.assetId != usdtAssetId)) | |
2059 | 2059 | then throw("Allowed USDT payment only!") | |
2060 | 2060 | else if ((pmt.amount != EXPUSDT)) | |
2061 | 2061 | then throw(("Payment attached should be " + toString(EXPUSDT))) | |
2062 | 2062 | else { | |
2063 | 2063 | let result = expeditionInternal(i.caller, i.transactionId) | |
2064 | 2064 | $Tuple2((((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ updateAccStatsInternal(toString(i.caller), xpNewSLand)._1) :+ prologAction), result._2._1) | |
2065 | 2065 | } | |
2066 | 2066 | } | |
2067 | 2067 | } | |
2068 | 2068 | ||
2069 | 2069 | ||
2070 | 2070 | ||
2071 | 2071 | @Callable(i) | |
2072 | 2072 | func expedition (message,sig) = { | |
2073 | 2073 | let prologAction = prolog(i) | |
2074 | 2074 | if ((size(i.payments) != 0)) | |
2075 | 2075 | then throw("No payments required") | |
2076 | 2076 | else { | |
2077 | 2077 | let result = expeditionCommon(i.caller, i.transactionId, message, sig) | |
2078 | 2078 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2079 | 2079 | $Tuple2(((result._1 ++ updateDuckStatsInternal(duckAssetId, xpNewSLand)._1) :+ prologAction), $Tuple2(result._2, result._3)) | |
2080 | 2080 | } | |
2081 | 2081 | } | |
2082 | 2082 | ||
2083 | 2083 | ||
2084 | 2084 | ||
2085 | 2085 | @Callable(i) | |
2086 | 2086 | func upgradeInfra (landAssetId) = { | |
2087 | 2087 | let prologAction = prolog(i) | |
2088 | 2088 | if ((size(i.payments) != 0)) | |
2089 | 2089 | then throw("No payments required") | |
2090 | 2090 | else { | |
2091 | 2091 | let result = upInfraCommon(true, i.caller, 0, landAssetId) | |
2092 | 2092 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2093 | 2093 | $Tuple2(((result._1 :+ prologAction) ++ updateDuckStatsInternal(duckAssetId, fraction(xpUpgradeInfra, result._3, MULT8))._1), result._2) | |
2094 | 2094 | } | |
2095 | 2095 | } | |
2096 | 2096 | ||
2097 | 2097 | ||
2098 | 2098 | ||
2099 | 2099 | @Callable(i) | |
2100 | 2100 | func upgradeInfraUsdt (landAssetId) = if ((i.caller != this)) | |
2101 | 2101 | then throw("Permission denied") | |
2102 | 2102 | else { | |
2103 | 2103 | let prologAction = prolog(i) | |
2104 | 2104 | if ((size(i.payments) != 1)) | |
2105 | 2105 | then throw("Exactly one payment required") | |
2106 | 2106 | else { | |
2107 | 2107 | let pmt = value(i.payments[0]) | |
2108 | 2108 | if ((pmt.assetId != usdtAssetId)) | |
2109 | 2109 | then throw("Allowed USDT payment only!") | |
2110 | 2110 | else { | |
2111 | 2111 | let result = upInfraCommon(false, i.caller, pmt.amount, landAssetId) | |
2112 | 2112 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
2113 | 2113 | } | |
2114 | 2114 | } | |
2115 | 2115 | } | |
2116 | 2116 | ||
2117 | 2117 | ||
2118 | 2118 | ||
2119 | 2119 | @Callable(i) | |
2120 | 2120 | func activateArtifact (artName,landAssetIdOpt) = { | |
2121 | 2121 | let prologAction = prolog(i) | |
2122 | 2122 | if ((size(i.payments) != 0)) | |
2123 | 2123 | then throw("No payments required") | |
2124 | 2124 | else { | |
2125 | 2125 | let addr = toString(i.caller) | |
2126 | 2126 | let result = match artName { | |
2127 | 2127 | case _ => | |
2128 | 2128 | if (("PRESALE" == $match0)) | |
2129 | 2129 | then activatePresaleArt(addr, landAssetIdOpt) | |
2130 | 2130 | else if (("ONBOARD" == $match0)) | |
2131 | 2131 | then activateOnboardArt(addr) | |
2132 | 2132 | else throw("Unknown artifact") | |
2133 | 2133 | } | |
2134 | 2134 | (result :+ prologAction) | |
2135 | 2135 | } | |
2136 | 2136 | } | |
2137 | 2137 | ||
2138 | 2138 | ||
2139 | 2139 | ||
2140 | 2140 | @Callable(i) | |
2141 | 2141 | func mergeLands (landAssetIds) = { | |
2142 | 2142 | let prologAction = prolog(i) | |
2143 | 2143 | if ((size(i.payments) != 0)) | |
2144 | 2144 | then throw("No payments required") | |
2145 | 2145 | else { | |
2146 | 2146 | let result = mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
2147 | 2147 | $Tuple2(((result._1 :+ prologAction) ++ updateAccStatsInternal(toString(i.caller), xpMerge)._1), result._2) | |
2148 | 2148 | } | |
2149 | 2149 | } | |
2150 | 2150 | ||
2151 | 2151 | ||
2152 | 2152 | ||
2153 | 2153 | @Callable(i) | |
2154 | 2154 | func mergeLandsUsdt (landAssetIds) = { | |
2155 | 2155 | let prologAction = prolog(i) | |
2156 | 2156 | if ((size(i.payments) != 1)) | |
2157 | 2157 | then throw("Exactly one payment required") | |
2158 | 2158 | else { | |
2159 | 2159 | let pmt = value(i.payments[0]) | |
2160 | 2160 | if ((pmt.assetId != usdtAssetId)) | |
2161 | 2161 | then throw("Allowed USDT payment only!") | |
2162 | 2162 | else { | |
2163 | 2163 | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
2164 | 2164 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
2165 | 2165 | } | |
2166 | 2166 | } | |
2167 | 2167 | } | |
2168 | 2168 | ||
2169 | 2169 | ||
2170 | 2170 | ||
2171 | 2171 | @Callable(i) | |
2172 | 2172 | func cargoExchange (cargoListStr,landAssetId) = { | |
2173 | 2173 | let prologAction = prolog(i) | |
2174 | 2174 | if ((size(i.payments) != 0)) | |
2175 | 2175 | then throw("No payments required") | |
2176 | 2176 | else { | |
2177 | 2177 | let cargoParts = split_4C(cargoListStr, ":") | |
2178 | 2178 | let addr = toString(i.originCaller) | |
2179 | 2179 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2180 | 2180 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
2181 | 2181 | if (!(isDefined(getInteger(timeKey)))) | |
2182 | 2182 | then throw((asset.name + " is not staked")) | |
2183 | 2183 | else { | |
2184 | 2184 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
2185 | 2185 | if ((owner != addr)) | |
2186 | 2186 | then throw((LANDPREFIX + " is not yours")) | |
2187 | 2187 | else { | |
2188 | 2188 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2189 | 2189 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2190 | 2190 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2191 | 2191 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
2192 | 2192 | let loc = split(value(curLocation), "_") | |
2193 | 2193 | if ((loc[locIdxType] != "L")) | |
2194 | 2194 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
2195 | 2195 | else if ((loc[locIdxId] != landAssetId)) | |
2196 | 2196 | then throw(("Duck should be on the land " + landAssetId)) | |
2197 | 2197 | else { | |
2198 | 2198 | let whKey = keyWarehouseByLand(landAssetId) | |
2199 | 2199 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
2200 | 2200 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2201 | 2201 | let currentPack = getBackpack(bpKey) | |
2202 | 2202 | let result = moveStuff(cargoParts, currentWh, currentPack) | |
2203 | 2203 | let loft = split(currentWh[whIdxLOFT], "_") | |
2204 | 2204 | let loftO = (parseIntValue(loft[volOccupied]) + result._7) | |
2205 | 2205 | let loftF = (parseIntValue(loft[volFree]) - result._7) | |
2206 | 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] | |
2207 | 2207 | } | |
2208 | 2208 | } | |
2209 | 2209 | } | |
2210 | 2210 | } | |
2211 | 2211 | } | |
2212 | 2212 | ||
2213 | 2213 | ||
2214 | 2214 | ||
2215 | 2215 | @Callable(i) | |
2216 | 2216 | func saveWarehouse (whStr,landAssetId) = if ((i.caller != economyContract)) | |
2217 | 2217 | then throw("Access denied") | |
2218 | 2218 | else { | |
2219 | 2219 | let whKey = keyWarehouseByLand(landAssetId) | |
2220 | 2220 | let wh = split_4C(whStr, ":") | |
2221 | 2221 | if ((size(wh) != 5)) | |
2222 | 2222 | then throw("warehouse string should contain 4 ':' separators") | |
2223 | 2223 | else { | |
2224 | 2224 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
2225 | 2225 | let loftO = getWarehouseOccupiedVol(wh) | |
2226 | 2226 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
2227 | 2227 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
2228 | 2228 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2229 | 2229 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2230 | 2230 | } | |
2231 | 2231 | } | |
2232 | 2232 | ||
2233 | 2233 | ||
2234 | 2234 | ||
2235 | 2235 | @Callable(i) | |
2236 | 2236 | func fixWarehouseFormat (landAssetId) = if ((i.caller != restContract)) | |
2237 | 2237 | then throw("Access denied") | |
2238 | 2238 | else { | |
2239 | 2239 | let whKey = keyWarehouseByLand(landAssetId) | |
2240 | 2240 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2241 | 2241 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2242 | 2242 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2243 | 2243 | let wh = getWarehouse(whKey, landIndex, infraLevel) | |
2244 | 2244 | let loftL = asInt(invoke(economyContract, "recalcLockedVolumeREADONLY", [landAssetId, wh], nil)) | |
2245 | 2245 | let loftO = getWarehouseOccupiedVol(wh) | |
2246 | 2246 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
2247 | 2247 | let loftF = ((loftT - loftL) - loftO) | |
2248 | 2248 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2249 | 2249 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2250 | 2250 | } | |
2251 | 2251 | ||
2252 | 2252 | ||
2253 | 2253 | ||
2254 | 2254 | @Callable(i) | |
2255 | 2255 | func fixStakedPieces (address) = if ((i.caller != restContract)) | |
2256 | 2256 | then throw("Access denied") | |
2257 | 2257 | else { | |
2258 | 2258 | let stakedPieces = if ((address == "")) | |
2259 | 2259 | then 0 | |
2260 | 2260 | else { | |
2261 | 2261 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(address)) | |
2262 | 2262 | let lands = if (isDefined(landsStr)) | |
2263 | 2263 | then split_51C(value(landsStr), "_") | |
2264 | 2264 | else nil | |
2265 | 2265 | func oneLand (acc,landAssetId) = { | |
2266 | 2266 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2267 | 2267 | let landSize = split(asset.description, "_")[recLandSize] | |
2268 | 2268 | (acc + numPiecesBySize(landSize)) | |
2269 | 2269 | } | |
2270 | 2270 | ||
2271 | 2271 | let $l = lands | |
2272 | 2272 | let $s = size($l) | |
2273 | 2273 | let $acc0 = 0 | |
2274 | 2274 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2275 | 2275 | then $a | |
2276 | 2276 | else oneLand($a, $l[$i]) | |
2277 | 2277 | ||
2278 | 2278 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2279 | 2279 | then $a | |
2280 | 2280 | else throw("List size exceeds 100") | |
2281 | 2281 | ||
2282 | 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) | |
2283 | 2283 | } | |
2284 | 2284 | $Tuple2([IntegerEntry(keyStakedPiecesByOwner(address), stakedPieces)], stakedPieces) | |
2285 | 2285 | } | |
2286 | 2286 | ||
2287 | 2287 | ||
2288 | 2288 | ||
2289 | 2289 | @Callable(i) | |
2290 | 2290 | func setCustomName (assetId,customName,type) = { | |
2291 | 2291 | let prologAction = prolog(i) | |
2292 | 2292 | if ((size(i.payments) != 1)) | |
2293 | 2293 | then throw("Exactly one payment required") | |
2294 | 2294 | else { | |
2295 | 2295 | let pmt = value(i.payments[0]) | |
2296 | 2296 | if ((pmt.assetId != usdtAssetId)) | |
2297 | 2297 | then throw("Allowed USDT payment only!") | |
2298 | 2298 | else if ((pmt.amount != RENAMINGCOST)) | |
2299 | 2299 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
2300 | 2300 | else if (contains(customName, "__")) | |
2301 | 2301 | then throw(("Name should not contain '__': " + customName)) | |
2302 | 2302 | else if ((size(customName) > MAXNAMELEN)) | |
2303 | 2303 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
2304 | 2304 | else { | |
2305 | 2305 | let addr = toString(i.originCaller) | |
2306 | 2306 | let actions = match type { | |
2307 | 2307 | case _ => | |
2308 | 2308 | if (("ACCOUNT" == $match0)) | |
2309 | 2309 | then { | |
2310 | 2310 | let reverseKey = keyCustomNameToAddress(customName) | |
2311 | 2311 | let nameOwner = getString(reverseKey) | |
2312 | 2312 | if (isDefined(nameOwner)) | |
2313 | 2313 | then throw(("Name already registered: " + customName)) | |
2314 | 2314 | else { | |
2315 | 2315 | let addrToNameKey = keyAddressToCustomName(addr) | |
2316 | 2316 | let oldName = getString(addrToNameKey) | |
2317 | 2317 | let freeOld = if (isDefined(oldName)) | |
2318 | 2318 | then [DeleteEntry(keyCustomNameToAddress(value(oldName)))] | |
2319 | 2319 | else nil | |
2320 | 2320 | (((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
2321 | 2321 | } | |
2322 | 2322 | } | |
2323 | 2323 | else if (("LAND" == $match0)) | |
2324 | 2324 | then { | |
2325 | 2325 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2326 | 2326 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2327 | 2327 | if (!(isDefined(getInteger(timeKey)))) | |
2328 | 2328 | then throw((asset.name + " is not staked")) | |
2329 | 2329 | else { | |
2330 | 2330 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2331 | 2331 | if ((owner != addr)) | |
2332 | 2332 | then throw((LANDPREFIX + " is not yours")) | |
2333 | 2333 | else { | |
2334 | 2334 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
2335 | 2335 | let nameOwner = getString(reverseKey) | |
2336 | 2336 | if (isDefined(nameOwner)) | |
2337 | 2337 | then throw(("Name already registered: " + customName)) | |
2338 | 2338 | else { | |
2339 | 2339 | let assetToNameKey = keyLandAssetIdToCustomName(assetId) | |
2340 | 2340 | let oldName = getString(assetToNameKey) | |
2341 | 2341 | let freeOld = if (isDefined(oldName)) | |
2342 | 2342 | then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))] | |
2343 | 2343 | else nil | |
2344 | 2344 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
2345 | 2345 | } | |
2346 | 2346 | } | |
2347 | 2347 | } | |
2348 | 2348 | } | |
2349 | 2349 | else if (("DUCK" == $match0)) | |
2350 | 2350 | then { | |
2351 | 2351 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2352 | 2352 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2353 | 2353 | if (if (!(isDefined(getInteger(timeKey)))) | |
2354 | 2354 | then true | |
2355 | 2355 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
2356 | 2356 | then throw((asset.name + " is not staked")) | |
2357 | 2357 | else { | |
2358 | 2358 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2359 | 2359 | if ((owner != addr)) | |
2360 | 2360 | then throw((DUCKPREFIX + " is not yours")) | |
2361 | 2361 | else { | |
2362 | 2362 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
2363 | 2363 | let nameOwner = getString(reverseKey) | |
2364 | 2364 | if (isDefined(nameOwner)) | |
2365 | 2365 | then throw(("Name already registered: " + customName)) | |
2366 | 2366 | else { | |
2367 | 2367 | let assetToNameKey = keyDuckAssetIdToCustomName(assetId) | |
2368 | 2368 | let oldName = getString(assetToNameKey) | |
2369 | 2369 | let freeOld = if (isDefined(oldName)) | |
2370 | 2370 | then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))] | |
2371 | 2371 | else nil | |
2372 | 2372 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateDuckStatsInternal(assetId, xpCustomName)._1) | |
2373 | 2373 | } | |
2374 | 2374 | } | |
2375 | 2375 | } | |
2376 | 2376 | } | |
2377 | 2377 | else throw("Unknown entity type") | |
2378 | 2378 | } | |
2379 | 2379 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0) | |
2380 | 2380 | } | |
2381 | 2381 | } | |
2382 | 2382 | } | |
2383 | 2383 | ||
2384 | 2384 | ||
2385 | 2385 | ||
2386 | 2386 | @Callable(i) | |
2387 | 2387 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
2388 | 2388 | then throw("Permission denied") | |
2389 | 2389 | else { | |
2390 | 2390 | let prologAction = prolog(i) | |
2391 | 2391 | if ((size(i.payments) != 0)) | |
2392 | 2392 | then throw("No payments required") | |
2393 | 2393 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
2394 | 2394 | then throw(("Invalid address: " + oldPlayer)) | |
2395 | 2395 | else if (!(isDefined(addressFromString(newPlayer)))) | |
2396 | 2396 | then throw(("Invalid address: " + newPlayer)) | |
2397 | 2397 | else { | |
2398 | 2398 | let oldsKey = keyOldies() | |
2399 | 2399 | let olds = getString(oldsKey) | |
2400 | 2400 | let oldies = if (isDefined(olds)) | |
2401 | 2401 | then split_4C(value(olds), "_") | |
2402 | 2402 | else nil | |
2403 | 2403 | if (containsElement(oldies, newPlayer)) | |
2404 | 2404 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
2405 | 2405 | else { | |
2406 | 2406 | let refByKey = keyAddressRefBy(newPlayer) | |
2407 | 2407 | let refBy = getString(refByKey) | |
2408 | 2408 | if (if (isDefined(refBy)) | |
2409 | 2409 | then isDefined(addressFromString(value(refBy))) | |
2410 | 2410 | else false) | |
2411 | 2411 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
2412 | 2412 | else { | |
2413 | 2413 | let refsKey = keyAddressReferrals(oldPlayer) | |
2414 | 2414 | let refs = getString(refsKey) | |
2415 | 2415 | let refsArray = if (isDefined(refs)) | |
2416 | 2416 | then split_4C(value(refs), "_") | |
2417 | 2417 | else nil | |
2418 | 2418 | if (containsElement(refsArray, newPlayer)) | |
2419 | 2419 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
2420 | 2420 | else { | |
2421 | 2421 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
2422 | 2422 | let newOlds = if (containsElement(oldies, oldPlayer)) | |
2423 | 2423 | then value(olds) | |
2424 | 2424 | else makeString_2C((oldies :+ oldPlayer), "_") | |
2425 | 2425 | $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0) | |
2426 | 2426 | } | |
2427 | 2427 | } | |
2428 | 2428 | } | |
2429 | 2429 | } | |
2430 | 2430 | } | |
2431 | 2431 | ||
2432 | 2432 | ||
2433 | 2433 | ||
2434 | 2434 | @Callable(i) | |
2435 | 2435 | func distributePoints (strength,accuracy,intellect,endurance,dexterity) = { | |
2436 | 2436 | let prologAction = prolog(i) | |
2437 | 2437 | if ((size(i.payments) != 0)) | |
2438 | 2438 | then throw("No payments required") | |
2439 | 2439 | else { | |
2440 | 2440 | let addr = toString(i.originCaller) | |
2441 | 2441 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2442 | 2442 | let freeKeyAcc = keyUserFreePoints(addr) | |
2443 | 2443 | let freePointsAcc = valueOrElse(getInteger(stakingContract, freeKeyAcc), 0) | |
2444 | 2444 | let freeKeyDuck = keyDuckFreePoints(duckAssetId) | |
2445 | 2445 | let freePointsDuck = valueOrElse(getInteger(stakingContract, freeKeyDuck), 0) | |
2446 | 2446 | let sumFree = (freePointsAcc + freePointsDuck) | |
2447 | 2447 | let sumToDistribute = ((((strength + accuracy) + intellect) + endurance) + dexterity) | |
2448 | 2448 | if ((sumToDistribute > sumFree)) | |
2449 | 2449 | then throw((("There are only " + toString(sumFree)) + " free points to distribute")) | |
2450 | 2450 | else { | |
2451 | 2451 | let charsKey = keyDuckChars(duckAssetId) | |
2452 | 2452 | let chars = split(valueOrElse(getString(stakingContract, charsKey), "0_0_0_0_0"), "_") | |
2453 | 2453 | let newAcc = (freePointsAcc - sumToDistribute) | |
2454 | 2454 | $Tuple2([IntegerEntry(freeKeyAcc, if ((0 > newAcc)) | |
2455 | 2455 | then 0 | |
2456 | 2456 | else newAcc), IntegerEntry(freeKeyDuck, if ((0 > newAcc)) | |
2457 | 2457 | then (freePointsDuck + newAcc) | |
2458 | 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) | |
2459 | 2459 | } | |
2460 | 2460 | } | |
2461 | 2461 | } | |
2462 | 2462 | ||
2463 | 2463 | ||
2464 | 2464 | ||
2465 | 2465 | @Callable(i) | |
2466 | 2466 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
2467 | 2467 | ||
2468 | 2468 | ||
2469 | 2469 | ||
2470 | 2470 | @Callable(i) | |
2471 | 2471 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
2472 | 2472 | let terrainCounts = countTerrains(terrains) | |
2473 | 2473 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
2474 | 2474 | } | |
2475 | 2475 | ||
2476 | 2476 | ||
2477 | 2477 | ||
2478 | 2478 | @Callable(i) | |
2479 | 2479 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
2480 | 2480 | ||
2481 | 2481 | ||
2482 | 2482 | ||
2483 | 2483 | @Callable(i) | |
2484 | 2484 | func getWarehouseREADONLY (landAssetId) = { | |
2485 | 2485 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2486 | 2486 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2487 | 2487 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2488 | 2488 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
2489 | 2489 | } | |
2490 | 2490 | ||
2491 | 2491 | ||
2492 | 2492 | ||
2493 | 2493 | @Callable(i) | |
2494 | 2494 | func saveLastTx () = if (if ((i.caller != wlgContract)) | |
2495 | 2495 | then (i.caller != economyContract) | |
2496 | 2496 | else false) | |
2497 | 2497 | then throw("Access denied") | |
2498 | 2498 | else $Tuple2([prolog(i)], 42) | |
2499 | 2499 | ||
2500 | 2500 | ||
2501 | 2501 | ||
2502 | 2502 | @Callable(i) | |
2503 | 2503 | func updateDuckStats (duckAssetId,deltaXP) = if ((i.caller != economyContract)) | |
2504 | 2504 | then throw("Access denied") | |
2505 | 2505 | else updateDuckStatsInternal(duckAssetId, deltaXP) | |
2506 | 2506 | ||
2507 | 2507 | ||
2508 | 2508 | ||
2509 | 2509 | @Callable(i) | |
2510 | 2510 | func updateAccStats (addr,deltaXP) = if ((i.caller != economyContract)) | |
2511 | 2511 | then throw("Access denied") | |
2512 | 2512 | else updateAccStatsInternal(addr, deltaXP) | |
2513 | 2513 | ||
2514 | 2514 | ||
2515 | 2515 | ||
2516 | 2516 | @Callable(i) | |
2517 | 2517 | func equipDuck (equipment) = { | |
2518 | 2518 | let prologAction = prolog(i) | |
2519 | 2519 | if ((size(i.payments) != 0)) | |
2520 | 2520 | then throw("No payments required") | |
2521 | 2521 | else { | |
2522 | 2522 | let addr = toString(i.originCaller) | |
2523 | 2523 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2524 | 2524 | let eqKey = keyDuckEquipment(duckAssetId) | |
2525 | 2525 | let currentSegs = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_") | |
2526 | 2526 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2527 | 2527 | let currentPack = getBackpack(bpKey) | |
2528 | 2528 | let newEq = split(equipment, "_") | |
2529 | 2529 | if ((size(newEq) != NUMSEGMENTS)) | |
2530 | 2530 | then throw("Wrong equipment string") | |
2531 | 2531 | else { | |
2532 | 2532 | let reqs = getDuckStats(this, duckAssetId) | |
2533 | 2533 | let tempProdB = dressB(currentSegs, prodStrToBytes(currentPack[bpIdxProd]), true, reqs) | |
2534 | 2534 | let newProdB = dressB(newEq, tempProdB, false, reqs) | |
2535 | 2535 | let newProdStr = bytesToProdStr(newProdB) | |
2536 | 2536 | $Tuple2([StringEntry(eqKey, equipment), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProdStr], ":")), prologAction], 0) | |
2537 | 2537 | } | |
2538 | 2538 | } | |
2539 | 2539 | } | |
2540 | 2540 | ||
2541 | 2541 |
github/deemru/w8io/026f985 199.24 ms ◑