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