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