tx · 7nfuHT86xkf1hZygarhhX5hHjTMGnDwrEhNWzjr8miaV

3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy:  -0.02200000 Waves

2023.06.29 23:31 [2644416] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves

{ "type": 13, "id": "7nfuHT86xkf1hZygarhhX5hHjTMGnDwrEhNWzjr8miaV", "fee": 2200000, "feeAssetId": null, "timestamp": 1688070725551, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "3Xbe5Srn9ZgFJoxUefmXWSHXAJhAXsBKLe18HyGbezb7LkMmjYd9gBuuMXzG6ENtZTZCy8m4KXP4ubczWofAVgQe" ], "script": "base64:BgJHCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBCBIAEgBYAApBUlRQUkVTQUxFAgdQUkVTQUxFAAZOVU1SRVMABgAPREFJTFlSRVNCWVBJRUNFAID40gEACURBWU1JTExJUwCAuJkpAAxXSE1VTFRJUExJRVIAgMivoCUAEFJFU09VUkNFUFJJQ0VNSU4A1bUCAA1FU01BWFBBQ0tBR0VTAAMACUVTQlVZQ09FRgAEAApFU1NFTExDT0VGAAoAEHByb2R1Y3Rpb25NYXRyaXgJAMwIAgISMV8xXzFfMl8yXzVfMV8xMF8wCQDMCAICEzJfMl8yXzRfNF8xMF8xXzEwXzAJAMwIAgITM18zXzNfNl82XzE1XzFfMTBfMAkAzAgCAhMyXzVfNV8yXzdfNV8yXzEwMF8xCQDMCAICFzRfMTBfMTBfNF8xNF8xMF8yXzEwMF8xCQDMCAICFzZfMTVfMTVfNl8yMV8xNV8yXzEwMF8xCQDMCAICEjFfMV8xXzFfMV84XzFfMTBfMgkAzAgCAhMyXzJfMl8yXzJ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QAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyAl8xAgE6BAZyZXN1bHQJAKwCAgIcJXMlc19fZW1lcmdlbmN5U2VydmljZURhdGFfXwUBcwkAlAoCBQNuaWwFBnJlc3VsdAFpARB3bGdTdGF0c1JFQURPTkxZAAQIY3VyU3RhdHMJAQtnZXRXbGdTdGF0cwAJAJQKAgUDbmlsCQDMCAIJAKwCAgITJXMlcyVkX193bGdBbW91bnRfXwkApAMBCQCRAwIFCGN1clN0YXRzBQxpZHhXbGdBbW91bnQJAMwIAgkArAICAhIlcyVzJWRfX3dsZ1ByaWNlX18JAKQDAQkAkQMCBQhjdXJTdGF0cwULaWR4V2xnUHJpY2UJAMwIAgkArAICAhMlcyVzJWRfX3VzZHRGdW5kc19fCQCkAwEJAJEDAgUIY3VyU3RhdHMFC2lkeFdsZ0Z1bmRzCQDMCAIJAKwCAgIVJXMlcyVkX191c2R0RWNvbm9teV9fCQCkAwEJAJEDAgUIY3VyU3RhdHMFDWlkeFdsZ0Vjb25vbXkJAMwIAgkArAICAhYlcyVzJWRfX3VzZHRBY3Rpdml0eV9fCQCkAwEJAJEDAgUIY3VyU3RhdHMFDmlkeFdsZ0FjdGl2aXR5CQDMCAIJAKwCAgIXJXMlcyVkX191c2R0QXJiaXRyYWdlX18JAKQDAQkAkQMCBQhjdXJTdGF0cwUPaWR4V2xnQXJiaXRyYWdlCQDMCAIJAKwCAgISJXMlcyVkX191c2R0UG9vbF9fCQCkAwEJAJEDAgUIY3VyU3RhdHMFCmlkeFdsZ1Bvb2wFA25pbABAeUps", "height": 2644416, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3WPaa5MMuvdphvLmonoBBv4ykNhojDYpNkk7pFzp5fCF Next: Fgdp8b1Ap9D9Phq6gtKZNwgrHRewtmPxwvJnCLi3cFLT Diff:
OldNewDifferences
188188
189189 let wlgIssuedAmountKey = "wlg_issuedAmount"
190190
191+let wlgAssetIdKey = "wlg_assetId"
192+
193+let wlgAssetId = valueOrErrorMessage(getBinary(wlgAssetIdKey), "Not initialized yet")
194+
191195 let idxWlgAmount = 0
192196
193197 let idxWlgPrice = 1
304308 let usdtBalance = if (isDefined(addr))
305309 then assetBalance(value(addr), usdtAssetId)
306310 else 0
311+ let wlgoldBalance = if (isDefined(addr))
312+ then assetBalance(value(addr), wlgAssetId)
313+ else 0
307314 let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
308315 let refBy = valueOrElse(getString(stakingContract, keyAddressRefBy(userAddressOpt)), "")
309316 let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "")
310317 let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "")
311-[("%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__usdtBalance__" + toString(usdtBalance))]
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))]
312319 }
313320
314321
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
191+let wlgAssetIdKey = "wlg_assetId"
192+
193+let wlgAssetId = valueOrErrorMessage(getBinary(wlgAssetIdKey), "Not initialized yet")
194+
191195 let idxWlgAmount = 0
192196
193197 let idxWlgPrice = 1
194198
195199 let idxWlgFunds = 2
196200
197201 let idxWlgEconomy = 3
198202
199203 let idxWlgActivity = 4
200204
201205 let idxWlgArbitrage = 5
202206
203207 let idxWlgPool = 6
204208
205209 func asString (v) = match v {
206210 case s: String =>
207211 s
208212 case _ =>
209213 throw("fail to cast into String")
210214 }
211215
212216
213217 func asInt (v) = match v {
214218 case n: Int =>
215219 n
216220 case _ =>
217221 throw("fail to cast into Int")
218222 }
219223
220224
221225 func asBoolean (v) = match v {
222226 case s: Boolean =>
223227 s
224228 case _ =>
225229 throw("fail to cast into Boolean")
226230 }
227231
228232
229233 func numPiecesBySize (landSize) = match landSize {
230234 case _ =>
231235 if (("S" == $match0))
232236 then SSIZE
233237 else if (("M" == $match0))
234238 then MSIZE
235239 else if (("L" == $match0))
236240 then LSIZE
237241 else if (("XL" == $match0))
238242 then XLSIZE
239243 else if (("XXL" == $match0))
240244 then XXLSIZE
241245 else throw("Unknown land size")
242246 }
243247
244248
245249 func getWlgStats () = {
246250 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmountKey), "WLGOLD is not issued yet")
247251 let economyUsd = assetBalance(economyContract, usdtAssetId)
248252 let restUsd = assetBalance(restContract, usdtAssetId)
249253 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
250254 let puzzleUsd = assetBalance(puzzlePoolContract, usdtAssetId)
251255 let totalUsd = (((economyUsd + restUsd) + wlgUsd) + puzzleUsd)
252256 [issuedAmount, fraction(totalUsd, MULT8, issuedAmount), totalUsd, economyUsd, restUsd, wlgUsd, puzzleUsd]
253257 }
254258
255259
256260 let USDTPRIZEPART = 500000
257261
258262 func asListIntCompacted (val) = match val {
259263 case valAnyList: List[Any] =>
260264 if ((size(valAnyList) != NUMRES))
261265 then throw(("Array size is " + toString(size(valAnyList))))
262266 else {
263267 func conv (acc,item) = match item {
264268 case it: Int =>
265269 (acc :+ toString(it))
266270 case _ =>
267271 throw("List type is not Int")
268272 }
269273
270274 let r = {
271275 let $l = valAnyList
272276 let $s = size($l)
273277 let $acc0 = nil
274278 func $f0_1 ($a,$i) = if (($i >= $s))
275279 then $a
276280 else conv($a, $l[$i])
277281
278282 func $f0_2 ($a,$i) = if (($i >= $s))
279283 then $a
280284 else throw("List size exceeds 6")
281285
282286 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
283287 }
284288 makeString(r, "_")
285289 }
286290 case _ =>
287291 throw("fail to cast into List")
288292 }
289293
290294
291295 func asSplitResult (val) = match val {
292296 case t2: (List[Any], List[Any]) =>
293297 $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2))
294298 case _ =>
295299 throw("fail to cast into (List, List)")
296300 }
297301
298302
299303 func walletInternal (userAddressOpt) = {
300304 let addr = addressFromString(userAddressOpt)
301305 let balance = if (isDefined(addr))
302306 then wavesBalance(value(addr))
303307 else BalanceDetails(0, 0, 0, 0)
304308 let usdtBalance = if (isDefined(addr))
305309 then assetBalance(value(addr), usdtAssetId)
306310 else 0
311+ let wlgoldBalance = if (isDefined(addr))
312+ then assetBalance(value(addr), wlgAssetId)
313+ else 0
307314 let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
308315 let refBy = valueOrElse(getString(stakingContract, keyAddressRefBy(userAddressOpt)), "")
309316 let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "")
310317 let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "")
311-[("%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__usdtBalance__" + toString(usdtBalance))]
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))]
312319 }
313320
314321
315322 func applyBonuses (landAssetId,pieces) = {
316323 let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0)
317324 let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)
318325 let add6 = (infraLevel / 6)
319326 let add7 = (infraLevel / 7)
320327 $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))))
321328 }
322329
323330
324331 func getWarehouseTotalVolume (volPrefix) = {
325332 let parts = split(volPrefix, "_")
326333 ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0]))
327334 }
328335
329336
330337 func getWarehouse (whKey,landIndex,infraLevel) = {
331338 let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel))
332339 let totS = toString(getWarehouseTotalVolume(volPrefix))
333340 let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS))
334341 split(whStr, ":")
335342 }
336343
337344
338345 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)))
339346
340347
341348 func duckInfoArray (duckAssetId,owner,duckInf) = {
342349 let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2)
343350 [("%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)]
344351 }
345352
346353
347354 func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == ""))
348355 then throw("landAssetId is required")
349356 else {
350357 let a = value(assetInfo(fromBase58String(landAssetId)))
351358 let d = split(a.description, "_")
352359 let landNum = if ((a.quantity > 0))
353360 then d[recLandNum]
354361 else ("-" + d[recLandNum])
355362 let pieces = numPiecesBySize(d[recLandSize])
356363 let productivity = applyBonuses(landAssetId, pieces)
357364 let deltaTime = (lastBlock.timestamp - stakedTime)
358365 let availRes = if ((stakedTime > 0))
359366 then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS)
360367 else 0
361368 let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE)
362369 let globalAndLocal = if ((stakedTime > 0))
363370 then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil))
364371 else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "")
365372 let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum]))
366373 [("%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:"))]
367374 }
368375
369376
370377 func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == ""))
371378 then throw("landAssetId is required")
372379 else {
373380 let a = value(assetInfo(fromBase58String(landAssetId)))
374381 let d = split(a.description, "_")
375382 let pieces = numPiecesBySize(d[recLandSize])
376383 let productivity = applyBonuses(landAssetId, pieces)
377384 [("%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:"))]
378385 }
379386
380387
381388 @Callable(i)
382389 func constructorV1 (contracts) = if ((i.caller != this))
383390 then throw("permissions denied")
384391 else {
385392 func descriptor (acc,ignoredItem) = (acc + "%s")
386393
387394 let descr = {
388395 let $l = contracts
389396 let $s = size($l)
390397 let $acc0 = ""
391398 func $f0_1 ($a,$i) = if (($i >= $s))
392399 then $a
393400 else descriptor($a, $l[$i])
394401
395402 func $f0_2 ($a,$i) = if (($i >= $s))
396403 then $a
397404 else throw("List size exceeds 10")
398405
399406 $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)
400407 }
401408 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))]
402409 }
403410
404411
405412
406413 @Callable(i)
407414 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
408415
409416
410417
411418 @Callable(i)
412419 func duckByOwnerInfoREADONLY (userAddress) = {
413420 let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress))
414421 $Tuple2(nil, if (if (isDefined(addressFromString(userAddress)))
415422 then isDefined(stakedDuck)
416423 else false)
417424 then {
418425 let duckAssetId = value(stakedDuck)
419426 duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId))
420427 }
421428 else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, "")))
422429 }
423430
424431
425432
426433 @Callable(i)
427434 func duckByAssetIdInfoREADONLY (duckAssetId) = {
428435 let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId))
429436 let duckInf = duckInfoTuple(duckAssetId)
430437 $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner))
431438 then value(owner)
432439 else "", duckInfoTuple(duckAssetId)))
433440 }
434441
435442
436443
437444 @Callable(i)
438445 func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == ""))
439446 then throw("landAssetId is required")
440447 else {
441448 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
442449 let owner = if ((stakedTime > 0))
443450 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
444451 else ""
445452 $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime))
446453 }
447454
448455
449456
450457 @Callable(i)
451458 func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == ""))
452459 then throw("landOwnerAddress is required")
453460 else {
454461 let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress))
455462 let lands = if (isDefined(landsStr))
456463 then split_51C(value(landsStr), "_")
457464 else nil
458465 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
459466 then throw("landAssetId is required")
460467 else {
461468 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
462469 (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime))
463470 }
464471
465472 let r = {
466473 let $l = lands
467474 let $s = size($l)
468475 let $acc0 = nil
469476 func $f0_1 ($a,$i) = if (($i >= $s))
470477 then $a
471478 else oneLand($a, $l[$i])
472479
473480 func $f0_2 ($a,$i) = if (($i >= $s))
474481 then $a
475482 else throw("List size exceeds 100")
476483
477484 $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)
478485 }
479486 $Tuple2(nil, r)
480487 }
481488
482489
483490
484491 @Callable(i)
485492 func landsByIdsInfoREADONLY (landAssetIds) = {
486493 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
487494 then throw("landAssetId is required")
488495 else {
489496 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
490497 let owner = if ((stakedTime > 0))
491498 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
492499 else ""
493500 (acc :+ landInfoArray(landAssetId, owner, stakedTime))
494501 }
495502
496503 let r = {
497504 let $l = landAssetIds
498505 let $s = size($l)
499506 let $acc0 = nil
500507 func $f0_1 ($a,$i) = if (($i >= $s))
501508 then $a
502509 else oneLand($a, $l[$i])
503510
504511 func $f0_2 ($a,$i) = if (($i >= $s))
505512 then $a
506513 else throw("List size exceeds 100")
507514
508515 $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)
509516 }
510517 $Tuple2(nil, r)
511518 }
512519
513520
514521
515522 @Callable(i)
516523 func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == ""))
517524 then throw("landAssetId is required")
518525 else {
519526 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
520527 let owner = if ((stakedTime > 0))
521528 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
522529 else ""
523530 $Tuple2(nil, landOrderInfoArray(landAssetId, owner))
524531 }
525532
526533
527534
528535 @Callable(i)
529536 func ordersByLandIdsInfoREADONLY (landAssetIds) = {
530537 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
531538 then throw("landAssetId is required")
532539 else {
533540 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
534541 let owner = if ((stakedTime > 0))
535542 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
536543 else ""
537544 (acc :+ landOrderInfoArray(landAssetId, owner))
538545 }
539546
540547 let r = {
541548 let $l = landAssetIds
542549 let $s = size($l)
543550 let $acc0 = nil
544551 func $f0_1 ($a,$i) = if (($i >= $s))
545552 then $a
546553 else oneLand($a, $l[$i])
547554
548555 func $f0_2 ($a,$i) = if (($i >= $s))
549556 then $a
550557 else throw("List size exceeds 40")
551558
552559 $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)
553560 }
554561 $Tuple2(nil, r)
555562 }
556563
557564
558565
559566 @Callable(i)
560567 func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this))
561568 then throw("permission denied")
562569 else {
563570 let blocked = getBoolean(stakingContract, keyBlocked())
564571 if (if (!(isDefined(blocked)))
565572 then true
566573 else (value(blocked) == false))
567574 then throw("Contracts should be blocked before canceling orders")
568575 else {
569576 func oneLand (a,landAssetId) = if ((landAssetId == ""))
570577 then throw("landAssetId is required")
571578 else {
572579 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))
573580 if (if (a)
574581 then true
575582 else c)
576583 then !(if (a)
577584 then c
578585 else false)
579586 else false
580587 }
581588
582589 let r = {
583590 let $l = landAssetIds
584591 let $s = size($l)
585592 let $acc0 = false
586593 func $f0_1 ($a,$i) = if (($i >= $s))
587594 then $a
588595 else oneLand($a, $l[$i])
589596
590597 func $f0_2 ($a,$i) = if (($i >= $s))
591598 then $a
592599 else throw("List size exceeds 30")
593600
594601 $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)
595602 }
596603 $Tuple2(nil, r)
597604 }
598605 }
599606
600607
601608
602609 @Callable(i)
603610 func fixWarehouseFormats (landAssetIds) = if ((i.caller != this))
604611 then throw("permission denied")
605612 else {
606613 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
607614 then throw("landAssetId is required")
608615 else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil))))
609616
610617 let r = {
611618 let $l = landAssetIds
612619 let $s = size($l)
613620 let $acc0 = 0
614621 func $f0_1 ($a,$i) = if (($i >= $s))
615622 then $a
616623 else oneLand($a, $l[$i])
617624
618625 func $f0_2 ($a,$i) = if (($i >= $s))
619626 then $a
620627 else throw("List size exceeds 25")
621628
622629 $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)
623630 }
624631 $Tuple2(nil, r)
625632 }
626633
627634
628635
629636 @Callable(i)
630637 func fixStakedPieces (users) = if ((i.caller != this))
631638 then throw("permission denied")
632639 else {
633640 func oneUser (acc,addr) = if ((addr == ""))
634641 then throw("address is required")
635642 else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil)))
636643
637644 let r = {
638645 let $l = users
639646 let $s = size($l)
640647 let $acc0 = 0
641648 func $f0_1 ($a,$i) = if (($i >= $s))
642649 then $a
643650 else oneUser($a, $l[$i])
644651
645652 func $f0_2 ($a,$i) = if (($i >= $s))
646653 then $a
647654 else throw("List size exceeds 16")
648655
649656 $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)
650657 }
651658 $Tuple2(nil, r)
652659 }
653660
654661
655662
656663 @Callable(i)
657664 func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract))
658665 then throw("permission denied")
659666 else {
660667 let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6)
661668 $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt)
662669 }
663670
664671
665672
666673 @Callable(i)
667674 func getEmergencyServiceDataREADONLY () = {
668675 let existStr = getString(economyContract, keyEsWarehouse())
669676 let existAmounts = if (isDefined(existStr))
670677 then split(value(existStr), "_")
671678 else nil
672679 func singleProd (acc,recipeStr) = {
673680 let n = acc._2
674681 let recipe = split(recipeStr, "_")
675682 let packSize = parseIntValue(recipe[recipeIdxPacksize])
676683 let maxAmount = if ((n == 0))
677684 then (ESMAXPACKAGES * packSize)
678685 else 0
679686 let existAmount = if ((size(existAmounts) > n))
680687 then parseIntValue(existAmounts[n])
681688 else 0
682689 let totalMat = getRecipeMaterials(recipe)
683690 let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (10 * packSize))
684691 let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * packSize))
685692 let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_")
686693 $Tuple2((acc._1 :+ y), (n + 1))
687694 }
688695
689696 let s = makeString_2C(( let $l = productionMatrix
690697 let $s = size($l)
691698 let $acc0 = $Tuple2(nil, 0)
692699 func $f0_1 ($a,$i) = if (($i >= $s))
693700 then $a
694701 else singleProd($a, $l[$i])
695702
696703 func $f0_2 ($a,$i) = if (($i >= $s))
697704 then $a
698705 else throw("List size exceeds 50")
699706
700707 $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, ":")
701708 let result = ("%s%s__emergencyServiceData__" + s)
702709 $Tuple2(nil, result)
703710 }
704711
705712
706713
707714 @Callable(i)
708715 func wlgStatsREADONLY () = {
709716 let curStats = getWlgStats()
710717 $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]))])
711718 }
712719
713720

github/deemru/w8io/026f985 
126.07 ms