tx · 9nJQKA6bn3DNUsCWapqwWSbAdfmk948aRtrFSH4SRxor 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.03000000 Waves 2023.07.13 16:53 [2664190] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "9nJQKA6bn3DNUsCWapqwWSbAdfmk948aRtrFSH4SRxor", "fee": 3000000, "feeAssetId": null, "timestamp": 1689256532183, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "3PNQd57PQo8AEhkVavYWM5vmGuNPcMztrsT73sGZhTATV56juFccSF7QosWF86bTPGbd4erL2hGaxYxumwaxbC5r" ], "script": "base64:BgJKCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBCBIAEgMKAQiVAQACTTYAwIQ9AAJNOACAwtcvAAhNSUxMSU9ONgCAgOmDsd4WAA5NQVJLRVRJTkdTSEFSRQCgjQYACVRFQU1TSEFSRQDAmgwADUFDVElWSVRZU0hBUkUAoI0GAApZRUFSTUlMTElTAICG68d1AApXRUVLTUlMTElTAICIsqACAAlNQVhQRVJJT0QAnAEAEG1hcmtldGluZ0FkZHJLZXkCDW1hcmtldGluZ0FkZHIAC3RlYW1BZGRyS2V5Agh0ZWFtQWRkcgAUbGFzdE1hcmtldGluZ1RpbWVLZXkCGWxhc3RDbGFpbWVkVGltZV9tYXJrZXRpbmcAFm1hcmtldGluZ0Ftb3VudExlZnRLZXkCE21hcmtldGluZ0Ftb3VudExlZnQAD2xhc3RUZWFtVGltZUtleQIUbGFzdENsYWltZWRUaW1lX3RlYW0AEXRlYW1BbW91bnRMZWZ0S2V5Ag50ZWFtQW1vdW50TGVmdAAVbGFzdEFjdGl2aXRpZXNUaW1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"succeeded", "spentComplexity": 0 } View: original | compacted Prev: HBVk4SKZTM4P2EH5wNXkNrWZSUKELTw1jH3BqmGKhU3x Next: obPRefYqfY5pWQbneRqUdDG5X3mC1vMDogiSZ1a1nso Diff:
Old | New | Differences | |
---|---|---|---|
135 | 135 | let restUsd = assetBalance(contracts[dappRest], usdtId) | |
136 | 136 | let wlgUsd = assetBalance(contracts[dappWlg], usdtId) | |
137 | 137 | let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId) | |
138 | - | let totalFundsUsd = ( | |
138 | + | let totalFundsUsd = (economyUsd + wlgUsd) | |
139 | 139 | let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet") | |
140 | 140 | let now = lastBlock.timestamp | |
141 | 141 | let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let M6 = 1000000 | |
5 | 5 | ||
6 | 6 | let M8 = 100000000 | |
7 | 7 | ||
8 | 8 | let MILLION6 = 100000000000000 | |
9 | 9 | ||
10 | 10 | let MARKETINGSHARE = 100000 | |
11 | 11 | ||
12 | 12 | let TEAMSHARE = 200000 | |
13 | 13 | ||
14 | 14 | let ACTIVITYSHARE = 100000 | |
15 | 15 | ||
16 | 16 | let YEARMILLIS = 31557600000 | |
17 | 17 | ||
18 | 18 | let WEEKMILLIS = 604800000 | |
19 | 19 | ||
20 | 20 | let MAXPERIOD = 156 | |
21 | 21 | ||
22 | 22 | let marketingAddrKey = "marketingAddr" | |
23 | 23 | ||
24 | 24 | let teamAddrKey = "teamAddr" | |
25 | 25 | ||
26 | 26 | let lastMarketingTimeKey = "lastClaimedTime_marketing" | |
27 | 27 | ||
28 | 28 | let marketingAmountLeftKey = "marketingAmountLeft" | |
29 | 29 | ||
30 | 30 | let lastTeamTimeKey = "lastClaimedTime_team" | |
31 | 31 | ||
32 | 32 | let teamAmountLeftKey = "teamAmountLeft" | |
33 | 33 | ||
34 | 34 | let lastActivitiesTimeKey = "lastClaimedTime_activities" | |
35 | 35 | ||
36 | 36 | let actAmountLeftKey = "activitiesAmountLeft" | |
37 | 37 | ||
38 | 38 | let stakersAmountLeftKey = "stakersAmountLeft" | |
39 | 39 | ||
40 | 40 | func keyLastClaimedTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | let wlgIssueTimeKey = "wlg_issueTime" | |
44 | 44 | ||
45 | 45 | let wlgIssuedAmountKey = "wlg_issuedAmount" | |
46 | 46 | ||
47 | 47 | let idxWlgAmount = 0 | |
48 | 48 | ||
49 | 49 | let idxWlgPrice = 1 | |
50 | 50 | ||
51 | 51 | let idxWlgFunds = 2 | |
52 | 52 | ||
53 | 53 | let idxWlgEconomy = 3 | |
54 | 54 | ||
55 | 55 | let idxWlgActivity = 4 | |
56 | 56 | ||
57 | 57 | let idxWlgArbitrage = 5 | |
58 | 58 | ||
59 | 59 | let idxWlgPool = 6 | |
60 | 60 | ||
61 | 61 | let idxWlgIssueTime = 7 | |
62 | 62 | ||
63 | 63 | let idxWlgLastMTATime = 8 | |
64 | 64 | ||
65 | 65 | let idxWlgMarketingTotal = 9 | |
66 | 66 | ||
67 | 67 | let idxWlgMarketingAmLeft = 10 | |
68 | 68 | ||
69 | 69 | let idxWlgMarketingAmAvailNow = 11 | |
70 | 70 | ||
71 | 71 | let idxWlgMarketingWlgold = 12 | |
72 | 72 | ||
73 | 73 | let idxWlgTeamTotal = 13 | |
74 | 74 | ||
75 | 75 | let idxWlgTeamAmLeft = 14 | |
76 | 76 | ||
77 | 77 | let idxWlgTeamAmAvailNow = 15 | |
78 | 78 | ||
79 | 79 | let idxWlgTeamWlgold = 16 | |
80 | 80 | ||
81 | 81 | let idxWlgActTotal = 17 | |
82 | 82 | ||
83 | 83 | let idxWlgActAmLeft = 18 | |
84 | 84 | ||
85 | 85 | let idxWlgActAmAvailNow = 19 | |
86 | 86 | ||
87 | 87 | let idxWlgActWlgold = 20 | |
88 | 88 | ||
89 | 89 | let idxWlgCurPeriod = 21 | |
90 | 90 | ||
91 | 91 | let idxWlgAmLeftTotal = 22 | |
92 | 92 | ||
93 | 93 | let idxWlgCurPeriodDistribution = 23 | |
94 | 94 | ||
95 | 95 | let idxWlgLastUserTime = 24 | |
96 | 96 | ||
97 | 97 | let idxWlgUserAmAvailNow = 25 | |
98 | 98 | ||
99 | 99 | let dappRest = 0 | |
100 | 100 | ||
101 | 101 | let dappStaking = 1 | |
102 | 102 | ||
103 | 103 | let dappEconomy = 2 | |
104 | 104 | ||
105 | 105 | let dappWlg = 4 | |
106 | 106 | ||
107 | 107 | let dappPuzzle = 5 | |
108 | 108 | ||
109 | 109 | func getPieces (userAddrStrOrEmpty,stakingContract) = { | |
110 | 110 | let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
111 | 111 | func adder (acc,item) = (acc + parseIntValue(item)) | |
112 | 112 | ||
113 | 113 | let totalPower = { | |
114 | 114 | let $l = props | |
115 | 115 | let $s = size($l) | |
116 | 116 | let $acc0 = 0 | |
117 | 117 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
118 | 118 | then $a | |
119 | 119 | else adder($a, $l[$i]) | |
120 | 120 | ||
121 | 121 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
122 | 122 | then $a | |
123 | 123 | else throw("List size exceeds 6") | |
124 | 124 | ||
125 | 125 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
126 | 126 | } | |
127 | 127 | let usersPower = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0) | |
128 | 128 | [totalPower, usersPower] | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getWlgStats (userAddrOpt,contracts,usdtId) = { | |
133 | 133 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
134 | 134 | let economyUsd = assetBalance(contracts[dappEconomy], usdtId) | |
135 | 135 | let restUsd = assetBalance(contracts[dappRest], usdtId) | |
136 | 136 | let wlgUsd = assetBalance(contracts[dappWlg], usdtId) | |
137 | 137 | let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId) | |
138 | - | let totalFundsUsd = ( | |
138 | + | let totalFundsUsd = (economyUsd + wlgUsd) | |
139 | 139 | let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet") | |
140 | 140 | let now = lastBlock.timestamp | |
141 | 141 | let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized") | |
142 | 142 | let marketingTotal = fraction(MILLION6, MARKETINGSHARE, M6) | |
143 | 143 | let marketingAmountLeft = valueOrElse(getInteger(contracts[dappWlg], marketingAmountLeftKey), marketingTotal) | |
144 | 144 | let lastMarketingTime = valueOrElse(getInteger(contracts[dappWlg], lastMarketingTimeKey), issueTime) | |
145 | 145 | let marketingAddr = addressFromStringValue(value(getString(contracts[dappWlg], marketingAddrKey))) | |
146 | 146 | let marketingAmountAvailableNow = min([fraction(marketingTotal, (now - lastMarketingTime), YEARMILLIS), marketingAmountLeft]) | |
147 | 147 | let marketingWlgold = assetBalance(marketingAddr, wlgId) | |
148 | 148 | let teamTotal = fraction(MILLION6, TEAMSHARE, M6) | |
149 | 149 | let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal) | |
150 | 150 | let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime) | |
151 | 151 | let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey))) | |
152 | 152 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft]) | |
153 | 153 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
154 | 154 | let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6) | |
155 | 155 | let actAmountLeft = valueOrElse(getInteger(contracts[dappRest], actAmountLeftKey), actTotal) | |
156 | 156 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dappRest], lastActivitiesTimeKey), issueTime) | |
157 | 157 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft]) | |
158 | 158 | let actWlgold = assetBalance(contracts[dappRest], wlgId) | |
159 | 159 | let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUser(userAddrOpt)), issueTime) | |
160 | 160 | let lastUserPeriod = ((lastUserTime - issueTime) / WEEKMILLIS) | |
161 | 161 | let curPeriod = ((now - issueTime) / WEEKMILLIS) | |
162 | 162 | let period = min([(lastUserPeriod + 1), curPeriod]) | |
163 | 163 | let eff = getPieces(userAddrOpt, contracts[dappStaking]) | |
164 | 164 | let totalPieces = eff[0] | |
165 | 165 | let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0) | |
166 | 166 | let curPeriodDistribution = fraction(amountLeftTotal, (2 * totalPieces), (totalPieces + (max([100000, totalPieces]) * (MAXPERIOD - period)))) | |
167 | 167 | let userAmount = fraction(fraction(curPeriodDistribution, eff[1], totalPieces), (now - lastUserTime), (3 * YEARMILLIS)) | |
168 | 168 | [issuedAmount, fraction(totalFundsUsd, M8, issuedAmount), totalFundsUsd, economyUsd, restUsd, wlgUsd, puzzleUsd, issueTime, lastMarketingTime, marketingTotal, marketingAmountLeft, marketingAmountAvailableNow, marketingWlgold, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, userAmount] | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyUserXP (addr) = ("userXP_" + addr) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func maxHealth (level) = (100 + level) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | let ARTPRESALE = "PRESALE" | |
197 | 197 | ||
198 | 198 | let ARTONBOARD = "ONBOARD" | |
199 | 199 | ||
200 | 200 | let NUMRES = 6 | |
201 | 201 | ||
202 | 202 | let DAILYRESBYPIECE = 3456000 | |
203 | 203 | ||
204 | 204 | let DAYMILLIS = 86400000 | |
205 | 205 | ||
206 | 206 | let WHMULTIPLIER = 10000000000 | |
207 | 207 | ||
208 | 208 | let RESOURCEPRICEMIN = 39637 | |
209 | 209 | ||
210 | 210 | let ESMAXPACKAGES = 3 | |
211 | 211 | ||
212 | 212 | let ESBUYCOEF = 4 | |
213 | 213 | ||
214 | 214 | let ESSELLCOEF = 10 | |
215 | 215 | ||
216 | 216 | let productionMatrix = ["8_8_8_17_17_42_12_0", "8_8_8_17_17_42_24_0", "8_8_8_17_17_42_36_0", "8_19_19_8_27_19_26_1", "8_19_19_8_27_19_52_1", "8_19_19_8_27_19_78_1", "8_8_8_8_8_60_13_2", "8_8_8_8_8_60_26_2", "8_8_8_8_8_60_39_2", "30_30_3_17_17_3_30_3", "30_30_3_17_17_3_60_3", "30_30_3_17_17_3_90_3", "18_18_10_18_18_18_11_4", "18_18_10_18_18_18_22_4", "18_18_10_18_18_18_33_4"] | |
217 | 217 | ||
218 | 218 | let rIdxCoeff = 6 | |
219 | 219 | ||
220 | 220 | let productPkgSize = 10 | |
221 | 221 | ||
222 | 222 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func keyBlocked () = "contractsBlocked" | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func getRecipeMaterials (recipe) = parseIntValue(recipe[rIdxCoeff]) | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | let chain = take(drop(this.bytes, 1), 1) | |
283 | 283 | ||
284 | 284 | let usdtAssetId = match chain { | |
285 | 285 | case _ => | |
286 | 286 | if ((base58'2W' == $match0)) | |
287 | 287 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
288 | 288 | else if ((base58'2T' == $match0)) | |
289 | 289 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
290 | 290 | else throw("Unknown chain") | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | let defaultRestAddressStr = match chain { | |
294 | 294 | case _ => | |
295 | 295 | if ((base58'2W' == $match0)) | |
296 | 296 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
297 | 297 | else if ((base58'2T' == $match0)) | |
298 | 298 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
299 | 299 | else throw("Unknown chain") | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | let InfraUpgradeCostS = match chain { | |
303 | 303 | case _ => | |
304 | 304 | if ((base58'2W' == $match0)) | |
305 | 305 | then 10000000000 | |
306 | 306 | else if ((base58'2T' == $match0)) | |
307 | 307 | then 100000000 | |
308 | 308 | else throw("Unknown chain") | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | let SEP = "__" | |
312 | 312 | ||
313 | 313 | let MULT6 = 1000000 | |
314 | 314 | ||
315 | 315 | let SSIZE = 25 | |
316 | 316 | ||
317 | 317 | let MSIZE = 100 | |
318 | 318 | ||
319 | 319 | let LSIZE = 225 | |
320 | 320 | ||
321 | 321 | let XLSIZE = 400 | |
322 | 322 | ||
323 | 323 | let XXLSIZE = 625 | |
324 | 324 | ||
325 | 325 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | let IdxCfgStakingDapp = 1 | |
329 | 329 | ||
330 | 330 | let IdxCfgEconomyDapp = 2 | |
331 | 331 | ||
332 | 332 | let IdxCfgGovernanceDapp = 3 | |
333 | 333 | ||
334 | 334 | let IdxCfgWlgDapp = 4 | |
335 | 335 | ||
336 | 336 | let IdxCfgPuzzlePoolDapp = 5 | |
337 | 337 | ||
338 | 338 | func keyRestCfg () = "%s__restConfig" | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func keyRestAddress () = "%s__restAddr" | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
351 | 351 | ||
352 | 352 | let restCfg = readRestCfgOrFail(restContract) | |
353 | 353 | ||
354 | 354 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
355 | 355 | ||
356 | 356 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
357 | 357 | ||
358 | 358 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
359 | 359 | ||
360 | 360 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
361 | 361 | ||
362 | 362 | let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp) | |
363 | 363 | ||
364 | 364 | let recLandNum = 0 | |
365 | 365 | ||
366 | 366 | let recLandSize = 1 | |
367 | 367 | ||
368 | 368 | let recTerrains = 2 | |
369 | 369 | ||
370 | 370 | let recContinent = 3 | |
371 | 371 | ||
372 | 372 | let wlgAssetIdKey = "wlg_assetId" | |
373 | 373 | ||
374 | 374 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet") | |
375 | 375 | ||
376 | 376 | let IdxEffUser = 1 | |
377 | 377 | ||
378 | 378 | func keyResProportions () = "resTypesProportions" | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
385 | 385 | ||
386 | 386 | ||
387 | 387 | func asString (v) = match v { | |
388 | 388 | case s: String => | |
389 | 389 | s | |
390 | 390 | case _ => | |
391 | 391 | throw("fail to cast into String") | |
392 | 392 | } | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | func asInt (v) = match v { | |
396 | 396 | case n: Int => | |
397 | 397 | n | |
398 | 398 | case _ => | |
399 | 399 | throw("fail to cast into Int") | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | func asBoolean (v) = match v { | |
404 | 404 | case s: Boolean => | |
405 | 405 | s | |
406 | 406 | case _ => | |
407 | 407 | throw("fail to cast into Boolean") | |
408 | 408 | } | |
409 | 409 | ||
410 | 410 | ||
411 | 411 | func numPiecesBySize (landSize) = match landSize { | |
412 | 412 | case _ => | |
413 | 413 | if (("S" == $match0)) | |
414 | 414 | then SSIZE | |
415 | 415 | else if (("M" == $match0)) | |
416 | 416 | then MSIZE | |
417 | 417 | else if (("L" == $match0)) | |
418 | 418 | then LSIZE | |
419 | 419 | else if (("XL" == $match0)) | |
420 | 420 | then XLSIZE | |
421 | 421 | else if (("XXL" == $match0)) | |
422 | 422 | then XXLSIZE | |
423 | 423 | else throw("Unknown land size") | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | func getVotingPower (userAddrStrOrEmpty) = { | |
428 | 428 | let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_") | |
429 | 429 | func adder (acc,item) = (acc + parseIntValue(item)) | |
430 | 430 | ||
431 | 431 | let totalPower = { | |
432 | 432 | let $l = props | |
433 | 433 | let $s = size($l) | |
434 | 434 | let $acc0 = 0 | |
435 | 435 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
436 | 436 | then $a | |
437 | 437 | else adder($a, $l[$i]) | |
438 | 438 | ||
439 | 439 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
440 | 440 | then $a | |
441 | 441 | else throw("List size exceeds 6") | |
442 | 442 | ||
443 | 443 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
444 | 444 | } | |
445 | 445 | let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0) | |
446 | 446 | [totalPower, usersPower] | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | let USDTPRIZEPART = 500000 | |
451 | 451 | ||
452 | 452 | func asListIntCompacted (val) = match val { | |
453 | 453 | case valAnyList: List[Any] => | |
454 | 454 | if ((size(valAnyList) != NUMRES)) | |
455 | 455 | then throw(("Array size is " + toString(size(valAnyList)))) | |
456 | 456 | else { | |
457 | 457 | func conv (acc,item) = match item { | |
458 | 458 | case it: Int => | |
459 | 459 | (acc :+ toString(it)) | |
460 | 460 | case _ => | |
461 | 461 | throw("List type is not Int") | |
462 | 462 | } | |
463 | 463 | ||
464 | 464 | let r = { | |
465 | 465 | let $l = valAnyList | |
466 | 466 | let $s = size($l) | |
467 | 467 | let $acc0 = nil | |
468 | 468 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
469 | 469 | then $a | |
470 | 470 | else conv($a, $l[$i]) | |
471 | 471 | ||
472 | 472 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
473 | 473 | then $a | |
474 | 474 | else throw("List size exceeds 6") | |
475 | 475 | ||
476 | 476 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
477 | 477 | } | |
478 | 478 | makeString(r, "_") | |
479 | 479 | } | |
480 | 480 | case _ => | |
481 | 481 | throw("fail to cast into List") | |
482 | 482 | } | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | func asSplitResult (val) = match val { | |
486 | 486 | case t2: (List[Any], List[Any]) => | |
487 | 487 | $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2)) | |
488 | 488 | case _ => | |
489 | 489 | throw("fail to cast into (List, List)") | |
490 | 490 | } | |
491 | 491 | ||
492 | 492 | ||
493 | 493 | func walletInternal (userAddressOpt) = { | |
494 | 494 | let addr = addressFromString(userAddressOpt) | |
495 | 495 | let balance = if (isDefined(addr)) | |
496 | 496 | then wavesBalance(value(addr)) | |
497 | 497 | else BalanceDetails(0, 0, 0, 0) | |
498 | 498 | let usdtBalance = if (isDefined(addr)) | |
499 | 499 | then assetBalance(value(addr), usdtAssetId) | |
500 | 500 | else 0 | |
501 | 501 | let wlgoldBalance = if (isDefined(addr)) | |
502 | 502 | then assetBalance(value(addr), wlgAssetId) | |
503 | 503 | else 0 | |
504 | 504 | let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
505 | 505 | let refByKey = keyAddressRefBy(userAddressOpt) | |
506 | 506 | let refBy = getString(stakingContract, refByKey) | |
507 | 507 | let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "") | |
508 | 508 | let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "") | |
509 | 509 | let pieces = getVotingPower(userAddressOpt)[IdxEffUser] | |
510 | 510 | let xp = valueOrElse(getInteger(stakingContract, keyUserXP(userAddressOpt)), 0) | |
511 | 511 | let lvl = valueOrElse(getInteger(stakingContract, keyUserLevel(userAddressOpt)), 0) | |
512 | 512 | let freePoints = valueOrElse(getInteger(stakingContract, keyUserFreePoints(userAddressOpt)), 0) | |
513 | 513 | let onboard = if (isDefined(refBy)) | |
514 | 514 | then (ARTONBOARD + (if (if (isDefined(addr)) | |
515 | 515 | then isDefined(getString(stakingContract, keyOnboardArtDuckActivatedBy(userAddressOpt))) | |
516 | 516 | else false) | |
517 | 517 | then ":1" | |
518 | 518 | else ":0")) | |
519 | 519 | else "" | |
520 | 520 | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(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)), ("%s%s__walletArtefacts__" + onboard)] | |
521 | 521 | } | |
522 | 522 | ||
523 | 523 | ||
524 | 524 | func applyBonuses (landAssetId,pieces) = { | |
525 | 525 | let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0) | |
526 | 526 | let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
527 | 527 | let add6 = (infraLevel / 6) | |
528 | 528 | let add7 = (infraLevel / 7) | |
529 | 529 | $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))) | |
530 | 530 | } | |
531 | 531 | ||
532 | 532 | ||
533 | 533 | func getWarehouseTotalVolume (volPrefix) = { | |
534 | 534 | let parts = split(volPrefix, "_") | |
535 | 535 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
536 | 536 | } | |
537 | 537 | ||
538 | 538 | ||
539 | 539 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
540 | 540 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
541 | 541 | let totS = toString(getWarehouseTotalVolume(volPrefix)) | |
542 | 542 | let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS)) | |
543 | 543 | split(whStr, ":") | |
544 | 544 | } | |
545 | 545 | ||
546 | 546 | ||
547 | 547 | 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))) | |
548 | 548 | ||
549 | 549 | ||
550 | 550 | func duckInfoArray (duckAssetId,owner,duckInf) = { | |
551 | 551 | let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2) | |
552 | 552 | let chars = valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0") | |
553 | 553 | let xp = valueOrElse(getInteger(stakingContract, keyDuckXP(duckAssetId)), 0) | |
554 | 554 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
555 | 555 | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
556 | 556 | [("%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(maxHealth(lvl))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5)] | |
557 | 557 | } | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == "")) | |
561 | 561 | then throw("landAssetId is required") | |
562 | 562 | else { | |
563 | 563 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
564 | 564 | let d = split(a.description, "_") | |
565 | 565 | let landNum = if ((a.quantity > 0)) | |
566 | 566 | then d[recLandNum] | |
567 | 567 | else ("-" + d[recLandNum]) | |
568 | 568 | let pieces = numPiecesBySize(d[recLandSize]) | |
569 | 569 | let productivity = applyBonuses(landAssetId, pieces) | |
570 | 570 | let deltaTime = (lastBlock.timestamp - stakedTime) | |
571 | 571 | let availRes = if ((stakedTime > 0)) | |
572 | 572 | then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS) | |
573 | 573 | else 0 | |
574 | 574 | let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE) | |
575 | 575 | let globalAndLocal = if ((stakedTime > 0)) | |
576 | 576 | then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil)) | |
577 | 577 | else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "") | |
578 | 578 | let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum])) | |
579 | 579 | [("%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), ("%s%s__landArtefacts__PRESALE:" + toString(productivity._2)), ("%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:"))] | |
580 | 580 | } | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == "")) | |
584 | 584 | then throw("landAssetId is required") | |
585 | 585 | else { | |
586 | 586 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
587 | 587 | let d = split(a.description, "_") | |
588 | 588 | let pieces = numPiecesBySize(d[recLandSize]) | |
589 | 589 | let productivity = applyBonuses(landAssetId, pieces) | |
590 | 590 | [("%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:"))] | |
591 | 591 | } | |
592 | 592 | ||
593 | 593 | ||
594 | 594 | @Callable(i) | |
595 | 595 | func constructorV1 (contracts) = if ((i.caller != this)) | |
596 | 596 | then throw("permissions denied") | |
597 | 597 | else { | |
598 | 598 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
599 | 599 | ||
600 | 600 | let descr = { | |
601 | 601 | let $l = contracts | |
602 | 602 | let $s = size($l) | |
603 | 603 | let $acc0 = "" | |
604 | 604 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
605 | 605 | then $a | |
606 | 606 | else descriptor($a, $l[$i]) | |
607 | 607 | ||
608 | 608 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
609 | 609 | then $a | |
610 | 610 | else throw("List size exceeds 10") | |
611 | 611 | ||
612 | 612 | $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) | |
613 | 613 | } | |
614 | 614 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))] | |
615 | 615 | } | |
616 | 616 | ||
617 | 617 | ||
618 | 618 | ||
619 | 619 | @Callable(i) | |
620 | 620 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
621 | 621 | ||
622 | 622 | ||
623 | 623 | ||
624 | 624 | @Callable(i) | |
625 | 625 | func duckByOwnerInfoREADONLY (userAddress) = { | |
626 | 626 | let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress)) | |
627 | 627 | $Tuple2(nil, if (if (isDefined(addressFromString(userAddress))) | |
628 | 628 | then isDefined(stakedDuck) | |
629 | 629 | else false) | |
630 | 630 | then { | |
631 | 631 | let duckAssetId = value(stakedDuck) | |
632 | 632 | duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId)) | |
633 | 633 | } | |
634 | 634 | else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, ""))) | |
635 | 635 | } | |
636 | 636 | ||
637 | 637 | ||
638 | 638 | ||
639 | 639 | @Callable(i) | |
640 | 640 | func duckByAssetIdInfoREADONLY (duckAssetId) = { | |
641 | 641 | let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId)) | |
642 | 642 | let duckInf = duckInfoTuple(duckAssetId) | |
643 | 643 | $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner)) | |
644 | 644 | then value(owner) | |
645 | 645 | else "", duckInfoTuple(duckAssetId))) | |
646 | 646 | } | |
647 | 647 | ||
648 | 648 | ||
649 | 649 | ||
650 | 650 | @Callable(i) | |
651 | 651 | func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
652 | 652 | then throw("landAssetId is required") | |
653 | 653 | else { | |
654 | 654 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
655 | 655 | let owner = if ((stakedTime > 0)) | |
656 | 656 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
657 | 657 | else "" | |
658 | 658 | $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime)) | |
659 | 659 | } | |
660 | 660 | ||
661 | 661 | ||
662 | 662 | ||
663 | 663 | @Callable(i) | |
664 | 664 | func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == "")) | |
665 | 665 | then throw("landOwnerAddress is required") | |
666 | 666 | else { | |
667 | 667 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress)) | |
668 | 668 | let lands = if (isDefined(landsStr)) | |
669 | 669 | then split_51C(value(landsStr), "_") | |
670 | 670 | else nil | |
671 | 671 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
672 | 672 | then throw("landAssetId is required") | |
673 | 673 | else { | |
674 | 674 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
675 | 675 | (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime)) | |
676 | 676 | } | |
677 | 677 | ||
678 | 678 | let r = { | |
679 | 679 | let $l = lands | |
680 | 680 | let $s = size($l) | |
681 | 681 | let $acc0 = nil | |
682 | 682 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
683 | 683 | then $a | |
684 | 684 | else oneLand($a, $l[$i]) | |
685 | 685 | ||
686 | 686 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
687 | 687 | then $a | |
688 | 688 | else throw("List size exceeds 100") | |
689 | 689 | ||
690 | 690 | $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) | |
691 | 691 | } | |
692 | 692 | $Tuple2(nil, r) | |
693 | 693 | } | |
694 | 694 | ||
695 | 695 | ||
696 | 696 | ||
697 | 697 | @Callable(i) | |
698 | 698 | func landsByIdsInfoREADONLY (landAssetIds) = { | |
699 | 699 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
700 | 700 | then throw("landAssetId is required") | |
701 | 701 | else { | |
702 | 702 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
703 | 703 | let owner = if ((stakedTime > 0)) | |
704 | 704 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
705 | 705 | else "" | |
706 | 706 | (acc :+ landInfoArray(landAssetId, owner, stakedTime)) | |
707 | 707 | } | |
708 | 708 | ||
709 | 709 | let r = { | |
710 | 710 | let $l = landAssetIds | |
711 | 711 | let $s = size($l) | |
712 | 712 | let $acc0 = nil | |
713 | 713 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
714 | 714 | then $a | |
715 | 715 | else oneLand($a, $l[$i]) | |
716 | 716 | ||
717 | 717 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
718 | 718 | then $a | |
719 | 719 | else throw("List size exceeds 100") | |
720 | 720 | ||
721 | 721 | $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) | |
722 | 722 | } | |
723 | 723 | $Tuple2(nil, r) | |
724 | 724 | } | |
725 | 725 | ||
726 | 726 | ||
727 | 727 | ||
728 | 728 | @Callable(i) | |
729 | 729 | func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
730 | 730 | then throw("landAssetId is required") | |
731 | 731 | else { | |
732 | 732 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
733 | 733 | let owner = if ((stakedTime > 0)) | |
734 | 734 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
735 | 735 | else "" | |
736 | 736 | $Tuple2(nil, landOrderInfoArray(landAssetId, owner)) | |
737 | 737 | } | |
738 | 738 | ||
739 | 739 | ||
740 | 740 | ||
741 | 741 | @Callable(i) | |
742 | 742 | func ordersByLandIdsInfoREADONLY (landAssetIds) = { | |
743 | 743 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
744 | 744 | then throw("landAssetId is required") | |
745 | 745 | else { | |
746 | 746 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
747 | 747 | let owner = if ((stakedTime > 0)) | |
748 | 748 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
749 | 749 | else "" | |
750 | 750 | (acc :+ landOrderInfoArray(landAssetId, owner)) | |
751 | 751 | } | |
752 | 752 | ||
753 | 753 | let r = { | |
754 | 754 | let $l = landAssetIds | |
755 | 755 | let $s = size($l) | |
756 | 756 | let $acc0 = nil | |
757 | 757 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
758 | 758 | then $a | |
759 | 759 | else oneLand($a, $l[$i]) | |
760 | 760 | ||
761 | 761 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
762 | 762 | then $a | |
763 | 763 | else throw("List size exceeds 40") | |
764 | 764 | ||
765 | 765 | $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) | |
766 | 766 | } | |
767 | 767 | $Tuple2(nil, r) | |
768 | 768 | } | |
769 | 769 | ||
770 | 770 | ||
771 | 771 | ||
772 | 772 | @Callable(i) | |
773 | 773 | func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this)) | |
774 | 774 | then throw("permission denied") | |
775 | 775 | else { | |
776 | 776 | let blocked = getBoolean(stakingContract, keyBlocked()) | |
777 | 777 | if (if (!(isDefined(blocked))) | |
778 | 778 | then true | |
779 | 779 | else (value(blocked) == false)) | |
780 | 780 | then throw("Contracts should be blocked before canceling orders") | |
781 | 781 | else { | |
782 | 782 | func oneLand (a,landAssetId) = if ((landAssetId == "")) | |
783 | 783 | then throw("landAssetId is required") | |
784 | 784 | else { | |
785 | 785 | 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)) | |
786 | 786 | if (if (a) | |
787 | 787 | then true | |
788 | 788 | else c) | |
789 | 789 | then !(if (a) | |
790 | 790 | then c | |
791 | 791 | else false) | |
792 | 792 | else false | |
793 | 793 | } | |
794 | 794 | ||
795 | 795 | let r = { | |
796 | 796 | let $l = landAssetIds | |
797 | 797 | let $s = size($l) | |
798 | 798 | let $acc0 = false | |
799 | 799 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
800 | 800 | then $a | |
801 | 801 | else oneLand($a, $l[$i]) | |
802 | 802 | ||
803 | 803 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
804 | 804 | then $a | |
805 | 805 | else throw("List size exceeds 30") | |
806 | 806 | ||
807 | 807 | $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) | |
808 | 808 | } | |
809 | 809 | $Tuple2(nil, r) | |
810 | 810 | } | |
811 | 811 | } | |
812 | 812 | ||
813 | 813 | ||
814 | 814 | ||
815 | 815 | @Callable(i) | |
816 | 816 | func fixWarehouseFormats (landAssetIds) = if ((i.caller != this)) | |
817 | 817 | then throw("permission denied") | |
818 | 818 | else { | |
819 | 819 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
820 | 820 | then throw("landAssetId is required") | |
821 | 821 | else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil)))) | |
822 | 822 | ||
823 | 823 | let r = { | |
824 | 824 | let $l = landAssetIds | |
825 | 825 | let $s = size($l) | |
826 | 826 | let $acc0 = 0 | |
827 | 827 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
828 | 828 | then $a | |
829 | 829 | else oneLand($a, $l[$i]) | |
830 | 830 | ||
831 | 831 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
832 | 832 | then $a | |
833 | 833 | else throw("List size exceeds 25") | |
834 | 834 | ||
835 | 835 | $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) | |
836 | 836 | } | |
837 | 837 | $Tuple2(nil, r) | |
838 | 838 | } | |
839 | 839 | ||
840 | 840 | ||
841 | 841 | ||
842 | 842 | @Callable(i) | |
843 | 843 | func fixStakedPieces (users) = if ((i.caller != this)) | |
844 | 844 | then throw("permission denied") | |
845 | 845 | else { | |
846 | 846 | func oneUser (acc,addr) = if ((addr == "")) | |
847 | 847 | then throw("address is required") | |
848 | 848 | else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil))) | |
849 | 849 | ||
850 | 850 | let r = { | |
851 | 851 | let $l = users | |
852 | 852 | let $s = size($l) | |
853 | 853 | let $acc0 = 0 | |
854 | 854 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
855 | 855 | then $a | |
856 | 856 | else oneUser($a, $l[$i]) | |
857 | 857 | ||
858 | 858 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
859 | 859 | then $a | |
860 | 860 | else throw("List size exceeds 16") | |
861 | 861 | ||
862 | 862 | $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) | |
863 | 863 | } | |
864 | 864 | $Tuple2(nil, r) | |
865 | 865 | } | |
866 | 866 | ||
867 | 867 | ||
868 | 868 | ||
869 | 869 | @Callable(i) | |
870 | 870 | func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract)) | |
871 | 871 | then throw("permission denied") | |
872 | 872 | else { | |
873 | 873 | let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6) | |
874 | 874 | $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt) | |
875 | 875 | } | |
876 | 876 | ||
877 | 877 | ||
878 | 878 | ||
879 | 879 | @Callable(i) | |
880 | 880 | func getEmergencyServiceDataREADONLY () = { | |
881 | 881 | let existStr = getString(economyContract, keyEsWarehouse()) | |
882 | 882 | let existAmounts = if (isDefined(existStr)) | |
883 | 883 | then split(value(existStr), "_") | |
884 | 884 | else nil | |
885 | 885 | func singleProd (acc,recipeStr) = { | |
886 | 886 | let n = acc._2 | |
887 | 887 | let recipe = split(recipeStr, "_") | |
888 | 888 | let maxAmount = if ((n == 0)) | |
889 | 889 | then (ESMAXPACKAGES * productPkgSize) | |
890 | 890 | else 0 | |
891 | 891 | let existAmount = if ((size(existAmounts) > n)) | |
892 | 892 | then parseIntValue(existAmounts[n]) | |
893 | 893 | else 0 | |
894 | 894 | let totalMat = getRecipeMaterials(recipe) | |
895 | 895 | let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (10 * productPkgSize)) | |
896 | 896 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * productPkgSize)) | |
897 | 897 | let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_") | |
898 | 898 | $Tuple2((acc._1 :+ y), (n + 1)) | |
899 | 899 | } | |
900 | 900 | ||
901 | 901 | let s = makeString_2C(( let $l = productionMatrix | |
902 | 902 | let $s = size($l) | |
903 | 903 | let $acc0 = $Tuple2(nil, 0) | |
904 | 904 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
905 | 905 | then $a | |
906 | 906 | else singleProd($a, $l[$i]) | |
907 | 907 | ||
908 | 908 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
909 | 909 | then $a | |
910 | 910 | else throw("List size exceeds 50") | |
911 | 911 | ||
912 | 912 | $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, ":") | |
913 | 913 | let result = ("%s%s__emergencyServiceData__" + s) | |
914 | 914 | $Tuple2(nil, result) | |
915 | 915 | } | |
916 | 916 | ||
917 | 917 | ||
918 | 918 | ||
919 | 919 | @Callable(i) | |
920 | 920 | func wlgStatsREADONLY (userAddrOpt) = { | |
921 | 921 | let curStats = getWlgStats(userAddrOpt, [restContract, stakingContract, economyContract, govContract, wlgContract, puzzlePoolContract], usdtAssetId) | |
922 | 922 | $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])), ("%s%s%d__wlgIssueTime__" + toString(curStats[idxWlgIssueTime])), ("%s%s%d__wlgLastMarketingTeamActTime__" + toString(curStats[idxWlgLastMTATime])), ("%s%s%d__wlgMarketingTotal__" + toString(curStats[idxWlgMarketingTotal])), ("%s%s%d__wlgMarketingAmLeft__" + toString(curStats[idxWlgMarketingAmLeft])), ("%s%s%d__wlgMarketingAmAvailNow__" + toString(curStats[idxWlgMarketingAmAvailNow])), ("%s%s%d__wlgMarketingWlgold__" + toString(curStats[idxWlgMarketingWlgold])), ("%s%s%d__wlgTeamTotal__" + toString(curStats[idxWlgTeamTotal])), ("%s%s%d__wlgTeamAmLeft__" + toString(curStats[idxWlgTeamAmLeft])), ("%s%s%d__wlgTeamAmAvailNow__" + toString(curStats[idxWlgTeamAmAvailNow])), ("%s%s%d__wlgTeamWlgold__" + toString(curStats[idxWlgTeamWlgold])), ("%s%s%d__wlgActTotal__" + toString(curStats[idxWlgActTotal])), ("%s%s%d__wlgActAmLeft__" + toString(curStats[idxWlgActAmLeft])), ("%s%s%d__wlgActAmAvailNow__" + toString(curStats[idxWlgActAmAvailNow])), ("%s%s%d__wlgActWlgold__" + toString(curStats[idxWlgActWlgold])), ("%s%s%d__wlgCurPeriod__" + toString(curStats[idxWlgCurPeriod])), ("%s%s%d__wlgAmLeftTotal__" + toString(curStats[idxWlgAmLeftTotal])), ("%s%s%d__wlgCurPeriodDistribution__" + toString(curStats[idxWlgCurPeriodDistribution])), ("%s%s%d__wlgLastUserTime__" + toString(curStats[idxWlgLastUserTime])), ("%s%s%d__wlgUserAmAvailNow__" + toString(curStats[idxWlgUserAmAvailNow]))]) | |
923 | 923 | } | |
924 | 924 | ||
925 | 925 |
github/deemru/w8io/026f985 98.10 ms ◑