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