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