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