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:BgJHCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBCBIAEgBYAApBUlRQUkVTQUxFAgdQUkVTQUxFAAZOVU1SRVMABgAPREFJTFlSRVNCWVBJRUNFAID40gEACURBWU1JTExJUwCAuJkpAAxXSE1VTFRJUExJRVIAgMivoCUAEFJFU09VUkNFUFJJQ0VNSU4A1bUCAA1FU01BWFBBQ0tBR0VTAAMACUVTQlVZQ09FRgAEAApFU1NFTExDT0VGAAoAEHByb2R1Y3Rpb25NYXRyaXgJAMwIAgISMV8xXzFfMl8yXzVfMV8xMF8wCQDMCAICEzJfMl8yXzRfNF8xMF8xXzEwXzAJAMwIAgITM18zXzNfNl82XzE1XzFfMTBfMAkAzAgCAhMyXzVfNV8yXzdfNV8yXzEwMF8xCQDMCAICFzRfMTBfMTBfNF8xNF8xMF8yXzEwMF8xCQDMCAICFzZfMTVfMTVfNl8yMV8xNV8yXzEwMF8xCQDMCAICEjFfMV8xXzFfMV84XzFfMTBfMgkAzAgCAhMyXzJfM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N0YXRzCQELZ2V0V2xnU3RhdHMACQCUCgIFA25pbAkAzAgCCQCsAgICEyVzJXMlZF9fd2xnQW1vdW50X18JAKQDAQkAkQMCBQhjdXJTdGF0cwUMaWR4V2xnQW1vdW50CQDMCAIJAKwCAgISJXMlcyVkX193bGdQcmljZV9fCQCkAwEJAJEDAgUIY3VyU3RhdHMFC2lkeFdsZ1ByaWNlCQDMCAIJAKwCAgITJXMlcyVkX191c2R0RnVuZHNfXwkApAMBCQCRAwIFCGN1clN0YXRzBQtpZHhXbGdGdW5kcwkAzAgCCQCsAgICFSVzJXMlZF9fdXNkdEVjb25vbXlfXwkApAMBCQCRAwIFCGN1clN0YXRzBQ1pZHhXbGdFY29ub215CQDMCAIJAKwCAgIWJXMlcyVkX191c2R0QWN0aXZpdHlfXwkApAMBCQCRAwIFCGN1clN0YXRzBQ5pZHhXbGdBY3Rpdml0eQkAzAgCCQCsAgICFyVzJXMlZF9fdXNkdEFyYml0cmFnZV9fCQCkAwEJAJEDAgUIY3VyU3RhdHMFD2lkeFdsZ0FyYml0cmFnZQkAzAgCCQCsAgICEiVzJXMlZF9fdXNkdFBvb2xfXwkApAMBCQCRAwIFCGN1clN0YXRzBQppZHhXbGdQb29sBQNuaWwAnDcSOg==", "height": 2644435, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7nfuHT86xkf1hZygarhhX5hHjTMGnDwrEhNWzjr8miaV Next: Ar3EMfVfQEG3Ysm9QdwkLQRyVmqLR5Az1cwoFuRNdZdy Diff:
OldNewDifferences
190190
191191 let wlgAssetIdKey = "wlg_assetId"
192192
193-let wlgAssetId = valueOrErrorMessage(getBinary(wlgAssetIdKey), "Not initialized yet")
193+let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet")
194194
195195 let idxWlgAmount = 0
196196
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ARTPRESALE = "PRESALE"
55
66 let NUMRES = 6
77
88 let DAILYRESBYPIECE = 3456000
99
1010 let DAYMILLIS = 86400000
1111
1212 let WHMULTIPLIER = 10000000000
1313
1414 let RESOURCEPRICEMIN = 39637
1515
1616 let ESMAXPACKAGES = 3
1717
1818 let ESBUYCOEF = 4
1919
2020 let ESSELLCOEF = 10
2121
2222 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"]
2323
2424 let recipeIdxPacksize = 7
2525
2626 func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr)
2727
2828
2929 func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId)
3030
3131
3232 func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId)
3333
3434
3535 func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId)
3636
3737
3838 func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId)
3939
4040
4141 func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_")
4242
4343
4444 func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId)
4545
4646
4747 func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId)
4848
4949
5050 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
5151
5252
5353 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
5454
5555
5656 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
5757
5858
5959 func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId)
6060
6161
6262 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
6363
6464
6565 func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId)
6666
6767
6868 func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId)
6969
7070
7171 func keyBlocked () = "contractsBlocked"
7272
7373
7474 func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId)
7575
7676
7777 func keyEsWarehouse () = "emergencyWarehouseProducts"
7878
7979
8080 func getRecipeMaterials (recipe) = {
8181 func addMat (ac,j) = (ac + parseIntValue(recipe[j]))
8282
8383 let $l = [0, 1, 2, 3, 4, 5]
8484 let $s = size($l)
8585 let $acc0 = 0
8686 func $f0_1 ($a,$i) = if (($i >= $s))
8787 then $a
8888 else addMat($a, $l[$i])
8989
9090 func $f0_2 ($a,$i) = if (($i >= $s))
9191 then $a
9292 else throw("List size exceeds 6")
9393
9494 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
9595 }
9696
9797
9898 let chain = take(drop(this.bytes, 1), 1)
9999
100100 let usdtAssetId = match chain {
101101 case _ =>
102102 if ((base58'2W' == $match0))
103103 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
104104 else if ((base58'2T' == $match0))
105105 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
106106 else throw("Unknown chain")
107107 }
108108
109109 let defaultRestAddressStr = match chain {
110110 case _ =>
111111 if ((base58'2W' == $match0))
112112 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
113113 else if ((base58'2T' == $match0))
114114 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
115115 else throw("Unknown chain")
116116 }
117117
118118 let InfraUpgradeCostS = match chain {
119119 case _ =>
120120 if ((base58'2W' == $match0))
121121 then 10000000000
122122 else if ((base58'2T' == $match0))
123123 then 100000000
124124 else throw("Unknown chain")
125125 }
126126
127127 let SEP = "__"
128128
129129 let MULT6 = 1000000
130130
131131 let MULT8 = 100000000
132132
133133 let SSIZE = 25
134134
135135 let MSIZE = 100
136136
137137 let LSIZE = 225
138138
139139 let XLSIZE = 400
140140
141141 let XXLSIZE = 625
142142
143143 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
144144
145145
146146 let IdxCfgStakingDapp = 1
147147
148148 let IdxCfgEconomyDapp = 2
149149
150150 let IdxCfgWlgDapp = 4
151151
152152 let IdxCfgPuzzlePoolDapp = 5
153153
154154 func keyRestCfg () = "%s__restConfig"
155155
156156
157157 func keyRestAddress () = "%s__restAddr"
158158
159159
160160 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
161161
162162
163163 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
164164
165165
166166 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
167167
168168 let restCfg = readRestCfgOrFail(restContract)
169169
170170 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
171171
172172 let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
173173
174174 let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp)
175175
176176 let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp)
177177
178178 let recLandNum = 0
179179
180180 let recLandSize = 1
181181
182182 let recTerrains = 2
183183
184184 let recContinent = 3
185185
186186 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
187187
188188
189189 let wlgIssuedAmountKey = "wlg_issuedAmount"
190190
191191 let wlgAssetIdKey = "wlg_assetId"
192192
193-let wlgAssetId = valueOrErrorMessage(getBinary(wlgAssetIdKey), "Not initialized yet")
193+let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet")
194194
195195 let idxWlgAmount = 0
196196
197197 let idxWlgPrice = 1
198198
199199 let idxWlgFunds = 2
200200
201201 let idxWlgEconomy = 3
202202
203203 let idxWlgActivity = 4
204204
205205 let idxWlgArbitrage = 5
206206
207207 let idxWlgPool = 6
208208
209209 func asString (v) = match v {
210210 case s: String =>
211211 s
212212 case _ =>
213213 throw("fail to cast into String")
214214 }
215215
216216
217217 func asInt (v) = match v {
218218 case n: Int =>
219219 n
220220 case _ =>
221221 throw("fail to cast into Int")
222222 }
223223
224224
225225 func asBoolean (v) = match v {
226226 case s: Boolean =>
227227 s
228228 case _ =>
229229 throw("fail to cast into Boolean")
230230 }
231231
232232
233233 func numPiecesBySize (landSize) = match landSize {
234234 case _ =>
235235 if (("S" == $match0))
236236 then SSIZE
237237 else if (("M" == $match0))
238238 then MSIZE
239239 else if (("L" == $match0))
240240 then LSIZE
241241 else if (("XL" == $match0))
242242 then XLSIZE
243243 else if (("XXL" == $match0))
244244 then XXLSIZE
245245 else throw("Unknown land size")
246246 }
247247
248248
249249 func getWlgStats () = {
250250 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmountKey), "WLGOLD is not issued yet")
251251 let economyUsd = assetBalance(economyContract, usdtAssetId)
252252 let restUsd = assetBalance(restContract, usdtAssetId)
253253 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
254254 let puzzleUsd = assetBalance(puzzlePoolContract, usdtAssetId)
255255 let totalUsd = (((economyUsd + restUsd) + wlgUsd) + puzzleUsd)
256256 [issuedAmount, fraction(totalUsd, MULT8, issuedAmount), totalUsd, economyUsd, restUsd, wlgUsd, puzzleUsd]
257257 }
258258
259259
260260 let USDTPRIZEPART = 500000
261261
262262 func asListIntCompacted (val) = match val {
263263 case valAnyList: List[Any] =>
264264 if ((size(valAnyList) != NUMRES))
265265 then throw(("Array size is " + toString(size(valAnyList))))
266266 else {
267267 func conv (acc,item) = match item {
268268 case it: Int =>
269269 (acc :+ toString(it))
270270 case _ =>
271271 throw("List type is not Int")
272272 }
273273
274274 let r = {
275275 let $l = valAnyList
276276 let $s = size($l)
277277 let $acc0 = nil
278278 func $f0_1 ($a,$i) = if (($i >= $s))
279279 then $a
280280 else conv($a, $l[$i])
281281
282282 func $f0_2 ($a,$i) = if (($i >= $s))
283283 then $a
284284 else throw("List size exceeds 6")
285285
286286 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
287287 }
288288 makeString(r, "_")
289289 }
290290 case _ =>
291291 throw("fail to cast into List")
292292 }
293293
294294
295295 func asSplitResult (val) = match val {
296296 case t2: (List[Any], List[Any]) =>
297297 $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2))
298298 case _ =>
299299 throw("fail to cast into (List, List)")
300300 }
301301
302302
303303 func walletInternal (userAddressOpt) = {
304304 let addr = addressFromString(userAddressOpt)
305305 let balance = if (isDefined(addr))
306306 then wavesBalance(value(addr))
307307 else BalanceDetails(0, 0, 0, 0)
308308 let usdtBalance = if (isDefined(addr))
309309 then assetBalance(value(addr), usdtAssetId)
310310 else 0
311311 let wlgoldBalance = if (isDefined(addr))
312312 then assetBalance(value(addr), wlgAssetId)
313313 else 0
314314 let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
315315 let refBy = valueOrElse(getString(stakingContract, keyAddressRefBy(userAddressOpt)), "")
316316 let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "")
317317 let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "")
318318 [("%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))]
319319 }
320320
321321
322322 func applyBonuses (landAssetId,pieces) = {
323323 let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0)
324324 let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)
325325 let add6 = (infraLevel / 6)
326326 let add7 = (infraLevel / 7)
327327 $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))))
328328 }
329329
330330
331331 func getWarehouseTotalVolume (volPrefix) = {
332332 let parts = split(volPrefix, "_")
333333 ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0]))
334334 }
335335
336336
337337 func getWarehouse (whKey,landIndex,infraLevel) = {
338338 let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel))
339339 let totS = toString(getWarehouseTotalVolume(volPrefix))
340340 let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS))
341341 split(whStr, ":")
342342 }
343343
344344
345345 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)))
346346
347347
348348 func duckInfoArray (duckAssetId,owner,duckInf) = {
349349 let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2)
350350 [("%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)]
351351 }
352352
353353
354354 func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == ""))
355355 then throw("landAssetId is required")
356356 else {
357357 let a = value(assetInfo(fromBase58String(landAssetId)))
358358 let d = split(a.description, "_")
359359 let landNum = if ((a.quantity > 0))
360360 then d[recLandNum]
361361 else ("-" + d[recLandNum])
362362 let pieces = numPiecesBySize(d[recLandSize])
363363 let productivity = applyBonuses(landAssetId, pieces)
364364 let deltaTime = (lastBlock.timestamp - stakedTime)
365365 let availRes = if ((stakedTime > 0))
366366 then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS)
367367 else 0
368368 let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE)
369369 let globalAndLocal = if ((stakedTime > 0))
370370 then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil))
371371 else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "")
372372 let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum]))
373373 [("%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:"))]
374374 }
375375
376376
377377 func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == ""))
378378 then throw("landAssetId is required")
379379 else {
380380 let a = value(assetInfo(fromBase58String(landAssetId)))
381381 let d = split(a.description, "_")
382382 let pieces = numPiecesBySize(d[recLandSize])
383383 let productivity = applyBonuses(landAssetId, pieces)
384384 [("%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:"))]
385385 }
386386
387387
388388 @Callable(i)
389389 func constructorV1 (contracts) = if ((i.caller != this))
390390 then throw("permissions denied")
391391 else {
392392 func descriptor (acc,ignoredItem) = (acc + "%s")
393393
394394 let descr = {
395395 let $l = contracts
396396 let $s = size($l)
397397 let $acc0 = ""
398398 func $f0_1 ($a,$i) = if (($i >= $s))
399399 then $a
400400 else descriptor($a, $l[$i])
401401
402402 func $f0_2 ($a,$i) = if (($i >= $s))
403403 then $a
404404 else throw("List size exceeds 10")
405405
406406 $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)
407407 }
408408 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))]
409409 }
410410
411411
412412
413413 @Callable(i)
414414 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
415415
416416
417417
418418 @Callable(i)
419419 func duckByOwnerInfoREADONLY (userAddress) = {
420420 let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress))
421421 $Tuple2(nil, if (if (isDefined(addressFromString(userAddress)))
422422 then isDefined(stakedDuck)
423423 else false)
424424 then {
425425 let duckAssetId = value(stakedDuck)
426426 duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId))
427427 }
428428 else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, "")))
429429 }
430430
431431
432432
433433 @Callable(i)
434434 func duckByAssetIdInfoREADONLY (duckAssetId) = {
435435 let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId))
436436 let duckInf = duckInfoTuple(duckAssetId)
437437 $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner))
438438 then value(owner)
439439 else "", duckInfoTuple(duckAssetId)))
440440 }
441441
442442
443443
444444 @Callable(i)
445445 func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == ""))
446446 then throw("landAssetId is required")
447447 else {
448448 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
449449 let owner = if ((stakedTime > 0))
450450 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
451451 else ""
452452 $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime))
453453 }
454454
455455
456456
457457 @Callable(i)
458458 func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == ""))
459459 then throw("landOwnerAddress is required")
460460 else {
461461 let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress))
462462 let lands = if (isDefined(landsStr))
463463 then split_51C(value(landsStr), "_")
464464 else nil
465465 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
466466 then throw("landAssetId is required")
467467 else {
468468 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
469469 (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime))
470470 }
471471
472472 let r = {
473473 let $l = lands
474474 let $s = size($l)
475475 let $acc0 = nil
476476 func $f0_1 ($a,$i) = if (($i >= $s))
477477 then $a
478478 else oneLand($a, $l[$i])
479479
480480 func $f0_2 ($a,$i) = if (($i >= $s))
481481 then $a
482482 else throw("List size exceeds 100")
483483
484484 $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)
485485 }
486486 $Tuple2(nil, r)
487487 }
488488
489489
490490
491491 @Callable(i)
492492 func landsByIdsInfoREADONLY (landAssetIds) = {
493493 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
494494 then throw("landAssetId is required")
495495 else {
496496 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
497497 let owner = if ((stakedTime > 0))
498498 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
499499 else ""
500500 (acc :+ landInfoArray(landAssetId, owner, stakedTime))
501501 }
502502
503503 let r = {
504504 let $l = landAssetIds
505505 let $s = size($l)
506506 let $acc0 = nil
507507 func $f0_1 ($a,$i) = if (($i >= $s))
508508 then $a
509509 else oneLand($a, $l[$i])
510510
511511 func $f0_2 ($a,$i) = if (($i >= $s))
512512 then $a
513513 else throw("List size exceeds 100")
514514
515515 $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)
516516 }
517517 $Tuple2(nil, r)
518518 }
519519
520520
521521
522522 @Callable(i)
523523 func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == ""))
524524 then throw("landAssetId is required")
525525 else {
526526 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
527527 let owner = if ((stakedTime > 0))
528528 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
529529 else ""
530530 $Tuple2(nil, landOrderInfoArray(landAssetId, owner))
531531 }
532532
533533
534534
535535 @Callable(i)
536536 func ordersByLandIdsInfoREADONLY (landAssetIds) = {
537537 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
538538 then throw("landAssetId is required")
539539 else {
540540 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
541541 let owner = if ((stakedTime > 0))
542542 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
543543 else ""
544544 (acc :+ landOrderInfoArray(landAssetId, owner))
545545 }
546546
547547 let r = {
548548 let $l = landAssetIds
549549 let $s = size($l)
550550 let $acc0 = nil
551551 func $f0_1 ($a,$i) = if (($i >= $s))
552552 then $a
553553 else oneLand($a, $l[$i])
554554
555555 func $f0_2 ($a,$i) = if (($i >= $s))
556556 then $a
557557 else throw("List size exceeds 40")
558558
559559 $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)
560560 }
561561 $Tuple2(nil, r)
562562 }
563563
564564
565565
566566 @Callable(i)
567567 func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this))
568568 then throw("permission denied")
569569 else {
570570 let blocked = getBoolean(stakingContract, keyBlocked())
571571 if (if (!(isDefined(blocked)))
572572 then true
573573 else (value(blocked) == false))
574574 then throw("Contracts should be blocked before canceling orders")
575575 else {
576576 func oneLand (a,landAssetId) = if ((landAssetId == ""))
577577 then throw("landAssetId is required")
578578 else {
579579 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))
580580 if (if (a)
581581 then true
582582 else c)
583583 then !(if (a)
584584 then c
585585 else false)
586586 else false
587587 }
588588
589589 let r = {
590590 let $l = landAssetIds
591591 let $s = size($l)
592592 let $acc0 = false
593593 func $f0_1 ($a,$i) = if (($i >= $s))
594594 then $a
595595 else oneLand($a, $l[$i])
596596
597597 func $f0_2 ($a,$i) = if (($i >= $s))
598598 then $a
599599 else throw("List size exceeds 30")
600600
601601 $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)
602602 }
603603 $Tuple2(nil, r)
604604 }
605605 }
606606
607607
608608
609609 @Callable(i)
610610 func fixWarehouseFormats (landAssetIds) = if ((i.caller != this))
611611 then throw("permission denied")
612612 else {
613613 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
614614 then throw("landAssetId is required")
615615 else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil))))
616616
617617 let r = {
618618 let $l = landAssetIds
619619 let $s = size($l)
620620 let $acc0 = 0
621621 func $f0_1 ($a,$i) = if (($i >= $s))
622622 then $a
623623 else oneLand($a, $l[$i])
624624
625625 func $f0_2 ($a,$i) = if (($i >= $s))
626626 then $a
627627 else throw("List size exceeds 25")
628628
629629 $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)
630630 }
631631 $Tuple2(nil, r)
632632 }
633633
634634
635635
636636 @Callable(i)
637637 func fixStakedPieces (users) = if ((i.caller != this))
638638 then throw("permission denied")
639639 else {
640640 func oneUser (acc,addr) = if ((addr == ""))
641641 then throw("address is required")
642642 else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil)))
643643
644644 let r = {
645645 let $l = users
646646 let $s = size($l)
647647 let $acc0 = 0
648648 func $f0_1 ($a,$i) = if (($i >= $s))
649649 then $a
650650 else oneUser($a, $l[$i])
651651
652652 func $f0_2 ($a,$i) = if (($i >= $s))
653653 then $a
654654 else throw("List size exceeds 16")
655655
656656 $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)
657657 }
658658 $Tuple2(nil, r)
659659 }
660660
661661
662662
663663 @Callable(i)
664664 func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract))
665665 then throw("permission denied")
666666 else {
667667 let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6)
668668 $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt)
669669 }
670670
671671
672672
673673 @Callable(i)
674674 func getEmergencyServiceDataREADONLY () = {
675675 let existStr = getString(economyContract, keyEsWarehouse())
676676 let existAmounts = if (isDefined(existStr))
677677 then split(value(existStr), "_")
678678 else nil
679679 func singleProd (acc,recipeStr) = {
680680 let n = acc._2
681681 let recipe = split(recipeStr, "_")
682682 let packSize = parseIntValue(recipe[recipeIdxPacksize])
683683 let maxAmount = if ((n == 0))
684684 then (ESMAXPACKAGES * packSize)
685685 else 0
686686 let existAmount = if ((size(existAmounts) > n))
687687 then parseIntValue(existAmounts[n])
688688 else 0
689689 let totalMat = getRecipeMaterials(recipe)
690690 let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (10 * packSize))
691691 let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * packSize))
692692 let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_")
693693 $Tuple2((acc._1 :+ y), (n + 1))
694694 }
695695
696696 let s = makeString_2C(( let $l = productionMatrix
697697 let $s = size($l)
698698 let $acc0 = $Tuple2(nil, 0)
699699 func $f0_1 ($a,$i) = if (($i >= $s))
700700 then $a
701701 else singleProd($a, $l[$i])
702702
703703 func $f0_2 ($a,$i) = if (($i >= $s))
704704 then $a
705705 else throw("List size exceeds 50")
706706
707707 $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, ":")
708708 let result = ("%s%s__emergencyServiceData__" + s)
709709 $Tuple2(nil, result)
710710 }
711711
712712
713713
714714 @Callable(i)
715715 func wlgStatsREADONLY () = {
716716 let curStats = getWlgStats()
717717 $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]))])
718718 }
719719
720720

github/deemru/w8io/026f985 
82.68 ms