tx · EcpFFXkB2yoGakG9XNWj4uE4diAymJKvvDjFD9v2vm6Y

3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy:  -0.01500000 Waves

2023.03.04 13:32 [2475195] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves

{ "type": 13, "id": "EcpFFXkB2yoGakG9XNWj4uE4diAymJKvvDjFD9v2vm6Y", "fee": 1500000, "feeAssetId": null, "timestamp": 1677925970335, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "2YnS8oBFBxZtGKSDonehpjmPF9s2C3USQiUzVAwNErUGePKZSALSsDAGbQ8C37jVr2gghVntZ2Lqr5mBcAe6TMBv" ], "script": "base64:BgI5CAISBQoDCAgIEgMKAQgSBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEYMwAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZG5Bc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QMJAAACAQFUBQckbWF0Y2gwASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4AEUluZnJhVXBncmFkZUNvc3RTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAMbrwL8XAwkAAAIBAVQFByRtYXRjaDAA8M2JHgkAAgECDVVua25vd24gY2hhaW4ACkxBTkRQUkVGSVgCBExBTkQACkRVQ0tQUkVGSVgCBERVQ0sAA1NFUAICX18ACkFSVFBSRVNBTEUCB1BSRVNBTEUAD0RBSUxZUkVTQllQSUVDRQCA+NIBAAlEQVlNSUxMSVMAgLiZKQAGTlVNUkVTAA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Uf7UJ Diff:
OldNewDifferences
1111 then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
1212 else throw("Unknown chain")
1313 }
14-
15-let economyContract = addressFromStringValue(match chain {
16- case _ =>
17- if ((base58'2W' == $match0))
18- then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D"
19- else if ((base58'2T' == $match0))
20- then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep"
21- else throw("Unknown chain")
22-})
23-
24-let stakingContract = addressFromStringValue(match chain {
25- case _ =>
26- if ((base58'2W' == $match0))
27- then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
28- else if ((base58'2T' == $match0))
29- then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
30- else throw("Unknown chain")
31-})
3214
3315 let InfraUpgradeCostS = match chain {
3416 case _ =>
7052 let recTerrains = 2
7153
7254 let recContinent = 3
55+
56+func keyRestCfg () = "%s__restConfig"
57+
58+
59+let IdxCfgStakingDapp = 1
60+
61+let IdxCfgEconomyDapp = 2
62+
63+let IdxCfgGovernanceDapp = 3
64+
65+func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
66+
67+
68+func readRestCfgOrFail () = split_4C(getStringOrFail(this, keyRestCfg()), SEP)
69+
70+
71+func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
72+
73+
74+let restCfg = readRestCfgOrFail()
75+
76+let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
77+
78+let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
79+
80+let governanceContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
7381
7482 func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId)
7583
219227 else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "")
220228 [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%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)]
221229 }
230+
231+
232+@Callable(i)
233+func constructorV1 (stakingContract,economyContract,governanceContract) = if ((i.caller != this))
234+ then throw("permissions denied")
235+ else [StringEntry(keyRestCfg(), makeString(["%s%s%s", stakingContract, economyContract, governanceContract], SEP))]
236+
222237
223238
224239 @Callable(i)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let chain = take(drop(this.bytes, 1), 1)
55
66 let usdnAssetId = match chain {
77 case _ =>
88 if ((base58'2W' == $match0))
99 then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
1010 else if ((base58'2T' == $match0))
1111 then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
1212 else throw("Unknown chain")
1313 }
14-
15-let economyContract = addressFromStringValue(match chain {
16- case _ =>
17- if ((base58'2W' == $match0))
18- then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D"
19- else if ((base58'2T' == $match0))
20- then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep"
21- else throw("Unknown chain")
22-})
23-
24-let stakingContract = addressFromStringValue(match chain {
25- case _ =>
26- if ((base58'2W' == $match0))
27- then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
28- else if ((base58'2T' == $match0))
29- then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
30- else throw("Unknown chain")
31-})
3214
3315 let InfraUpgradeCostS = match chain {
3416 case _ =>
3517 if ((base58'2W' == $match0))
3618 then 6307198406
3719 else if ((base58'2T' == $match0))
3820 then 63071984
3921 else throw("Unknown chain")
4022 }
4123
4224 let LANDPREFIX = "LAND"
4325
4426 let DUCKPREFIX = "DUCK"
4527
4628 let SEP = "__"
4729
4830 let ARTPRESALE = "PRESALE"
4931
5032 let DAILYRESBYPIECE = 3456000
5133
5234 let DAYMILLIS = 86400000
5335
5436 let NUMRES = 6
5537
5638 let SSIZE = 25
5739
5840 let MSIZE = 100
5941
6042 let LSIZE = 225
6143
6244 let XLSIZE = 400
6345
6446 let XXLSIZE = 625
6547
6648 let recLandNum = 0
6749
6850 let recLandSize = 1
6951
7052 let recTerrains = 2
7153
7254 let recContinent = 3
55+
56+func keyRestCfg () = "%s__restConfig"
57+
58+
59+let IdxCfgStakingDapp = 1
60+
61+let IdxCfgEconomyDapp = 2
62+
63+let IdxCfgGovernanceDapp = 3
64+
65+func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
66+
67+
68+func readRestCfgOrFail () = split_4C(getStringOrFail(this, keyRestCfg()), SEP)
69+
70+
71+func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
72+
73+
74+let restCfg = readRestCfgOrFail()
75+
76+let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
77+
78+let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
79+
80+let governanceContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
7381
7482 func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId)
7583
7684
7785 func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId)
7886
7987
8088 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
8189
8290
8391 func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr)
8492
8593
8694 func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId)
8795
8896
8997 func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId)
9098
9199
92100 func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId)
93101
94102
95103 func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId)
96104
97105
98106 func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId)
99107
100108
101109 func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_")
102110
103111
104112 func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId)
105113
106114
107115 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
108116
109117
110118 func asString (v) = match v {
111119 case s: String =>
112120 s
113121 case _ =>
114122 throw("fail to cast into String")
115123 }
116124
117125
118126 func asListIntCompacted (val) = match val {
119127 case valAnyList: List[Any] =>
120128 if ((size(valAnyList) != NUMRES))
121129 then throw(("Array size is " + toString(size(valAnyList))))
122130 else {
123131 func conv (acc,item) = match item {
124132 case it: Int =>
125133 (acc :+ toString(it))
126134 case _ =>
127135 throw("List type is not Int")
128136 }
129137
130138 let r = {
131139 let $l = valAnyList
132140 let $s = size($l)
133141 let $acc0 = nil
134142 func $f0_1 ($a,$i) = if (($i >= $s))
135143 then $a
136144 else conv($a, $l[$i])
137145
138146 func $f0_2 ($a,$i) = if (($i >= $s))
139147 then $a
140148 else throw("List size exceeds 6")
141149
142150 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
143151 }
144152 makeString(r, "_")
145153 }
146154 case _ =>
147155 throw("fail to cast into List")
148156 }
149157
150158
151159 func asSplitResult (val) = match val {
152160 case t2: (List[Any], List[Any]) =>
153161 $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2))
154162 case _ =>
155163 throw("fail to cast into (List, List)")
156164 }
157165
158166
159167 func walletInternal (userAddressOpt) = {
160168 let addr = addressFromString(userAddressOpt)
161169 let balance = if (isDefined(addr))
162170 then wavesBalance(value(addr))
163171 else BalanceDetails(0, 0, 0, 0)
164172 let usdnBalance = if (isDefined(addr))
165173 then assetBalance(value(addr), usdnAssetId)
166174 else 0
167175 makeString(["%s%d%d", "wallet", toString(balance.available), toString(usdnBalance)], SEP)
168176 }
169177
170178
171179 func applyBonuses (landAssetId,pieces) = {
172180 let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0)
173181 let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(stakingContract, keyPresaleArtActivatedByAssetId(landAssetId)), false))
174182 then pieces
175183 else 0)
176184 $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, infraLevel, 4)) + fraction(DAILYRESBYPIECE, (artPieces * 3), (pieces * 20))))
177185 }
178186
179187
180188 func numPiecesBySize (landSize) = match landSize {
181189 case _ =>
182190 if (("S" == $match0))
183191 then SSIZE
184192 else if (("M" == $match0))
185193 then MSIZE
186194 else if (("L" == $match0))
187195 then LSIZE
188196 else if (("XL" == $match0))
189197 then XLSIZE
190198 else if (("XXL" == $match0))
191199 then XXLSIZE
192200 else throw("Unknown land size")
193201 }
194202
195203
196204 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)))
197205
198206
199207 func duckInfoArray (duckAssetId,owner,duckInf) = [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%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)]
200208
201209
202210 func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == ""))
203211 then throw("landAssetId is required")
204212 else {
205213 let a = value(assetInfo(fromBase58String(landAssetId)))
206214 let d = split(a.description, "_")
207215 let landNum = if ((a.quantity > 0))
208216 then d[recLandNum]
209217 else ("-" + d[recLandNum])
210218 let pieces = numPiecesBySize(d[recLandSize])
211219 let productivity = applyBonuses(landAssetId, pieces)
212220 let deltaTime = (lastBlock.timestamp - stakedTime)
213221 let availRes = if ((stakedTime > 0))
214222 then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS)
215223 else 0
216224 let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE)
217225 let globalAndLocal = if ((stakedTime > 0))
218226 then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil))
219227 else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "")
220228 [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%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)]
221229 }
230+
231+
232+@Callable(i)
233+func constructorV1 (stakingContract,economyContract,governanceContract) = if ((i.caller != this))
234+ then throw("permissions denied")
235+ else [StringEntry(keyRestCfg(), makeString(["%s%s%s", stakingContract, economyContract, governanceContract], SEP))]
236+
222237
223238
224239 @Callable(i)
225240 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
226241
227242
228243
229244 @Callable(i)
230245 func duckInfoREADONLY (duckAssetId,userAddressOpt) = {
231246 let addr = addressFromString(userAddressOpt)
232247 let duckAsset = fromBase58String(duckAssetId)
233248 if ((duckAssetId == ""))
234249 then throw("duckAssetId is required")
235250 else {
236251 let duckOwner = getString(stakingContract, keyDuckIdToOwner(duckAssetId))
237252 let owner = if (isDefined(duckOwner))
238253 then value(duckOwner)
239254 else if (if (isDefined(addr))
240255 then (assetBalance(value(addr), duckAsset) == 1)
241256 else false)
242257 then userAddressOpt
243258 else ""
244259 $Tuple2(nil, $Tuple2(duckInfoArray(duckAssetId, owner, duckInfoTuple(duckAssetId)), walletInternal(userAddressOpt)))
245260 }
246261 }
247262
248263
249264
250265 @Callable(i)
251266 func landInfoREADONLY (landAssetId,userAddressOpt) = {
252267 let addr = addressFromString(userAddressOpt)
253268 let landAsset = fromBase58String(landAssetId)
254269 if ((landAssetId == ""))
255270 then throw("landAssetId is required")
256271 else {
257272 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), 0)
258273 let owner = if ((stakedTime > 0))
259274 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
260275 else if (if (isDefined(addr))
261276 then (assetBalance(value(addr), landAsset) == 1)
262277 else false)
263278 then userAddressOpt
264279 else ""
265280 let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddressOpt))
266281 let duckInf = if (if (isDefined(addr))
267282 then isDefined(stakedDuck)
268283 else false)
269284 then {
270285 let duckAssetId = value(stakedDuck)
271286 $Tuple2(duckAssetId, duckInfoTuple(duckAssetId))
272287 }
273288 else $Tuple2("", $Tuple5(-1, "", "", -1, ""))
274289 $Tuple2(nil, $Tuple3(landInfoArray(landAssetId, owner, stakedTime), duckInfoArray(duckInf._1, userAddressOpt, duckInf._2), walletInternal(userAddressOpt)))
275290 }
276291 }
277292
278293
279294
280295 @Callable(i)
281296 func stakedLandsInfoREADONLY (myAddress,landOwnerAddress) = if ((landOwnerAddress == ""))
282297 then throw("landOwnerAddress is required")
283298 else {
284299 let myAddr = addressFromString(myAddress)
285300 let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress))
286301 let lands = if (isDefined(landsStr))
287302 then split_51C(value(landsStr), "_")
288303 else nil
289304 func oneLand (acc,landAssetId) = {
290305 let landAsset = fromBase58String(landAssetId)
291306 if ((landAssetId == ""))
292307 then throw("landAssetId is required")
293308 else {
294309 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), 0)
295310 let descr = value(assetInfo(landAsset)).description
296311 let d = split(descr, "_")
297312 let pieces = numPiecesBySize(d[recLandSize])
298313 let productivity = applyBonuses(landAssetId, pieces)
299314 let deltaTime = (lastBlock.timestamp - stakedTime)
300315 let availRes = fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS)
301316 (acc :+ [("%s%s__landAssetId__" + landAssetId), ("%s%d__stakedTime__" + toString(stakedTime)), ("%s%s__description__" + descr), ("%s%d__infraLevel__" + toString(productivity._1)), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(productivity._2))], SEP), ("%s%s__availRes__" + toString(availRes))])
302317 }
303318 }
304319
305320 let r = {
306321 let $l = lands
307322 let $s = size($l)
308323 let $acc0 = nil
309324 func $f0_1 ($a,$i) = if (($i >= $s))
310325 then $a
311326 else oneLand($a, $l[$i])
312327
313328 func $f0_2 ($a,$i) = if (($i >= $s))
314329 then $a
315330 else throw("List size exceeds 100")
316331
317332 $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)
318333 }
319334 let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(myAddress))
320335 let duckInf = if (if (isDefined(myAddr))
321336 then isDefined(stakedDuck)
322337 else false)
323338 then {
324339 let duckAssetId = value(stakedDuck)
325340 $Tuple2(duckAssetId, duckInfoTuple(duckAssetId))
326341 }
327342 else $Tuple2("", $Tuple5(-1, "", "", -1, ""))
328343 $Tuple2(nil, $Tuple3(r, duckInfoArray(duckInf._1, myAddress, duckInf._2), walletInternal(myAddress)))
329344 }
330345
331346
332347
333348 @Callable(i)
334349 func duckByOwnerInfoREADONLY (userAddress) = {
335350 let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress))
336351 $Tuple2(nil, if (if (isDefined(addressFromString(userAddress)))
337352 then isDefined(stakedDuck)
338353 else false)
339354 then {
340355 let duckAssetId = value(stakedDuck)
341356 duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId))
342357 }
343358 else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, "")))
344359 }
345360
346361
347362
348363 @Callable(i)
349364 func duckByAssetIdInfoREADONLY (duckAssetId) = {
350365 let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId))
351366 let duckInf = duckInfoTuple(duckAssetId)
352367 $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner))
353368 then value(owner)
354369 else "", duckInfoTuple(duckAssetId)))
355370 }
356371
357372
358373
359374 @Callable(i)
360375 func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == ""))
361376 then throw("landAssetId is required")
362377 else {
363378 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
364379 let owner = if ((stakedTime > 0))
365380 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
366381 else ""
367382 $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime))
368383 }
369384
370385
371386
372387 @Callable(i)
373388 func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == ""))
374389 then throw("landOwnerAddress is required")
375390 else {
376391 let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress))
377392 let lands = if (isDefined(landsStr))
378393 then split_51C(value(landsStr), "_")
379394 else nil
380395 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
381396 then throw("landAssetId is required")
382397 else {
383398 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
384399 (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime))
385400 }
386401
387402 let r = {
388403 let $l = lands
389404 let $s = size($l)
390405 let $acc0 = nil
391406 func $f0_1 ($a,$i) = if (($i >= $s))
392407 then $a
393408 else oneLand($a, $l[$i])
394409
395410 func $f0_2 ($a,$i) = if (($i >= $s))
396411 then $a
397412 else throw("List size exceeds 100")
398413
399414 $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)
400415 }
401416 $Tuple2(nil, r)
402417 }
403418
404419
405420
406421 @Callable(i)
407422 func landsByIdsInfoREADONLY (landAssetIds) = {
408423 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
409424 then throw("landAssetId is required")
410425 else {
411426 let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1)
412427 let owner = if ((stakedTime > 0))
413428 then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)))
414429 else ""
415430 (acc :+ landInfoArray(landAssetId, owner, stakedTime))
416431 }
417432
418433 let r = {
419434 let $l = landAssetIds
420435 let $s = size($l)
421436 let $acc0 = nil
422437 func $f0_1 ($a,$i) = if (($i >= $s))
423438 then $a
424439 else oneLand($a, $l[$i])
425440
426441 func $f0_2 ($a,$i) = if (($i >= $s))
427442 then $a
428443 else throw("List size exceeds 100")
429444
430445 $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)
431446 }
432447 $Tuple2(nil, r)
433448 }
434449
435450

github/deemru/w8io/026f985 
88.70 ms