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