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