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