tx · 6eC4RBnryeTDBUxEMp7BurvJGySvR1jMgtPk8VQsRrDq 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.05500000 Waves 2024.11.22 17:02 [3382767] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "6eC4RBnryeTDBUxEMp7BurvJGySvR1jMgtPk8VQsRrDq", "fee": 5500000, "feeAssetId": null, "timestamp": 1732284140195, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "gJKGV3mDAyBaw9PxR1HcMV5PoNaDjXMLSMtRNUAS6oVBLWH6qxGt76CRc6BvT7enDfsGivRQ9QHpjx2YYFuzE1C" ], "script": "base64:BgKqAQgCEgMKAQgSBAoCCAESAwoBBBIAEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBIAEgQKAggIEgQKAggIEgQKAgEIEgQKAgEIEgQKAggIEgASAwoBARIECgIICBIECgIICBIFCgMICAgSBAoCCAgSBwoFAQEBAQESAwoBARIFCgMBAQgSAwoBCBIDCgEIEgASBAoCCAESBAoCCAESAwoBCBIAEgASAwoBCBIDCgEIvwEAFktTX1NFUEFSQVRFX1BVQkxJQ19LRVkHABNLU19BTExPV19ST0JPX0RVQ0tTBwAKREFZX01JTExJUwCAuJkpABRPTERfU1RBS0lOR19ERUFETElORQCA87jCsTIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAANwdWIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDADBRZLU19TRVBBUkFURV9QVUJMSUNfS0VZASCrF1ePFWfjWVRBsNZy62abxKPTZl7VmYZQ35g3H7IJCAEgT1PiGj9UqNadUk4THUYnVb2zU/Mse8lUVLD/Q8G0FCgDCQAAAgEBVAUHJG1hdGNoMAEgT1PiGj9UqNadUk4THUYnVb2zU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 3382767, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ExNkxWVaSZSQ2JM1yerLrYL2yBkzLXpmVbwtjpf2Cj36 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
179 | 179 | func keyBlocked () = "contractsBlocked" | |
180 | 180 | ||
181 | 181 | ||
182 | - | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
182 | + | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
183 | + | ||
184 | + | ||
185 | + | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
183 | 186 | ||
184 | 187 | ||
185 | 188 | func fixedPoint (val,decimals) = { | |
1106 | 1109 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1107 | 1110 | else false) | |
1108 | 1111 | then throw("Contracts are under maintenance") | |
1109 | - | else [StringEntry( | |
1112 | + | else [StringEntry(keyCurWeekTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId))] | |
1110 | 1113 | ||
1111 | 1114 | ||
1112 | 1115 | func unstakeLandInternal (addr,landAssetId) = { | |
1516 | 1519 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1517 | 1520 | else { | |
1518 | 1521 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1519 | - | let salt = toBytes(valueOrElse(getString( | |
1522 | + | let salt = toBytes(valueOrElse(getString(keyLastWeekTxIdByUser(addr)), "")) | |
1520 | 1523 | let rand = getRandomNumber(maxValue, salt, entropy) | |
1521 | 1524 | $Tuple2(([DeleteEntry(finishKey)] ++ prologActions), rand) | |
1522 | 1525 | } | |
1680 | 1683 | if (!(isDefined(newbieAddr))) | |
1681 | 1684 | then throw(("Invalid address: " + newPlayer)) | |
1682 | 1685 | else { | |
1683 | - | let oldLastTx = getString( | |
1686 | + | let oldLastTx = getString(keyLastWeekTxIdByUser(oldPlayer)) | |
1684 | 1687 | if (!(isDefined(oldLastTx))) | |
1685 | 1688 | then throw("oldPlayer didn't do any tx in game") | |
1686 | 1689 | else if ((0 >= wavesBalance(value(newbieAddr)).available)) | |
1733 | 1736 | let addr = toString(i.originCaller) | |
1734 | 1737 | let virtWlgData = asAnyList(invoke(wlgContract, "checkWlgXpREADONLY", [addr], nil)) | |
1735 | 1738 | let virtWlgPoints = asInt(virtWlgData[1]) | |
1736 | - | let $ | |
1739 | + | let $t0100244100634 = if ((0 >= virtWlgPoints)) | |
1737 | 1740 | then $Tuple2(0, nil) | |
1738 | 1741 | else { | |
1739 | 1742 | let deltaXP = asInt(invoke(wlgContract, "takeWlgXp", [addr], nil)) | |
1741 | 1744 | then $Tuple2(virtWlgPoints, [IntegerEntry(keyUserLevel(addr), asInt(virtWlgData[0])), IntegerEntry(keyUserXP(addr), asInt(virtWlgData[2]))]) | |
1742 | 1745 | else throw("Strict value is not equal to itself.") | |
1743 | 1746 | } | |
1744 | - | let wlgPoints = $ | |
1745 | - | let wlgActions = $ | |
1747 | + | let wlgPoints = $t0100244100634._1 | |
1748 | + | let wlgActions = $t0100244100634._2 | |
1746 | 1749 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1747 | 1750 | let freeKeyAcc = keyUserFreePoints(addr) | |
1748 | 1751 | let freePointsAcc = (valueOrElse(getInteger(freeKeyAcc), 0) + wlgPoints) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let KS_SEPARATE_PUBLIC_KEY = false | |
5 | 5 | ||
6 | 6 | let KS_ALLOW_ROBO_DUCKS = false | |
7 | 7 | ||
8 | 8 | let DAY_MILLIS = 86400000 | |
9 | 9 | ||
10 | 10 | let OLD_STAKING_DEADLINE = 1731279600000 | |
11 | 11 | ||
12 | 12 | let chain = take(drop(this.bytes, 1), 1) | |
13 | 13 | ||
14 | 14 | let pub = match chain { | |
15 | 15 | case _ => | |
16 | 16 | if ((base58'2W' == $match0)) | |
17 | 17 | then if (KS_SEPARATE_PUBLIC_KEY) | |
18 | 18 | then base58'CWsMtTZC5BjjoL4Q1ayW4Wwb1ehGACQB6DrKyPgotKfm' | |
19 | 19 | else base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
20 | 20 | else if ((base58'2T' == $match0)) | |
21 | 21 | then base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
22 | 22 | else throw("Unknown chain") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | let usdtAssetId = match chain { | |
26 | 26 | case _ => | |
27 | 27 | if ((base58'2W' == $match0)) | |
28 | 28 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
29 | 29 | else if ((base58'2T' == $match0)) | |
30 | 30 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
31 | 31 | else throw("Unknown chain") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | let defaultRestAddressStr = match chain { | |
35 | 35 | case _ => | |
36 | 36 | if ((base58'2W' == $match0)) | |
37 | 37 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
38 | 38 | else if ((base58'2T' == $match0)) | |
39 | 39 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
40 | 40 | else throw("Unknown chain") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | let acres2AddressStr = match chain { | |
44 | 44 | case _ => | |
45 | 45 | if ((base58'2W' == $match0)) | |
46 | 46 | then "3P4UH3T9nXpMNpUmSmQjPmEz3G85t3zn6eA" | |
47 | 47 | else if ((base58'2T' == $match0)) | |
48 | 48 | then "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh" | |
49 | 49 | else throw("Unknown chain") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | let arbitrageDelay = match chain { | |
53 | 53 | case _ => | |
54 | 54 | if ((base58'2W' == $match0)) | |
55 | 55 | then DAY_MILLIS | |
56 | 56 | else if ((base58'2T' == $match0)) | |
57 | 57 | then 60000 | |
58 | 58 | else throw("Unknown chain") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | let SEP = "__" | |
62 | 62 | ||
63 | 63 | let MULT6 = 1000000 | |
64 | 64 | ||
65 | 65 | let MULT8 = 100000000 | |
66 | 66 | ||
67 | 67 | let SSIZE = 25 | |
68 | 68 | ||
69 | 69 | let MSIZE = 100 | |
70 | 70 | ||
71 | 71 | let LSIZE = 225 | |
72 | 72 | ||
73 | 73 | let XLSIZE = 400 | |
74 | 74 | ||
75 | 75 | let XXLSIZE = 625 | |
76 | 76 | ||
77 | 77 | let ITER6 = [0, 1, 2, 3, 4, 5] | |
78 | 78 | ||
79 | 79 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | let IdxCfgEconomyDapp = 2 | |
83 | 83 | ||
84 | 84 | let IdxCfgGovernanceDapp = 3 | |
85 | 85 | ||
86 | 86 | let IdxCfgWlgDapp = 4 | |
87 | 87 | ||
88 | 88 | let IdxCfgTournamentDapp = 7 | |
89 | 89 | ||
90 | 90 | let IdxCfgAcresDapp = 8 | |
91 | 91 | ||
92 | 92 | func keyRestCfg () = "%s__restConfig" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyRestAddress () = "%s__restAddr" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
105 | 105 | ||
106 | 106 | let restCfg = readRestCfgOrFail(restContract) | |
107 | 107 | ||
108 | 108 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
109 | 109 | ||
110 | 110 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
111 | 111 | ||
112 | 112 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
113 | 113 | ||
114 | 114 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
115 | 115 | ||
116 | 116 | let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp) | |
117 | 117 | ||
118 | 118 | let recLandNum = 0 | |
119 | 119 | ||
120 | 120 | let recLandSize = 1 | |
121 | 121 | ||
122 | 122 | let recTerrains = 2 | |
123 | 123 | ||
124 | 124 | let recContinent = 3 | |
125 | 125 | ||
126 | 126 | let acresAssetIdKey = "acresAssetId" | |
127 | 127 | ||
128 | 128 | let acresAssetId = valueOrErrorMessage(getBinary(acresContract, acresAssetIdKey), "ACRES is not issued yet") | |
129 | 129 | ||
130 | 130 | let randomDelay = 2 | |
131 | 131 | ||
132 | 132 | func keyCommit (address) = ("finishBlockFor_" + address) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyResProportions () = "resTypesProportions" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyResTypesByContinent (continent) = ("resTypesByContinent_" + continent) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func asInt (v) = match v { | |
148 | 148 | case n: Int => | |
149 | 149 | n | |
150 | 150 | case _ => | |
151 | 151 | throw("fail to cast into Int") | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func asAnyList (v) = match v { | |
156 | 156 | case l: List[Any] => | |
157 | 157 | l | |
158 | 158 | case _ => | |
159 | 159 | throw("fail to cast into List[Any]") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func numPiecesBySize (landSize) = match landSize { | |
164 | 164 | case _ => | |
165 | 165 | if (("S" == $match0)) | |
166 | 166 | then SSIZE | |
167 | 167 | else if (("M" == $match0)) | |
168 | 168 | then MSIZE | |
169 | 169 | else if (("L" == $match0)) | |
170 | 170 | then LSIZE | |
171 | 171 | else if (("XL" == $match0)) | |
172 | 172 | then XLSIZE | |
173 | 173 | else if (("XXL" == $match0)) | |
174 | 174 | then XXLSIZE | |
175 | 175 | else throw("Unknown land size") | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyBlocked () = "contractsBlocked" | |
180 | 180 | ||
181 | 181 | ||
182 | - | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
182 | + | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
183 | + | ||
184 | + | ||
185 | + | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
183 | 186 | ||
184 | 187 | ||
185 | 188 | func fixedPoint (val,decimals) = { | |
186 | 189 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
187 | 190 | let lowPart = toString((val % tenPow)) | |
188 | 191 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
189 | 192 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
190 | 193 | } | |
191 | 194 | ||
192 | 195 | ||
193 | 196 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
194 | 197 | then throw("maxValue should be > 0") | |
195 | 198 | else { | |
196 | 199 | let randomHash = sha256_16Kb((salt + entropy)) | |
197 | 200 | (toInt(randomHash) % maxValue) | |
198 | 201 | } | |
199 | 202 | ||
200 | 203 | ||
201 | 204 | func finalTime () = min([lastBlock.timestamp, OLD_STAKING_DEADLINE]) | |
202 | 205 | ||
203 | 206 | ||
204 | 207 | let LANDPREFIX = "LAND" | |
205 | 208 | ||
206 | 209 | let DUCKPREFIX = "DUCK" | |
207 | 210 | ||
208 | 211 | let ROBO_PREFIX = "ROBO" | |
209 | 212 | ||
210 | 213 | let ARTPRESALE = "PRESALE" | |
211 | 214 | ||
212 | 215 | let NUMRES = 6 | |
213 | 216 | ||
214 | 217 | let MAX_LANDS_STAKED_BY_USER = 25 | |
215 | 218 | ||
216 | 219 | let DAILYRESBYPIECE = 3456000 | |
217 | 220 | ||
218 | 221 | let WHMULTIPLIER = 10000000000 | |
219 | 222 | ||
220 | 223 | let DEFAULTLOCATION = "Africa_F_Africa" | |
221 | 224 | ||
222 | 225 | let RESOURCEPRICEMIN = 39637 | |
223 | 226 | ||
224 | 227 | let MIN_USDT_FEE_DELIVERY = 50000 | |
225 | 228 | ||
226 | 229 | let USDT2ACRES_MULTIPLIER = 10 | |
227 | 230 | ||
228 | 231 | let ALLOWED_FREE_DELIVERIES = 0 | |
229 | 232 | ||
230 | 233 | let ACRES_FOR_DELIVERY_ATTEMPT = 200000000 | |
231 | 234 | ||
232 | 235 | let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3", "Mine L1", "Mine L2", "Mine L3", "Trap L1", "Trap L2", "Trap L3", "Boom-Dog L1", "Boom-Dog L2", "Boom-Dog L3"] | |
233 | 236 | ||
234 | 237 | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_", "23_23_5_20_23_6_35_2_100_0,0,0,0,0,0,0_", "23_23_5_20_23_6_70_2_150_0,0,0,0,0,0,0_", "23_23_5_20_23_6_105_2_200_0,0,0,0,0,0,0_"] | |
235 | 238 | ||
236 | 239 | let rIdxCoeff = 6 | |
237 | 240 | ||
238 | 241 | let rIdxRequirements = 9 | |
239 | 242 | ||
240 | 243 | let rIdxSlots = 10 | |
241 | 244 | ||
242 | 245 | let PRODUCTPKGSIZE = 10 | |
243 | 246 | ||
244 | 247 | let whIdxLevels = 0 | |
245 | 248 | ||
246 | 249 | let whIdxRes = 1 | |
247 | 250 | ||
248 | 251 | let whIdxMat = 2 | |
249 | 252 | ||
250 | 253 | let whIdxProd = 3 | |
251 | 254 | ||
252 | 255 | let whIdxLOFT = 4 | |
253 | 256 | ||
254 | 257 | let volLocked = 0 | |
255 | 258 | ||
256 | 259 | let volOccupied = 1 | |
257 | 260 | ||
258 | 261 | let volFree = 2 | |
259 | 262 | ||
260 | 263 | let volTotal = 3 | |
261 | 264 | ||
262 | 265 | let bpIdxLevel = 0 | |
263 | 266 | ||
264 | 267 | let bpIdxRes = 1 | |
265 | 268 | ||
266 | 269 | let bpIdxMat = 2 | |
267 | 270 | ||
268 | 271 | let bpIdxProd = 3 | |
269 | 272 | ||
270 | 273 | let locIdxType = 1 | |
271 | 274 | ||
272 | 275 | let locIdxId = 2 | |
273 | 276 | ||
274 | 277 | func keyLandAssetIdToOwner (assetId) = ("no_" + assetId) | |
275 | 278 | ||
276 | 279 | ||
277 | 280 | func keyLandAssetIdToCustomName (assetId) = ("lcna_" + assetId) | |
278 | 281 | ||
279 | 282 | ||
280 | 283 | func keyStakedTimeByAssetId (assetId) = ("st_" + assetId) | |
281 | 284 | ||
282 | 285 | ||
283 | 286 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["las", type, assetId], "_") | |
284 | 287 | ||
285 | 288 | ||
286 | 289 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("sttao_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
287 | 290 | ||
288 | 291 | ||
289 | 292 | func keyWarehouseByLand (landAssetId) = ("wh_" + landAssetId) | |
290 | 293 | ||
291 | 294 | ||
292 | 295 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
293 | 296 | ||
294 | 297 | ||
295 | 298 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
296 | 299 | ||
297 | 300 | ||
298 | 301 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
299 | 302 | ||
300 | 303 | ||
301 | 304 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
302 | 305 | ||
303 | 306 | ||
304 | 307 | func keyOnboardArtActivatedOnDuck (duckAssetId) = ("onboardArtActivatedOnDuck_" + duckAssetId) | |
305 | 308 | ||
306 | 309 | ||
307 | 310 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
308 | 311 | ||
309 | 312 | ||
310 | 313 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
311 | 314 | ||
312 | 315 | ||
313 | 316 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
314 | 317 | ||
315 | 318 | ||
316 | 319 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
317 | 320 | ||
318 | 321 | ||
319 | 322 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
320 | 323 | ||
321 | 324 | ||
322 | 325 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
323 | 326 | ||
324 | 327 | ||
325 | 328 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
326 | 329 | ||
327 | 330 | ||
328 | 331 | let deliveryFundKey = "deliveryFund" | |
329 | 332 | ||
330 | 333 | let lastTourIdKey = "%s__lastTourId" | |
331 | 334 | ||
332 | 335 | let SCALE8 = 100000000 | |
333 | 336 | ||
334 | 337 | let xpLevelScale = 3200 | |
335 | 338 | ||
336 | 339 | let xpLevelRecipPow = 4000 | |
337 | 340 | ||
338 | 341 | let numPointsOnLevelUp = 3 | |
339 | 342 | ||
340 | 343 | let requirements = ["Strength", "Accuracy", "Intellect", "Endurance", "Dexterity", "Level", "Health"] | |
341 | 344 | ||
342 | 345 | let charStrength = 0 | |
343 | 346 | ||
344 | 347 | let charAccuracy = 1 | |
345 | 348 | ||
346 | 349 | let charIntellect = 2 | |
347 | 350 | ||
348 | 351 | let charEndurance = 3 | |
349 | 352 | ||
350 | 353 | let charDexterity = 4 | |
351 | 354 | ||
352 | 355 | let NUMMAINAUX = 2 | |
353 | 356 | ||
354 | 357 | let MAXSLOTS = 2 | |
355 | 358 | ||
356 | 359 | let MAXPRODINSLOT = 30 | |
357 | 360 | ||
358 | 361 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
359 | 362 | ||
360 | 363 | ||
361 | 364 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
362 | 365 | ||
363 | 366 | ||
364 | 367 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
365 | 368 | ||
366 | 369 | ||
367 | 370 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
368 | 371 | ||
369 | 372 | ||
370 | 373 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
371 | 374 | ||
372 | 375 | ||
373 | 376 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
374 | 377 | ||
375 | 378 | ||
376 | 379 | func keyUserXP (addr) = ("userXP_" + addr) | |
377 | 380 | ||
378 | 381 | ||
379 | 382 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
380 | 383 | ||
381 | 384 | ||
382 | 385 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
383 | 386 | ||
384 | 387 | ||
385 | 388 | func keySavedHealth (duckAssetId) = ("savedHealth_" + duckAssetId) | |
386 | 389 | ||
387 | 390 | ||
388 | 391 | func keySavedLocation (duckAssetId) = ("savedLocation_" + duckAssetId) | |
389 | 392 | ||
390 | 393 | ||
391 | 394 | func keyDuckDeliveryCount (duckAssetId) = ("totalDeliveryCountByDuck_" + duckAssetId) | |
392 | 395 | ||
393 | 396 | ||
394 | 397 | func keyUserDeliveryCount (addr) = ("userDeliveryCount_" + addr) | |
395 | 398 | ||
396 | 399 | ||
397 | 400 | func keyUserLastDeliveryDay (addr) = ("userLastDeliveryDay_" + addr) | |
398 | 401 | ||
399 | 402 | ||
400 | 403 | let xpClaim = 10000 | |
401 | 404 | ||
402 | 405 | let xpCustomName = 1000000 | |
403 | 406 | ||
404 | 407 | let xpOnboard = 1000000 | |
405 | 408 | ||
406 | 409 | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
407 | 410 | ||
408 | 411 | ||
409 | 412 | func maxHealth (level) = (100 + level) | |
410 | 413 | ||
411 | 414 | ||
412 | 415 | func levelUp (currLevel,newXP) = { | |
413 | 416 | let newLevel = levelByXP(newXP) | |
414 | 417 | [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))] | |
415 | 418 | } | |
416 | 419 | ||
417 | 420 | ||
418 | 421 | let DAYMILLIS = 86400000 | |
419 | 422 | ||
420 | 423 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
421 | 424 | ||
422 | 425 | ||
423 | 426 | func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
424 | 427 | ||
425 | 428 | ||
426 | 429 | let RENAMINGCOST = 5000000 | |
427 | 430 | ||
428 | 431 | let MAXNAMELEN = 50 | |
429 | 432 | ||
430 | 433 | let PRESALENUMLANDS = 500 | |
431 | 434 | ||
432 | 435 | func keyLandCustomNameToAssetId (name) = ("lcn_" + name) | |
433 | 436 | ||
434 | 437 | ||
435 | 438 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("ilao_" + assetId) + "_") + ownerAddr) | |
436 | 439 | ||
437 | 440 | ||
438 | 441 | func keyLandNumToOwner (landNum) = ("lo_" + landNum) | |
439 | 442 | ||
440 | 443 | ||
441 | 444 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
442 | 445 | ||
443 | 446 | ||
444 | 447 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
445 | 448 | ||
446 | 449 | ||
447 | 450 | func keyOldies () = "oldiesList" | |
448 | 451 | ||
449 | 452 | ||
450 | 453 | let claimModeWh = 0 | |
451 | 454 | ||
452 | 455 | let claimModeDuck = 1 | |
453 | 456 | ||
454 | 457 | let claimModeWhThenDuck = 2 | |
455 | 458 | ||
456 | 459 | func distributeByWeights (total,weights) = { | |
457 | 460 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
458 | 461 | if ((0 >= sum)) | |
459 | 462 | then throw("Zero weights sum") | |
460 | 463 | else { | |
461 | 464 | let norm6 = fraction(total, MULT6, sum) | |
462 | 465 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
463 | 466 | ||
464 | 467 | let $l = weights | |
465 | 468 | let $s = size($l) | |
466 | 469 | let $acc0 = nil | |
467 | 470 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
468 | 471 | then $a | |
469 | 472 | else normalizer($a, $l[$i]) | |
470 | 473 | ||
471 | 474 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
472 | 475 | then $a | |
473 | 476 | else throw("List size exceeds 6") | |
474 | 477 | ||
475 | 478 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
476 | 479 | } | |
477 | 480 | } | |
478 | 481 | ||
479 | 482 | ||
480 | 483 | func getNeededMaterials (total) = { | |
481 | 484 | let props = split(value(getString(keyResProportions())), "_") | |
482 | 485 | if ((size(props) != NUMRES)) | |
483 | 486 | then throw("Wrong proportions data") | |
484 | 487 | else { | |
485 | 488 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
486 | 489 | distributeByWeights(total, r) | |
487 | 490 | } | |
488 | 491 | } | |
489 | 492 | ||
490 | 493 | ||
491 | 494 | func prodStrToBytes (prodStr) = { | |
492 | 495 | let pList = if ((prodStr == "")) | |
493 | 496 | then nil | |
494 | 497 | else split_4C(prodStr, "_") | |
495 | 498 | func toBV (acc,recipe) = { | |
496 | 499 | let j = (size(acc) / 8) | |
497 | 500 | let curr = if ((size(pList) > j)) | |
498 | 501 | then parseIntValue(pList[j]) | |
499 | 502 | else 0 | |
500 | 503 | (acc + toBytes(curr)) | |
501 | 504 | } | |
502 | 505 | ||
503 | 506 | let $l = productionMatrix | |
504 | 507 | let $s = size($l) | |
505 | 508 | let $acc0 = base58'' | |
506 | 509 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
507 | 510 | then $a | |
508 | 511 | else toBV($a, $l[$i]) | |
509 | 512 | ||
510 | 513 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
511 | 514 | then $a | |
512 | 515 | else throw("List size exceeds 50") | |
513 | 516 | ||
514 | 517 | $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) | |
515 | 518 | } | |
516 | 519 | ||
517 | 520 | ||
518 | 521 | func bytesToProdStr (bv) = { | |
519 | 522 | func fromBV (acc,recipe) = { | |
520 | 523 | let j = size(acc) | |
521 | 524 | let b = take(drop(bv, (8 * j)), 8) | |
522 | 525 | (acc :+ toString(toInt(b))) | |
523 | 526 | } | |
524 | 527 | ||
525 | 528 | makeString_2C({ | |
526 | 529 | let $l = productionMatrix | |
527 | 530 | let $s = size($l) | |
528 | 531 | let $acc0 = nil | |
529 | 532 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
530 | 533 | then $a | |
531 | 534 | else fromBV($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 50") | |
536 | 539 | ||
537 | 540 | $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) | |
538 | 541 | }, "_") | |
539 | 542 | } | |
540 | 543 | ||
541 | 544 | ||
542 | 545 | func checkStatRequirements (duckStats,reqs) = { | |
543 | 546 | func check (acc,j) = { | |
544 | 547 | let buff = if ((size(duckStats) > (7 + j))) | |
545 | 548 | then duckStats[(7 + j)] | |
546 | 549 | else 0 | |
547 | 550 | if ((parseIntValue(reqs[j]) > (duckStats[j] + buff))) | |
548 | 551 | then throw(("Requirement not satisfied: " + requirements[j])) | |
549 | 552 | else true | |
550 | 553 | } | |
551 | 554 | ||
552 | 555 | let $l = [0, 1, 2, 3, 4, 5, 6] | |
553 | 556 | let $s = size($l) | |
554 | 557 | let $acc0 = false | |
555 | 558 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
556 | 559 | then $a | |
557 | 560 | else check($a, $l[$i]) | |
558 | 561 | ||
559 | 562 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
560 | 563 | then $a | |
561 | 564 | else throw("List size exceeds 7") | |
562 | 565 | ||
563 | 566 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7) | |
564 | 567 | } | |
565 | 568 | ||
566 | 569 | ||
567 | 570 | func addProdB (idxCnt,pList,isPositive,segment,mainAux,slot,duckStats) = { | |
568 | 571 | let parts = split(idxCnt, ":") | |
569 | 572 | if ((size(parts) != 2)) | |
570 | 573 | then throw("Incorrect format, should be index:amount") | |
571 | 574 | else if (if (!(isPositive)) | |
572 | 575 | then (size(parts[0]) != 2) | |
573 | 576 | else false) | |
574 | 577 | then throw("Product idx should be 2 digits, zero padded") | |
575 | 578 | else { | |
576 | 579 | let productIdx = parseIntValue(parts[0]) | |
577 | 580 | let count = parseIntValue(parts[1]) | |
578 | 581 | if (if ((0 > productIdx)) | |
579 | 582 | then true | |
580 | 583 | else (productIdx >= size(productionMatrix))) | |
581 | 584 | then throw("Unknown product idx") | |
582 | 585 | else if ((0 > count)) | |
583 | 586 | then throw("Count can't be negative") | |
584 | 587 | else if ((count > MAXPRODINSLOT)) | |
585 | 588 | then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx])) | |
586 | 589 | else if ((count == 0)) | |
587 | 590 | then $Tuple2(pList, false) | |
588 | 591 | else { | |
589 | 592 | let head = take(pList, (8 * productIdx)) | |
590 | 593 | let curr = toInt(take(drop(pList, (8 * productIdx)), 8)) | |
591 | 594 | let tail = drop(pList, (8 * (productIdx + 1))) | |
592 | 595 | let recipe = split(productionMatrix[productIdx], "_") | |
593 | 596 | if (if (!(isPositive)) | |
594 | 597 | then (count > curr) | |
595 | 598 | else false) | |
596 | 599 | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count))) | |
597 | 600 | else { | |
598 | 601 | let isBigItem = if (if (!(isPositive)) | |
599 | 602 | then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ",")) | |
600 | 603 | else false) | |
601 | 604 | then { | |
602 | 605 | let compat = recipe[rIdxSlots] | |
603 | 606 | if ((compat == "")) | |
604 | 607 | then throw("Item cannot be equipped") | |
605 | 608 | else { | |
606 | 609 | let c = parseIntValue(compat) | |
607 | 610 | let cSeg = (c / 100) | |
608 | 611 | if ((segment != cSeg)) | |
609 | 612 | then throw("Segment incompatible") | |
610 | 613 | else { | |
611 | 614 | let cMainAux = ((c % 100) / 10) | |
612 | 615 | if ((mainAux != cMainAux)) | |
613 | 616 | then throw("Slot incompatible") | |
614 | 617 | else { | |
615 | 618 | let cNumSlots = (c % 10) | |
616 | 619 | if (if ((slot != 0)) | |
617 | 620 | then (cNumSlots > 1) | |
618 | 621 | else false) | |
619 | 622 | then throw("Big items should occupy slot 0") | |
620 | 623 | else (cNumSlots > 1) | |
621 | 624 | } | |
622 | 625 | } | |
623 | 626 | } | |
624 | 627 | } | |
625 | 628 | else false | |
626 | 629 | $Tuple2(((head + toBytes((curr + (if (isPositive) | |
627 | 630 | then count | |
628 | 631 | else -(count))))) + tail), isBigItem) | |
629 | 632 | } | |
630 | 633 | } | |
631 | 634 | } | |
632 | 635 | } | |
633 | 636 | ||
634 | 637 | ||
635 | 638 | func slotsGroupB (g,bpIn,isPositive,segment,mainAux,stats) = if ((g != "")) | |
636 | 639 | then { | |
637 | 640 | let slots = split(g, ",") | |
638 | 641 | if ((size(slots) > MAXSLOTS)) | |
639 | 642 | then throw("Wrong slots format") | |
640 | 643 | else { | |
641 | 644 | let s0 = slots[0] | |
642 | 645 | let s1 = if ((size(slots) > 1)) | |
643 | 646 | then slots[1] | |
644 | 647 | else "" | |
645 | 648 | if (if ((s0 == "")) | |
646 | 649 | then (s1 == "") | |
647 | 650 | else false) | |
648 | 651 | then bpIn | |
649 | 652 | else { | |
650 | 653 | let tmpS0 = if ((s0 != "")) | |
651 | 654 | then addProdB(s0, bpIn, isPositive, segment, mainAux, 0, stats) | |
652 | 655 | else $Tuple2(bpIn, false) | |
653 | 656 | if ((s1 != "")) | |
654 | 657 | then if (tmpS0._2) | |
655 | 658 | then throw("Big item already occupies slot") | |
656 | 659 | else addProdB(s1, tmpS0._1, isPositive, segment, mainAux, 1, stats)._1 | |
657 | 660 | else tmpS0._1 | |
658 | 661 | } | |
659 | 662 | } | |
660 | 663 | } | |
661 | 664 | else bpIn | |
662 | 665 | ||
663 | 666 | ||
664 | 667 | func dressB (segList,pBytes,isPositive,stats) = { | |
665 | 668 | func segment (acc,seg) = { | |
666 | 669 | let j = acc._1 | |
667 | 670 | let mainAux = split(seg, ";") | |
668 | 671 | if ((size(mainAux) != NUMMAINAUX)) | |
669 | 672 | then throw("Wrong segment format") | |
670 | 673 | else { | |
671 | 674 | let m = mainAux[0] | |
672 | 675 | let a = mainAux[1] | |
673 | 676 | if (if ((m == "")) | |
674 | 677 | then (a == "") | |
675 | 678 | else false) | |
676 | 679 | then $Tuple2((j + 1), acc._2) | |
677 | 680 | else { | |
678 | 681 | let tmpM = slotsGroupB(m, acc._2, isPositive, j, 0, stats) | |
679 | 682 | $Tuple2((j + 1), slotsGroupB(a, tmpM, isPositive, j, 1, stats)) | |
680 | 683 | } | |
681 | 684 | } | |
682 | 685 | } | |
683 | 686 | ||
684 | 687 | ( let $l = segList | |
685 | 688 | let $s = size($l) | |
686 | 689 | let $acc0 = $Tuple2(0, pBytes) | |
687 | 690 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
688 | 691 | then $a | |
689 | 692 | else segment($a, $l[$i]) | |
690 | 693 | ||
691 | 694 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
692 | 695 | then $a | |
693 | 696 | else throw("List size exceeds 6") | |
694 | 697 | ||
695 | 698 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6))._2 | |
696 | 699 | } | |
697 | 700 | ||
698 | 701 | ||
699 | 702 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
700 | 703 | then throw("Wrong proportions data") | |
701 | 704 | else { | |
702 | 705 | func updater (acc,i) = { | |
703 | 706 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
704 | 707 | if ((0 > result)) | |
705 | 708 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
706 | 709 | else (acc :+ toString(result)) | |
707 | 710 | } | |
708 | 711 | ||
709 | 712 | let $l = ITER6 | |
710 | 713 | let $s = size($l) | |
711 | 714 | let $acc0 = nil | |
712 | 715 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
713 | 716 | then $a | |
714 | 717 | else updater($a, $l[$i]) | |
715 | 718 | ||
716 | 719 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
717 | 720 | then $a | |
718 | 721 | else throw("List size exceeds 6") | |
719 | 722 | ||
720 | 723 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
721 | 724 | } | |
722 | 725 | ||
723 | 726 | ||
724 | 727 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
725 | 728 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
726 | 729 | makeString(updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign), "_") | |
727 | 730 | } | |
728 | 731 | ||
729 | 732 | ||
730 | 733 | 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)] | |
731 | 734 | ||
732 | 735 | ||
733 | 736 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
734 | 737 | func adder (acc,i) = { | |
735 | 738 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
736 | 739 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
737 | 740 | } | |
738 | 741 | ||
739 | 742 | let r = { | |
740 | 743 | let $l = ITER6 | |
741 | 744 | let $s = size($l) | |
742 | 745 | let $acc0 = nil | |
743 | 746 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
744 | 747 | then $a | |
745 | 748 | else adder($a, $l[$i]) | |
746 | 749 | ||
747 | 750 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
748 | 751 | then $a | |
749 | 752 | else throw("List size exceeds 6") | |
750 | 753 | ||
751 | 754 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
752 | 755 | } | |
753 | 756 | makeString(r, "_") | |
754 | 757 | } | |
755 | 758 | ||
756 | 759 | ||
757 | 760 | func virtClaimAddRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
758 | 761 | func adder (acc,i) = { | |
759 | 762 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
760 | 763 | let totalResType = (parseIntValue(currentRes[i]) + resOfType) | |
761 | 764 | $Tuple2((acc._1 :+ totalResType), (acc._2 + totalResType)) | |
762 | 765 | } | |
763 | 766 | ||
764 | 767 | let $l = ITER6 | |
765 | 768 | let $s = size($l) | |
766 | 769 | let $acc0 = $Tuple2(nil, 0) | |
767 | 770 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
768 | 771 | then $a | |
769 | 772 | else adder($a, $l[$i]) | |
770 | 773 | ||
771 | 774 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
772 | 775 | then $a | |
773 | 776 | else throw("List size exceeds 6") | |
774 | 777 | ||
775 | 778 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
776 | 779 | } | |
777 | 780 | ||
778 | 781 | ||
779 | 782 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
780 | 783 | func adder (acc,terrainCount) = { | |
781 | 784 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCount) * landSizeIndex) | |
782 | 785 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
783 | 786 | } | |
784 | 787 | ||
785 | 788 | let $l = terrainCounts | |
786 | 789 | let $s = size($l) | |
787 | 790 | let $acc0 = $Tuple2(nil, 0) | |
788 | 791 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
789 | 792 | then $a | |
790 | 793 | else adder($a, $l[$i]) | |
791 | 794 | ||
792 | 795 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
793 | 796 | then $a | |
794 | 797 | else throw("List size exceeds 6") | |
795 | 798 | ||
796 | 799 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
797 | 800 | } | |
798 | 801 | ||
799 | 802 | ||
800 | 803 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
801 | 804 | let resListToClaim = resToClaim._1 | |
802 | 805 | let resAmToClaim = resToClaim._2 | |
803 | 806 | if ((resAmToClaim == 0)) | |
804 | 807 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
805 | 808 | else if ((whSpaceLeft >= resAmToClaim)) | |
806 | 809 | then { | |
807 | 810 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
808 | 811 | ||
809 | 812 | let r = { | |
810 | 813 | let $l = ITER6 | |
811 | 814 | let $s = size($l) | |
812 | 815 | let $acc0 = nil | |
813 | 816 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
814 | 817 | then $a | |
815 | 818 | else addLists($a, $l[$i]) | |
816 | 819 | ||
817 | 820 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
818 | 821 | then $a | |
819 | 822 | else throw("List size exceeds 6") | |
820 | 823 | ||
821 | 824 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
822 | 825 | } | |
823 | 826 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
824 | 827 | } | |
825 | 828 | else { | |
826 | 829 | func addPartLists (acc,i) = { | |
827 | 830 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
828 | 831 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
829 | 832 | } | |
830 | 833 | ||
831 | 834 | let r = { | |
832 | 835 | let $l = ITER6 | |
833 | 836 | let $s = size($l) | |
834 | 837 | let $acc0 = $Tuple2(nil, nil) | |
835 | 838 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
836 | 839 | then $a | |
837 | 840 | else addPartLists($a, $l[$i]) | |
838 | 841 | ||
839 | 842 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
840 | 843 | then $a | |
841 | 844 | else throw("List size exceeds 6") | |
842 | 845 | ||
843 | 846 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
844 | 847 | } | |
845 | 848 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
846 | 849 | } | |
847 | 850 | } | |
848 | 851 | ||
849 | 852 | ||
850 | 853 | func getBackpack (bpKey) = { | |
851 | 854 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
852 | 855 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
853 | 856 | then p[bpIdxRes] | |
854 | 857 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
855 | 858 | then p[bpIdxMat] | |
856 | 859 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
857 | 860 | } | |
858 | 861 | ||
859 | 862 | ||
860 | 863 | func getWarehouseTotalVolume (volPrefix) = { | |
861 | 864 | let parts = split(volPrefix, "_") | |
862 | 865 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
863 | 866 | } | |
864 | 867 | ||
865 | 868 | ||
866 | 869 | func getWarehouseOccupiedVol (currentWh) = { | |
867 | 870 | let goods = currentWh[whIdxProd] | |
868 | 871 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
869 | 872 | ||
870 | 873 | func sumProd (acc,item) = { | |
871 | 874 | let idx = acc._1 | |
872 | 875 | let pkgs = (((parseIntValue(item) + PRODUCTPKGSIZE) - 1) / PRODUCTPKGSIZE) | |
873 | 876 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
874 | 877 | } | |
875 | 878 | ||
876 | 879 | let whResVol = { | |
877 | 880 | let $l = split(currentWh[whIdxRes], "_") | |
878 | 881 | let $s = size($l) | |
879 | 882 | let $acc0 = 0 | |
880 | 883 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
881 | 884 | then $a | |
882 | 885 | else sumResMat($a, $l[$i]) | |
883 | 886 | ||
884 | 887 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
885 | 888 | then $a | |
886 | 889 | else throw("List size exceeds 6") | |
887 | 890 | ||
888 | 891 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
889 | 892 | } | |
890 | 893 | let whMatVol = { | |
891 | 894 | let $l = split(currentWh[whIdxMat], "_") | |
892 | 895 | let $s = size($l) | |
893 | 896 | let $acc0 = 0 | |
894 | 897 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
895 | 898 | then $a | |
896 | 899 | else sumResMat($a, $l[$i]) | |
897 | 900 | ||
898 | 901 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
899 | 902 | then $a | |
900 | 903 | else throw("List size exceeds 6") | |
901 | 904 | ||
902 | 905 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
903 | 906 | } | |
904 | 907 | let whGoodsVol = if ((goods == "")) | |
905 | 908 | then 0 | |
906 | 909 | else ( let $l = split_4C(goods, "_") | |
907 | 910 | let $s = size($l) | |
908 | 911 | let $acc0 = $Tuple2(0, 0) | |
909 | 912 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
910 | 913 | then $a | |
911 | 914 | else sumProd($a, $l[$i]) | |
912 | 915 | ||
913 | 916 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
914 | 917 | then $a | |
915 | 918 | else throw("List size exceeds 50") | |
916 | 919 | ||
917 | 920 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._2 | |
918 | 921 | ((whResVol + whMatVol) + whGoodsVol) | |
919 | 922 | } | |
920 | 923 | ||
921 | 924 | ||
922 | 925 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
923 | 926 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
924 | 927 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
925 | 928 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
926 | 929 | let wh = split_4C(whStr, ":") | |
927 | 930 | let whOccupied = getWarehouseOccupiedVol(wh) | |
928 | 931 | let whLoft = if ((5 > size(wh))) | |
929 | 932 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
930 | 933 | else { | |
931 | 934 | let loft = split(wh[whIdxLOFT], "_") | |
932 | 935 | let whLocked = parseIntValue(loft[volLocked]) | |
933 | 936 | let occ = if ((size(loft) > 1)) | |
934 | 937 | then parseIntValue(loft[volOccupied]) | |
935 | 938 | else whOccupied | |
936 | 939 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
937 | 940 | } | |
938 | 941 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
939 | 942 | then wh[whIdxRes] | |
940 | 943 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
941 | 944 | then wh[whIdxMat] | |
942 | 945 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
943 | 946 | } | |
944 | 947 | ||
945 | 948 | ||
946 | 949 | func applyBonuses (landAssetId,pieces) = { | |
947 | 950 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
948 | 951 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
949 | 952 | let add6 = (infraLevel / 6) | |
950 | 953 | let add7 = (infraLevel / 7) | |
951 | 954 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
952 | 955 | } | |
953 | 956 | ||
954 | 957 | ||
955 | 958 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
956 | 959 | let $t03424734786 = if ((claimMode == claimModeWh)) | |
957 | 960 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
958 | 961 | else { | |
959 | 962 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
960 | 963 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
961 | 964 | let loc = split(value(curLocation), "_") | |
962 | 965 | if ((loc[locIdxType] != "L")) | |
963 | 966 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
964 | 967 | else $Tuple2(loc[locIdxId], duckAssetId) | |
965 | 968 | } | |
966 | 969 | let landAssetId = $t03424734786._1 | |
967 | 970 | let duckId = $t03424734786._2 | |
968 | 971 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
969 | 972 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
970 | 973 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
971 | 974 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
972 | 975 | if ((owner != addr)) | |
973 | 976 | then throw((LANDPREFIX + " is not yours")) | |
974 | 977 | else { | |
975 | 978 | let d = split(asset.description, "_") | |
976 | 979 | $Tuple4(duckId, landAssetId, d, savedTime) | |
977 | 980 | } | |
978 | 981 | } | |
979 | 982 | ||
980 | 983 | ||
981 | 984 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
982 | 985 | then throw("Negative amount") | |
983 | 986 | else { | |
984 | 987 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
985 | 988 | let landSize = c._3[recLandSize] | |
986 | 989 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
987 | 990 | let deltaTime = (finalTime() - c._4) | |
988 | 991 | if ((0 > deltaTime)) | |
989 | 992 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", final = ") + toString(finalTime()))) | |
990 | 993 | else { | |
991 | 994 | let pieces = numPiecesBySize(landSize) | |
992 | 995 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
993 | 996 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
994 | 997 | if ((amount > availRes)) | |
995 | 998 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
996 | 999 | else { | |
997 | 1000 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
998 | 1001 | let newTimestamp = (finalTime() - newDeltaTime) | |
999 | 1002 | let landIndex = (pieces / SSIZE) | |
1000 | 1003 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
1001 | 1004 | let whKey = keyWarehouseByLand(c._2) | |
1002 | 1005 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
1003 | 1006 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1004 | 1007 | let loft = split(currentWh[whIdxLOFT], "_") | |
1005 | 1008 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1006 | 1009 | if (if ((claimMode == claimModeWh)) | |
1007 | 1010 | then (amount > whSpaceLeft) | |
1008 | 1011 | else false) | |
1009 | 1012 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1010 | 1013 | else { | |
1011 | 1014 | let bpKey = keyBackpackByDuck(c._1) | |
1012 | 1015 | let currentPack = getBackpack(bpKey) | |
1013 | 1016 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1014 | 1017 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1015 | 1018 | let $t03715638027 = if ((claimMode == claimModeWh)) | |
1016 | 1019 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1017 | 1020 | else if ((claimMode == claimModeDuck)) | |
1018 | 1021 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1019 | 1022 | else { | |
1020 | 1023 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1021 | 1024 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1022 | 1025 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1023 | 1026 | } | |
1024 | 1027 | let whRes = $t03715638027._1 | |
1025 | 1028 | let bpRes = $t03715638027._2 | |
1026 | 1029 | let loftO = $t03715638027._3 | |
1027 | 1030 | let loftF = $t03715638027._4 | |
1028 | 1031 | $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxLevels], whRes, currentWh[whIdxMat], currentWh[whIdxProd], makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")]) | |
1029 | 1032 | } | |
1030 | 1033 | } | |
1031 | 1034 | } | |
1032 | 1035 | } | |
1033 | 1036 | ||
1034 | 1037 | ||
1035 | 1038 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1036 | 1039 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1037 | 1040 | let savedTime = value(getInteger(timeKey)) | |
1038 | 1041 | let availRes = (fraction((finalTime() - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1039 | 1042 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1040 | 1043 | } | |
1041 | 1044 | ||
1042 | 1045 | ||
1043 | 1046 | func updateStatsInternal (lvlKey,xpKey,pointsKey,deltaXP) = { | |
1044 | 1047 | let xp = valueOrElse(getInteger(xpKey), 0) | |
1045 | 1048 | let newXP = (xp + deltaXP) | |
1046 | 1049 | let lvlPoints = levelUp(valueOrElse(getInteger(lvlKey), 0), newXP) | |
1047 | 1050 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(pointsKey, (valueOrElse(getInteger(pointsKey), 0) + lvlPoints[1]))], newXP) | |
1048 | 1051 | } | |
1049 | 1052 | ||
1050 | 1053 | ||
1051 | 1054 | func updateDuckStatsInternal (duckAssetId,deltaXP) = { | |
1052 | 1055 | let asset = value(assetInfo(fromBase58String(duckAssetId))) | |
1053 | 1056 | let addr = valueOrErrorMessage(getString(keyDuckIdToOwner(duckAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1054 | 1057 | if (if (if (KS_ALLOW_ROBO_DUCKS) | |
1055 | 1058 | then (asset.issuer == this) | |
1056 | 1059 | else false) | |
1057 | 1060 | then contains(asset.name, ROBO_PREFIX) | |
1058 | 1061 | else false) | |
1059 | 1062 | then updateStatsInternal(keyUserLevel(addr), keyUserXP(addr), keyUserFreePoints(addr), deltaXP) | |
1060 | 1063 | else updateStatsInternal(keyDuckLevel(duckAssetId), keyDuckXP(duckAssetId), keyDuckFreePoints(duckAssetId), deltaXP) | |
1061 | 1064 | } | |
1062 | 1065 | ||
1063 | 1066 | ||
1064 | 1067 | func updateAccStatsInternal (addr,deltaXP) = updateStatsInternal(keyUserLevel(addr), keyUserXP(addr), keyUserFreePoints(addr), deltaXP) | |
1065 | 1068 | ||
1066 | 1069 | ||
1067 | 1070 | func activateOnboardArt (addr) = { | |
1068 | 1071 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1069 | 1072 | let refByKey = keyAddressRefBy(addr) | |
1070 | 1073 | let refBy = getString(refByKey) | |
1071 | 1074 | if (!(isDefined(refBy))) | |
1072 | 1075 | then throw("You are not eligible for ONBOARD artifact") | |
1073 | 1076 | else { | |
1074 | 1077 | let artKey = keyOnboardArtDuckActivatedBy(addr) | |
1075 | 1078 | let artDuck = getString(artKey) | |
1076 | 1079 | if (isDefined(artDuck)) | |
1077 | 1080 | then throw(("You already used your ONBOARD artifact on duck " + value(artDuck))) | |
1078 | 1081 | else { | |
1079 | 1082 | let duckActivatorKey = keyOnboardArtActivatedOnDuck(duckAssetId) | |
1080 | 1083 | let duckActivator = getString(duckActivatorKey) | |
1081 | 1084 | if (isDefined(duckActivator)) | |
1082 | 1085 | then throw(((("The duck " + duckAssetId) + " already got points from ONBOARD artifact from user ") + value(duckActivator))) | |
1083 | 1086 | else ([StringEntry(artKey, duckAssetId), StringEntry(duckActivatorKey, addr)] ++ updateDuckStatsInternal(duckAssetId, xpOnboard)._1) | |
1084 | 1087 | } | |
1085 | 1088 | } | |
1086 | 1089 | } | |
1087 | 1090 | ||
1088 | 1091 | ||
1089 | 1092 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1090 | 1093 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1091 | 1094 | let landAssetId = c._2 | |
1092 | 1095 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1093 | 1096 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1094 | 1097 | if ((valueOrElse(getInteger(activationKey), 0) > 0)) | |
1095 | 1098 | then throw("Presale artifact is already activated") | |
1096 | 1099 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1097 | 1100 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1098 | 1101 | else { | |
1099 | 1102 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1100 | 1103 | (((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1101 | 1104 | } | |
1102 | 1105 | } | |
1103 | 1106 | ||
1104 | 1107 | ||
1105 | 1108 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1106 | 1109 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1107 | 1110 | else false) | |
1108 | 1111 | then throw("Contracts are under maintenance") | |
1109 | - | else [StringEntry( | |
1112 | + | else [StringEntry(keyCurWeekTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId))] | |
1110 | 1113 | ||
1111 | 1114 | ||
1112 | 1115 | func unstakeLandInternal (addr,landAssetId) = { | |
1113 | 1116 | let whKey = keyWarehouseByLand(landAssetId) | |
1114 | 1117 | let landInfo = split(value(assetInfo(fromBase58String(landAssetId))).description, "_") | |
1115 | 1118 | let landSize = landInfo[recLandSize] | |
1116 | 1119 | let pieces = numPiecesBySize(landSize) | |
1117 | 1120 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1118 | 1121 | let landIndex = (pieces / SSIZE) | |
1119 | 1122 | let terrainCounts = countTerrains(landInfo[recTerrains]) | |
1120 | 1123 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1121 | 1124 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1122 | 1125 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1123 | 1126 | let savedTime = getIntegerValue(timeKey) | |
1124 | 1127 | let deltaTime = (finalTime() - savedTime) | |
1125 | 1128 | if ((0 > deltaTime)) | |
1126 | 1129 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", final = ") + toString(finalTime()))) | |
1127 | 1130 | else { | |
1128 | 1131 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1129 | 1132 | let resAfterClaim = virtClaimAddRes(currentWhRes, terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1130 | 1133 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1131 | 1134 | let acresFromPieces = ((pieces * MULT8) + ((((pieces * infraLevel) + artPieces) * MULT8) / 5)) | |
1132 | 1135 | let acresFromRes = (fraction(resAfterClaim._2, RESOURCEPRICEMIN, MULT8) * USDT2ACRES_MULTIPLIER) | |
1133 | 1136 | func sumMat (acc,item) = (acc + parseIntValue(item)) | |
1134 | 1137 | ||
1135 | 1138 | let whMat = { | |
1136 | 1139 | let $l = split(currentWh[whIdxMat], "_") | |
1137 | 1140 | let $s = size($l) | |
1138 | 1141 | let $acc0 = 0 | |
1139 | 1142 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1140 | 1143 | then $a | |
1141 | 1144 | else sumMat($a, $l[$i]) | |
1142 | 1145 | ||
1143 | 1146 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1144 | 1147 | then $a | |
1145 | 1148 | else throw("List size exceeds 6") | |
1146 | 1149 | ||
1147 | 1150 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1148 | 1151 | } | |
1149 | 1152 | let acresFromMat = (fraction(whMat, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1150 | 1153 | let prods = if ((currentWh[whIdxProd] == "")) | |
1151 | 1154 | then nil | |
1152 | 1155 | else split_4C(currentWh[whIdxProd], "_") | |
1153 | 1156 | func sumProd (acc,item) = { | |
1154 | 1157 | let j = acc._2 | |
1155 | 1158 | let recipeCoeff = parseIntValue(split(productionMatrix[j], "_")[rIdxCoeff]) | |
1156 | 1159 | $Tuple2((acc._1 + ((parseIntValue(item) * recipeCoeff) * MULT6)), (j + 1)) | |
1157 | 1160 | } | |
1158 | 1161 | ||
1159 | 1162 | let whProd = { | |
1160 | 1163 | let $l = prods | |
1161 | 1164 | let $s = size($l) | |
1162 | 1165 | let $acc0 = $Tuple2(0, 0) | |
1163 | 1166 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1164 | 1167 | then $a | |
1165 | 1168 | else sumProd($a, $l[$i]) | |
1166 | 1169 | ||
1167 | 1170 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1168 | 1171 | then $a | |
1169 | 1172 | else throw("List size exceeds 24") | |
1170 | 1173 | ||
1171 | 1174 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($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) | |
1172 | 1175 | } | |
1173 | 1176 | let acresFromProd = (fraction(whProd._1, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1174 | 1177 | $Tuple4(acresFromPieces, acresFromRes, acresFromMat, acresFromProd) | |
1175 | 1178 | } | |
1176 | 1179 | } | |
1177 | 1180 | ||
1178 | 1181 | ||
1179 | 1182 | func unstakeDuckInternal (addr,duckAssetId) = { | |
1180 | 1183 | let eqKey = keyDuckEquipment(duckAssetId) | |
1181 | 1184 | let currentSegs = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_") | |
1182 | 1185 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1183 | 1186 | let currentPack = getBackpack(bpKey) | |
1184 | 1187 | let tempProdB = dressB(currentSegs, prodStrToBytes(currentPack[bpIdxProd]), true, nil) | |
1185 | 1188 | let newProdStr = bytesToProdStr(tempProdB) | |
1186 | 1189 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
1187 | 1190 | ||
1188 | 1191 | let bpRes = { | |
1189 | 1192 | let $l = split(currentPack[bpIdxRes], "_") | |
1190 | 1193 | let $s = size($l) | |
1191 | 1194 | let $acc0 = 0 | |
1192 | 1195 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1193 | 1196 | then $a | |
1194 | 1197 | else sumResMat($a, $l[$i]) | |
1195 | 1198 | ||
1196 | 1199 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1197 | 1200 | then $a | |
1198 | 1201 | else throw("List size exceeds 6") | |
1199 | 1202 | ||
1200 | 1203 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1201 | 1204 | } | |
1202 | 1205 | let acresFromRes = (fraction(bpRes, RESOURCEPRICEMIN, MULT8) * USDT2ACRES_MULTIPLIER) | |
1203 | 1206 | let bpMat = { | |
1204 | 1207 | let $l = split(currentPack[bpIdxMat], "_") | |
1205 | 1208 | let $s = size($l) | |
1206 | 1209 | let $acc0 = 0 | |
1207 | 1210 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1208 | 1211 | then $a | |
1209 | 1212 | else sumResMat($a, $l[$i]) | |
1210 | 1213 | ||
1211 | 1214 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1212 | 1215 | then $a | |
1213 | 1216 | else throw("List size exceeds 6") | |
1214 | 1217 | ||
1215 | 1218 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1216 | 1219 | } | |
1217 | 1220 | let acresFromMat = (fraction(bpMat, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1218 | 1221 | let prods = if ((newProdStr == "")) | |
1219 | 1222 | then nil | |
1220 | 1223 | else split_4C(newProdStr, "_") | |
1221 | 1224 | func sumProd (acc,item) = { | |
1222 | 1225 | let j = acc._2 | |
1223 | 1226 | let recipeCoeff = parseIntValue(split(productionMatrix[j], "_")[rIdxCoeff]) | |
1224 | 1227 | $Tuple2((acc._1 + ((parseIntValue(item) * recipeCoeff) * MULT6)), (j + 1)) | |
1225 | 1228 | } | |
1226 | 1229 | ||
1227 | 1230 | let bpProd = { | |
1228 | 1231 | let $l = prods | |
1229 | 1232 | let $s = size($l) | |
1230 | 1233 | let $acc0 = $Tuple2(0, 0) | |
1231 | 1234 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1232 | 1235 | then $a | |
1233 | 1236 | else sumProd($a, $l[$i]) | |
1234 | 1237 | ||
1235 | 1238 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1236 | 1239 | then $a | |
1237 | 1240 | else throw("List size exceeds 24") | |
1238 | 1241 | ||
1239 | 1242 | $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($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) | |
1240 | 1243 | } | |
1241 | 1244 | let acresFromProd = (fraction(bpProd._1, (2 * RESOURCEPRICEMIN), MULT8) * USDT2ACRES_MULTIPLIER) | |
1242 | 1245 | $Tuple3(acresFromRes, acresFromMat, acresFromProd) | |
1243 | 1246 | } | |
1244 | 1247 | ||
1245 | 1248 | ||
1246 | 1249 | @Callable(i) | |
1247 | 1250 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1248 | 1251 | then throw("Permission denied") | |
1249 | 1252 | else [StringEntry(keyRestAddress(), restAddr)] | |
1250 | 1253 | ||
1251 | 1254 | ||
1252 | 1255 | ||
1253 | 1256 | @Callable(i) | |
1254 | 1257 | func saveInteger (key,amount) = if ((i.caller != this)) | |
1255 | 1258 | then throw("saveInteger is not public method") | |
1256 | 1259 | else [IntegerEntry(key, amount)] | |
1257 | 1260 | ||
1258 | 1261 | ||
1259 | 1262 | ||
1260 | 1263 | @Callable(i) | |
1261 | 1264 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1262 | 1265 | then throw("permission denied") | |
1263 | 1266 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1264 | 1267 | ||
1265 | 1268 | ||
1266 | 1269 | ||
1267 | 1270 | @Callable(i) | |
1268 | 1271 | func stakeLand () = { | |
1269 | 1272 | let prologActions = 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 " + LANDPREFIX) + " token should be attached as payment")) | |
1278 | 1281 | else { | |
1279 | 1282 | let asset = value(assetInfo(assetId)) | |
1280 | 1283 | if ((asset.issuer != this)) | |
1281 | 1284 | then throw("Unknown issuer of token") | |
1282 | 1285 | else if (!(contains(asset.name, LANDPREFIX))) | |
1283 | 1286 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1284 | 1287 | else { | |
1285 | 1288 | let landNumSize = drop(asset.name, 4) | |
1286 | 1289 | let landNum = if (contains(landNumSize, "XXL")) | |
1287 | 1290 | then dropRight(landNumSize, 3) | |
1288 | 1291 | else if (contains(landNumSize, "XL")) | |
1289 | 1292 | then dropRight(landNumSize, 2) | |
1290 | 1293 | else dropRight(landNumSize, 1) | |
1291 | 1294 | if (!(isDefined(parseInt(landNum)))) | |
1292 | 1295 | then throw(("Cannot parse land number from " + asset.name)) | |
1293 | 1296 | else { | |
1294 | 1297 | let landAssetId = toBase58String(assetId) | |
1295 | 1298 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1296 | 1299 | if (isDefined(getInteger(timeKey))) | |
1297 | 1300 | then throw((("NFT " + asset.name) + " is already staked")) | |
1298 | 1301 | else { | |
1299 | 1302 | let d = split(asset.description, "_") | |
1300 | 1303 | let terrainCounts = countTerrains(d[recTerrains]) | |
1301 | 1304 | let pieces = numPiecesBySize(d[recLandSize]) | |
1302 | 1305 | let landIndex = (pieces / SSIZE) | |
1303 | 1306 | let props = updateProportions(terrainCounts, landIndex, 1) | |
1304 | 1307 | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1305 | 1308 | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1306 | 1309 | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, 1), "_") | |
1307 | 1310 | let landsKey = keyStakedLandsByOwner(address) | |
1308 | 1311 | let landsStr = getString(landsKey) | |
1309 | 1312 | let lands = if (isDefined(landsStr)) | |
1310 | 1313 | then split_51C(value(landsStr), "_") | |
1311 | 1314 | else nil | |
1312 | 1315 | if (containsElement(lands, landAssetId)) | |
1313 | 1316 | then throw(("Your staked lands already contain " + landAssetId)) | |
1314 | 1317 | else if ((size(lands) >= MAX_LANDS_STAKED_BY_USER)) | |
1315 | 1318 | then throw((("Your already staked max (" + toString(MAX_LANDS_STAKED_BY_USER)) + ") lands")) | |
1316 | 1319 | else { | |
1317 | 1320 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1318 | 1321 | let piecesKey = keyStakedPiecesByOwner(address) | |
1319 | 1322 | let oldPieces = valueOrElse(getInteger(piecesKey), 0) | |
1320 | 1323 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
1321 | 1324 | $Tuple2(([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps)] ++ prologActions), wlgResult) | |
1322 | 1325 | } | |
1323 | 1326 | } | |
1324 | 1327 | } | |
1325 | 1328 | } | |
1326 | 1329 | } | |
1327 | 1330 | } | |
1328 | 1331 | } | |
1329 | 1332 | ||
1330 | 1333 | ||
1331 | 1334 | ||
1332 | 1335 | @Callable(i) | |
1333 | 1336 | func unstakeLand (landAssetIdIn) = { | |
1334 | 1337 | let prologActions = prolog(i) | |
1335 | 1338 | if ((size(i.payments) != 0)) | |
1336 | 1339 | then throw("No payments required") | |
1337 | 1340 | else { | |
1338 | 1341 | let addr = toString(i.caller) | |
1339 | 1342 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1340 | 1343 | let landAssetId = c._2 | |
1341 | 1344 | let d = c._3 | |
1342 | 1345 | let landsKey = keyStakedLandsByOwner(addr) | |
1343 | 1346 | let terrainCounts = countTerrains(d[recTerrains]) | |
1344 | 1347 | let pieces = numPiecesBySize(d[recLandSize]) | |
1345 | 1348 | let landIndex = (pieces / SSIZE) | |
1346 | 1349 | let props = updateProportions(terrainCounts, landIndex, -1) | |
1347 | 1350 | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1348 | 1351 | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1349 | 1352 | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, -1), "_") | |
1350 | 1353 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1351 | 1354 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1352 | 1355 | let idx = indexOf(lands, landAssetId) | |
1353 | 1356 | if (!(isDefined(idx))) | |
1354 | 1357 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1355 | 1358 | else { | |
1356 | 1359 | let now = lastBlock.timestamp | |
1357 | 1360 | let govReleaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1358 | 1361 | if ((govReleaseTime >= now)) | |
1359 | 1362 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(govReleaseTime))) | |
1360 | 1363 | else { | |
1361 | 1364 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(addr)), 0) + arbitrageDelay) | |
1362 | 1365 | if ((arbReleaseTime > now)) | |
1363 | 1366 | then throw(("Your staked lands took part in arbitrage, cannot unstake until " + toString(arbReleaseTime))) | |
1364 | 1367 | else { | |
1365 | 1368 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1366 | 1369 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1367 | 1370 | let newPieces = if ((pieces > stakedPieces)) | |
1368 | 1371 | then 0 | |
1369 | 1372 | else (stakedPieces - pieces) | |
1370 | 1373 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [addr], nil) | |
1371 | 1374 | $Tuple2(([ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
1372 | 1375 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1373 | 1376 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces)] ++ prologActions), wlgResult) | |
1374 | 1377 | } | |
1375 | 1378 | } | |
1376 | 1379 | } | |
1377 | 1380 | } | |
1378 | 1381 | } | |
1379 | 1382 | ||
1380 | 1383 | ||
1381 | 1384 | ||
1382 | 1385 | @Callable(i) | |
1383 | 1386 | func unstakeLandCallback (landAssetId,addr) = if ((toString(i.caller) != acres2AddressStr)) | |
1384 | 1387 | then throw("Permission denied") | |
1385 | 1388 | else { | |
1386 | 1389 | let unstakeResult = unstakeLandInternal(addr, landAssetId) | |
1387 | 1390 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [addr], nil) | |
1388 | 1391 | $Tuple2([Burn(fromBase58String(landAssetId), 1), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))], $Tuple5(unstakeResult._1, unstakeResult._2, unstakeResult._3, unstakeResult._4, wlgResult)) | |
1389 | 1392 | } | |
1390 | 1393 | ||
1391 | 1394 | ||
1392 | 1395 | ||
1393 | 1396 | @Callable(i) | |
1394 | 1397 | func unstakeLandREADONLY (landAssetId,addr) = { | |
1395 | 1398 | let unstakeResult = unstakeLandInternal(addr, landAssetId) | |
1396 | 1399 | $Tuple2(nil, unstakeResult) | |
1397 | 1400 | } | |
1398 | 1401 | ||
1399 | 1402 | ||
1400 | 1403 | ||
1401 | 1404 | @Callable(i) | |
1402 | 1405 | func unstakeLandsFinalizeCallback (addr) = if ((toString(i.caller) != acres2AddressStr)) | |
1403 | 1406 | then throw("Permission denied") | |
1404 | 1407 | else $Tuple2([DeleteEntry(keyStakedLandsByOwner(addr)), DeleteEntry(keyStakedPiecesByOwner(addr))], 0) | |
1405 | 1408 | ||
1406 | 1409 | ||
1407 | 1410 | ||
1408 | 1411 | @Callable(i) | |
1409 | 1412 | func convertUnstakedLands () = if ((size(i.payments) != 1)) | |
1410 | 1413 | then throw("Exactly one payment required") | |
1411 | 1414 | else { | |
1412 | 1415 | let pmt = value(i.payments[0]) | |
1413 | 1416 | let assetId = value(pmt.assetId) | |
1414 | 1417 | let address = toString(i.caller) | |
1415 | 1418 | if ((pmt.amount != 1)) | |
1416 | 1419 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1417 | 1420 | else { | |
1418 | 1421 | let asset = value(assetInfo(assetId)) | |
1419 | 1422 | if ((asset.issuer != this)) | |
1420 | 1423 | then throw("Unknown issuer of token") | |
1421 | 1424 | else if (!(contains(asset.name, LANDPREFIX))) | |
1422 | 1425 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1423 | 1426 | else { | |
1424 | 1427 | let landAssetId = toBase58String(assetId) | |
1425 | 1428 | let d = split(asset.description, "_") | |
1426 | 1429 | let pieces = numPiecesBySize(d[recLandSize]) | |
1427 | 1430 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1428 | 1431 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1429 | 1432 | let acresAmount = ((pieces * MULT8) + ((((pieces * infraLevel) + artPieces) * MULT8) / 5)) | |
1430 | 1433 | let req = invoke(acresContract, "requestAcresCallback", [acresAmount], nil) | |
1431 | 1434 | if ((req == req)) | |
1432 | 1435 | then { | |
1433 | 1436 | let callb = invoke(addressFromStringValue(acres2AddressStr), "stakeAcresCallback", [address], [AttachedPayment(acresAssetId, acresAmount)]) | |
1434 | 1437 | if ((callb == callb)) | |
1435 | 1438 | then $Tuple2([Burn(fromBase58String(landAssetId), 1)], 0) | |
1436 | 1439 | else throw("Strict value is not equal to itself.") | |
1437 | 1440 | } | |
1438 | 1441 | else throw("Strict value is not equal to itself.") | |
1439 | 1442 | } | |
1440 | 1443 | } | |
1441 | 1444 | } | |
1442 | 1445 | ||
1443 | 1446 | ||
1444 | 1447 | ||
1445 | 1448 | @Callable(i) | |
1446 | 1449 | func unstakeDuckCallback (duckAssetId,addr) = if ((toString(i.caller) != acres2AddressStr)) | |
1447 | 1450 | then throw("Permission denied") | |
1448 | 1451 | else { | |
1449 | 1452 | let unstakeResult = unstakeDuckInternal(addr, duckAssetId) | |
1450 | 1453 | $Tuple2([ScriptTransfer(addressFromStringValue(addr), 1, fromBase58String(duckAssetId)), DeleteEntry(keyStakedTimeByAssetId(duckAssetId)), DeleteEntry(keyDuckIdToOwner(duckAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, duckAssetId, addr)), DeleteEntry(keyStakedDuckByOwner(addr))], unstakeResult) | |
1451 | 1454 | } | |
1452 | 1455 | ||
1453 | 1456 | ||
1454 | 1457 | ||
1455 | 1458 | @Callable(i) | |
1456 | 1459 | func unstakeDuckREADONLY (duckAssetId,addr) = { | |
1457 | 1460 | let unstakeResult = unstakeDuckInternal(addr, duckAssetId) | |
1458 | 1461 | $Tuple2(nil, unstakeResult) | |
1459 | 1462 | } | |
1460 | 1463 | ||
1461 | 1464 | ||
1462 | 1465 | ||
1463 | 1466 | @Callable(i) | |
1464 | 1467 | func claimRes (amount,landAssetIdStr) = { | |
1465 | 1468 | let prologActions = prolog(i) | |
1466 | 1469 | if ((size(i.payments) != 0)) | |
1467 | 1470 | then throw("No payments required") | |
1468 | 1471 | else { | |
1469 | 1472 | let addr = toString(i.originCaller) | |
1470 | 1473 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
1471 | 1474 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1472 | 1475 | $Tuple2(((((result._1 ++ updateDuckStatsInternal(duckAssetId, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) ++ prologActions), result._3[bpIdxRes]) | |
1473 | 1476 | } | |
1474 | 1477 | } | |
1475 | 1478 | ||
1476 | 1479 | ||
1477 | 1480 | ||
1478 | 1481 | @Callable(i) | |
1479 | 1482 | func claimResToWH (amount,landAssetIdStr) = { | |
1480 | 1483 | let prologActions = prolog(i) | |
1481 | 1484 | if ((size(i.payments) != 0)) | |
1482 | 1485 | then throw("No payments required") | |
1483 | 1486 | else { | |
1484 | 1487 | let addr = toString(i.originCaller) | |
1485 | 1488 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
1486 | 1489 | $Tuple2(((((result._1 ++ updateAccStatsInternal(addr, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) ++ prologActions), result._5[whIdxRes]) | |
1487 | 1490 | } | |
1488 | 1491 | } | |
1489 | 1492 | ||
1490 | 1493 | ||
1491 | 1494 | ||
1492 | 1495 | @Callable(i) | |
1493 | 1496 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract)) | |
1494 | 1497 | then throw("permission denied") | |
1495 | 1498 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
1496 | 1499 | ||
1497 | 1500 | ||
1498 | 1501 | ||
1499 | 1502 | @Callable(i) | |
1500 | 1503 | func commitForRandom () = { | |
1501 | 1504 | let prologActions = prolog(i) | |
1502 | 1505 | let finishBlock = (height + randomDelay) | |
1503 | 1506 | let addr = toString(i.caller) | |
1504 | 1507 | $Tuple2(([IntegerEntry(keyCommit(addr), finishBlock)] ++ prologActions), finishBlock) | |
1505 | 1508 | } | |
1506 | 1509 | ||
1507 | 1510 | ||
1508 | 1511 | ||
1509 | 1512 | @Callable(i) | |
1510 | 1513 | func revealRandom (maxValue) = { | |
1511 | 1514 | let prologActions = prolog(i) | |
1512 | 1515 | let addr = toString(i.caller) | |
1513 | 1516 | let finishKey = keyCommit(addr) | |
1514 | 1517 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1515 | 1518 | if ((finishBlock > height)) | |
1516 | 1519 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1517 | 1520 | else { | |
1518 | 1521 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1519 | - | let salt = toBytes(valueOrElse(getString( | |
1522 | + | let salt = toBytes(valueOrElse(getString(keyLastWeekTxIdByUser(addr)), "")) | |
1520 | 1523 | let rand = getRandomNumber(maxValue, salt, entropy) | |
1521 | 1524 | $Tuple2(([DeleteEntry(finishKey)] ++ prologActions), rand) | |
1522 | 1525 | } | |
1523 | 1526 | } | |
1524 | 1527 | ||
1525 | 1528 | ||
1526 | 1529 | ||
1527 | 1530 | @Callable(i) | |
1528 | 1531 | func activateArtifact (artName,landAssetIdOpt) = { | |
1529 | 1532 | let prologActions = prolog(i) | |
1530 | 1533 | if ((size(i.payments) != 0)) | |
1531 | 1534 | then throw("No payments required") | |
1532 | 1535 | else { | |
1533 | 1536 | let addr = toString(i.caller) | |
1534 | 1537 | let result = match artName { | |
1535 | 1538 | case _ => | |
1536 | 1539 | if (("PRESALE" == $match0)) | |
1537 | 1540 | then activatePresaleArt(addr, landAssetIdOpt) | |
1538 | 1541 | else if (("ONBOARD" == $match0)) | |
1539 | 1542 | then activateOnboardArt(addr) | |
1540 | 1543 | else throw("Unknown artifact") | |
1541 | 1544 | } | |
1542 | 1545 | (result ++ prologActions) | |
1543 | 1546 | } | |
1544 | 1547 | } | |
1545 | 1548 | ||
1546 | 1549 | ||
1547 | 1550 | ||
1548 | 1551 | @Callable(i) | |
1549 | 1552 | func saveWarehouse (whStr,landAssetId) = if ((i.caller != economyContract)) | |
1550 | 1553 | then throw("Access denied") | |
1551 | 1554 | else { | |
1552 | 1555 | let whKey = keyWarehouseByLand(landAssetId) | |
1553 | 1556 | let wh = split_4C(whStr, ":") | |
1554 | 1557 | if ((size(wh) != 5)) | |
1555 | 1558 | then throw("warehouse string should contain 4 ':' separators") | |
1556 | 1559 | else { | |
1557 | 1560 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
1558 | 1561 | let loftO = getWarehouseOccupiedVol(wh) | |
1559 | 1562 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
1560 | 1563 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
1561 | 1564 | if ((0 > loftF)) | |
1562 | 1565 | then throw("Operation leads to negative free warehouse space") | |
1563 | 1566 | else { | |
1564 | 1567 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
1565 | 1568 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
1566 | 1569 | } | |
1567 | 1570 | } | |
1568 | 1571 | } | |
1569 | 1572 | ||
1570 | 1573 | ||
1571 | 1574 | ||
1572 | 1575 | @Callable(i) | |
1573 | 1576 | func setCustomName (assetId,customName,type) = { | |
1574 | 1577 | let prologActions = prolog(i) | |
1575 | 1578 | if ((size(i.payments) != 1)) | |
1576 | 1579 | then throw("Exactly one payment required") | |
1577 | 1580 | else { | |
1578 | 1581 | let pmt = value(i.payments[0]) | |
1579 | 1582 | if ((pmt.assetId != usdtAssetId)) | |
1580 | 1583 | then throw("Allowed USDT payment only!") | |
1581 | 1584 | else if ((pmt.amount != RENAMINGCOST)) | |
1582 | 1585 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
1583 | 1586 | else if (contains(customName, "__")) | |
1584 | 1587 | then throw(("Name should not contain '__': " + customName)) | |
1585 | 1588 | else if ((size(customName) > MAXNAMELEN)) | |
1586 | 1589 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
1587 | 1590 | else { | |
1588 | 1591 | let addr = toString(i.originCaller) | |
1589 | 1592 | let actions = match type { | |
1590 | 1593 | case _ => | |
1591 | 1594 | if (("ACCOUNT" == $match0)) | |
1592 | 1595 | then { | |
1593 | 1596 | let reverseKey = keyCustomNameToAddress(customName) | |
1594 | 1597 | let nameOwner = getString(reverseKey) | |
1595 | 1598 | if (isDefined(nameOwner)) | |
1596 | 1599 | then throw(("Name already registered: " + customName)) | |
1597 | 1600 | else { | |
1598 | 1601 | let addrToNameKey = keyAddressToCustomName(addr) | |
1599 | 1602 | let oldName = getString(addrToNameKey) | |
1600 | 1603 | let freeOld = if (isDefined(oldName)) | |
1601 | 1604 | then [DeleteEntry(keyCustomNameToAddress(value(oldName)))] | |
1602 | 1605 | else nil | |
1603 | 1606 | (((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
1604 | 1607 | } | |
1605 | 1608 | } | |
1606 | 1609 | else if (("LAND" == $match0)) | |
1607 | 1610 | then { | |
1608 | 1611 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1609 | 1612 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1610 | 1613 | if (!(isDefined(getInteger(timeKey)))) | |
1611 | 1614 | then throw((asset.name + " is not staked")) | |
1612 | 1615 | else { | |
1613 | 1616 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1614 | 1617 | if ((owner != addr)) | |
1615 | 1618 | then throw((LANDPREFIX + " is not yours")) | |
1616 | 1619 | else { | |
1617 | 1620 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
1618 | 1621 | let nameOwner = getString(reverseKey) | |
1619 | 1622 | if (isDefined(nameOwner)) | |
1620 | 1623 | then throw(("Name already registered: " + customName)) | |
1621 | 1624 | else { | |
1622 | 1625 | let assetToNameKey = keyLandAssetIdToCustomName(assetId) | |
1623 | 1626 | let oldName = getString(assetToNameKey) | |
1624 | 1627 | let freeOld = if (isDefined(oldName)) | |
1625 | 1628 | then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))] | |
1626 | 1629 | else nil | |
1627 | 1630 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
1628 | 1631 | } | |
1629 | 1632 | } | |
1630 | 1633 | } | |
1631 | 1634 | } | |
1632 | 1635 | else if (("DUCK" == $match0)) | |
1633 | 1636 | then { | |
1634 | 1637 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1635 | 1638 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1636 | 1639 | if (if (!(isDefined(getInteger(timeKey)))) | |
1637 | 1640 | then true | |
1638 | 1641 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
1639 | 1642 | then throw((asset.name + " is not staked")) | |
1640 | 1643 | else { | |
1641 | 1644 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1642 | 1645 | if ((owner != addr)) | |
1643 | 1646 | then throw((DUCKPREFIX + " is not yours")) | |
1644 | 1647 | else { | |
1645 | 1648 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
1646 | 1649 | let nameOwner = getString(reverseKey) | |
1647 | 1650 | if (isDefined(nameOwner)) | |
1648 | 1651 | then throw(("Name already registered: " + customName)) | |
1649 | 1652 | else { | |
1650 | 1653 | let assetToNameKey = keyDuckAssetIdToCustomName(assetId) | |
1651 | 1654 | let oldName = getString(assetToNameKey) | |
1652 | 1655 | let freeOld = if (isDefined(oldName)) | |
1653 | 1656 | then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))] | |
1654 | 1657 | else nil | |
1655 | 1658 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateDuckStatsInternal(assetId, xpCustomName)._1) | |
1656 | 1659 | } | |
1657 | 1660 | } | |
1658 | 1661 | } | |
1659 | 1662 | } | |
1660 | 1663 | else throw("Unknown entity type") | |
1661 | 1664 | } | |
1662 | 1665 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ prologActions), 0) | |
1663 | 1666 | } | |
1664 | 1667 | } | |
1665 | 1668 | } | |
1666 | 1669 | ||
1667 | 1670 | ||
1668 | 1671 | ||
1669 | 1672 | @Callable(i) | |
1670 | 1673 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
1671 | 1674 | then throw("Permission denied") | |
1672 | 1675 | else { | |
1673 | 1676 | let prologActions = prolog(i) | |
1674 | 1677 | if ((size(i.payments) != 0)) | |
1675 | 1678 | then throw("No payments required") | |
1676 | 1679 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
1677 | 1680 | then throw(("Invalid address: " + oldPlayer)) | |
1678 | 1681 | else { | |
1679 | 1682 | let newbieAddr = addressFromString(newPlayer) | |
1680 | 1683 | if (!(isDefined(newbieAddr))) | |
1681 | 1684 | then throw(("Invalid address: " + newPlayer)) | |
1682 | 1685 | else { | |
1683 | - | let oldLastTx = getString( | |
1686 | + | let oldLastTx = getString(keyLastWeekTxIdByUser(oldPlayer)) | |
1684 | 1687 | if (!(isDefined(oldLastTx))) | |
1685 | 1688 | then throw("oldPlayer didn't do any tx in game") | |
1686 | 1689 | else if ((0 >= wavesBalance(value(newbieAddr)).available)) | |
1687 | 1690 | then throw("newPlayer has no WAVES") | |
1688 | 1691 | else { | |
1689 | 1692 | let oldsKey = keyOldies() | |
1690 | 1693 | let olds = getString(oldsKey) | |
1691 | 1694 | let oldies = if (isDefined(olds)) | |
1692 | 1695 | then split_4C(value(olds), "_") | |
1693 | 1696 | else nil | |
1694 | 1697 | if (containsElement(oldies, newPlayer)) | |
1695 | 1698 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
1696 | 1699 | else { | |
1697 | 1700 | let refByKey = keyAddressRefBy(newPlayer) | |
1698 | 1701 | let refBy = getString(refByKey) | |
1699 | 1702 | if (if (isDefined(refBy)) | |
1700 | 1703 | then isDefined(addressFromString(value(refBy))) | |
1701 | 1704 | else false) | |
1702 | 1705 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
1703 | 1706 | else { | |
1704 | 1707 | let refsKey = keyAddressReferrals(oldPlayer) | |
1705 | 1708 | let refs = getString(refsKey) | |
1706 | 1709 | let refsArray = if (isDefined(refs)) | |
1707 | 1710 | then split_4C(value(refs), "_") | |
1708 | 1711 | else nil | |
1709 | 1712 | if (containsElement(refsArray, newPlayer)) | |
1710 | 1713 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
1711 | 1714 | else { | |
1712 | 1715 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
1713 | 1716 | let newOlds = if (containsElement(oldies, oldPlayer)) | |
1714 | 1717 | then value(olds) | |
1715 | 1718 | else makeString_2C((oldies :+ oldPlayer), "_") | |
1716 | 1719 | $Tuple2(([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds)] ++ prologActions), 0) | |
1717 | 1720 | } | |
1718 | 1721 | } | |
1719 | 1722 | } | |
1720 | 1723 | } | |
1721 | 1724 | } | |
1722 | 1725 | } | |
1723 | 1726 | } | |
1724 | 1727 | ||
1725 | 1728 | ||
1726 | 1729 | ||
1727 | 1730 | @Callable(i) | |
1728 | 1731 | func distributePoints (strength,accuracy,intellect,endurance,dexterity) = { | |
1729 | 1732 | let prologActions = prolog(i) | |
1730 | 1733 | if ((size(i.payments) != 0)) | |
1731 | 1734 | then throw("No payments required") | |
1732 | 1735 | else { | |
1733 | 1736 | let addr = toString(i.originCaller) | |
1734 | 1737 | let virtWlgData = asAnyList(invoke(wlgContract, "checkWlgXpREADONLY", [addr], nil)) | |
1735 | 1738 | let virtWlgPoints = asInt(virtWlgData[1]) | |
1736 | - | let $ | |
1739 | + | let $t0100244100634 = if ((0 >= virtWlgPoints)) | |
1737 | 1740 | then $Tuple2(0, nil) | |
1738 | 1741 | else { | |
1739 | 1742 | let deltaXP = asInt(invoke(wlgContract, "takeWlgXp", [addr], nil)) | |
1740 | 1743 | if ((deltaXP == deltaXP)) | |
1741 | 1744 | then $Tuple2(virtWlgPoints, [IntegerEntry(keyUserLevel(addr), asInt(virtWlgData[0])), IntegerEntry(keyUserXP(addr), asInt(virtWlgData[2]))]) | |
1742 | 1745 | else throw("Strict value is not equal to itself.") | |
1743 | 1746 | } | |
1744 | - | let wlgPoints = $ | |
1745 | - | let wlgActions = $ | |
1747 | + | let wlgPoints = $t0100244100634._1 | |
1748 | + | let wlgActions = $t0100244100634._2 | |
1746 | 1749 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1747 | 1750 | let freeKeyAcc = keyUserFreePoints(addr) | |
1748 | 1751 | let freePointsAcc = (valueOrElse(getInteger(freeKeyAcc), 0) + wlgPoints) | |
1749 | 1752 | let freeKeyDuck = keyDuckFreePoints(duckAssetId) | |
1750 | 1753 | let freePointsDuck = valueOrElse(getInteger(freeKeyDuck), 0) | |
1751 | 1754 | let sumFree = (freePointsAcc + freePointsDuck) | |
1752 | 1755 | let sumToDistribute = ((((strength + accuracy) + intellect) + endurance) + dexterity) | |
1753 | 1756 | if ((sumToDistribute > sumFree)) | |
1754 | 1757 | then throw((("There are only " + toString(sumFree)) + " free points to distribute")) | |
1755 | 1758 | else { | |
1756 | 1759 | let charsKey = keyDuckChars(duckAssetId) | |
1757 | 1760 | let chars = split(valueOrElse(getString(charsKey), "0_0_0_0_0"), "_") | |
1758 | 1761 | let newAcc = (freePointsAcc - sumToDistribute) | |
1759 | 1762 | $Tuple2((([IntegerEntry(freeKeyAcc, if ((0 > newAcc)) | |
1760 | 1763 | then 0 | |
1761 | 1764 | else newAcc), IntegerEntry(freeKeyDuck, if ((0 > newAcc)) | |
1762 | 1765 | then (freePointsDuck + newAcc) | |
1763 | 1766 | else freePointsDuck), StringEntry(charsKey, makeString([toString((parseIntValue(chars[charStrength]) + strength)), toString((parseIntValue(chars[charAccuracy]) + accuracy)), toString((parseIntValue(chars[charIntellect]) + intellect)), toString((parseIntValue(chars[charEndurance]) + endurance)), toString((parseIntValue(chars[charDexterity]) + dexterity))], "_"))] ++ prologActions) ++ wlgActions), 0) | |
1764 | 1767 | } | |
1765 | 1768 | } | |
1766 | 1769 | } | |
1767 | 1770 | ||
1768 | 1771 | ||
1769 | 1772 | ||
1770 | 1773 | @Callable(i) | |
1771 | 1774 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
1772 | 1775 | ||
1773 | 1776 | ||
1774 | 1777 | ||
1775 | 1778 | @Callable(i) | |
1776 | 1779 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
1777 | 1780 | let terrainCounts = countTerrains(terrains) | |
1778 | 1781 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
1779 | 1782 | } | |
1780 | 1783 | ||
1781 | 1784 | ||
1782 | 1785 | ||
1783 | 1786 | @Callable(i) | |
1784 | 1787 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
1785 | 1788 | ||
1786 | 1789 | ||
1787 | 1790 | ||
1788 | 1791 | @Callable(i) | |
1789 | 1792 | func getWarehouseREADONLY (landAssetId) = { | |
1790 | 1793 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1791 | 1794 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1792 | 1795 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1793 | 1796 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
1794 | 1797 | } | |
1795 | 1798 | ||
1796 | 1799 | ||
1797 | 1800 | ||
1798 | 1801 | @Callable(i) | |
1799 | 1802 | func saveLastTx () = if (!(containsElement([wlgContract, economyContract, tournamentContract, acresContract], i.caller))) | |
1800 | 1803 | then throw("Access denied") | |
1801 | 1804 | else $Tuple2(prolog(i), 42) | |
1802 | 1805 | ||
1803 | 1806 | ||
1804 | 1807 | ||
1805 | 1808 | @Callable(i) | |
1806 | 1809 | func updateDuckStats (duckAssetId,deltaXP) = if ((i.caller != economyContract)) | |
1807 | 1810 | then throw("Access denied") | |
1808 | 1811 | else updateDuckStatsInternal(duckAssetId, deltaXP) | |
1809 | 1812 | ||
1810 | 1813 | ||
1811 | 1814 | ||
1812 | 1815 | @Callable(i) | |
1813 | 1816 | func updateAccStats (addr,deltaXP) = if (!(containsElement([wlgContract, economyContract, acresContract], i.caller))) | |
1814 | 1817 | then throw("Access denied") | |
1815 | 1818 | else updateAccStatsInternal(addr, deltaXP) | |
1816 | 1819 | ||
1817 | 1820 | ||
1818 | 1821 | ||
1819 | 1822 | @Callable(i) | |
1820 | 1823 | func initDuckTourAttempt (duckAssetId) = if ((i.caller != tournamentContract)) | |
1821 | 1824 | then throw("Access denied") | |
1822 | 1825 | else { | |
1823 | 1826 | let keyHealth = keyDuckHealth(duckAssetId) | |
1824 | 1827 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1825 | 1828 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1826 | 1829 | let curLocKey = keyDuckLocation(duckAssetId) | |
1827 | 1830 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
1828 | 1831 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1829 | 1832 | let tourLocation = (toString(lastId) + "_T_0") | |
1830 | 1833 | $Tuple2([IntegerEntry(keySavedHealth(duckAssetId), curHealth), IntegerEntry(keyHealth, maxHP), StringEntry(keySavedLocation(duckAssetId), curLocation), StringEntry(curLocKey, tourLocation)], tourLocation) | |
1831 | 1834 | } | |
1832 | 1835 | ||
1833 | 1836 | ||
1834 | 1837 | ||
1835 | 1838 | @Callable(i) | |
1836 | 1839 | func breakAttempt () = { | |
1837 | 1840 | let prologActions = prolog(i) | |
1838 | 1841 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1839 | 1842 | let curLocKey = keyDuckLocation(duckAssetId) | |
1840 | 1843 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
1841 | 1844 | if ((split(curLocation, "_")[locIdxType] != "T")) | |
1842 | 1845 | then throw("Your duck is not in the tournament") | |
1843 | 1846 | else { | |
1844 | 1847 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
1845 | 1848 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
1846 | 1849 | $Tuple2(((prologActions :+ IntegerEntry(keyDuckHealth(duckAssetId), savedHealth)) :+ StringEntry(curLocKey, savedLocation)), curLocation) | |
1847 | 1850 | } | |
1848 | 1851 | } | |
1849 | 1852 | ||
1850 | 1853 | ||
1851 | 1854 | ||
1852 | 1855 | @Callable(i) | |
1853 | 1856 | func breakAttemptCallback () = if ((i.caller != tournamentContract)) | |
1854 | 1857 | then throw("Access denied") | |
1855 | 1858 | else { | |
1856 | 1859 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.originCaller))), "You don't have a duck staked") | |
1857 | 1860 | $Tuple2([IntegerEntry(keyDuckHealth(duckAssetId), getIntegerValue(keySavedHealth(duckAssetId))), StringEntry(keyDuckLocation(duckAssetId), getStringValue(keySavedLocation(duckAssetId)))], "breakAttemptCallback") | |
1858 | 1861 | } | |
1859 | 1862 | ||
1860 | 1863 | ||
1861 | 1864 | ||
1862 | 1865 | @Callable(i) | |
1863 | 1866 | func exitTournamentInternal (duckAssetId) = if ((i.caller != this)) | |
1864 | 1867 | then throw("Access denied") | |
1865 | 1868 | else { | |
1866 | 1869 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
1867 | 1870 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
1868 | 1871 | $Tuple2([IntegerEntry(keyDuckHealth(duckAssetId), savedHealth), StringEntry(keyDuckLocation(duckAssetId), savedLocation)], false) | |
1869 | 1872 | } | |
1870 | 1873 | ||
1871 | 1874 | ||
1872 | 1875 | ||
1873 | 1876 | @Callable(i) | |
1874 | 1877 | func processDelivery (duckAssetId) = if ((i.caller != this)) | |
1875 | 1878 | then throw("Access denied") | |
1876 | 1879 | else { | |
1877 | 1880 | let addr = toString(i.originCaller) | |
1878 | 1881 | let fundTotal = valueOrElse(getInteger(economyContract, deliveryFundKey), 0) | |
1879 | 1882 | if ((MIN_USDT_FEE_DELIVERY > fundTotal)) | |
1880 | 1883 | then throw(("Delivery is not available, fund=" + fixedPoint(fundTotal, 6))) | |
1881 | 1884 | else { | |
1882 | 1885 | let now = lastBlock.timestamp | |
1883 | 1886 | let countKey = keyUserDeliveryCount(addr) | |
1884 | 1887 | let lastDay = valueOrElse(getInteger(keyUserLastDeliveryDay(addr)), 0) | |
1885 | 1888 | let today = (now / DAYMILLIS) | |
1886 | 1889 | let count = if ((lastDay == today)) | |
1887 | 1890 | then valueOrElse(getInteger(countKey), 0) | |
1888 | 1891 | else 0 | |
1889 | 1892 | let acres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(addr)), 0) | |
1890 | 1893 | let allowedDeliveries = (ALLOWED_FREE_DELIVERIES + (acres / ACRES_FOR_DELIVERY_ATTEMPT)) | |
1891 | 1894 | if ((count >= allowedDeliveries)) | |
1892 | 1895 | then throw((("You already used " + toString(allowedDeliveries)) + " delivery attempts for today")) | |
1893 | 1896 | else { | |
1894 | 1897 | let globalCountKey = keyDuckDeliveryCount(duckAssetId) | |
1895 | 1898 | let reward = invoke(economyContract, "sendDeliveryReward", [addr], nil) | |
1896 | 1899 | $Tuple2([IntegerEntry(countKey, (count + 1)), IntegerEntry(keyUserLastDeliveryDay(addr), today), IntegerEntry(globalCountKey, (valueOrElse(getInteger(globalCountKey), 0) + 1))], reward) | |
1897 | 1900 | } | |
1898 | 1901 | } | |
1899 | 1902 | } | |
1900 | 1903 | ||
1901 | 1904 |
github/deemru/w8io/026f985 188.06 ms ◑