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