tx · HEEDWBbdtpGxwWVaumyPQfaX8sJMAMYDdH2nW1DMTX6c 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.02500000 Waves 2023.07.06 14:52 [2654003] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "HEEDWBbdtpGxwWVaumyPQfaX8sJMAMYDdH2nW1DMTX6c", "fee": 2500000, "feeAssetId": null, "timestamp": 1688644342487, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "radnRPZd6Fc2d2YDup6nC5ESaKunbnccdqXpCUF8f7SU7f5SrgkX29Lwk8WreKAoikhyUZAAMF9w3zYKy8Wm7jV" ], "script": "base64:BgJHCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBCBIAEgBoAAZTQ0FMRTgAgMLXLwAMeHBMZXZlbFNjYWxlAIAZAA94cExldmVsUmVjaXBQb3cAoB8ACURFRkFVTFRIUABkABBzdHJlbmd0aFRvSHBCYXNlAJdRAAxjaGFyU3RyZW5ndGgAAAEMa2V5RHVja0NoYXJzAQtkdWNrQXNzZXRJZAkArAICAgpkdWNrQ2hhcnNfBQtkdWNrQXNzZXRJZAEJa2V5RHVja1hQAQtkdWNrQXNzZXRJZAkArAICAgdkdWNrWFBfBQtkdWNrQXNzZXRJZAERa2V5RHVja0ZyZWVQb2ludHMBC2R1Y2tBc3NldElkCQCsAgICD2R1Y2tGcmVlUG9pbnRzXwULZHVja0Fzc2V0SWQBCWtleVVzZXJYUAEEYWRkcgkArAICAgd1c2VyWFBfBQRhZGRyARFrZXlVc2VyRnJlZVBvaW50cwEEYWRkcgkArAICAg91c2VyRnJlZVBvaW50c18FBGFkZHIBCWxldmVsQnlYUAECeH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191c2R0QWN0aXZpdHlfXwkApAMBCQCRAwIFCGN1clN0YXRzBQ5pZHhXbGdBY3Rpdml0eQkAzAgCCQCsAgICFyVzJXMlZF9fdXNkdEFyYml0cmFnZV9fCQCkAwEJAJEDAgUIY3VyU3RhdHMFD2lkeFdsZ0FyYml0cmFnZQkAzAgCCQCsAgICEiVzJXMlZF9fdXNkdFBvb2xfXwkApAMBCQCRAwIFCGN1clN0YXRzBQppZHhXbGdQb29sBQNuaWwANAlSxA==", "height": 2654003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5f19ccKgFHpRX88XYmSYk8fZJ6toxEavskzbH2sHbKwb Next: bKMiKvRALqamuPfr88KphJwqoLZBNM2XEsRPrBqj5xm Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let SCALE8 = 100000000 | |
5 | + | ||
6 | + | let xpLevelScale = 3200 | |
7 | + | ||
8 | + | let xpLevelRecipPow = 4000 | |
9 | + | ||
10 | + | let DEFAULTHP = 100 | |
11 | + | ||
12 | + | let strengthToHpBase = 10391 | |
13 | + | ||
14 | + | let charStrength = 0 | |
15 | + | ||
16 | + | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
17 | + | ||
18 | + | ||
19 | + | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
20 | + | ||
21 | + | ||
22 | + | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
23 | + | ||
24 | + | ||
25 | + | func keyUserXP (addr) = ("userXP_" + addr) | |
26 | + | ||
27 | + | ||
28 | + | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
29 | + | ||
30 | + | ||
31 | + | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 0, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
32 | + | ||
33 | + | ||
34 | + | func maxHealthByStrength (strength) = fraction(DEFAULTHP, pow(strengthToHpBase, 4, strength, 0, 8, DOWN), SCALE8) | |
35 | + | ||
36 | + | ||
4 | 37 | let ARTPRESALE = "PRESALE" | |
5 | 38 | ||
6 | 39 | let NUMRES = 6 | |
369 | 402 | let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "") | |
370 | 403 | let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "") | |
371 | 404 | let pieces = getVotingPower(userAddressOpt)[IdxEffUser] | |
372 | - | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + refBy), ("%s%s__referrals__" + refs), ("%s%s__lastTxId__" + lastTxId), ("%s%s%d__wavesBalance__" + toString(balance.available)), ("%s%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%s%d__stakedPieces__" + toString(pieces))] | |
405 | + | let xp = valueOrElse(getInteger(stakingContract, keyUserXP(userAddressOpt)), 0) | |
406 | + | let lvl = levelByXP(xp) | |
407 | + | let freePoints = valueOrElse(getInteger(stakingContract, keyUserFreePoints(userAddressOpt)), 0) | |
408 | + | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + refBy), ("%s%s__referrals__" + refs), ("%s%s__lastTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__stakedPieces__" + toString(pieces)), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints))] | |
373 | 409 | } | |
374 | 410 | ||
375 | 411 | ||
401 | 437 | ||
402 | 438 | func duckInfoArray (duckAssetId,owner,duckInf) = { | |
403 | 439 | let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2) | |
404 | - | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%s__backPack__" + duckInf._5)] | |
440 | + | let chars = valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0") | |
441 | + | let xp = valueOrElse(getInteger(stakingContract, keyDuckXP(duckAssetId)), 0) | |
442 | + | let lvl = levelByXP(xp) | |
443 | + | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
444 | + | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%d__maxHealth__" + toString(maxHealthByStrength(parseIntValue(split(chars, "_")[charStrength])))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5)] | |
405 | 445 | } | |
406 | 446 | ||
407 | 447 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let SCALE8 = 100000000 | |
5 | + | ||
6 | + | let xpLevelScale = 3200 | |
7 | + | ||
8 | + | let xpLevelRecipPow = 4000 | |
9 | + | ||
10 | + | let DEFAULTHP = 100 | |
11 | + | ||
12 | + | let strengthToHpBase = 10391 | |
13 | + | ||
14 | + | let charStrength = 0 | |
15 | + | ||
16 | + | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
17 | + | ||
18 | + | ||
19 | + | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
20 | + | ||
21 | + | ||
22 | + | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
23 | + | ||
24 | + | ||
25 | + | func keyUserXP (addr) = ("userXP_" + addr) | |
26 | + | ||
27 | + | ||
28 | + | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
29 | + | ||
30 | + | ||
31 | + | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 0, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
32 | + | ||
33 | + | ||
34 | + | func maxHealthByStrength (strength) = fraction(DEFAULTHP, pow(strengthToHpBase, 4, strength, 0, 8, DOWN), SCALE8) | |
35 | + | ||
36 | + | ||
4 | 37 | let ARTPRESALE = "PRESALE" | |
5 | 38 | ||
6 | 39 | let NUMRES = 6 | |
7 | 40 | ||
8 | 41 | let DAILYRESBYPIECE = 3456000 | |
9 | 42 | ||
10 | 43 | let DAYMILLIS = 86400000 | |
11 | 44 | ||
12 | 45 | let WHMULTIPLIER = 10000000000 | |
13 | 46 | ||
14 | 47 | let RESOURCEPRICEMIN = 39637 | |
15 | 48 | ||
16 | 49 | let ESMAXPACKAGES = 3 | |
17 | 50 | ||
18 | 51 | let ESBUYCOEF = 4 | |
19 | 52 | ||
20 | 53 | let ESSELLCOEF = 10 | |
21 | 54 | ||
22 | 55 | 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"] | |
23 | 56 | ||
24 | 57 | let recipeIdxPacksize = 7 | |
25 | 58 | ||
26 | 59 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
27 | 60 | ||
28 | 61 | ||
29 | 62 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
30 | 63 | ||
31 | 64 | ||
32 | 65 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
33 | 66 | ||
34 | 67 | ||
35 | 68 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
36 | 69 | ||
37 | 70 | ||
38 | 71 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
39 | 72 | ||
40 | 73 | ||
41 | 74 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
42 | 75 | ||
43 | 76 | ||
44 | 77 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
45 | 78 | ||
46 | 79 | ||
47 | 80 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
48 | 81 | ||
49 | 82 | ||
50 | 83 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
51 | 84 | ||
52 | 85 | ||
53 | 86 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
54 | 87 | ||
55 | 88 | ||
56 | 89 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
57 | 90 | ||
58 | 91 | ||
59 | 92 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
60 | 93 | ||
61 | 94 | ||
62 | 95 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
63 | 96 | ||
64 | 97 | ||
65 | 98 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
66 | 99 | ||
67 | 100 | ||
68 | 101 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
69 | 102 | ||
70 | 103 | ||
71 | 104 | func keyBlocked () = "contractsBlocked" | |
72 | 105 | ||
73 | 106 | ||
74 | 107 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
75 | 108 | ||
76 | 109 | ||
77 | 110 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
78 | 111 | ||
79 | 112 | ||
80 | 113 | let IdxEffUser = 1 | |
81 | 114 | ||
82 | 115 | func getRecipeMaterials (recipe) = { | |
83 | 116 | func addMat (ac,j) = (ac + parseIntValue(recipe[j])) | |
84 | 117 | ||
85 | 118 | let $l = [0, 1, 2, 3, 4, 5] | |
86 | 119 | let $s = size($l) | |
87 | 120 | let $acc0 = 0 | |
88 | 121 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
89 | 122 | then $a | |
90 | 123 | else addMat($a, $l[$i]) | |
91 | 124 | ||
92 | 125 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
93 | 126 | then $a | |
94 | 127 | else throw("List size exceeds 6") | |
95 | 128 | ||
96 | 129 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
97 | 130 | } | |
98 | 131 | ||
99 | 132 | ||
100 | 133 | let chain = take(drop(this.bytes, 1), 1) | |
101 | 134 | ||
102 | 135 | let usdtAssetId = match chain { | |
103 | 136 | case _ => | |
104 | 137 | if ((base58'2W' == $match0)) | |
105 | 138 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
106 | 139 | else if ((base58'2T' == $match0)) | |
107 | 140 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
108 | 141 | else throw("Unknown chain") | |
109 | 142 | } | |
110 | 143 | ||
111 | 144 | let defaultRestAddressStr = match chain { | |
112 | 145 | case _ => | |
113 | 146 | if ((base58'2W' == $match0)) | |
114 | 147 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
115 | 148 | else if ((base58'2T' == $match0)) | |
116 | 149 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
117 | 150 | else throw("Unknown chain") | |
118 | 151 | } | |
119 | 152 | ||
120 | 153 | let InfraUpgradeCostS = match chain { | |
121 | 154 | case _ => | |
122 | 155 | if ((base58'2W' == $match0)) | |
123 | 156 | then 10000000000 | |
124 | 157 | else if ((base58'2T' == $match0)) | |
125 | 158 | then 100000000 | |
126 | 159 | else throw("Unknown chain") | |
127 | 160 | } | |
128 | 161 | ||
129 | 162 | let SEP = "__" | |
130 | 163 | ||
131 | 164 | let MULT6 = 1000000 | |
132 | 165 | ||
133 | 166 | let MULT8 = 100000000 | |
134 | 167 | ||
135 | 168 | let SSIZE = 25 | |
136 | 169 | ||
137 | 170 | let MSIZE = 100 | |
138 | 171 | ||
139 | 172 | let LSIZE = 225 | |
140 | 173 | ||
141 | 174 | let XLSIZE = 400 | |
142 | 175 | ||
143 | 176 | let XXLSIZE = 625 | |
144 | 177 | ||
145 | 178 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
146 | 179 | ||
147 | 180 | ||
148 | 181 | let IdxCfgStakingDapp = 1 | |
149 | 182 | ||
150 | 183 | let IdxCfgEconomyDapp = 2 | |
151 | 184 | ||
152 | 185 | let IdxCfgWlgDapp = 4 | |
153 | 186 | ||
154 | 187 | let IdxCfgPuzzlePoolDapp = 5 | |
155 | 188 | ||
156 | 189 | func keyRestCfg () = "%s__restConfig" | |
157 | 190 | ||
158 | 191 | ||
159 | 192 | func keyRestAddress () = "%s__restAddr" | |
160 | 193 | ||
161 | 194 | ||
162 | 195 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
163 | 196 | ||
164 | 197 | ||
165 | 198 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
166 | 199 | ||
167 | 200 | ||
168 | 201 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
169 | 202 | ||
170 | 203 | let restCfg = readRestCfgOrFail(restContract) | |
171 | 204 | ||
172 | 205 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
173 | 206 | ||
174 | 207 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
175 | 208 | ||
176 | 209 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
177 | 210 | ||
178 | 211 | let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp) | |
179 | 212 | ||
180 | 213 | let recLandNum = 0 | |
181 | 214 | ||
182 | 215 | let recLandSize = 1 | |
183 | 216 | ||
184 | 217 | let recTerrains = 2 | |
185 | 218 | ||
186 | 219 | let recContinent = 3 | |
187 | 220 | ||
188 | 221 | func keyResProportions () = "resTypesProportions" | |
189 | 222 | ||
190 | 223 | ||
191 | 224 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
192 | 225 | ||
193 | 226 | ||
194 | 227 | let wlgIssuedAmountKey = "wlg_issuedAmount" | |
195 | 228 | ||
196 | 229 | let wlgAssetIdKey = "wlg_assetId" | |
197 | 230 | ||
198 | 231 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet") | |
199 | 232 | ||
200 | 233 | let idxWlgAmount = 0 | |
201 | 234 | ||
202 | 235 | let idxWlgPrice = 1 | |
203 | 236 | ||
204 | 237 | let idxWlgFunds = 2 | |
205 | 238 | ||
206 | 239 | let idxWlgEconomy = 3 | |
207 | 240 | ||
208 | 241 | let idxWlgActivity = 4 | |
209 | 242 | ||
210 | 243 | let idxWlgArbitrage = 5 | |
211 | 244 | ||
212 | 245 | let idxWlgPool = 6 | |
213 | 246 | ||
214 | 247 | func asString (v) = match v { | |
215 | 248 | case s: String => | |
216 | 249 | s | |
217 | 250 | case _ => | |
218 | 251 | throw("fail to cast into String") | |
219 | 252 | } | |
220 | 253 | ||
221 | 254 | ||
222 | 255 | func asInt (v) = match v { | |
223 | 256 | case n: Int => | |
224 | 257 | n | |
225 | 258 | case _ => | |
226 | 259 | throw("fail to cast into Int") | |
227 | 260 | } | |
228 | 261 | ||
229 | 262 | ||
230 | 263 | func asBoolean (v) = match v { | |
231 | 264 | case s: Boolean => | |
232 | 265 | s | |
233 | 266 | case _ => | |
234 | 267 | throw("fail to cast into Boolean") | |
235 | 268 | } | |
236 | 269 | ||
237 | 270 | ||
238 | 271 | func numPiecesBySize (landSize) = match landSize { | |
239 | 272 | case _ => | |
240 | 273 | if (("S" == $match0)) | |
241 | 274 | then SSIZE | |
242 | 275 | else if (("M" == $match0)) | |
243 | 276 | then MSIZE | |
244 | 277 | else if (("L" == $match0)) | |
245 | 278 | then LSIZE | |
246 | 279 | else if (("XL" == $match0)) | |
247 | 280 | then XLSIZE | |
248 | 281 | else if (("XXL" == $match0)) | |
249 | 282 | then XXLSIZE | |
250 | 283 | else throw("Unknown land size") | |
251 | 284 | } | |
252 | 285 | ||
253 | 286 | ||
254 | 287 | func getVotingPower (userAddrStrOrEmpty) = { | |
255 | 288 | let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_") | |
256 | 289 | func adder (acc,item) = (acc + parseIntValue(item)) | |
257 | 290 | ||
258 | 291 | let totalPower = { | |
259 | 292 | let $l = props | |
260 | 293 | let $s = size($l) | |
261 | 294 | let $acc0 = 0 | |
262 | 295 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
263 | 296 | then $a | |
264 | 297 | else adder($a, $l[$i]) | |
265 | 298 | ||
266 | 299 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
267 | 300 | then $a | |
268 | 301 | else throw("List size exceeds 6") | |
269 | 302 | ||
270 | 303 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
271 | 304 | } | |
272 | 305 | let usersPower = if ((userAddrStrOrEmpty == "")) | |
273 | 306 | then 0 | |
274 | 307 | else { | |
275 | 308 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(userAddrStrOrEmpty)) | |
276 | 309 | let lands = if (isDefined(landsStr)) | |
277 | 310 | then split_51C(value(landsStr), "_") | |
278 | 311 | else nil | |
279 | 312 | func oneLand (acc,landAssetId) = { | |
280 | 313 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
281 | 314 | let landSize = split(asset.description, "_")[recLandSize] | |
282 | 315 | (acc + numPiecesBySize(landSize)) | |
283 | 316 | } | |
284 | 317 | ||
285 | 318 | let $l = lands | |
286 | 319 | let $s = size($l) | |
287 | 320 | let $acc0 = 0 | |
288 | 321 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
289 | 322 | then $a | |
290 | 323 | else oneLand($a, $l[$i]) | |
291 | 324 | ||
292 | 325 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
293 | 326 | then $a | |
294 | 327 | else throw("List size exceeds 100") | |
295 | 328 | ||
296 | 329 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 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) | |
297 | 330 | } | |
298 | 331 | [totalPower, usersPower] | |
299 | 332 | } | |
300 | 333 | ||
301 | 334 | ||
302 | 335 | func getWlgStats () = { | |
303 | 336 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
304 | 337 | let economyUsd = assetBalance(economyContract, usdtAssetId) | |
305 | 338 | let restUsd = assetBalance(restContract, usdtAssetId) | |
306 | 339 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
307 | 340 | let puzzleUsd = assetBalance(puzzlePoolContract, usdtAssetId) | |
308 | 341 | let totalFundsUsd = ((economyUsd + restUsd) + wlgUsd) | |
309 | 342 | [issuedAmount, fraction(totalFundsUsd, MULT8, issuedAmount), totalFundsUsd, economyUsd, restUsd, wlgUsd, puzzleUsd] | |
310 | 343 | } | |
311 | 344 | ||
312 | 345 | ||
313 | 346 | let USDTPRIZEPART = 500000 | |
314 | 347 | ||
315 | 348 | func asListIntCompacted (val) = match val { | |
316 | 349 | case valAnyList: List[Any] => | |
317 | 350 | if ((size(valAnyList) != NUMRES)) | |
318 | 351 | then throw(("Array size is " + toString(size(valAnyList)))) | |
319 | 352 | else { | |
320 | 353 | func conv (acc,item) = match item { | |
321 | 354 | case it: Int => | |
322 | 355 | (acc :+ toString(it)) | |
323 | 356 | case _ => | |
324 | 357 | throw("List type is not Int") | |
325 | 358 | } | |
326 | 359 | ||
327 | 360 | let r = { | |
328 | 361 | let $l = valAnyList | |
329 | 362 | let $s = size($l) | |
330 | 363 | let $acc0 = nil | |
331 | 364 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
332 | 365 | then $a | |
333 | 366 | else conv($a, $l[$i]) | |
334 | 367 | ||
335 | 368 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
336 | 369 | then $a | |
337 | 370 | else throw("List size exceeds 6") | |
338 | 371 | ||
339 | 372 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
340 | 373 | } | |
341 | 374 | makeString(r, "_") | |
342 | 375 | } | |
343 | 376 | case _ => | |
344 | 377 | throw("fail to cast into List") | |
345 | 378 | } | |
346 | 379 | ||
347 | 380 | ||
348 | 381 | func asSplitResult (val) = match val { | |
349 | 382 | case t2: (List[Any], List[Any]) => | |
350 | 383 | $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2)) | |
351 | 384 | case _ => | |
352 | 385 | throw("fail to cast into (List, List)") | |
353 | 386 | } | |
354 | 387 | ||
355 | 388 | ||
356 | 389 | func walletInternal (userAddressOpt) = { | |
357 | 390 | let addr = addressFromString(userAddressOpt) | |
358 | 391 | let balance = if (isDefined(addr)) | |
359 | 392 | then wavesBalance(value(addr)) | |
360 | 393 | else BalanceDetails(0, 0, 0, 0) | |
361 | 394 | let usdtBalance = if (isDefined(addr)) | |
362 | 395 | then assetBalance(value(addr), usdtAssetId) | |
363 | 396 | else 0 | |
364 | 397 | let wlgoldBalance = if (isDefined(addr)) | |
365 | 398 | then assetBalance(value(addr), wlgAssetId) | |
366 | 399 | else 0 | |
367 | 400 | let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
368 | 401 | let refBy = valueOrElse(getString(stakingContract, keyAddressRefBy(userAddressOpt)), "") | |
369 | 402 | let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "") | |
370 | 403 | let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "") | |
371 | 404 | let pieces = getVotingPower(userAddressOpt)[IdxEffUser] | |
372 | - | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + refBy), ("%s%s__referrals__" + refs), ("%s%s__lastTxId__" + lastTxId), ("%s%s%d__wavesBalance__" + toString(balance.available)), ("%s%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%s%d__stakedPieces__" + toString(pieces))] | |
405 | + | let xp = valueOrElse(getInteger(stakingContract, keyUserXP(userAddressOpt)), 0) | |
406 | + | let lvl = levelByXP(xp) | |
407 | + | let freePoints = valueOrElse(getInteger(stakingContract, keyUserFreePoints(userAddressOpt)), 0) | |
408 | + | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + refBy), ("%s%s__referrals__" + refs), ("%s%s__lastTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__stakedPieces__" + toString(pieces)), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints))] | |
373 | 409 | } | |
374 | 410 | ||
375 | 411 | ||
376 | 412 | func applyBonuses (landAssetId,pieces) = { | |
377 | 413 | let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0) | |
378 | 414 | let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
379 | 415 | let add6 = (infraLevel / 6) | |
380 | 416 | let add7 = (infraLevel / 7) | |
381 | 417 | $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))) | |
382 | 418 | } | |
383 | 419 | ||
384 | 420 | ||
385 | 421 | func getWarehouseTotalVolume (volPrefix) = { | |
386 | 422 | let parts = split(volPrefix, "_") | |
387 | 423 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
388 | 424 | } | |
389 | 425 | ||
390 | 426 | ||
391 | 427 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
392 | 428 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
393 | 429 | let totS = toString(getWarehouseTotalVolume(volPrefix)) | |
394 | 430 | let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS)) | |
395 | 431 | split(whStr, ":") | |
396 | 432 | } | |
397 | 433 | ||
398 | 434 | ||
399 | 435 | func duckInfoTuple (duckAssetId) = $Tuple5(valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(duckAssetId)), -1), value(assetInfo(fromBase58String(duckAssetId))).name, valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), ""), valueOrElse(getInteger(stakingContract, keyDuckHealth(duckAssetId)), -1), asString(invoke(stakingContract, "getBackpackREADONLY", [duckAssetId], nil))) | |
400 | 436 | ||
401 | 437 | ||
402 | 438 | func duckInfoArray (duckAssetId,owner,duckInf) = { | |
403 | 439 | let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2) | |
404 | - | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%s__backPack__" + duckInf._5)] | |
440 | + | let chars = valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0") | |
441 | + | let xp = valueOrElse(getInteger(stakingContract, keyDuckXP(duckAssetId)), 0) | |
442 | + | let lvl = levelByXP(xp) | |
443 | + | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
444 | + | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%d__maxHealth__" + toString(maxHealthByStrength(parseIntValue(split(chars, "_")[charStrength])))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5)] | |
405 | 445 | } | |
406 | 446 | ||
407 | 447 | ||
408 | 448 | func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == "")) | |
409 | 449 | then throw("landAssetId is required") | |
410 | 450 | else { | |
411 | 451 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
412 | 452 | let d = split(a.description, "_") | |
413 | 453 | let landNum = if ((a.quantity > 0)) | |
414 | 454 | then d[recLandNum] | |
415 | 455 | else ("-" + d[recLandNum]) | |
416 | 456 | let pieces = numPiecesBySize(d[recLandSize]) | |
417 | 457 | let productivity = applyBonuses(landAssetId, pieces) | |
418 | 458 | let deltaTime = (lastBlock.timestamp - stakedTime) | |
419 | 459 | let availRes = if ((stakedTime > 0)) | |
420 | 460 | then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS) | |
421 | 461 | else 0 | |
422 | 462 | let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE) | |
423 | 463 | let globalAndLocal = if ((stakedTime > 0)) | |
424 | 464 | then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil)) | |
425 | 465 | else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "") | |
426 | 466 | let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum])) | |
427 | 467 | [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(stakedTime)), ("%s%s__description__" + makeString([landNum, d[recLandSize], d[recTerrains], d[recContinent]], "_")), ("%s%d__infraLevel__" + toString(productivity._1)), ("%s%s__availResByType__" + globalAndLocal._2), ("%s%d__availResTotal__" + toString(availRes)), ("%s%s__needMaterial__" + globalAndLocal._1), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(productivity._2))], SEP), ("%s%s__warehouse__" + makeString(getWarehouse(keyWarehouseByLand(landAssetId), (pieces / SSIZE), productivity._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
428 | 468 | } | |
429 | 469 | ||
430 | 470 | ||
431 | 471 | func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == "")) | |
432 | 472 | then throw("landAssetId is required") | |
433 | 473 | else { | |
434 | 474 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
435 | 475 | let d = split(a.description, "_") | |
436 | 476 | let pieces = numPiecesBySize(d[recLandSize]) | |
437 | 477 | let productivity = applyBonuses(landAssetId, pieces) | |
438 | 478 | [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%s%s__warehouse__" + makeString(getWarehouse(keyWarehouseByLand(landAssetId), (pieces / SSIZE), productivity._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
439 | 479 | } | |
440 | 480 | ||
441 | 481 | ||
442 | 482 | @Callable(i) | |
443 | 483 | func constructorV1 (contracts) = if ((i.caller != this)) | |
444 | 484 | then throw("permissions denied") | |
445 | 485 | else { | |
446 | 486 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
447 | 487 | ||
448 | 488 | let descr = { | |
449 | 489 | let $l = contracts | |
450 | 490 | let $s = size($l) | |
451 | 491 | let $acc0 = "" | |
452 | 492 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
453 | 493 | then $a | |
454 | 494 | else descriptor($a, $l[$i]) | |
455 | 495 | ||
456 | 496 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
457 | 497 | then $a | |
458 | 498 | else throw("List size exceeds 10") | |
459 | 499 | ||
460 | 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) | |
461 | 501 | } | |
462 | 502 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))] | |
463 | 503 | } | |
464 | 504 | ||
465 | 505 | ||
466 | 506 | ||
467 | 507 | @Callable(i) | |
468 | 508 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
469 | 509 | ||
470 | 510 | ||
471 | 511 | ||
472 | 512 | @Callable(i) | |
473 | 513 | func duckByOwnerInfoREADONLY (userAddress) = { | |
474 | 514 | let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress)) | |
475 | 515 | $Tuple2(nil, if (if (isDefined(addressFromString(userAddress))) | |
476 | 516 | then isDefined(stakedDuck) | |
477 | 517 | else false) | |
478 | 518 | then { | |
479 | 519 | let duckAssetId = value(stakedDuck) | |
480 | 520 | duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId)) | |
481 | 521 | } | |
482 | 522 | else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, ""))) | |
483 | 523 | } | |
484 | 524 | ||
485 | 525 | ||
486 | 526 | ||
487 | 527 | @Callable(i) | |
488 | 528 | func duckByAssetIdInfoREADONLY (duckAssetId) = { | |
489 | 529 | let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId)) | |
490 | 530 | let duckInf = duckInfoTuple(duckAssetId) | |
491 | 531 | $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner)) | |
492 | 532 | then value(owner) | |
493 | 533 | else "", duckInfoTuple(duckAssetId))) | |
494 | 534 | } | |
495 | 535 | ||
496 | 536 | ||
497 | 537 | ||
498 | 538 | @Callable(i) | |
499 | 539 | func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
500 | 540 | then throw("landAssetId is required") | |
501 | 541 | else { | |
502 | 542 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
503 | 543 | let owner = if ((stakedTime > 0)) | |
504 | 544 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
505 | 545 | else "" | |
506 | 546 | $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime)) | |
507 | 547 | } | |
508 | 548 | ||
509 | 549 | ||
510 | 550 | ||
511 | 551 | @Callable(i) | |
512 | 552 | func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == "")) | |
513 | 553 | then throw("landOwnerAddress is required") | |
514 | 554 | else { | |
515 | 555 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress)) | |
516 | 556 | let lands = if (isDefined(landsStr)) | |
517 | 557 | then split_51C(value(landsStr), "_") | |
518 | 558 | else nil | |
519 | 559 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
520 | 560 | then throw("landAssetId is required") | |
521 | 561 | else { | |
522 | 562 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
523 | 563 | (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime)) | |
524 | 564 | } | |
525 | 565 | ||
526 | 566 | let r = { | |
527 | 567 | let $l = lands | |
528 | 568 | let $s = size($l) | |
529 | 569 | let $acc0 = nil | |
530 | 570 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
531 | 571 | then $a | |
532 | 572 | else oneLand($a, $l[$i]) | |
533 | 573 | ||
534 | 574 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
535 | 575 | then $a | |
536 | 576 | else throw("List size exceeds 100") | |
537 | 577 | ||
538 | 578 | $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) | |
539 | 579 | } | |
540 | 580 | $Tuple2(nil, r) | |
541 | 581 | } | |
542 | 582 | ||
543 | 583 | ||
544 | 584 | ||
545 | 585 | @Callable(i) | |
546 | 586 | func landsByIdsInfoREADONLY (landAssetIds) = { | |
547 | 587 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
548 | 588 | then throw("landAssetId is required") | |
549 | 589 | else { | |
550 | 590 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
551 | 591 | let owner = if ((stakedTime > 0)) | |
552 | 592 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
553 | 593 | else "" | |
554 | 594 | (acc :+ landInfoArray(landAssetId, owner, stakedTime)) | |
555 | 595 | } | |
556 | 596 | ||
557 | 597 | let r = { | |
558 | 598 | let $l = landAssetIds | |
559 | 599 | let $s = size($l) | |
560 | 600 | let $acc0 = nil | |
561 | 601 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
562 | 602 | then $a | |
563 | 603 | else oneLand($a, $l[$i]) | |
564 | 604 | ||
565 | 605 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
566 | 606 | then $a | |
567 | 607 | else throw("List size exceeds 100") | |
568 | 608 | ||
569 | 609 | $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) | |
570 | 610 | } | |
571 | 611 | $Tuple2(nil, r) | |
572 | 612 | } | |
573 | 613 | ||
574 | 614 | ||
575 | 615 | ||
576 | 616 | @Callable(i) | |
577 | 617 | func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
578 | 618 | then throw("landAssetId is required") | |
579 | 619 | else { | |
580 | 620 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
581 | 621 | let owner = if ((stakedTime > 0)) | |
582 | 622 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
583 | 623 | else "" | |
584 | 624 | $Tuple2(nil, landOrderInfoArray(landAssetId, owner)) | |
585 | 625 | } | |
586 | 626 | ||
587 | 627 | ||
588 | 628 | ||
589 | 629 | @Callable(i) | |
590 | 630 | func ordersByLandIdsInfoREADONLY (landAssetIds) = { | |
591 | 631 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
592 | 632 | then throw("landAssetId is required") | |
593 | 633 | else { | |
594 | 634 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
595 | 635 | let owner = if ((stakedTime > 0)) | |
596 | 636 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
597 | 637 | else "" | |
598 | 638 | (acc :+ landOrderInfoArray(landAssetId, owner)) | |
599 | 639 | } | |
600 | 640 | ||
601 | 641 | let r = { | |
602 | 642 | let $l = landAssetIds | |
603 | 643 | let $s = size($l) | |
604 | 644 | let $acc0 = nil | |
605 | 645 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
606 | 646 | then $a | |
607 | 647 | else oneLand($a, $l[$i]) | |
608 | 648 | ||
609 | 649 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
610 | 650 | then $a | |
611 | 651 | else throw("List size exceeds 40") | |
612 | 652 | ||
613 | 653 | $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($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) | |
614 | 654 | } | |
615 | 655 | $Tuple2(nil, r) | |
616 | 656 | } | |
617 | 657 | ||
618 | 658 | ||
619 | 659 | ||
620 | 660 | @Callable(i) | |
621 | 661 | func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this)) | |
622 | 662 | then throw("permission denied") | |
623 | 663 | else { | |
624 | 664 | let blocked = getBoolean(stakingContract, keyBlocked()) | |
625 | 665 | if (if (!(isDefined(blocked))) | |
626 | 666 | then true | |
627 | 667 | else (value(blocked) == false)) | |
628 | 668 | then throw("Contracts should be blocked before canceling orders") | |
629 | 669 | else { | |
630 | 670 | func oneLand (a,landAssetId) = if ((landAssetId == "")) | |
631 | 671 | then throw("landAssetId is required") | |
632 | 672 | else { | |
633 | 673 | let c = asBoolean(invoke(economyContract, "setWarehouseOrder", ["0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:", landAssetId], nil)) | |
634 | 674 | if (if (a) | |
635 | 675 | then true | |
636 | 676 | else c) | |
637 | 677 | then !(if (a) | |
638 | 678 | then c | |
639 | 679 | else false) | |
640 | 680 | else false | |
641 | 681 | } | |
642 | 682 | ||
643 | 683 | let r = { | |
644 | 684 | let $l = landAssetIds | |
645 | 685 | let $s = size($l) | |
646 | 686 | let $acc0 = false | |
647 | 687 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
648 | 688 | then $a | |
649 | 689 | else oneLand($a, $l[$i]) | |
650 | 690 | ||
651 | 691 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
652 | 692 | then $a | |
653 | 693 | else throw("List size exceeds 30") | |
654 | 694 | ||
655 | 695 | $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($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) | |
656 | 696 | } | |
657 | 697 | $Tuple2(nil, r) | |
658 | 698 | } | |
659 | 699 | } | |
660 | 700 | ||
661 | 701 | ||
662 | 702 | ||
663 | 703 | @Callable(i) | |
664 | 704 | func fixWarehouseFormats (landAssetIds) = if ((i.caller != this)) | |
665 | 705 | then throw("permission denied") | |
666 | 706 | else { | |
667 | 707 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
668 | 708 | then throw("landAssetId is required") | |
669 | 709 | else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil)))) | |
670 | 710 | ||
671 | 711 | let r = { | |
672 | 712 | let $l = landAssetIds | |
673 | 713 | let $s = size($l) | |
674 | 714 | let $acc0 = 0 | |
675 | 715 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
676 | 716 | then $a | |
677 | 717 | else oneLand($a, $l[$i]) | |
678 | 718 | ||
679 | 719 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
680 | 720 | then $a | |
681 | 721 | else throw("List size exceeds 25") | |
682 | 722 | ||
683 | 723 | $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($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) | |
684 | 724 | } | |
685 | 725 | $Tuple2(nil, r) | |
686 | 726 | } | |
687 | 727 | ||
688 | 728 | ||
689 | 729 | ||
690 | 730 | @Callable(i) | |
691 | 731 | func fixStakedPieces (users) = if ((i.caller != this)) | |
692 | 732 | then throw("permission denied") | |
693 | 733 | else { | |
694 | 734 | func oneUser (acc,addr) = if ((addr == "")) | |
695 | 735 | then throw("address is required") | |
696 | 736 | else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil))) | |
697 | 737 | ||
698 | 738 | let r = { | |
699 | 739 | let $l = users | |
700 | 740 | let $s = size($l) | |
701 | 741 | let $acc0 = 0 | |
702 | 742 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
703 | 743 | then $a | |
704 | 744 | else oneUser($a, $l[$i]) | |
705 | 745 | ||
706 | 746 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
707 | 747 | then $a | |
708 | 748 | else throw("List size exceeds 16") | |
709 | 749 | ||
710 | 750 | $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
711 | 751 | } | |
712 | 752 | $Tuple2(nil, r) | |
713 | 753 | } | |
714 | 754 | ||
715 | 755 | ||
716 | 756 | ||
717 | 757 | @Callable(i) | |
718 | 758 | func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract)) | |
719 | 759 | then throw("permission denied") | |
720 | 760 | else { | |
721 | 761 | let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6) | |
722 | 762 | $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt) | |
723 | 763 | } | |
724 | 764 | ||
725 | 765 | ||
726 | 766 | ||
727 | 767 | @Callable(i) | |
728 | 768 | func getEmergencyServiceDataREADONLY () = { | |
729 | 769 | let existStr = getString(economyContract, keyEsWarehouse()) | |
730 | 770 | let existAmounts = if (isDefined(existStr)) | |
731 | 771 | then split(value(existStr), "_") | |
732 | 772 | else nil | |
733 | 773 | func singleProd (acc,recipeStr) = { | |
734 | 774 | let n = acc._2 | |
735 | 775 | let recipe = split(recipeStr, "_") | |
736 | 776 | let packSize = parseIntValue(recipe[recipeIdxPacksize]) | |
737 | 777 | let maxAmount = if ((n == 0)) | |
738 | 778 | then (ESMAXPACKAGES * packSize) | |
739 | 779 | else 0 | |
740 | 780 | let existAmount = if ((size(existAmounts) > n)) | |
741 | 781 | then parseIntValue(existAmounts[n]) | |
742 | 782 | else 0 | |
743 | 783 | let totalMat = getRecipeMaterials(recipe) | |
744 | 784 | let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (10 * packSize)) | |
745 | 785 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * packSize)) | |
746 | 786 | let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_") | |
747 | 787 | $Tuple2((acc._1 :+ y), (n + 1)) | |
748 | 788 | } | |
749 | 789 | ||
750 | 790 | let s = makeString_2C(( let $l = productionMatrix | |
751 | 791 | let $s = size($l) | |
752 | 792 | let $acc0 = $Tuple2(nil, 0) | |
753 | 793 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
754 | 794 | then $a | |
755 | 795 | else singleProd($a, $l[$i]) | |
756 | 796 | ||
757 | 797 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
758 | 798 | then $a | |
759 | 799 | else throw("List size exceeds 50") | |
760 | 800 | ||
761 | 801 | $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))._1, ":") | |
762 | 802 | let result = ("%s%s__emergencyServiceData__" + s) | |
763 | 803 | $Tuple2(nil, result) | |
764 | 804 | } | |
765 | 805 | ||
766 | 806 | ||
767 | 807 | ||
768 | 808 | @Callable(i) | |
769 | 809 | func wlgStatsREADONLY () = { | |
770 | 810 | let curStats = getWlgStats() | |
771 | 811 | $Tuple2(nil, [("%s%s%d__wlgAmount__" + toString(curStats[idxWlgAmount])), ("%s%s%d__wlgPrice__" + toString(curStats[idxWlgPrice])), ("%s%s%d__usdtFunds__" + toString(curStats[idxWlgFunds])), ("%s%s%d__usdtEconomy__" + toString(curStats[idxWlgEconomy])), ("%s%s%d__usdtActivity__" + toString(curStats[idxWlgActivity])), ("%s%s%d__usdtArbitrage__" + toString(curStats[idxWlgArbitrage])), ("%s%s%d__usdtPool__" + toString(curStats[idxWlgPool]))]) | |
772 | 812 | } | |
773 | 813 | ||
774 | 814 |
github/deemru/w8io/169f3d6 103.99 ms ◑