tx · 45MEatBMriNwvV7iNPWMo7VUycqPKfiHjaKbtTSUcxg6 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.05500000 Waves 2024.12.03 20:33 [3398763] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "45MEatBMriNwvV7iNPWMo7VUycqPKfiHjaKbtTSUcxg6", "fee": 5500000, "feeAssetId": null, "timestamp": 1733247182195, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "5VUtCHjWQ2J6ukvsvBQbuV34f9uzkV9o2hD5YTmccPwZW3LFDYUrYMnESRM56aUTojQhwce3Du3s28MgwEbRpAeD" ], "script": "base64:BgKqAQgCEgMKAQgSBAoCCAESAwoBBBIAEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBIAEgQKAggIEgQKAggIEgQKAgEIEgQKAgEIEgQKAggIEgASAwoBARIECgIICBIECgIICBIFCgMICAgSBAoCCAgSBwoFAQEBAQESAwoBARIFCgMBAQgSAwoBCBIDCgEIEgASBAoCCAESBAoCCAESAwoBCBIAEgASAwoBCBIDCgEIvwEAFktTX1NFUEFSQVRFX1BVQkxJQ19LRVkHABNLU19BTExPV19ST0JPX0RVQ0tTBwAKREFZX01JTExJUwCAuJkpABRPTERfU1RBS0lOR19ERUFETElORQCAqrftuDIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAANwdWIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDADBRZLU19TRVBBUkFURV9QVUJMSUNfS0VZASCrF1ePFWfjWVRBsNZy62abxKPTZl7VmYZQ35g3H7IJCAEgT1PiGj9UqNadUk4THUYnVb2zU/Mse8lUVLD/Q8G0FCgDCQAAAgEBVAUHJG1hdGNoMAEgT1PiGj9UqNadUk4THUYnVb2zU/Mse8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applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6eC4RBnryeTDBUxEMp7BurvJGySvR1jMgtPk8VQsRrDq Next: 7MuLPdzs3qR1xJWpXbHvd6tvWFoHPm3h37WQytXpUdbU Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let DAY_MILLIS = 86400000 | |
9 | 9 | ||
10 | - | let OLD_STAKING_DEADLINE = | |
10 | + | let OLD_STAKING_DEADLINE = 1733248800000 | |
11 | 11 | ||
12 | 12 | let chain = take(drop(this.bytes, 1), 1) | |
13 | 13 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let KS_SEPARATE_PUBLIC_KEY = false | |
5 | 5 | ||
6 | 6 | let KS_ALLOW_ROBO_DUCKS = false | |
7 | 7 | ||
8 | 8 | let DAY_MILLIS = 86400000 | |
9 | 9 | ||
10 | - | let OLD_STAKING_DEADLINE = | |
10 | + | let OLD_STAKING_DEADLINE = 1733248800000 | |
11 | 11 | ||
12 | 12 | let chain = take(drop(this.bytes, 1), 1) | |
13 | 13 | ||
14 | 14 | let pub = match chain { | |
15 | 15 | case _ => | |
16 | 16 | if ((base58'2W' == $match0)) | |
17 | 17 | then if (KS_SEPARATE_PUBLIC_KEY) | |
18 | 18 | then base58'CWsMtTZC5BjjoL4Q1ayW4Wwb1ehGACQB6DrKyPgotKfm' | |
19 | 19 | else base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
20 | 20 | else if ((base58'2T' == $match0)) | |
21 | 21 | then base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
22 | 22 | else throw("Unknown chain") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | let usdtAssetId = match chain { | |
26 | 26 | case _ => | |
27 | 27 | if ((base58'2W' == $match0)) | |
28 | 28 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
29 | 29 | else if ((base58'2T' == $match0)) | |
30 | 30 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
31 | 31 | else throw("Unknown chain") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | let defaultRestAddressStr = match chain { | |
35 | 35 | case _ => | |
36 | 36 | if ((base58'2W' == $match0)) | |
37 | 37 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
38 | 38 | else if ((base58'2T' == $match0)) | |
39 | 39 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
40 | 40 | else throw("Unknown chain") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | let acres2AddressStr = match chain { | |
44 | 44 | case _ => | |
45 | 45 | if ((base58'2W' == $match0)) | |
46 | 46 | then "3P4UH3T9nXpMNpUmSmQjPmEz3G85t3zn6eA" | |
47 | 47 | else if ((base58'2T' == $match0)) | |
48 | 48 | then "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh" | |
49 | 49 | else throw("Unknown chain") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | let arbitrageDelay = match chain { | |
53 | 53 | case _ => | |
54 | 54 | if ((base58'2W' == $match0)) | |
55 | 55 | then DAY_MILLIS | |
56 | 56 | else if ((base58'2T' == $match0)) | |
57 | 57 | then 60000 | |
58 | 58 | else throw("Unknown chain") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | let SEP = "__" | |
62 | 62 | ||
63 | 63 | let MULT6 = 1000000 | |
64 | 64 | ||
65 | 65 | let MULT8 = 100000000 | |
66 | 66 | ||
67 | 67 | let SSIZE = 25 | |
68 | 68 | ||
69 | 69 | let MSIZE = 100 | |
70 | 70 | ||
71 | 71 | let LSIZE = 225 | |
72 | 72 | ||
73 | 73 | let XLSIZE = 400 | |
74 | 74 | ||
75 | 75 | let XXLSIZE = 625 | |
76 | 76 | ||
77 | 77 | let ITER6 = [0, 1, 2, 3, 4, 5] | |
78 | 78 | ||
79 | 79 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | let IdxCfgEconomyDapp = 2 | |
83 | 83 | ||
84 | 84 | let IdxCfgGovernanceDapp = 3 | |
85 | 85 | ||
86 | 86 | let IdxCfgWlgDapp = 4 | |
87 | 87 | ||
88 | 88 | let IdxCfgTournamentDapp = 7 | |
89 | 89 | ||
90 | 90 | let IdxCfgAcresDapp = 8 | |
91 | 91 | ||
92 | 92 | func keyRestCfg () = "%s__restConfig" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyRestAddress () = "%s__restAddr" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
105 | 105 | ||
106 | 106 | let restCfg = readRestCfgOrFail(restContract) | |
107 | 107 | ||
108 | 108 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
109 | 109 | ||
110 | 110 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
111 | 111 | ||
112 | 112 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
113 | 113 | ||
114 | 114 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
115 | 115 | ||
116 | 116 | let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp) | |
117 | 117 | ||
118 | 118 | let recLandNum = 0 | |
119 | 119 | ||
120 | 120 | let recLandSize = 1 | |
121 | 121 | ||
122 | 122 | let recTerrains = 2 | |
123 | 123 | ||
124 | 124 | let recContinent = 3 | |
125 | 125 | ||
126 | 126 | let acresAssetIdKey = "acresAssetId" | |
127 | 127 | ||
128 | 128 | let acresAssetId = valueOrErrorMessage(getBinary(acresContract, acresAssetIdKey), "ACRES is not issued yet") | |
129 | 129 | ||
130 | 130 | let randomDelay = 2 | |
131 | 131 | ||
132 | 132 | func keyCommit (address) = ("finishBlockFor_" + address) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyResProportions () = "resTypesProportions" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyResTypesByContinent (continent) = ("resTypesByContinent_" + continent) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func asInt (v) = match v { | |
148 | 148 | case n: Int => | |
149 | 149 | n | |
150 | 150 | case _ => | |
151 | 151 | throw("fail to cast into Int") | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func asAnyList (v) = match v { | |
156 | 156 | case l: List[Any] => | |
157 | 157 | l | |
158 | 158 | case _ => | |
159 | 159 | throw("fail to cast into List[Any]") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func numPiecesBySize (landSize) = match landSize { | |
164 | 164 | case _ => | |
165 | 165 | if (("S" == $match0)) | |
166 | 166 | then SSIZE | |
167 | 167 | else if (("M" == $match0)) | |
168 | 168 | then MSIZE | |
169 | 169 | else if (("L" == $match0)) | |
170 | 170 | then LSIZE | |
171 | 171 | else if (("XL" == $match0)) | |
172 | 172 | then XLSIZE | |
173 | 173 | else if (("XXL" == $match0)) | |
174 | 174 | then XXLSIZE | |
175 | 175 | else throw("Unknown land size") | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyBlocked () = "contractsBlocked" | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func fixedPoint (val,decimals) = { | |
189 | 189 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
190 | 190 | let lowPart = toString((val % tenPow)) | |
191 | 191 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
192 | 192 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
197 | 197 | then throw("maxValue should be > 0") | |
198 | 198 | else { | |
199 | 199 | let randomHash = sha256_16Kb((salt + entropy)) | |
200 | 200 | (toInt(randomHash) % maxValue) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func finalTime () = min([lastBlock.timestamp, OLD_STAKING_DEADLINE]) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | let LANDPREFIX = "LAND" | |
208 | 208 | ||
209 | 209 | let DUCKPREFIX = "DUCK" | |
210 | 210 | ||
211 | 211 | let ROBO_PREFIX = "ROBO" | |
212 | 212 | ||
213 | 213 | let ARTPRESALE = "PRESALE" | |
214 | 214 | ||
215 | 215 | let NUMRES = 6 | |
216 | 216 | ||
217 | 217 | let MAX_LANDS_STAKED_BY_USER = 25 | |
218 | 218 | ||
219 | 219 | let DAILYRESBYPIECE = 3456000 | |
220 | 220 | ||
221 | 221 | let WHMULTIPLIER = 10000000000 | |
222 | 222 | ||
223 | 223 | let DEFAULTLOCATION = "Africa_F_Africa" | |
224 | 224 | ||
225 | 225 | let RESOURCEPRICEMIN = 39637 | |
226 | 226 | ||
227 | 227 | let MIN_USDT_FEE_DELIVERY = 50000 | |
228 | 228 | ||
229 | 229 | let USDT2ACRES_MULTIPLIER = 10 | |
230 | 230 | ||
231 | 231 | let ALLOWED_FREE_DELIVERIES = 0 | |
232 | 232 | ||
233 | 233 | let ACRES_FOR_DELIVERY_ATTEMPT = 200000000 | |
234 | 234 | ||
235 | 235 | 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", "Mine L1", "Mine L2", "Mine L3", "Trap L1", "Trap L2", "Trap L3", "Boom-Dog L1", "Boom-Dog L2", "Boom-Dog L3"] | |
236 | 236 | ||
237 | 237 | 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_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "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_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_", "23_23_5_20_23_6_35_2_100_0,0,0,0,0,0,0_", "23_23_5_20_23_6_70_2_150_0,0,0,0,0,0,0_", "23_23_5_20_23_6_105_2_200_0,0,0,0,0,0,0_"] | |
238 | 238 | ||
239 | 239 | let rIdxCoeff = 6 | |
240 | 240 | ||
241 | 241 | let rIdxRequirements = 9 | |
242 | 242 | ||
243 | 243 | let rIdxSlots = 10 | |
244 | 244 | ||
245 | 245 | let PRODUCTPKGSIZE = 10 | |
246 | 246 | ||
247 | 247 | let whIdxLevels = 0 | |
248 | 248 | ||
249 | 249 | let whIdxRes = 1 | |
250 | 250 | ||
251 | 251 | let whIdxMat = 2 | |
252 | 252 | ||
253 | 253 | let whIdxProd = 3 | |
254 | 254 | ||
255 | 255 | let whIdxLOFT = 4 | |
256 | 256 | ||
257 | 257 | let volLocked = 0 | |
258 | 258 | ||
259 | 259 | let volOccupied = 1 | |
260 | 260 | ||
261 | 261 | let volFree = 2 | |
262 | 262 | ||
263 | 263 | let volTotal = 3 | |
264 | 264 | ||
265 | 265 | let bpIdxLevel = 0 | |
266 | 266 | ||
267 | 267 | let bpIdxRes = 1 | |
268 | 268 | ||
269 | 269 | let bpIdxMat = 2 | |
270 | 270 | ||
271 | 271 | let bpIdxProd = 3 | |
272 | 272 | ||
273 | 273 | let locIdxType = 1 | |
274 | 274 | ||
275 | 275 | let locIdxId = 2 | |
276 | 276 | ||
277 | 277 | func keyLandAssetIdToOwner (assetId) = ("no_" + assetId) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func keyLandAssetIdToCustomName (assetId) = ("lcna_" + assetId) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func keyStakedTimeByAssetId (assetId) = ("st_" + assetId) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["las", type, assetId], "_") | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("sttao_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func keyWarehouseByLand (landAssetId) = ("wh_" + landAssetId) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func keyOnboardArtActivatedOnDuck (duckAssetId) = ("onboardArtActivatedOnDuck_" + duckAssetId) | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | let deliveryFundKey = "deliveryFund" | |
332 | 332 | ||
333 | 333 | let lastTourIdKey = "%s__lastTourId" | |
334 | 334 | ||
335 | 335 | let SCALE8 = 100000000 | |
336 | 336 | ||
337 | 337 | let xpLevelScale = 3200 | |
338 | 338 | ||
339 | 339 | let xpLevelRecipPow = 4000 | |
340 | 340 | ||
341 | 341 | let numPointsOnLevelUp = 3 | |
342 | 342 | ||
343 | 343 | let requirements = ["Strength", "Accuracy", "Intellect", "Endurance", "Dexterity", "Level", "Health"] | |
344 | 344 | ||
345 | 345 | let charStrength = 0 | |
346 | 346 | ||
347 | 347 | let charAccuracy = 1 | |
348 | 348 | ||
349 | 349 | let charIntellect = 2 | |
350 | 350 | ||
351 | 351 | let charEndurance = 3 | |
352 | 352 | ||
353 | 353 | let charDexterity = 4 | |
354 | 354 | ||
355 | 355 | let NUMMAINAUX = 2 | |
356 | 356 | ||
357 | 357 | let MAXSLOTS = 2 | |
358 | 358 | ||
359 | 359 | let MAXPRODINSLOT = 30 | |
360 | 360 | ||
361 | 361 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func keyUserXP (addr) = ("userXP_" + addr) | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | func keySavedHealth (duckAssetId) = ("savedHealth_" + duckAssetId) | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | func keySavedLocation (duckAssetId) = ("savedLocation_" + duckAssetId) | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | func keyDuckDeliveryCount (duckAssetId) = ("totalDeliveryCountByDuck_" + duckAssetId) | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | func keyUserDeliveryCount (addr) = ("userDeliveryCount_" + addr) | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | func keyUserLastDeliveryDay (addr) = ("userLastDeliveryDay_" + addr) | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | let xpClaim = 10000 | |
404 | 404 | ||
405 | 405 | let xpCustomName = 1000000 | |
406 | 406 | ||
407 | 407 | let xpOnboard = 1000000 | |
408 | 408 | ||
409 | 409 | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | func maxHealth (level) = (100 + level) | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | func levelUp (currLevel,newXP) = { | |
416 | 416 | let newLevel = levelByXP(newXP) | |
417 | 417 | [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))] | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | let DAYMILLIS = 86400000 | |
422 | 422 | ||
423 | 423 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
424 | 424 | ||
425 | 425 | ||
426 | 426 | func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | let RENAMINGCOST = 5000000 | |
430 | 430 | ||
431 | 431 | let MAXNAMELEN = 50 | |
432 | 432 | ||
433 | 433 | let PRESALENUMLANDS = 500 | |
434 | 434 | ||
435 | 435 | func keyLandCustomNameToAssetId (name) = ("lcn_" + name) | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("ilao_" + assetId) + "_") + ownerAddr) | |
439 | 439 | ||
440 | 440 | ||
441 | 441 | func keyLandNumToOwner (landNum) = ("lo_" + landNum) | |
442 | 442 | ||
443 | 443 | ||
444 | 444 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
445 | 445 | ||
446 | 446 | ||
447 | 447 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | func keyOldies () = "oldiesList" | |
451 | 451 | ||
452 | 452 | ||
453 | 453 | let claimModeWh = 0 | |
454 | 454 | ||
455 | 455 | let claimModeDuck = 1 | |
456 | 456 | ||
457 | 457 | let claimModeWhThenDuck = 2 | |
458 | 458 | ||
459 | 459 | func distributeByWeights (total,weights) = { | |
460 | 460 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
461 | 461 | if ((0 >= sum)) | |
462 | 462 | then throw("Zero weights sum") | |
463 | 463 | else { | |
464 | 464 | let norm6 = fraction(total, MULT6, sum) | |
465 | 465 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
466 | 466 | ||
467 | 467 | let $l = weights | |
468 | 468 | let $s = size($l) | |
469 | 469 | let $acc0 = nil | |
470 | 470 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
471 | 471 | then $a | |
472 | 472 | else normalizer($a, $l[$i]) | |
473 | 473 | ||
474 | 474 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
475 | 475 | then $a | |
476 | 476 | else throw("List size exceeds 6") | |
477 | 477 | ||
478 | 478 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
479 | 479 | } | |
480 | 480 | } | |
481 | 481 | ||
482 | 482 | ||
483 | 483 | func getNeededMaterials (total) = { | |
484 | 484 | let props = split(value(getString(keyResProportions())), "_") | |
485 | 485 | if ((size(props) != NUMRES)) | |
486 | 486 | then throw("Wrong proportions data") | |
487 | 487 | else { | |
488 | 488 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
489 | 489 | distributeByWeights(total, r) | |
490 | 490 | } | |
491 | 491 | } | |
492 | 492 | ||
493 | 493 | ||
494 | 494 | func prodStrToBytes (prodStr) = { | |
495 | 495 | let pList = if ((prodStr == "")) | |
496 | 496 | then nil | |
497 | 497 | else split_4C(prodStr, "_") | |
498 | 498 | func toBV (acc,recipe) = { | |
499 | 499 | let j = (size(acc) / 8) | |
500 | 500 | let curr = if ((size(pList) > j)) | |
501 | 501 | then parseIntValue(pList[j]) | |
502 | 502 | else 0 | |
503 | 503 | (acc + toBytes(curr)) | |
504 | 504 | } | |
505 | 505 | ||
506 | 506 | let $l = productionMatrix | |
507 | 507 | let $s = size($l) | |
508 | 508 | let $acc0 = base58'' | |
509 | 509 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
510 | 510 | then $a | |
511 | 511 | else toBV($a, $l[$i]) | |
512 | 512 | ||
513 | 513 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
514 | 514 | then $a | |
515 | 515 | else throw("List size exceeds 50") | |
516 | 516 | ||
517 | 517 | $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) | |
518 | 518 | } | |
519 | 519 | ||
520 | 520 | ||
521 | 521 | func bytesToProdStr (bv) = { | |
522 | 522 | func fromBV (acc,recipe) = { | |
523 | 523 | let j = size(acc) | |
524 | 524 | let b = take(drop(bv, (8 * j)), 8) | |
525 | 525 | (acc :+ toString(toInt(b))) | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | makeString_2C({ | |
529 | 529 | let $l = productionMatrix | |
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 fromBV($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 50") | |
539 | 539 | ||
540 | 540 | $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) | |
541 | 541 | }, "_") | |
542 | 542 | } | |
543 | 543 | ||
544 | 544 | ||
545 | 545 | func checkStatRequirements (duckStats,reqs) = { | |
546 | 546 | func check (acc,j) = { | |
547 | 547 | let buff = if ((size(duckStats) > (7 + j))) | |
548 | 548 | then duckStats[(7 + j)] | |
549 | 549 | else 0 | |
550 | 550 | if ((parseIntValue(reqs[j]) > (duckStats[j] + buff))) | |
551 | 551 | then throw(("Requirement not satisfied: " + requirements[j])) | |
552 | 552 | else true | |
553 | 553 | } | |
554 | 554 | ||
555 | 555 | let $l = [0, 1, 2, 3, 4, 5, 6] | |
556 | 556 | let $s = size($l) | |
557 | 557 | let $acc0 = false | |
558 | 558 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
559 | 559 | then $a | |
560 | 560 | else check($a, $l[$i]) | |
561 | 561 | ||
562 | 562 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
563 | 563 | then $a | |
564 | 564 | else throw("List size exceeds 7") | |
565 | 565 | ||
566 | 566 | $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) | |
567 | 567 | } | |
568 | 568 | ||
569 | 569 | ||
570 | 570 | func addProdB (idxCnt,pList,isPositive,segment,mainAux,slot,duckStats) = { | |
571 | 571 | let parts = split(idxCnt, ":") | |
572 | 572 | if ((size(parts) != 2)) | |
573 | 573 | then throw("Incorrect format, should be index:amount") | |
574 | 574 | else if (if (!(isPositive)) | |
575 | 575 | then (size(parts[0]) != 2) | |
576 | 576 | else false) | |
577 | 577 | then throw("Product idx should be 2 digits, zero padded") | |
578 | 578 | else { | |
579 | 579 | let productIdx = parseIntValue(parts[0]) | |
580 | 580 | let count = parseIntValue(parts[1]) | |
581 | 581 | if (if ((0 > productIdx)) | |
582 | 582 | then true | |
583 | 583 | else (productIdx >= size(productionMatrix))) | |
584 | 584 | then throw("Unknown product idx") | |
585 | 585 | else if ((0 > count)) | |
586 | 586 | then throw("Count can't be negative") | |
587 | 587 | else if ((count > MAXPRODINSLOT)) | |
588 | 588 | then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx])) | |
589 | 589 | else if ((count == 0)) | |
590 | 590 | then $Tuple2(pList, false) | |
591 | 591 | else { | |
592 | 592 | let head = take(pList, (8 * productIdx)) | |
593 | 593 | let curr = toInt(take(drop(pList, (8 * productIdx)), 8)) | |
594 | 594 | let tail = drop(pList, (8 * (productIdx + 1))) | |
595 | 595 | let recipe = split(productionMatrix[productIdx], "_") | |
596 | 596 | if (if (!(isPositive)) | |
597 | 597 | then (count > curr) | |
598 | 598 | else false) | |
599 | 599 | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count))) | |
600 | 600 | else { | |
601 | 601 | let isBigItem = if (if (!(isPositive)) | |
602 | 602 | then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ",")) | |
603 | 603 | else false) | |
604 | 604 | then { | |
605 | 605 | let compat = recipe[rIdxSlots] | |
606 | 606 | if ((compat == "")) | |
607 | 607 | then throw("Item cannot be equipped") | |
608 | 608 | else { | |
609 | 609 | let c = parseIntValue(compat) | |
610 | 610 | let cSeg = (c / 100) | |
611 | 611 | if ((segment != cSeg)) | |
612 | 612 | then throw("Segment incompatible") | |
613 | 613 | else { | |
614 | 614 | let cMainAux = ((c % 100) / 10) | |
615 | 615 | if ((mainAux != cMainAux)) | |
616 | 616 | then throw("Slot incompatible") | |
617 | 617 | else { | |
618 | 618 | let cNumSlots = (c % 10) | |
619 | 619 | if (if ((slot != 0)) | |
620 | 620 | then (cNumSlots > 1) | |
621 | 621 | else false) | |
622 | 622 | then throw("Big items should occupy slot 0") | |
623 | 623 | else (cNumSlots > 1) | |
624 | 624 | } | |
625 | 625 | } | |
626 | 626 | } | |
627 | 627 | } | |
628 | 628 | else false | |
629 | 629 | $Tuple2(((head + toBytes((curr + (if (isPositive) | |
630 | 630 | then count | |
631 | 631 | else -(count))))) + tail), isBigItem) | |
632 | 632 | } | |
633 | 633 | } | |
634 | 634 | } | |
635 | 635 | } | |
636 | 636 | ||
637 | 637 | ||
638 | 638 | func slotsGroupB (g,bpIn,isPositive,segment,mainAux,stats) = if ((g != "")) | |
639 | 639 | then { | |
640 | 640 | let slots = split(g, ",") | |
641 | 641 | if ((size(slots) > MAXSLOTS)) | |
642 | 642 | then throw("Wrong slots format") | |
643 | 643 | else { | |
644 | 644 | let s0 = slots[0] | |
645 | 645 | let s1 = if ((size(slots) > 1)) | |
646 | 646 | then slots[1] | |
647 | 647 | else "" | |
648 | 648 | if (if ((s0 == "")) | |
649 | 649 | then (s1 == "") | |
650 | 650 | else false) | |
651 | 651 | then bpIn | |
652 | 652 | else { | |
653 | 653 | let tmpS0 = if ((s0 != "")) | |
654 | 654 | then addProdB(s0, bpIn, isPositive, segment, mainAux, 0, stats) | |
655 | 655 | else $Tuple2(bpIn, false) | |
656 | 656 | if ((s1 != "")) | |
657 | 657 | then if (tmpS0._2) | |
658 | 658 | then throw("Big item already occupies slot") | |
659 | 659 | else addProdB(s1, tmpS0._1, isPositive, segment, mainAux, 1, stats)._1 | |
660 | 660 | else tmpS0._1 | |
661 | 661 | } | |
662 | 662 | } | |
663 | 663 | } | |
664 | 664 | else bpIn | |
665 | 665 | ||
666 | 666 | ||
667 | 667 | func dressB (segList,pBytes,isPositive,stats) = { | |
668 | 668 | func segment (acc,seg) = { | |
669 | 669 | let j = acc._1 | |
670 | 670 | let mainAux = split(seg, ";") | |
671 | 671 | if ((size(mainAux) != NUMMAINAUX)) | |
672 | 672 | then throw("Wrong segment format") | |
673 | 673 | else { | |
674 | 674 | let m = mainAux[0] | |
675 | 675 | let a = mainAux[1] | |
676 | 676 | if (if ((m == "")) | |
677 | 677 | then (a == "") | |
678 | 678 | else false) | |
679 | 679 | then $Tuple2((j + 1), acc._2) | |
680 | 680 | else { | |
681 | 681 | let tmpM = slotsGroupB(m, acc._2, isPositive, j, 0, stats) | |
682 | 682 | $Tuple2((j + 1), slotsGroupB(a, tmpM, isPositive, j, 1, stats)) | |
683 | 683 | } | |
684 | 684 | } | |
685 | 685 | } | |
686 | 686 | ||
687 | 687 | ( let $l = segList | |
688 | 688 | let $s = size($l) | |
689 | 689 | let $acc0 = $Tuple2(0, pBytes) | |
690 | 690 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
691 | 691 | then $a | |
692 | 692 | else segment($a, $l[$i]) | |
693 | 693 | ||
694 | 694 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
695 | 695 | then $a | |
696 | 696 | else throw("List size exceeds 6") | |
697 | 697 | ||
698 | 698 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6))._2 | |
699 | 699 | } | |
700 | 700 | ||
701 | 701 | ||
702 | 702 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
703 | 703 | then throw("Wrong proportions data") | |
704 | 704 | else { | |
705 | 705 | func updater (acc,i) = { | |
706 | 706 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
707 | 707 | if ((0 > result)) | |
708 | 708 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
709 | 709 | else (acc :+ toString(result)) | |
710 | 710 | } | |
711 | 711 | ||
712 | 712 | let $l = ITER6 | |
713 | 713 | let $s = size($l) | |
714 | 714 | let $acc0 = nil | |
715 | 715 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
716 | 716 | then $a | |
717 | 717 | else updater($a, $l[$i]) | |
718 | 718 | ||
719 | 719 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
720 | 720 | then $a | |
721 | 721 | else throw("List size exceeds 6") | |
722 | 722 | ||
723 | 723 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
724 | 724 | } | |
725 | 725 | ||
726 | 726 | ||
727 | 727 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
728 | 728 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
729 | 729 | makeString(updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign), "_") | |
730 | 730 | } | |
731 | 731 | ||
732 | 732 | ||
733 | 733 | 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)] | |
734 | 734 | ||
735 | 735 | ||
736 | 736 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
737 | 737 | func adder (acc,i) = { | |
738 | 738 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
739 | 739 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
740 | 740 | } | |
741 | 741 | ||
742 | 742 | let r = { | |
743 | 743 | let $l = ITER6 | |
744 | 744 | let $s = size($l) | |
745 | 745 | let $acc0 = nil | |
746 | 746 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
747 | 747 | then $a | |
748 | 748 | else adder($a, $l[$i]) | |
749 | 749 | ||
750 | 750 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
751 | 751 | then $a | |
752 | 752 | else throw("List size exceeds 6") | |
753 | 753 | ||
754 | 754 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
755 | 755 | } | |
756 | 756 | makeString(r, "_") | |
757 | 757 | } | |
758 | 758 | ||
759 | 759 | ||
760 | 760 | func virtClaimAddRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
761 | 761 | func adder (acc,i) = { | |
762 | 762 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
763 | 763 | let totalResType = (parseIntValue(currentRes[i]) + resOfType) | |
764 | 764 | $Tuple2((acc._1 :+ totalResType), (acc._2 + totalResType)) | |
765 | 765 | } | |
766 | 766 | ||
767 | 767 | let $l = ITER6 | |
768 | 768 | let $s = size($l) | |
769 | 769 | let $acc0 = $Tuple2(nil, 0) | |
770 | 770 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
771 | 771 | then $a | |
772 | 772 | else adder($a, $l[$i]) | |
773 | 773 | ||
774 | 774 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
775 | 775 | then $a | |
776 | 776 | else throw("List size exceeds 6") | |
777 | 777 | ||
778 | 778 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
779 | 779 | } | |
780 | 780 | ||
781 | 781 | ||
782 | 782 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
783 | 783 | func adder (acc,terrainCount) = { | |
784 | 784 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCount) * landSizeIndex) | |
785 | 785 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
786 | 786 | } | |
787 | 787 | ||
788 | 788 | let $l = terrainCounts | |
789 | 789 | let $s = size($l) | |
790 | 790 | let $acc0 = $Tuple2(nil, 0) | |
791 | 791 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
792 | 792 | then $a | |
793 | 793 | else adder($a, $l[$i]) | |
794 | 794 | ||
795 | 795 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
796 | 796 | then $a | |
797 | 797 | else throw("List size exceeds 6") | |
798 | 798 | ||
799 | 799 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
800 | 800 | } | |
801 | 801 | ||
802 | 802 | ||
803 | 803 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
804 | 804 | let resListToClaim = resToClaim._1 | |
805 | 805 | let resAmToClaim = resToClaim._2 | |
806 | 806 | if ((resAmToClaim == 0)) | |
807 | 807 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
808 | 808 | else if ((whSpaceLeft >= resAmToClaim)) | |
809 | 809 | then { | |
810 | 810 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
811 | 811 | ||
812 | 812 | let r = { | |
813 | 813 | let $l = ITER6 | |
814 | 814 | let $s = size($l) | |
815 | 815 | let $acc0 = nil | |
816 | 816 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
817 | 817 | then $a | |
818 | 818 | else addLists($a, $l[$i]) | |
819 | 819 | ||
820 | 820 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
821 | 821 | then $a | |
822 | 822 | else throw("List size exceeds 6") | |
823 | 823 | ||
824 | 824 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
825 | 825 | } | |
826 | 826 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
827 | 827 | } | |
828 | 828 | else { | |
829 | 829 | func addPartLists (acc,i) = { | |
830 | 830 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
831 | 831 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
832 | 832 | } | |
833 | 833 | ||
834 | 834 | let r = { | |
835 | 835 | let $l = ITER6 | |
836 | 836 | let $s = size($l) | |
837 | 837 | let $acc0 = $Tuple2(nil, nil) | |
838 | 838 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
839 | 839 | then $a | |
840 | 840 | else addPartLists($a, $l[$i]) | |
841 | 841 | ||
842 | 842 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
843 | 843 | then $a | |
844 | 844 | else throw("List size exceeds 6") | |
845 | 845 | ||
846 | 846 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
847 | 847 | } | |
848 | 848 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
849 | 849 | } | |
850 | 850 | } | |
851 | 851 | ||
852 | 852 | ||
853 | 853 | func getBackpack (bpKey) = { | |
854 | 854 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
855 | 855 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
856 | 856 | then p[bpIdxRes] | |
857 | 857 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
858 | 858 | then p[bpIdxMat] | |
859 | 859 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
860 | 860 | } | |
861 | 861 | ||
862 | 862 | ||
863 | 863 | func getWarehouseTotalVolume (volPrefix) = { | |
864 | 864 | let parts = split(volPrefix, "_") | |
865 | 865 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
866 | 866 | } | |
867 | 867 | ||
868 | 868 | ||
869 | 869 | func getWarehouseOccupiedVol (currentWh) = { | |
870 | 870 | let goods = currentWh[whIdxProd] | |
871 | 871 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
872 | 872 | ||
873 | 873 | func sumProd (acc,item) = { | |
874 | 874 | let idx = acc._1 | |
875 | 875 | let pkgs = (((parseIntValue(item) + PRODUCTPKGSIZE) - 1) / PRODUCTPKGSIZE) | |
876 | 876 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
877 | 877 | } | |
878 | 878 | ||
879 | 879 | let whResVol = { | |
880 | 880 | let $l = split(currentWh[whIdxRes], "_") | |
881 | 881 | let $s = size($l) | |
882 | 882 | let $acc0 = 0 | |
883 | 883 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
884 | 884 | then $a | |
885 | 885 | else sumResMat($a, $l[$i]) | |
886 | 886 | ||
887 | 887 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
888 | 888 | then $a | |
889 | 889 | else throw("List size exceeds 6") | |
890 | 890 | ||
891 | 891 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
892 | 892 | } | |
893 | 893 | let whMatVol = { | |
894 | 894 | let $l = split(currentWh[whIdxMat], "_") | |
895 | 895 | let $s = size($l) | |
896 | 896 | let $acc0 = 0 | |
897 | 897 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
898 | 898 | then $a | |
899 | 899 | else sumResMat($a, $l[$i]) | |
900 | 900 | ||
901 | 901 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
902 | 902 | then $a | |
903 | 903 | else throw("List size exceeds 6") | |
904 | 904 | ||
905 | 905 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
906 | 906 | } | |
907 | 907 | let whGoodsVol = if ((goods == "")) | |
908 | 908 | then 0 | |
909 | 909 | else ( let $l = split_4C(goods, "_") | |
910 | 910 | let $s = size($l) | |
911 | 911 | let $acc0 = $Tuple2(0, 0) | |
912 | 912 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
913 | 913 | then $a | |
914 | 914 | else sumProd($a, $l[$i]) | |
915 | 915 | ||
916 | 916 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
917 | 917 | then $a | |
918 | 918 | else throw("List size exceeds 50") | |
919 | 919 | ||
920 | 920 | $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 | |
921 | 921 | ((whResVol + whMatVol) + whGoodsVol) | |
922 | 922 | } | |
923 | 923 | ||
924 | 924 | ||
925 | 925 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
926 | 926 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
927 | 927 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
928 | 928 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
929 | 929 | let wh = split_4C(whStr, ":") | |
930 | 930 | let whOccupied = getWarehouseOccupiedVol(wh) | |
931 | 931 | let whLoft = if ((5 > size(wh))) | |
932 | 932 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
933 | 933 | else { | |
934 | 934 | let loft = split(wh[whIdxLOFT], "_") | |
935 | 935 | let whLocked = parseIntValue(loft[volLocked]) | |
936 | 936 | let occ = if ((size(loft) > 1)) | |
937 | 937 | then parseIntValue(loft[volOccupied]) | |
938 | 938 | else whOccupied | |
939 | 939 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
940 | 940 | } | |
941 | 941 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
942 | 942 | then wh[whIdxRes] | |
943 | 943 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
944 | 944 | then wh[whIdxMat] | |
945 | 945 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
946 | 946 | } | |
947 | 947 | ||
948 | 948 | ||
949 | 949 | func applyBonuses (landAssetId,pieces) = { | |
950 | 950 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
951 | 951 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
952 | 952 | let add6 = (infraLevel / 6) | |
953 | 953 | let add7 = (infraLevel / 7) | |
954 | 954 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
955 | 955 | } | |
956 | 956 | ||
957 | 957 | ||
958 | 958 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
959 | 959 | let $t03424734786 = if ((claimMode == claimModeWh)) | |
960 | 960 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
961 | 961 | else { | |
962 | 962 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
963 | 963 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
964 | 964 | let loc = split(value(curLocation), "_") | |
965 | 965 | if ((loc[locIdxType] != "L")) | |
966 | 966 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
967 | 967 | else $Tuple2(loc[locIdxId], duckAssetId) | |
968 | 968 | } | |
969 | 969 | let landAssetId = $t03424734786._1 | |
970 | 970 | let duckId = $t03424734786._2 | |
971 | 971 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
972 | 972 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
973 | 973 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
974 | 974 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
975 | 975 | if ((owner != addr)) | |
976 | 976 | then throw((LANDPREFIX + " is not yours")) | |
977 | 977 | else { | |
978 | 978 | let d = split(asset.description, "_") | |
979 | 979 | $Tuple4(duckId, landAssetId, d, savedTime) | |
980 | 980 | } | |
981 | 981 | } | |
982 | 982 | ||
983 | 983 | ||
984 | 984 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
985 | 985 | then throw("Negative amount") | |
986 | 986 | else { | |
987 | 987 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
988 | 988 | let landSize = c._3[recLandSize] | |
989 | 989 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
990 | 990 | let deltaTime = (finalTime() - c._4) | |
991 | 991 | if ((0 > deltaTime)) | |
992 | 992 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", final = ") + toString(finalTime()))) | |
993 | 993 | else { | |
994 | 994 | let pieces = numPiecesBySize(landSize) | |
995 | 995 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
996 | 996 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
997 | 997 | if ((amount > availRes)) | |
998 | 998 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
999 | 999 | else { | |
1000 | 1000 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
1001 | 1001 | let newTimestamp = (finalTime() - newDeltaTime) | |
1002 | 1002 | let landIndex = (pieces / SSIZE) | |
1003 | 1003 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
1004 | 1004 | let whKey = keyWarehouseByLand(c._2) | |
1005 | 1005 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
1006 | 1006 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1007 | 1007 | let loft = split(currentWh[whIdxLOFT], "_") | |
1008 | 1008 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1009 | 1009 | if (if ((claimMode == claimModeWh)) | |
1010 | 1010 | then (amount > whSpaceLeft) | |
1011 | 1011 | else false) | |
1012 | 1012 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1013 | 1013 | else { | |
1014 | 1014 | let bpKey = keyBackpackByDuck(c._1) | |
1015 | 1015 | let currentPack = getBackpack(bpKey) | |
1016 | 1016 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1017 | 1017 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1018 | 1018 | let $t03715638027 = if ((claimMode == claimModeWh)) | |
1019 | 1019 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1020 | 1020 | else if ((claimMode == claimModeDuck)) | |
1021 | 1021 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1022 | 1022 | else { | |
1023 | 1023 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1024 | 1024 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1025 | 1025 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1026 | 1026 | } | |
1027 | 1027 | let whRes = $t03715638027._1 | |
1028 | 1028 | let bpRes = $t03715638027._2 | |
1029 | 1029 | let loftO = $t03715638027._3 | |
1030 | 1030 | let loftF = $t03715638027._4 | |
1031 | 1031 | $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]], "_")]) | |
1032 | 1032 | } | |
1033 | 1033 | } | |
1034 | 1034 | } | |
1035 | 1035 | } | |
1036 | 1036 | ||
1037 | 1037 | ||
1038 | 1038 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1039 | 1039 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1040 | 1040 | let savedTime = value(getInteger(timeKey)) | |
1041 | 1041 | let availRes = (fraction((finalTime() - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1042 | 1042 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1043 | 1043 | } | |
1044 | 1044 | ||
1045 | 1045 | ||
1046 | 1046 | func updateStatsInternal (lvlKey,xpKey,pointsKey,deltaXP) = { | |
1047 | 1047 | let xp = valueOrElse(getInteger(xpKey), 0) | |
1048 | 1048 | let newXP = (xp + deltaXP) | |
1049 | 1049 | let lvlPoints = levelUp(valueOrElse(getInteger(lvlKey), 0), newXP) | |
1050 | 1050 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(pointsKey, (valueOrElse(getInteger(pointsKey), 0) + lvlPoints[1]))], newXP) | |
1051 | 1051 | } | |
1052 | 1052 | ||
1053 | 1053 | ||
1054 | 1054 | func updateDuckStatsInternal (duckAssetId,deltaXP) = { | |
1055 | 1055 | let asset = value(assetInfo(fromBase58String(duckAssetId))) | |
1056 | 1056 | let addr = valueOrErrorMessage(getString(keyDuckIdToOwner(duckAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1057 | 1057 | if (if (if (KS_ALLOW_ROBO_DUCKS) | |
1058 | 1058 | then (asset.issuer == this) | |
1059 | 1059 | else false) | |
1060 | 1060 | then contains(asset.name, ROBO_PREFIX) | |
1061 | 1061 | else false) | |
1062 | 1062 | then updateStatsInternal(keyUserLevel(addr), keyUserXP(addr), keyUserFreePoints(addr), deltaXP) | |
1063 | 1063 | else updateStatsInternal(keyDuckLevel(duckAssetId), keyDuckXP(duckAssetId), keyDuckFreePoints(duckAssetId), deltaXP) | |
1064 | 1064 | } | |
1065 | 1065 | ||
1066 | 1066 | ||
1067 | 1067 | func updateAccStatsInternal (addr,deltaXP) = updateStatsInternal(keyUserLevel(addr), keyUserXP(addr), keyUserFreePoints(addr), deltaXP) | |
1068 | 1068 | ||
1069 | 1069 | ||
1070 | 1070 | func activateOnboardArt (addr) = { | |
1071 | 1071 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1072 | 1072 | let refByKey = keyAddressRefBy(addr) | |
1073 | 1073 | let refBy = getString(refByKey) | |
1074 | 1074 | if (!(isDefined(refBy))) | |
1075 | 1075 | then throw("You are not eligible for ONBOARD artifact") | |
1076 | 1076 | else { | |
1077 | 1077 | let artKey = keyOnboardArtDuckActivatedBy(addr) | |
1078 | 1078 | let artDuck = getString(artKey) | |
1079 | 1079 | if (isDefined(artDuck)) | |
1080 | 1080 | then throw(("You already used your ONBOARD artifact on duck " + value(artDuck))) | |
1081 | 1081 | else { | |
1082 | 1082 | let duckActivatorKey = keyOnboardArtActivatedOnDuck(duckAssetId) | |
1083 | 1083 | let duckActivator = getString(duckActivatorKey) | |
1084 | 1084 | if (isDefined(duckActivator)) | |
1085 | 1085 | then throw(((("The duck " + duckAssetId) + " already got points from ONBOARD artifact from user ") + value(duckActivator))) | |
1086 | 1086 | else ([StringEntry(artKey, duckAssetId), StringEntry(duckActivatorKey, addr)] ++ updateDuckStatsInternal(duckAssetId, xpOnboard)._1) | |
1087 | 1087 | } | |
1088 | 1088 | } | |
1089 | 1089 | } | |
1090 | 1090 | ||
1091 | 1091 | ||
1092 | 1092 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1093 | 1093 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1094 | 1094 | let landAssetId = c._2 | |
1095 | 1095 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1096 | 1096 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1097 | 1097 | if ((valueOrElse(getInteger(activationKey), 0) > 0)) | |
1098 | 1098 | then throw("Presale artifact is already activated") | |
1099 | 1099 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1100 | 1100 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1101 | 1101 | else { | |
1102 | 1102 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1103 | 1103 | (((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1104 | 1104 | } | |
1105 | 1105 | } | |
1106 | 1106 | ||
1107 | 1107 | ||
1108 | 1108 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1109 | 1109 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1110 | 1110 | else false) | |
1111 | 1111 | then throw("Contracts are under maintenance") | |
1112 | 1112 | else [StringEntry(keyCurWeekTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId))] | |
1113 | 1113 | ||
1114 | 1114 | ||
1115 | 1115 | func unstakeLandInternal (addr,landAssetId) = { | |
1116 | 1116 | let whKey = keyWarehouseByLand(landAssetId) | |
1117 | 1117 | let landInfo = split(value(assetInfo(fromBase58String(landAssetId))).description, "_") | |
1118 | 1118 | let landSize = landInfo[recLandSize] | |
1119 | 1119 | let pieces = numPiecesBySize(landSize) | |
1120 | 1120 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1121 | 1121 | let landIndex = (pieces / SSIZE) | |
1122 | 1122 | let terrainCounts = countTerrains(landInfo[recTerrains]) | |
1123 | 1123 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1124 | 1124 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1125 | 1125 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1126 | 1126 | let savedTime = getIntegerValue(timeKey) | |
1127 | 1127 | let deltaTime = (finalTime() - savedTime) | |
1128 | 1128 | if ((0 > deltaTime)) | |
1129 | 1129 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", final = ") + toString(finalTime()))) | |
1130 | 1130 | else { | |
1131 | 1131 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1132 | 1132 | let resAfterClaim = virtClaimAddRes(currentWhRes, terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1133 | 1133 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1134 | 1134 | let acresFromPieces = ((pieces * MULT8) + ((((pieces * infraLevel) + artPieces) * MULT8) / 5)) | |
1135 | 1135 | let acresFromRes = (fraction(resAfterClaim._2, RESOURCEPRICEMIN, MULT8) * USDT2ACRES_MULTIPLIER) | |
1136 | 1136 | func sumMat (acc,item) = (acc + parseIntValue(item)) | |
1137 | 1137 | ||
1138 | 1138 | let whMat = { | |
1139 | 1139 | let $l = split(currentWh[whIdxMat], "_") | |
1140 | 1140 | let $s = size($l) | |
1141 | 1141 | let $acc0 = 0 | |
1142 | 1142 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1143 | 1143 | then $a | |
1144 | 1144 | else sumMat($a, $l[$i]) | |
1145 | 1145 | ||
1146 | 1146 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1147 | 1147 | then $a | |
1148 | 1148 | else throw("List size exceeds 6") | |
1149 | 1149 | ||
1150 | 1150 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1151 | 1151 | } | |
1152 | 1152 | let acresFromMat = (fraction(whMat, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1153 | 1153 | let prods = if ((currentWh[whIdxProd] == "")) | |
1154 | 1154 | then nil | |
1155 | 1155 | else split_4C(currentWh[whIdxProd], "_") | |
1156 | 1156 | func sumProd (acc,item) = { | |
1157 | 1157 | let j = acc._2 | |
1158 | 1158 | let recipeCoeff = parseIntValue(split(productionMatrix[j], "_")[rIdxCoeff]) | |
1159 | 1159 | $Tuple2((acc._1 + ((parseIntValue(item) * recipeCoeff) * MULT6)), (j + 1)) | |
1160 | 1160 | } | |
1161 | 1161 | ||
1162 | 1162 | let whProd = { | |
1163 | 1163 | let $l = prods | |
1164 | 1164 | let $s = size($l) | |
1165 | 1165 | let $acc0 = $Tuple2(0, 0) | |
1166 | 1166 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1167 | 1167 | then $a | |
1168 | 1168 | else sumProd($a, $l[$i]) | |
1169 | 1169 | ||
1170 | 1170 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1171 | 1171 | then $a | |
1172 | 1172 | else throw("List size exceeds 24") | |
1173 | 1173 | ||
1174 | 1174 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_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) | |
1175 | 1175 | } | |
1176 | 1176 | let acresFromProd = (fraction(whProd._1, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1177 | 1177 | $Tuple4(acresFromPieces, acresFromRes, acresFromMat, acresFromProd) | |
1178 | 1178 | } | |
1179 | 1179 | } | |
1180 | 1180 | ||
1181 | 1181 | ||
1182 | 1182 | func unstakeDuckInternal (addr,duckAssetId) = { | |
1183 | 1183 | let eqKey = keyDuckEquipment(duckAssetId) | |
1184 | 1184 | let currentSegs = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_") | |
1185 | 1185 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1186 | 1186 | let currentPack = getBackpack(bpKey) | |
1187 | 1187 | let tempProdB = dressB(currentSegs, prodStrToBytes(currentPack[bpIdxProd]), true, nil) | |
1188 | 1188 | let newProdStr = bytesToProdStr(tempProdB) | |
1189 | 1189 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
1190 | 1190 | ||
1191 | 1191 | let bpRes = { | |
1192 | 1192 | let $l = split(currentPack[bpIdxRes], "_") | |
1193 | 1193 | let $s = size($l) | |
1194 | 1194 | let $acc0 = 0 | |
1195 | 1195 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1196 | 1196 | then $a | |
1197 | 1197 | else sumResMat($a, $l[$i]) | |
1198 | 1198 | ||
1199 | 1199 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1200 | 1200 | then $a | |
1201 | 1201 | else throw("List size exceeds 6") | |
1202 | 1202 | ||
1203 | 1203 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1204 | 1204 | } | |
1205 | 1205 | let acresFromRes = (fraction(bpRes, RESOURCEPRICEMIN, MULT8) * USDT2ACRES_MULTIPLIER) | |
1206 | 1206 | let bpMat = { | |
1207 | 1207 | let $l = split(currentPack[bpIdxMat], "_") | |
1208 | 1208 | let $s = size($l) | |
1209 | 1209 | let $acc0 = 0 | |
1210 | 1210 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1211 | 1211 | then $a | |
1212 | 1212 | else sumResMat($a, $l[$i]) | |
1213 | 1213 | ||
1214 | 1214 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1215 | 1215 | then $a | |
1216 | 1216 | else throw("List size exceeds 6") | |
1217 | 1217 | ||
1218 | 1218 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1219 | 1219 | } | |
1220 | 1220 | let acresFromMat = (fraction(bpMat, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1221 | 1221 | let prods = if ((newProdStr == "")) | |
1222 | 1222 | then nil | |
1223 | 1223 | else split_4C(newProdStr, "_") | |
1224 | 1224 | func sumProd (acc,item) = { | |
1225 | 1225 | let j = acc._2 | |
1226 | 1226 | let recipeCoeff = parseIntValue(split(productionMatrix[j], "_")[rIdxCoeff]) | |
1227 | 1227 | $Tuple2((acc._1 + ((parseIntValue(item) * recipeCoeff) * MULT6)), (j + 1)) | |
1228 | 1228 | } | |
1229 | 1229 | ||
1230 | 1230 | let bpProd = { | |
1231 | 1231 | let $l = prods | |
1232 | 1232 | let $s = size($l) | |
1233 | 1233 | let $acc0 = $Tuple2(0, 0) | |
1234 | 1234 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1235 | 1235 | then $a | |
1236 | 1236 | else sumProd($a, $l[$i]) | |
1237 | 1237 | ||
1238 | 1238 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1239 | 1239 | then $a | |
1240 | 1240 | else throw("List size exceeds 24") | |
1241 | 1241 | ||
1242 | 1242 | $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($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) | |
1243 | 1243 | } | |
1244 | 1244 | let acresFromProd = (fraction(bpProd._1, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1245 | 1245 | $Tuple3(acresFromRes, acresFromMat, acresFromProd) | |
1246 | 1246 | } | |
1247 | 1247 | ||
1248 | 1248 | ||
1249 | 1249 | @Callable(i) | |
1250 | 1250 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1251 | 1251 | then throw("Permission denied") | |
1252 | 1252 | else [StringEntry(keyRestAddress(), restAddr)] | |
1253 | 1253 | ||
1254 | 1254 | ||
1255 | 1255 | ||
1256 | 1256 | @Callable(i) | |
1257 | 1257 | func saveInteger (key,amount) = if ((i.caller != this)) | |
1258 | 1258 | then throw("saveInteger is not public method") | |
1259 | 1259 | else [IntegerEntry(key, amount)] | |
1260 | 1260 | ||
1261 | 1261 | ||
1262 | 1262 | ||
1263 | 1263 | @Callable(i) | |
1264 | 1264 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1265 | 1265 | then throw("permission denied") | |
1266 | 1266 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1267 | 1267 | ||
1268 | 1268 | ||
1269 | 1269 | ||
1270 | 1270 | @Callable(i) | |
1271 | 1271 | func stakeLand () = { | |
1272 | 1272 | let prologActions = prolog(i) | |
1273 | 1273 | if ((size(i.payments) != 1)) | |
1274 | 1274 | then throw("Exactly one payment required") | |
1275 | 1275 | else { | |
1276 | 1276 | let pmt = value(i.payments[0]) | |
1277 | 1277 | let assetId = value(pmt.assetId) | |
1278 | 1278 | let address = toString(i.caller) | |
1279 | 1279 | if ((pmt.amount != 1)) | |
1280 | 1280 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1281 | 1281 | else { | |
1282 | 1282 | let asset = value(assetInfo(assetId)) | |
1283 | 1283 | if ((asset.issuer != this)) | |
1284 | 1284 | then throw("Unknown issuer of token") | |
1285 | 1285 | else if (!(contains(asset.name, LANDPREFIX))) | |
1286 | 1286 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1287 | 1287 | else { | |
1288 | 1288 | let landNumSize = drop(asset.name, 4) | |
1289 | 1289 | let landNum = if (contains(landNumSize, "XXL")) | |
1290 | 1290 | then dropRight(landNumSize, 3) | |
1291 | 1291 | else if (contains(landNumSize, "XL")) | |
1292 | 1292 | then dropRight(landNumSize, 2) | |
1293 | 1293 | else dropRight(landNumSize, 1) | |
1294 | 1294 | if (!(isDefined(parseInt(landNum)))) | |
1295 | 1295 | then throw(("Cannot parse land number from " + asset.name)) | |
1296 | 1296 | else { | |
1297 | 1297 | let landAssetId = toBase58String(assetId) | |
1298 | 1298 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1299 | 1299 | if (isDefined(getInteger(timeKey))) | |
1300 | 1300 | then throw((("NFT " + asset.name) + " is already staked")) | |
1301 | 1301 | else { | |
1302 | 1302 | let d = split(asset.description, "_") | |
1303 | 1303 | let terrainCounts = countTerrains(d[recTerrains]) | |
1304 | 1304 | let pieces = numPiecesBySize(d[recLandSize]) | |
1305 | 1305 | let landIndex = (pieces / SSIZE) | |
1306 | 1306 | let props = updateProportions(terrainCounts, landIndex, 1) | |
1307 | 1307 | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1308 | 1308 | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1309 | 1309 | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, 1), "_") | |
1310 | 1310 | let landsKey = keyStakedLandsByOwner(address) | |
1311 | 1311 | let landsStr = getString(landsKey) | |
1312 | 1312 | let lands = if (isDefined(landsStr)) | |
1313 | 1313 | then split_51C(value(landsStr), "_") | |
1314 | 1314 | else nil | |
1315 | 1315 | if (containsElement(lands, landAssetId)) | |
1316 | 1316 | then throw(("Your staked lands already contain " + landAssetId)) | |
1317 | 1317 | else if ((size(lands) >= MAX_LANDS_STAKED_BY_USER)) | |
1318 | 1318 | then throw((("Your already staked max (" + toString(MAX_LANDS_STAKED_BY_USER)) + ") lands")) | |
1319 | 1319 | else { | |
1320 | 1320 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1321 | 1321 | let piecesKey = keyStakedPiecesByOwner(address) | |
1322 | 1322 | let oldPieces = valueOrElse(getInteger(piecesKey), 0) | |
1323 | 1323 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
1324 | 1324 | $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(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps)] ++ prologActions), wlgResult) | |
1325 | 1325 | } | |
1326 | 1326 | } | |
1327 | 1327 | } | |
1328 | 1328 | } | |
1329 | 1329 | } | |
1330 | 1330 | } | |
1331 | 1331 | } | |
1332 | 1332 | ||
1333 | 1333 | ||
1334 | 1334 | ||
1335 | 1335 | @Callable(i) | |
1336 | 1336 | func unstakeLand (landAssetIdIn) = { | |
1337 | 1337 | let prologActions = prolog(i) | |
1338 | 1338 | if ((size(i.payments) != 0)) | |
1339 | 1339 | then throw("No payments required") | |
1340 | 1340 | else { | |
1341 | 1341 | let addr = toString(i.caller) | |
1342 | 1342 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1343 | 1343 | let landAssetId = c._2 | |
1344 | 1344 | let d = c._3 | |
1345 | 1345 | let landsKey = keyStakedLandsByOwner(addr) | |
1346 | 1346 | let terrainCounts = countTerrains(d[recTerrains]) | |
1347 | 1347 | let pieces = numPiecesBySize(d[recLandSize]) | |
1348 | 1348 | let landIndex = (pieces / SSIZE) | |
1349 | 1349 | let props = updateProportions(terrainCounts, landIndex, -1) | |
1350 | 1350 | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1351 | 1351 | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1352 | 1352 | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, -1), "_") | |
1353 | 1353 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1354 | 1354 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1355 | 1355 | let idx = indexOf(lands, landAssetId) | |
1356 | 1356 | if (!(isDefined(idx))) | |
1357 | 1357 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1358 | 1358 | else { | |
1359 | 1359 | let now = lastBlock.timestamp | |
1360 | 1360 | let govReleaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1361 | 1361 | if ((govReleaseTime >= now)) | |
1362 | 1362 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(govReleaseTime))) | |
1363 | 1363 | else { | |
1364 | 1364 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(addr)), 0) + arbitrageDelay) | |
1365 | 1365 | if ((arbReleaseTime > now)) | |
1366 | 1366 | then throw(("Your staked lands took part in arbitrage, cannot unstake until " + toString(arbReleaseTime))) | |
1367 | 1367 | else { | |
1368 | 1368 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1369 | 1369 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1370 | 1370 | let newPieces = if ((pieces > stakedPieces)) | |
1371 | 1371 | then 0 | |
1372 | 1372 | else (stakedPieces - pieces) | |
1373 | 1373 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [addr], nil) | |
1374 | 1374 | $Tuple2(([ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
1375 | 1375 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1376 | 1376 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces)] ++ prologActions), wlgResult) | |
1377 | 1377 | } | |
1378 | 1378 | } | |
1379 | 1379 | } | |
1380 | 1380 | } | |
1381 | 1381 | } | |
1382 | 1382 | ||
1383 | 1383 | ||
1384 | 1384 | ||
1385 | 1385 | @Callable(i) | |
1386 | 1386 | func unstakeLandCallback (landAssetId,addr) = if ((toString(i.caller) != acres2AddressStr)) | |
1387 | 1387 | then throw("Permission denied") | |
1388 | 1388 | else { | |
1389 | 1389 | let unstakeResult = unstakeLandInternal(addr, landAssetId) | |
1390 | 1390 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [addr], nil) | |
1391 | 1391 | $Tuple2([Burn(fromBase58String(landAssetId), 1), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))], $Tuple5(unstakeResult._1, unstakeResult._2, unstakeResult._3, unstakeResult._4, wlgResult)) | |
1392 | 1392 | } | |
1393 | 1393 | ||
1394 | 1394 | ||
1395 | 1395 | ||
1396 | 1396 | @Callable(i) | |
1397 | 1397 | func unstakeLandREADONLY (landAssetId,addr) = { | |
1398 | 1398 | let unstakeResult = unstakeLandInternal(addr, landAssetId) | |
1399 | 1399 | $Tuple2(nil, unstakeResult) | |
1400 | 1400 | } | |
1401 | 1401 | ||
1402 | 1402 | ||
1403 | 1403 | ||
1404 | 1404 | @Callable(i) | |
1405 | 1405 | func unstakeLandsFinalizeCallback (addr) = if ((toString(i.caller) != acres2AddressStr)) | |
1406 | 1406 | then throw("Permission denied") | |
1407 | 1407 | else $Tuple2([DeleteEntry(keyStakedLandsByOwner(addr)), DeleteEntry(keyStakedPiecesByOwner(addr))], 0) | |
1408 | 1408 | ||
1409 | 1409 | ||
1410 | 1410 | ||
1411 | 1411 | @Callable(i) | |
1412 | 1412 | func convertUnstakedLands () = if ((size(i.payments) != 1)) | |
1413 | 1413 | then throw("Exactly one payment required") | |
1414 | 1414 | else { | |
1415 | 1415 | let pmt = value(i.payments[0]) | |
1416 | 1416 | let assetId = value(pmt.assetId) | |
1417 | 1417 | let address = toString(i.caller) | |
1418 | 1418 | if ((pmt.amount != 1)) | |
1419 | 1419 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1420 | 1420 | else { | |
1421 | 1421 | let asset = value(assetInfo(assetId)) | |
1422 | 1422 | if ((asset.issuer != this)) | |
1423 | 1423 | then throw("Unknown issuer of token") | |
1424 | 1424 | else if (!(contains(asset.name, LANDPREFIX))) | |
1425 | 1425 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1426 | 1426 | else { | |
1427 | 1427 | let landAssetId = toBase58String(assetId) | |
1428 | 1428 | let d = split(asset.description, "_") | |
1429 | 1429 | let pieces = numPiecesBySize(d[recLandSize]) | |
1430 | 1430 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1431 | 1431 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1432 | 1432 | let acresAmount = ((pieces * MULT8) + ((((pieces * infraLevel) + artPieces) * MULT8) / 5)) | |
1433 | 1433 | let req = invoke(acresContract, "requestAcresCallback", [acresAmount], nil) | |
1434 | 1434 | if ((req == req)) | |
1435 | 1435 | then { | |
1436 | 1436 | let callb = invoke(addressFromStringValue(acres2AddressStr), "stakeAcresCallback", [address], [AttachedPayment(acresAssetId, acresAmount)]) | |
1437 | 1437 | if ((callb == callb)) | |
1438 | 1438 | then $Tuple2([Burn(fromBase58String(landAssetId), 1)], 0) | |
1439 | 1439 | else throw("Strict value is not equal to itself.") | |
1440 | 1440 | } | |
1441 | 1441 | else throw("Strict value is not equal to itself.") | |
1442 | 1442 | } | |
1443 | 1443 | } | |
1444 | 1444 | } | |
1445 | 1445 | ||
1446 | 1446 | ||
1447 | 1447 | ||
1448 | 1448 | @Callable(i) | |
1449 | 1449 | func unstakeDuckCallback (duckAssetId,addr) = if ((toString(i.caller) != acres2AddressStr)) | |
1450 | 1450 | then throw("Permission denied") | |
1451 | 1451 | else { | |
1452 | 1452 | let unstakeResult = unstakeDuckInternal(addr, duckAssetId) | |
1453 | 1453 | $Tuple2([ScriptTransfer(addressFromStringValue(addr), 1, fromBase58String(duckAssetId)), DeleteEntry(keyStakedTimeByAssetId(duckAssetId)), DeleteEntry(keyDuckIdToOwner(duckAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, duckAssetId, addr)), DeleteEntry(keyStakedDuckByOwner(addr))], unstakeResult) | |
1454 | 1454 | } | |
1455 | 1455 | ||
1456 | 1456 | ||
1457 | 1457 | ||
1458 | 1458 | @Callable(i) | |
1459 | 1459 | func unstakeDuckREADONLY (duckAssetId,addr) = { | |
1460 | 1460 | let unstakeResult = unstakeDuckInternal(addr, duckAssetId) | |
1461 | 1461 | $Tuple2(nil, unstakeResult) | |
1462 | 1462 | } | |
1463 | 1463 | ||
1464 | 1464 | ||
1465 | 1465 | ||
1466 | 1466 | @Callable(i) | |
1467 | 1467 | func claimRes (amount,landAssetIdStr) = { | |
1468 | 1468 | let prologActions = prolog(i) | |
1469 | 1469 | if ((size(i.payments) != 0)) | |
1470 | 1470 | then throw("No payments required") | |
1471 | 1471 | else { | |
1472 | 1472 | let addr = toString(i.originCaller) | |
1473 | 1473 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
1474 | 1474 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1475 | 1475 | $Tuple2(((((result._1 ++ updateDuckStatsInternal(duckAssetId, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) ++ prologActions), result._3[bpIdxRes]) | |
1476 | 1476 | } | |
1477 | 1477 | } | |
1478 | 1478 | ||
1479 | 1479 | ||
1480 | 1480 | ||
1481 | 1481 | @Callable(i) | |
1482 | 1482 | func claimResToWH (amount,landAssetIdStr) = { | |
1483 | 1483 | let prologActions = prolog(i) | |
1484 | 1484 | if ((size(i.payments) != 0)) | |
1485 | 1485 | then throw("No payments required") | |
1486 | 1486 | else { | |
1487 | 1487 | let addr = toString(i.originCaller) | |
1488 | 1488 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
1489 | 1489 | $Tuple2(((((result._1 ++ updateAccStatsInternal(addr, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) ++ prologActions), result._5[whIdxRes]) | |
1490 | 1490 | } | |
1491 | 1491 | } | |
1492 | 1492 | ||
1493 | 1493 | ||
1494 | 1494 | ||
1495 | 1495 | @Callable(i) | |
1496 | 1496 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract)) | |
1497 | 1497 | then throw("permission denied") | |
1498 | 1498 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
1499 | 1499 | ||
1500 | 1500 | ||
1501 | 1501 | ||
1502 | 1502 | @Callable(i) | |
1503 | 1503 | func commitForRandom () = { | |
1504 | 1504 | let prologActions = prolog(i) | |
1505 | 1505 | let finishBlock = (height + randomDelay) | |
1506 | 1506 | let addr = toString(i.caller) | |
1507 | 1507 | $Tuple2(([IntegerEntry(keyCommit(addr), finishBlock)] ++ prologActions), finishBlock) | |
1508 | 1508 | } | |
1509 | 1509 | ||
1510 | 1510 | ||
1511 | 1511 | ||
1512 | 1512 | @Callable(i) | |
1513 | 1513 | func revealRandom (maxValue) = { | |
1514 | 1514 | let prologActions = prolog(i) | |
1515 | 1515 | let addr = toString(i.caller) | |
1516 | 1516 | let finishKey = keyCommit(addr) | |
1517 | 1517 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1518 | 1518 | if ((finishBlock > height)) | |
1519 | 1519 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1520 | 1520 | else { | |
1521 | 1521 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1522 | 1522 | let salt = toBytes(valueOrElse(getString(keyLastWeekTxIdByUser(addr)), "")) | |
1523 | 1523 | let rand = getRandomNumber(maxValue, salt, entropy) | |
1524 | 1524 | $Tuple2(([DeleteEntry(finishKey)] ++ prologActions), rand) | |
1525 | 1525 | } | |
1526 | 1526 | } | |
1527 | 1527 | ||
1528 | 1528 | ||
1529 | 1529 | ||
1530 | 1530 | @Callable(i) | |
1531 | 1531 | func activateArtifact (artName,landAssetIdOpt) = { | |
1532 | 1532 | let prologActions = prolog(i) | |
1533 | 1533 | if ((size(i.payments) != 0)) | |
1534 | 1534 | then throw("No payments required") | |
1535 | 1535 | else { | |
1536 | 1536 | let addr = toString(i.caller) | |
1537 | 1537 | let result = match artName { | |
1538 | 1538 | case _ => | |
1539 | 1539 | if (("PRESALE" == $match0)) | |
1540 | 1540 | then activatePresaleArt(addr, landAssetIdOpt) | |
1541 | 1541 | else if (("ONBOARD" == $match0)) | |
1542 | 1542 | then activateOnboardArt(addr) | |
1543 | 1543 | else throw("Unknown artifact") | |
1544 | 1544 | } | |
1545 | 1545 | (result ++ prologActions) | |
1546 | 1546 | } | |
1547 | 1547 | } | |
1548 | 1548 | ||
1549 | 1549 | ||
1550 | 1550 | ||
1551 | 1551 | @Callable(i) | |
1552 | 1552 | func saveWarehouse (whStr,landAssetId) = if ((i.caller != economyContract)) | |
1553 | 1553 | then throw("Access denied") | |
1554 | 1554 | else { | |
1555 | 1555 | let whKey = keyWarehouseByLand(landAssetId) | |
1556 | 1556 | let wh = split_4C(whStr, ":") | |
1557 | 1557 | if ((size(wh) != 5)) | |
1558 | 1558 | then throw("warehouse string should contain 4 ':' separators") | |
1559 | 1559 | else { | |
1560 | 1560 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
1561 | 1561 | let loftO = getWarehouseOccupiedVol(wh) | |
1562 | 1562 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
1563 | 1563 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
1564 | 1564 | if ((0 > loftF)) | |
1565 | 1565 | then throw("Operation leads to negative free warehouse space") | |
1566 | 1566 | else { | |
1567 | 1567 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
1568 | 1568 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
1569 | 1569 | } | |
1570 | 1570 | } | |
1571 | 1571 | } | |
1572 | 1572 | ||
1573 | 1573 | ||
1574 | 1574 | ||
1575 | 1575 | @Callable(i) | |
1576 | 1576 | func setCustomName (assetId,customName,type) = { | |
1577 | 1577 | let prologActions = prolog(i) | |
1578 | 1578 | if ((size(i.payments) != 1)) | |
1579 | 1579 | then throw("Exactly one payment required") | |
1580 | 1580 | else { | |
1581 | 1581 | let pmt = value(i.payments[0]) | |
1582 | 1582 | if ((pmt.assetId != usdtAssetId)) | |
1583 | 1583 | then throw("Allowed USDT payment only!") | |
1584 | 1584 | else if ((pmt.amount != RENAMINGCOST)) | |
1585 | 1585 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
1586 | 1586 | else if (contains(customName, "__")) | |
1587 | 1587 | then throw(("Name should not contain '__': " + customName)) | |
1588 | 1588 | else if ((size(customName) > MAXNAMELEN)) | |
1589 | 1589 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
1590 | 1590 | else { | |
1591 | 1591 | let addr = toString(i.originCaller) | |
1592 | 1592 | let actions = match type { | |
1593 | 1593 | case _ => | |
1594 | 1594 | if (("ACCOUNT" == $match0)) | |
1595 | 1595 | then { | |
1596 | 1596 | let reverseKey = keyCustomNameToAddress(customName) | |
1597 | 1597 | let nameOwner = getString(reverseKey) | |
1598 | 1598 | if (isDefined(nameOwner)) | |
1599 | 1599 | then throw(("Name already registered: " + customName)) | |
1600 | 1600 | else { | |
1601 | 1601 | let addrToNameKey = keyAddressToCustomName(addr) | |
1602 | 1602 | let oldName = getString(addrToNameKey) | |
1603 | 1603 | let freeOld = if (isDefined(oldName)) | |
1604 | 1604 | then [DeleteEntry(keyCustomNameToAddress(value(oldName)))] | |
1605 | 1605 | else nil | |
1606 | 1606 | (((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
1607 | 1607 | } | |
1608 | 1608 | } | |
1609 | 1609 | else if (("LAND" == $match0)) | |
1610 | 1610 | then { | |
1611 | 1611 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1612 | 1612 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1613 | 1613 | if (!(isDefined(getInteger(timeKey)))) | |
1614 | 1614 | then throw((asset.name + " is not staked")) | |
1615 | 1615 | else { | |
1616 | 1616 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1617 | 1617 | if ((owner != addr)) | |
1618 | 1618 | then throw((LANDPREFIX + " is not yours")) | |
1619 | 1619 | else { | |
1620 | 1620 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
1621 | 1621 | let nameOwner = getString(reverseKey) | |
1622 | 1622 | if (isDefined(nameOwner)) | |
1623 | 1623 | then throw(("Name already registered: " + customName)) | |
1624 | 1624 | else { | |
1625 | 1625 | let assetToNameKey = keyLandAssetIdToCustomName(assetId) | |
1626 | 1626 | let oldName = getString(assetToNameKey) | |
1627 | 1627 | let freeOld = if (isDefined(oldName)) | |
1628 | 1628 | then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))] | |
1629 | 1629 | else nil | |
1630 | 1630 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
1631 | 1631 | } | |
1632 | 1632 | } | |
1633 | 1633 | } | |
1634 | 1634 | } | |
1635 | 1635 | else if (("DUCK" == $match0)) | |
1636 | 1636 | then { | |
1637 | 1637 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1638 | 1638 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1639 | 1639 | if (if (!(isDefined(getInteger(timeKey)))) | |
1640 | 1640 | then true | |
1641 | 1641 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
1642 | 1642 | then throw((asset.name + " is not staked")) | |
1643 | 1643 | else { | |
1644 | 1644 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1645 | 1645 | if ((owner != addr)) | |
1646 | 1646 | then throw((DUCKPREFIX + " is not yours")) | |
1647 | 1647 | else { | |
1648 | 1648 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
1649 | 1649 | let nameOwner = getString(reverseKey) | |
1650 | 1650 | if (isDefined(nameOwner)) | |
1651 | 1651 | then throw(("Name already registered: " + customName)) | |
1652 | 1652 | else { | |
1653 | 1653 | let assetToNameKey = keyDuckAssetIdToCustomName(assetId) | |
1654 | 1654 | let oldName = getString(assetToNameKey) | |
1655 | 1655 | let freeOld = if (isDefined(oldName)) | |
1656 | 1656 | then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))] | |
1657 | 1657 | else nil | |
1658 | 1658 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateDuckStatsInternal(assetId, xpCustomName)._1) | |
1659 | 1659 | } | |
1660 | 1660 | } | |
1661 | 1661 | } | |
1662 | 1662 | } | |
1663 | 1663 | else throw("Unknown entity type") | |
1664 | 1664 | } | |
1665 | 1665 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ prologActions), 0) | |
1666 | 1666 | } | |
1667 | 1667 | } | |
1668 | 1668 | } | |
1669 | 1669 | ||
1670 | 1670 | ||
1671 | 1671 | ||
1672 | 1672 | @Callable(i) | |
1673 | 1673 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
1674 | 1674 | then throw("Permission denied") | |
1675 | 1675 | else { | |
1676 | 1676 | let prologActions = prolog(i) | |
1677 | 1677 | if ((size(i.payments) != 0)) | |
1678 | 1678 | then throw("No payments required") | |
1679 | 1679 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
1680 | 1680 | then throw(("Invalid address: " + oldPlayer)) | |
1681 | 1681 | else { | |
1682 | 1682 | let newbieAddr = addressFromString(newPlayer) | |
1683 | 1683 | if (!(isDefined(newbieAddr))) | |
1684 | 1684 | then throw(("Invalid address: " + newPlayer)) | |
1685 | 1685 | else { | |
1686 | 1686 | let oldLastTx = getString(keyLastWeekTxIdByUser(oldPlayer)) | |
1687 | 1687 | if (!(isDefined(oldLastTx))) | |
1688 | 1688 | then throw("oldPlayer didn't do any tx in game") | |
1689 | 1689 | else if ((0 >= wavesBalance(value(newbieAddr)).available)) | |
1690 | 1690 | then throw("newPlayer has no WAVES") | |
1691 | 1691 | else { | |
1692 | 1692 | let oldsKey = keyOldies() | |
1693 | 1693 | let olds = getString(oldsKey) | |
1694 | 1694 | let oldies = if (isDefined(olds)) | |
1695 | 1695 | then split_4C(value(olds), "_") | |
1696 | 1696 | else nil | |
1697 | 1697 | if (containsElement(oldies, newPlayer)) | |
1698 | 1698 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
1699 | 1699 | else { | |
1700 | 1700 | let refByKey = keyAddressRefBy(newPlayer) | |
1701 | 1701 | let refBy = getString(refByKey) | |
1702 | 1702 | if (if (isDefined(refBy)) | |
1703 | 1703 | then isDefined(addressFromString(value(refBy))) | |
1704 | 1704 | else false) | |
1705 | 1705 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
1706 | 1706 | else { | |
1707 | 1707 | let refsKey = keyAddressReferrals(oldPlayer) | |
1708 | 1708 | let refs = getString(refsKey) | |
1709 | 1709 | let refsArray = if (isDefined(refs)) | |
1710 | 1710 | then split_4C(value(refs), "_") | |
1711 | 1711 | else nil | |
1712 | 1712 | if (containsElement(refsArray, newPlayer)) | |
1713 | 1713 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
1714 | 1714 | else { | |
1715 | 1715 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
1716 | 1716 | let newOlds = if (containsElement(oldies, oldPlayer)) | |
1717 | 1717 | then value(olds) | |
1718 | 1718 | else makeString_2C((oldies :+ oldPlayer), "_") | |
1719 | 1719 | $Tuple2(([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds)] ++ prologActions), 0) | |
1720 | 1720 | } | |
1721 | 1721 | } | |
1722 | 1722 | } | |
1723 | 1723 | } | |
1724 | 1724 | } | |
1725 | 1725 | } | |
1726 | 1726 | } | |
1727 | 1727 | ||
1728 | 1728 | ||
1729 | 1729 | ||
1730 | 1730 | @Callable(i) | |
1731 | 1731 | func distributePoints (strength,accuracy,intellect,endurance,dexterity) = { | |
1732 | 1732 | let prologActions = prolog(i) | |
1733 | 1733 | if ((size(i.payments) != 0)) | |
1734 | 1734 | then throw("No payments required") | |
1735 | 1735 | else { | |
1736 | 1736 | let addr = toString(i.originCaller) | |
1737 | 1737 | let virtWlgData = asAnyList(invoke(wlgContract, "checkWlgXpREADONLY", [addr], nil)) | |
1738 | 1738 | let virtWlgPoints = asInt(virtWlgData[1]) | |
1739 | 1739 | let $t0100244100634 = if ((0 >= virtWlgPoints)) | |
1740 | 1740 | then $Tuple2(0, nil) | |
1741 | 1741 | else { | |
1742 | 1742 | let deltaXP = asInt(invoke(wlgContract, "takeWlgXp", [addr], nil)) | |
1743 | 1743 | if ((deltaXP == deltaXP)) | |
1744 | 1744 | then $Tuple2(virtWlgPoints, [IntegerEntry(keyUserLevel(addr), asInt(virtWlgData[0])), IntegerEntry(keyUserXP(addr), asInt(virtWlgData[2]))]) | |
1745 | 1745 | else throw("Strict value is not equal to itself.") | |
1746 | 1746 | } | |
1747 | 1747 | let wlgPoints = $t0100244100634._1 | |
1748 | 1748 | let wlgActions = $t0100244100634._2 | |
1749 | 1749 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1750 | 1750 | let freeKeyAcc = keyUserFreePoints(addr) | |
1751 | 1751 | let freePointsAcc = (valueOrElse(getInteger(freeKeyAcc), 0) + wlgPoints) | |
1752 | 1752 | let freeKeyDuck = keyDuckFreePoints(duckAssetId) | |
1753 | 1753 | let freePointsDuck = valueOrElse(getInteger(freeKeyDuck), 0) | |
1754 | 1754 | let sumFree = (freePointsAcc + freePointsDuck) | |
1755 | 1755 | let sumToDistribute = ((((strength + accuracy) + intellect) + endurance) + dexterity) | |
1756 | 1756 | if ((sumToDistribute > sumFree)) | |
1757 | 1757 | then throw((("There are only " + toString(sumFree)) + " free points to distribute")) | |
1758 | 1758 | else { | |
1759 | 1759 | let charsKey = keyDuckChars(duckAssetId) | |
1760 | 1760 | let chars = split(valueOrElse(getString(charsKey), "0_0_0_0_0"), "_") | |
1761 | 1761 | let newAcc = (freePointsAcc - sumToDistribute) | |
1762 | 1762 | $Tuple2((([IntegerEntry(freeKeyAcc, if ((0 > newAcc)) | |
1763 | 1763 | then 0 | |
1764 | 1764 | else newAcc), IntegerEntry(freeKeyDuck, if ((0 > newAcc)) | |
1765 | 1765 | then (freePointsDuck + newAcc) | |
1766 | 1766 | 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))], "_"))] ++ prologActions) ++ wlgActions), 0) | |
1767 | 1767 | } | |
1768 | 1768 | } | |
1769 | 1769 | } | |
1770 | 1770 | ||
1771 | 1771 | ||
1772 | 1772 | ||
1773 | 1773 | @Callable(i) | |
1774 | 1774 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
1775 | 1775 | ||
1776 | 1776 | ||
1777 | 1777 | ||
1778 | 1778 | @Callable(i) | |
1779 | 1779 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
1780 | 1780 | let terrainCounts = countTerrains(terrains) | |
1781 | 1781 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
1782 | 1782 | } | |
1783 | 1783 | ||
1784 | 1784 | ||
1785 | 1785 | ||
1786 | 1786 | @Callable(i) | |
1787 | 1787 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
1788 | 1788 | ||
1789 | 1789 | ||
1790 | 1790 | ||
1791 | 1791 | @Callable(i) | |
1792 | 1792 | func getWarehouseREADONLY (landAssetId) = { | |
1793 | 1793 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1794 | 1794 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1795 | 1795 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1796 | 1796 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
1797 | 1797 | } | |
1798 | 1798 | ||
1799 | 1799 | ||
1800 | 1800 | ||
1801 | 1801 | @Callable(i) | |
1802 | 1802 | func saveLastTx () = if (!(containsElement([wlgContract, economyContract, tournamentContract, acresContract], i.caller))) | |
1803 | 1803 | then throw("Access denied") | |
1804 | 1804 | else $Tuple2(prolog(i), 42) | |
1805 | 1805 | ||
1806 | 1806 | ||
1807 | 1807 | ||
1808 | 1808 | @Callable(i) | |
1809 | 1809 | func updateDuckStats (duckAssetId,deltaXP) = if ((i.caller != economyContract)) | |
1810 | 1810 | then throw("Access denied") | |
1811 | 1811 | else updateDuckStatsInternal(duckAssetId, deltaXP) | |
1812 | 1812 | ||
1813 | 1813 | ||
1814 | 1814 | ||
1815 | 1815 | @Callable(i) | |
1816 | 1816 | func updateAccStats (addr,deltaXP) = if (!(containsElement([wlgContract, economyContract, acresContract], i.caller))) | |
1817 | 1817 | then throw("Access denied") | |
1818 | 1818 | else updateAccStatsInternal(addr, deltaXP) | |
1819 | 1819 | ||
1820 | 1820 | ||
1821 | 1821 | ||
1822 | 1822 | @Callable(i) | |
1823 | 1823 | func initDuckTourAttempt (duckAssetId) = if ((i.caller != tournamentContract)) | |
1824 | 1824 | then throw("Access denied") | |
1825 | 1825 | else { | |
1826 | 1826 | let keyHealth = keyDuckHealth(duckAssetId) | |
1827 | 1827 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1828 | 1828 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1829 | 1829 | let curLocKey = keyDuckLocation(duckAssetId) | |
1830 | 1830 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
1831 | 1831 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1832 | 1832 | let tourLocation = (toString(lastId) + "_T_0") | |
1833 | 1833 | $Tuple2([IntegerEntry(keySavedHealth(duckAssetId), curHealth), IntegerEntry(keyHealth, maxHP), StringEntry(keySavedLocation(duckAssetId), curLocation), StringEntry(curLocKey, tourLocation)], tourLocation) | |
1834 | 1834 | } | |
1835 | 1835 | ||
1836 | 1836 | ||
1837 | 1837 | ||
1838 | 1838 | @Callable(i) | |
1839 | 1839 | func breakAttempt () = { | |
1840 | 1840 | let prologActions = prolog(i) | |
1841 | 1841 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1842 | 1842 | let curLocKey = keyDuckLocation(duckAssetId) | |
1843 | 1843 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
1844 | 1844 | if ((split(curLocation, "_")[locIdxType] != "T")) | |
1845 | 1845 | then throw("Your duck is not in the tournament") | |
1846 | 1846 | else { | |
1847 | 1847 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
1848 | 1848 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
1849 | 1849 | $Tuple2(((prologActions :+ IntegerEntry(keyDuckHealth(duckAssetId), savedHealth)) :+ StringEntry(curLocKey, savedLocation)), curLocation) | |
1850 | 1850 | } | |
1851 | 1851 | } | |
1852 | 1852 | ||
1853 | 1853 | ||
1854 | 1854 | ||
1855 | 1855 | @Callable(i) | |
1856 | 1856 | func breakAttemptCallback () = if ((i.caller != tournamentContract)) | |
1857 | 1857 | then throw("Access denied") | |
1858 | 1858 | else { | |
1859 | 1859 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.originCaller))), "You don't have a duck staked") | |
1860 | 1860 | $Tuple2([IntegerEntry(keyDuckHealth(duckAssetId), getIntegerValue(keySavedHealth(duckAssetId))), StringEntry(keyDuckLocation(duckAssetId), getStringValue(keySavedLocation(duckAssetId)))], "breakAttemptCallback") | |
1861 | 1861 | } | |
1862 | 1862 | ||
1863 | 1863 | ||
1864 | 1864 | ||
1865 | 1865 | @Callable(i) | |
1866 | 1866 | func exitTournamentInternal (duckAssetId) = if ((i.caller != this)) | |
1867 | 1867 | then throw("Access denied") | |
1868 | 1868 | else { | |
1869 | 1869 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
1870 | 1870 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
1871 | 1871 | $Tuple2([IntegerEntry(keyDuckHealth(duckAssetId), savedHealth), StringEntry(keyDuckLocation(duckAssetId), savedLocation)], false) | |
1872 | 1872 | } | |
1873 | 1873 | ||
1874 | 1874 | ||
1875 | 1875 | ||
1876 | 1876 | @Callable(i) | |
1877 | 1877 | func processDelivery (duckAssetId) = if ((i.caller != this)) | |
1878 | 1878 | then throw("Access denied") | |
1879 | 1879 | else { | |
1880 | 1880 | let addr = toString(i.originCaller) | |
1881 | 1881 | let fundTotal = valueOrElse(getInteger(economyContract, deliveryFundKey), 0) | |
1882 | 1882 | if ((MIN_USDT_FEE_DELIVERY > fundTotal)) | |
1883 | 1883 | then throw(("Delivery is not available, fund=" + fixedPoint(fundTotal, 6))) | |
1884 | 1884 | else { | |
1885 | 1885 | let now = lastBlock.timestamp | |
1886 | 1886 | let countKey = keyUserDeliveryCount(addr) | |
1887 | 1887 | let lastDay = valueOrElse(getInteger(keyUserLastDeliveryDay(addr)), 0) | |
1888 | 1888 | let today = (now / DAYMILLIS) | |
1889 | 1889 | let count = if ((lastDay == today)) | |
1890 | 1890 | then valueOrElse(getInteger(countKey), 0) | |
1891 | 1891 | else 0 | |
1892 | 1892 | let acres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(addr)), 0) | |
1893 | 1893 | let allowedDeliveries = (ALLOWED_FREE_DELIVERIES + (acres / ACRES_FOR_DELIVERY_ATTEMPT)) | |
1894 | 1894 | if ((count >= allowedDeliveries)) | |
1895 | 1895 | then throw((("You already used " + toString(allowedDeliveries)) + " delivery attempts for today")) | |
1896 | 1896 | else { | |
1897 | 1897 | let globalCountKey = keyDuckDeliveryCount(duckAssetId) | |
1898 | 1898 | let reward = invoke(economyContract, "sendDeliveryReward", [addr], nil) | |
1899 | 1899 | $Tuple2([IntegerEntry(countKey, (count + 1)), IntegerEntry(keyUserLastDeliveryDay(addr), today), IntegerEntry(globalCountKey, (valueOrElse(getInteger(globalCountKey), 0) + 1))], reward) | |
1900 | 1900 | } | |
1901 | 1901 | } | |
1902 | 1902 | } | |
1903 | 1903 | ||
1904 | 1904 |
github/deemru/w8io/026f985 181.85 ms ◑