tx · 57f5bFh9LMCWZUjnSKMQn8AeV118aXHDqCmnGCDki8Aj 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.02000000 Waves 2023.04.26 21:47 [2551894] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "57f5bFh9LMCWZUjnSKMQn8AeV118aXHDqCmnGCDki8Aj", "fee": 2000000, "feeAssetId": null, "timestamp": 1682534897446, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "2rnt7X2oiuckZmEYzTwV6qMgvqffbkma6W5FaU6WKLPZKTLgVaxr15iSx4a66aUtexNFWAT9rQvciCLdqoYPWhzt" ], "script": "base64:BgJICAISBQoDCAgIEgMKAQgSBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEYEgMKAQgSAwoBGBIDCgEYPgAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZG5Bc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QMJAAACAQFUBQckbWF0Y2gwASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4AEUluZnJhVXBncmFkZUNvc3RTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAMbrwL8XAwkAAAIBAVQFByRtYXRjaDAA8M2JHgkAAgECDVVua25vd24gY2hhaW4ACkxBTkRQUkVGSVgCBExBTkQACkRVQ0tQUkVGSVgCBERVQ0sAA1NFUAICX18ACkFSVFBSRVNBTEUCB1BSRVNBTEUAD0RBSUxZUkVTQllQSUVDRQCA+NIBAAlEQVlNSUxMSVMAgL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29ub215Q29udHJhY3QCEXNldFdhcmVob3VzZU9yZGVyCQDMCAIFC2xhbmRBc3NldElkCQDMCAICMDBAMF8wQDBfMEAwXzBAMF8wQDBfMEAwOjBAMF8wQDBfMEAwXzBAMF8wQDBfMEAwOgUDbmlsBQNuaWwDBQNhY2MGBQZjYW5jZWwEAXIKAAIkbAUMbGFuZEFzc2V0SWRzCgACJHMJAJADAQUCJGwKAAUkYWNjMAcKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBB29uZUxhbmQCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDMwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeCQCUCgIFA25pbAUBcgBYizPz", "height": 2551894, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CCEvPPU2hb9hKx6ngWwq5aAtVwRCgtd8HBEj8xPxvgoP Next: BiMHKzEsQvnkPm4rLVzyJtF2MqzNqH4kKpVyhiTEo3bn Diff:
Old | New | Differences | |
---|---|---|---|
89 | 89 | ||
90 | 90 | let M = H(I, B) | |
91 | 91 | ||
92 | - | func N ( | |
92 | + | func N () = "contractsBlocked" | |
93 | 93 | ||
94 | 94 | ||
95 | - | func | |
95 | + | func O (P) = ("duckOwner_" + P) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func Q ( | |
98 | + | func Q (P) = ("stakedTime_" + P) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func | |
101 | + | func R (S) = ("stakedDuckByOwner_" + S) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func | |
104 | + | func T (U,P,S) = ((((("stakedTimeByTypeAssetIdAndOwner_" + U) + "_") + P) + "_") + S) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func | |
107 | + | func V (W) = ("backPack_" + W) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func | |
110 | + | func X (Y) = ("wareHouse_" + Y) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func Z ( | |
113 | + | func Z (W) = ("duckLocation_" + W) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func aa ( | |
116 | + | func aa (W) = ("duckHealth_" + W) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func ab ( | |
119 | + | func ab (P) = ("nftOwner_" + P) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func ac ( | |
122 | + | func ac (P) = ("infraLevel_" + P) | |
123 | 123 | ||
124 | 124 | ||
125 | - | func | |
125 | + | func ad (ae,P) = makeString(["landArtStatus", ae, P], "_") | |
126 | 126 | ||
127 | 127 | ||
128 | - | func af ( | |
128 | + | func af (P) = ("presaleArtActivated_" + P) | |
129 | 129 | ||
130 | 130 | ||
131 | - | func ag ( | |
131 | + | func ag (S) = ("stakedLandsByOwner_" + S) | |
132 | 132 | ||
133 | 133 | ||
134 | - | func ah (ai) = { | |
135 | - | let c = ai | |
134 | + | func ah (Y) = ("landOrder_" + Y) | |
135 | + | ||
136 | + | ||
137 | + | func ai (aj) = { | |
138 | + | let c = aj | |
136 | 139 | if ($isInstanceOf(c, "String")) | |
137 | 140 | then { | |
138 | - | let | |
139 | - | | |
141 | + | let ak = c | |
142 | + | ak | |
140 | 143 | } | |
141 | 144 | else throw("fail to cast into String") | |
142 | 145 | } | |
143 | 146 | ||
144 | 147 | ||
145 | - | func ak (al) = { | |
146 | - | let c = al | |
148 | + | func al (aj) = { | |
149 | + | let c = aj | |
150 | + | if ($isInstanceOf(c, "Boolean")) | |
151 | + | then { | |
152 | + | let ak = c | |
153 | + | ak | |
154 | + | } | |
155 | + | else throw("fail to cast into Boolean") | |
156 | + | } | |
157 | + | ||
158 | + | ||
159 | + | func am (an) = { | |
160 | + | let c = an | |
147 | 161 | if ($isInstanceOf(c, "List[Any]")) | |
148 | 162 | then { | |
149 | - | let | |
150 | - | if ((size( | |
151 | - | then throw(("Array size is " + toString(size( | |
163 | + | let ao = c | |
164 | + | if ((size(ao) != k)) | |
165 | + | then throw(("Array size is " + toString(size(ao)))) | |
152 | 166 | else { | |
153 | - | func | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
167 | + | func ap (aq,ar) = { | |
168 | + | let as = ar | |
169 | + | if ($isInstanceOf(as, "Int")) | |
156 | 170 | then { | |
157 | - | let | |
158 | - | ( | |
171 | + | let at = as | |
172 | + | (aq :+ toString(at)) | |
159 | 173 | } | |
160 | 174 | else throw("List type is not Int") | |
161 | 175 | } | |
162 | 176 | ||
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | func | |
168 | - | then | |
169 | - | else | |
177 | + | let au = { | |
178 | + | let av = ao | |
179 | + | let aw = size(av) | |
180 | + | let ax = nil | |
181 | + | func ay (az,aA) = if ((aA >= aw)) | |
182 | + | then az | |
183 | + | else ap(az, av[aA]) | |
170 | 184 | ||
171 | - | func | |
172 | - | then | |
185 | + | func aB (az,aA) = if ((aA >= aw)) | |
186 | + | then az | |
173 | 187 | else throw("List size exceeds 6") | |
174 | 188 | ||
175 | - | | |
189 | + | aB(ay(ay(ay(ay(ay(ay(ax, 0), 1), 2), 3), 4), 5), 6) | |
176 | 190 | } | |
177 | - | makeString( | |
191 | + | makeString(au, "_") | |
178 | 192 | } | |
179 | 193 | } | |
180 | 194 | else throw("fail to cast into List") | |
181 | 195 | } | |
182 | 196 | ||
183 | 197 | ||
184 | - | func | |
185 | - | let c = | |
198 | + | func aC (an) = { | |
199 | + | let c = an | |
186 | 200 | if ($isInstanceOf(c, "(List[Any], List[Any])")) | |
187 | 201 | then { | |
188 | - | let | |
189 | - | $Tuple2( | |
202 | + | let aD = c | |
203 | + | $Tuple2(am(aD._1), am(aD._2)) | |
190 | 204 | } | |
191 | 205 | else throw("fail to cast into (List, List)") | |
192 | 206 | } | |
193 | 207 | ||
194 | 208 | ||
195 | - | func | |
196 | - | let | |
197 | - | let | |
198 | - | then wavesBalance(value( | |
209 | + | func aE (aF) = { | |
210 | + | let aG = addressFromString(aF) | |
211 | + | let aH = if (isDefined(aG)) | |
212 | + | then wavesBalance(value(aG)) | |
199 | 213 | else BalanceDetails(0, 0, 0, 0) | |
200 | - | let | |
201 | - | then assetBalance(value( | |
214 | + | let aI = if (isDefined(aG)) | |
215 | + | then assetBalance(value(aG), b) | |
202 | 216 | else 0 | |
203 | - | makeString(["%s%d%d", "wallet", toString( | |
217 | + | makeString(["%s%d%d", "wallet", toString(aH.available), toString(aI)], g) | |
204 | 218 | } | |
205 | 219 | ||
206 | 220 | ||
207 | - | func | |
208 | - | let | |
209 | - | let | |
210 | - | then | |
221 | + | func aJ (Y,aK) = { | |
222 | + | let aL = valueOrElse(getInteger(K, ac(Y)), 0) | |
223 | + | let aM = valueOrElse(getInteger(K, ad(h, Y)), if (valueOrElse(getBoolean(K, af(Y)), false)) | |
224 | + | then aK | |
211 | 225 | else 0) | |
212 | - | $Tuple3( | |
226 | + | $Tuple3(aL, aM, ((i + fraction(i, aL, 4)) + fraction(i, (aM * 3), (aK * 20)))) | |
213 | 227 | } | |
214 | 228 | ||
215 | 229 | ||
216 | - | func | |
217 | - | let c = | |
230 | + | func aN (aO) = { | |
231 | + | let c = aO | |
218 | 232 | if (("S" == c)) | |
219 | 233 | then l | |
220 | 234 | else if (("M" == c)) | |
229 | 243 | } | |
230 | 244 | ||
231 | 245 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | [ | |
236 | - | then | |
237 | - | else "0_0_0_0_0_0", if ((size(split( | |
238 | - | then | |
239 | - | else "0_0_0_0_0_0", | |
246 | + | func aP (aQ,aR,aL) = { | |
247 | + | let aS = ((toString(aR) + "_") + toString(aL)) | |
248 | + | let aT = split(valueOrElse(getString(K, aQ), (aS + ":0_0_0_0_0_0:0_0_0_0_0_0::0")), ":") | |
249 | + | [aT[u], if ((size(split(aT[v], "_")) == k)) | |
250 | + | then aT[v] | |
251 | + | else "0_0_0_0_0_0", if ((size(split(aT[w], "_")) == k)) | |
252 | + | then aT[w] | |
253 | + | else "0_0_0_0_0_0", aT[x], if ((5 > size(aT))) | |
240 | 254 | then "0" | |
241 | - | else | |
255 | + | else aT[y]] | |
242 | 256 | } | |
243 | 257 | ||
244 | 258 | ||
245 | - | func | |
259 | + | func aU (W) = $Tuple5(valueOrElse(getInteger(K, Q(W)), -1), value(assetInfo(fromBase58String(W))).name, valueOrElse(getString(K, Z(W)), ""), valueOrElse(getInteger(K, aa(W)), -1), ai(invoke(K, "getBackpackREADONLY", [W], nil))) | |
246 | 260 | ||
247 | 261 | ||
248 | - | func | |
262 | + | func aV (W,aW,aX) = [("%s%s__assetId__" + W), ("%s%s__owner__" + aW), ("%s%d__stakedTime__" + toString(aX._1)), ("%s%s__name__" + aX._2), ("%s%s__location__" + aX._3), ("%s%d__health__" + toString(aX._4)), ("%s%s__backPack__" + aX._5)] | |
249 | 263 | ||
250 | 264 | ||
251 | - | func | |
265 | + | func aY (Y,aW,aZ) = if ((Y == "")) | |
252 | 266 | then throw("landAssetId is required") | |
253 | 267 | else { | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | then | |
258 | - | else ("-" + | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | then fraction( | |
268 | + | let ba = value(assetInfo(fromBase58String(Y))) | |
269 | + | let bb = split(ba.description, "_") | |
270 | + | let bc = if ((ba.quantity > 0)) | |
271 | + | then bb[q] | |
272 | + | else ("-" + bb[q]) | |
273 | + | let aK = aN(bb[r]) | |
274 | + | let bd = aJ(Y, aK) | |
275 | + | let be = (lastBlock.timestamp - aZ) | |
276 | + | let bf = if ((aZ > 0)) | |
277 | + | then fraction(be, (bd._3 * aK), j) | |
264 | 278 | else 0 | |
265 | - | let | |
266 | - | let | |
267 | - | then | |
268 | - | else $Tuple2( | |
269 | - | [("%s%s__assetId__" + | |
279 | + | let bg = fraction(d, (aK * (bd._1 + 1)), l) | |
280 | + | let bh = if ((aZ > 0)) | |
281 | + | then aC(invoke(K, "splitByGlobalAndLocalWeightsREADONLY", [bg, bf, bb[s]], nil)) | |
282 | + | else $Tuple2(am(invoke(K, "splitByGlobalWeightsREADONLY", [bg], nil)), "") | |
283 | + | [("%s%s__assetId__" + Y), ("%s%s__owner__" + aW), ("%s%d__stakedTime__" + toString(aZ)), ("%s%s__description__" + makeString([bc, bb[r], bb[s], bb[t]], "_")), ("%s%d__infraLevel__" + toString(bd._1)), ("%s%s__availResByType__" + bh._2), ("%s%d__availResTotal__" + toString(bf)), ("%s%s__needMaterial__" + bh._1), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(bd._2))], g), ("%s%s__warehouse__" + makeString(aP(X(Y), (aK / l), bd._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(L, ah(Y)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
270 | 284 | } | |
271 | 285 | ||
272 | 286 | ||
273 | - | func | |
287 | + | func bi (Y,aW) = if ((Y == "")) | |
274 | 288 | then throw("landAssetId is required") | |
275 | 289 | else { | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | [("%s%s__assetId__" + | |
290 | + | let ba = value(assetInfo(fromBase58String(Y))) | |
291 | + | let bb = split(ba.description, "_") | |
292 | + | let aK = aN(bb[r]) | |
293 | + | let bd = aJ(Y, aK) | |
294 | + | [("%s%s__assetId__" + Y), ("%s%s__owner__" + aW), ("%s%s__warehouse__" + makeString(aP(X(Y), (aK / l), bd._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(L, ah(Y)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
281 | 295 | } | |
282 | 296 | ||
283 | 297 | ||
284 | - | @Callable( | |
285 | - | func constructorV1 (K,L,M) = if (( | |
298 | + | @Callable(bj) | |
299 | + | func constructorV1 (K,L,M) = if ((bj.caller != this)) | |
286 | 300 | then throw("permissions denied") | |
287 | 301 | else [StringEntry(z(), makeString(["%s%s%s", K, L, M], g))] | |
288 | 302 | ||
289 | 303 | ||
290 | 304 | ||
291 | - | @Callable( | |
292 | - | func walletInfoREADONLY ( | |
305 | + | @Callable(bj) | |
306 | + | func walletInfoREADONLY (aF) = $Tuple2(nil, aE(aF)) | |
293 | 307 | ||
294 | 308 | ||
295 | 309 | ||
296 | - | @Callable( | |
297 | - | func duckInfoREADONLY ( | |
298 | - | let | |
299 | - | let | |
300 | - | if (( | |
310 | + | @Callable(bj) | |
311 | + | func duckInfoREADONLY (W,aF) = { | |
312 | + | let aG = addressFromString(aF) | |
313 | + | let bk = fromBase58String(W) | |
314 | + | if ((W == "")) | |
301 | 315 | then throw("duckAssetId is required") | |
302 | 316 | else { | |
303 | - | let | |
304 | - | let | |
305 | - | then value( | |
306 | - | else if (if (isDefined( | |
307 | - | then (assetBalance(value( | |
317 | + | let bl = getString(K, O(W)) | |
318 | + | let aW = if (isDefined(bl)) | |
319 | + | then value(bl) | |
320 | + | else if (if (isDefined(aG)) | |
321 | + | then (assetBalance(value(aG), bk) == 1) | |
308 | 322 | else false) | |
309 | - | then | |
323 | + | then aF | |
310 | 324 | else "" | |
311 | - | $Tuple2(nil, $Tuple2( | |
325 | + | $Tuple2(nil, $Tuple2(aV(W, aW, aU(W)), aE(aF))) | |
312 | 326 | } | |
313 | 327 | } | |
314 | 328 | ||
315 | 329 | ||
316 | 330 | ||
317 | - | @Callable( | |
318 | - | func landInfoREADONLY ( | |
319 | - | let | |
320 | - | let | |
321 | - | if (( | |
331 | + | @Callable(bj) | |
332 | + | func landInfoREADONLY (Y,aF) = { | |
333 | + | let aG = addressFromString(aF) | |
334 | + | let bm = fromBase58String(Y) | |
335 | + | if ((Y == "")) | |
322 | 336 | then throw("landAssetId is required") | |
323 | 337 | else { | |
324 | - | let | |
325 | - | let | |
326 | - | then value(getString(K, | |
327 | - | else if (if (isDefined( | |
328 | - | then (assetBalance(value( | |
338 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), 0) | |
339 | + | let aW = if ((aZ > 0)) | |
340 | + | then value(getString(K, ab(Y))) | |
341 | + | else if (if (isDefined(aG)) | |
342 | + | then (assetBalance(value(aG), bm) == 1) | |
329 | 343 | else false) | |
330 | - | then | |
344 | + | then aF | |
331 | 345 | else "" | |
332 | - | let | |
333 | - | let | |
334 | - | then isDefined( | |
346 | + | let bn = getString(K, R(aF)) | |
347 | + | let aX = if (if (isDefined(aG)) | |
348 | + | then isDefined(bn) | |
335 | 349 | else false) | |
336 | 350 | then { | |
337 | - | let | |
338 | - | $Tuple2( | |
351 | + | let W = value(bn) | |
352 | + | $Tuple2(W, aU(W)) | |
339 | 353 | } | |
340 | 354 | else $Tuple2("", $Tuple5(-1, "", "", -1, "")) | |
341 | - | $Tuple2(nil, $Tuple3( | |
355 | + | $Tuple2(nil, $Tuple3(aY(Y, aW, aZ), aV(aX._1, aF, aX._2), aE(aF))) | |
342 | 356 | } | |
343 | 357 | } | |
344 | 358 | ||
345 | 359 | ||
346 | 360 | ||
347 | - | @Callable( | |
348 | - | func stakedLandsInfoREADONLY ( | |
361 | + | @Callable(bj) | |
362 | + | func stakedLandsInfoREADONLY (bo,bp) = if ((bp == "")) | |
349 | 363 | then throw("landOwnerAddress is required") | |
350 | 364 | else { | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | then split_51C(value( | |
365 | + | let bq = addressFromString(bo) | |
366 | + | let br = getString(K, ag(bp)) | |
367 | + | let bs = if (isDefined(br)) | |
368 | + | then split_51C(value(br), "_") | |
355 | 369 | else nil | |
356 | - | func | |
357 | - | let | |
358 | - | if (( | |
370 | + | func bt (aq,Y) = { | |
371 | + | let bm = fromBase58String(Y) | |
372 | + | if ((Y == "")) | |
359 | 373 | then throw("landAssetId is required") | |
360 | 374 | else { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | ( | |
375 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), 0) | |
376 | + | let bu = value(assetInfo(bm)).description | |
377 | + | let bb = split(bu, "_") | |
378 | + | let aK = aN(bb[r]) | |
379 | + | let bd = aJ(Y, aK) | |
380 | + | let be = (lastBlock.timestamp - aZ) | |
381 | + | let bf = fraction(be, (bd._3 * aK), j) | |
382 | + | (aq :+ [("%s%s__landAssetId__" + Y), ("%s%d__stakedTime__" + toString(aZ)), ("%s%s__description__" + bu), ("%s%d__infraLevel__" + toString(bd._1)), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(bd._2))], g), ("%s%s__availRes__" + toString(bf))]) | |
369 | 383 | } | |
370 | 384 | } | |
371 | 385 | ||
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | func | |
377 | - | then | |
378 | - | else | |
386 | + | let au = { | |
387 | + | let av = bs | |
388 | + | let aw = size(av) | |
389 | + | let ax = nil | |
390 | + | func ay (az,aA) = if ((aA >= aw)) | |
391 | + | then az | |
392 | + | else bt(az, av[aA]) | |
379 | 393 | ||
380 | - | func | |
381 | - | then | |
394 | + | func aB (az,aA) = if ((aA >= aw)) | |
395 | + | then az | |
382 | 396 | else throw("List size exceeds 100") | |
383 | 397 | ||
384 | - | | |
398 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
385 | 399 | } | |
386 | - | let | |
387 | - | let | |
388 | - | then isDefined( | |
400 | + | let bn = getString(K, R(bo)) | |
401 | + | let aX = if (if (isDefined(bq)) | |
402 | + | then isDefined(bn) | |
389 | 403 | else false) | |
390 | 404 | then { | |
391 | - | let | |
392 | - | $Tuple2( | |
405 | + | let W = value(bn) | |
406 | + | $Tuple2(W, aU(W)) | |
393 | 407 | } | |
394 | 408 | else $Tuple2("", $Tuple5(-1, "", "", -1, "")) | |
395 | - | $Tuple2(nil, $Tuple3( | |
409 | + | $Tuple2(nil, $Tuple3(au, aV(aX._1, bo, aX._2), aE(bo))) | |
396 | 410 | } | |
397 | 411 | ||
398 | 412 | ||
399 | 413 | ||
400 | - | @Callable( | |
401 | - | func duckByOwnerInfoREADONLY ( | |
402 | - | let | |
403 | - | $Tuple2(nil, if (if (isDefined(addressFromString( | |
404 | - | then isDefined( | |
414 | + | @Callable(bj) | |
415 | + | func duckByOwnerInfoREADONLY (bv) = { | |
416 | + | let bn = getString(K, R(bv)) | |
417 | + | $Tuple2(nil, if (if (isDefined(addressFromString(bv))) | |
418 | + | then isDefined(bn) | |
405 | 419 | else false) | |
406 | 420 | then { | |
407 | - | let | |
408 | - | | |
421 | + | let W = value(bn) | |
422 | + | aV(W, bv, aU(W)) | |
409 | 423 | } | |
410 | - | else | |
424 | + | else aV("", bv, $Tuple5(-1, "", "", -1, ""))) | |
411 | 425 | } | |
412 | 426 | ||
413 | 427 | ||
414 | 428 | ||
415 | - | @Callable( | |
416 | - | func duckByAssetIdInfoREADONLY ( | |
417 | - | let | |
418 | - | let | |
419 | - | $Tuple2(nil, | |
420 | - | then value( | |
421 | - | else "", | |
429 | + | @Callable(bj) | |
430 | + | func duckByAssetIdInfoREADONLY (W) = { | |
431 | + | let aW = getString(K, O(W)) | |
432 | + | let aX = aU(W) | |
433 | + | $Tuple2(nil, aV(W, if (isDefined(aW)) | |
434 | + | then value(aW) | |
435 | + | else "", aU(W))) | |
422 | 436 | } | |
423 | 437 | ||
424 | 438 | ||
425 | 439 | ||
426 | - | @Callable( | |
427 | - | func landByAssetIdInfoREADONLY ( | |
440 | + | @Callable(bj) | |
441 | + | func landByAssetIdInfoREADONLY (Y) = if ((Y == "")) | |
428 | 442 | then throw("landAssetId is required") | |
429 | 443 | else { | |
430 | - | let | |
431 | - | let | |
432 | - | then value(getString(K, | |
444 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
445 | + | let aW = if ((aZ > 0)) | |
446 | + | then value(getString(K, ab(Y))) | |
433 | 447 | else "" | |
434 | - | $Tuple2(nil, | |
448 | + | $Tuple2(nil, aY(Y, aW, aZ)) | |
435 | 449 | } | |
436 | 450 | ||
437 | 451 | ||
438 | 452 | ||
439 | - | @Callable( | |
440 | - | func stakedLandsByOwnerInfoREADONLY ( | |
453 | + | @Callable(bj) | |
454 | + | func stakedLandsByOwnerInfoREADONLY (bp) = if ((bp == "")) | |
441 | 455 | then throw("landOwnerAddress is required") | |
442 | 456 | else { | |
443 | - | let | |
444 | - | let | |
445 | - | then split_51C(value( | |
457 | + | let br = getString(K, ag(bp)) | |
458 | + | let bs = if (isDefined(br)) | |
459 | + | then split_51C(value(br), "_") | |
446 | 460 | else nil | |
447 | - | func | |
461 | + | func bt (aq,Y) = if ((Y == "")) | |
448 | 462 | then throw("landAssetId is required") | |
449 | 463 | else { | |
450 | - | let | |
451 | - | ( | |
464 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
465 | + | (aq :+ aY(Y, bp, aZ)) | |
452 | 466 | } | |
453 | 467 | ||
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | func | |
459 | - | then | |
460 | - | else | |
468 | + | let au = { | |
469 | + | let av = bs | |
470 | + | let aw = size(av) | |
471 | + | let ax = nil | |
472 | + | func ay (az,aA) = if ((aA >= aw)) | |
473 | + | then az | |
474 | + | else bt(az, av[aA]) | |
461 | 475 | ||
462 | - | func | |
463 | - | then | |
476 | + | func aB (az,aA) = if ((aA >= aw)) | |
477 | + | then az | |
464 | 478 | else throw("List size exceeds 100") | |
465 | 479 | ||
466 | - | | |
480 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
467 | 481 | } | |
468 | - | $Tuple2(nil, | |
482 | + | $Tuple2(nil, au) | |
469 | 483 | } | |
470 | 484 | ||
471 | 485 | ||
472 | 486 | ||
473 | - | @Callable( | |
474 | - | func landsByIdsInfoREADONLY ( | |
475 | - | func | |
487 | + | @Callable(bj) | |
488 | + | func landsByIdsInfoREADONLY (bw) = { | |
489 | + | func bt (aq,Y) = if ((Y == "")) | |
476 | 490 | then throw("landAssetId is required") | |
477 | 491 | else { | |
478 | - | let | |
479 | - | let | |
480 | - | then value(getString(K, | |
492 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
493 | + | let aW = if ((aZ > 0)) | |
494 | + | then value(getString(K, ab(Y))) | |
481 | 495 | else "" | |
482 | - | ( | |
496 | + | (aq :+ aY(Y, aW, aZ)) | |
483 | 497 | } | |
484 | 498 | ||
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | func | |
490 | - | then | |
491 | - | else | |
499 | + | let au = { | |
500 | + | let av = bw | |
501 | + | let aw = size(av) | |
502 | + | let ax = nil | |
503 | + | func ay (az,aA) = if ((aA >= aw)) | |
504 | + | then az | |
505 | + | else bt(az, av[aA]) | |
492 | 506 | ||
493 | - | func | |
494 | - | then | |
507 | + | func aB (az,aA) = if ((aA >= aw)) | |
508 | + | then az | |
495 | 509 | else throw("List size exceeds 100") | |
496 | 510 | ||
497 | - | | |
511 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
498 | 512 | } | |
499 | - | $Tuple2(nil, | |
513 | + | $Tuple2(nil, au) | |
500 | 514 | } | |
501 | 515 | ||
502 | 516 | ||
503 | 517 | ||
504 | - | @Callable( | |
505 | - | func warehouseOrderByAssetIdInfoREADONLY ( | |
518 | + | @Callable(bj) | |
519 | + | func warehouseOrderByAssetIdInfoREADONLY (Y) = if ((Y == "")) | |
506 | 520 | then throw("landAssetId is required") | |
507 | 521 | else { | |
508 | - | let | |
509 | - | let | |
510 | - | then value(getString(K, | |
522 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
523 | + | let aW = if ((aZ > 0)) | |
524 | + | then value(getString(K, ab(Y))) | |
511 | 525 | else "" | |
512 | - | $Tuple2(nil, | |
526 | + | $Tuple2(nil, bi(Y, aW)) | |
513 | 527 | } | |
514 | 528 | ||
515 | 529 | ||
516 | 530 | ||
517 | - | @Callable( | |
518 | - | func ordersByLandIdsInfoREADONLY ( | |
519 | - | func | |
531 | + | @Callable(bj) | |
532 | + | func ordersByLandIdsInfoREADONLY (bw) = { | |
533 | + | func bt (aq,Y) = if ((Y == "")) | |
520 | 534 | then throw("landAssetId is required") | |
521 | 535 | else { | |
522 | - | let | |
523 | - | let | |
524 | - | then value(getString(K, | |
536 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
537 | + | let aW = if ((aZ > 0)) | |
538 | + | then value(getString(K, ab(Y))) | |
525 | 539 | else "" | |
526 | - | ( | |
540 | + | (aq :+ bi(Y, aW)) | |
527 | 541 | } | |
528 | 542 | ||
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | func | |
534 | - | then | |
535 | - | else | |
543 | + | let au = { | |
544 | + | let av = bw | |
545 | + | let aw = size(av) | |
546 | + | let ax = nil | |
547 | + | func ay (az,aA) = if ((aA >= aw)) | |
548 | + | then az | |
549 | + | else bt(az, av[aA]) | |
536 | 550 | ||
537 | - | func | |
538 | - | then | |
551 | + | func aB (az,aA) = if ((aA >= aw)) | |
552 | + | then az | |
539 | 553 | else throw("List size exceeds 100") | |
540 | 554 | ||
541 | - | | |
555 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
542 | 556 | } | |
543 | - | $Tuple2(nil, | |
557 | + | $Tuple2(nil, au) | |
544 | 558 | } | |
559 | + | ||
560 | + | ||
561 | + | ||
562 | + | @Callable(bj) | |
563 | + | func cancelWarehouseOrders (bw) = if ((bj.caller != this)) | |
564 | + | then throw("permission denied") | |
565 | + | else { | |
566 | + | let bx = getBoolean(K, N()) | |
567 | + | if (if (!(isDefined(bx))) | |
568 | + | then true | |
569 | + | else (value(bx) == false)) | |
570 | + | then throw("Contracts should be blocked before canceling orders") | |
571 | + | else { | |
572 | + | func bt (aq,Y) = if ((Y == "")) | |
573 | + | then throw("landAssetId is required") | |
574 | + | else { | |
575 | + | let by = al(invoke(L, "setWarehouseOrder", [Y, "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"], nil)) | |
576 | + | if (aq) | |
577 | + | then true | |
578 | + | else by | |
579 | + | } | |
580 | + | ||
581 | + | let au = { | |
582 | + | let av = bw | |
583 | + | let aw = size(av) | |
584 | + | let ax = false | |
585 | + | func ay (az,aA) = if ((aA >= aw)) | |
586 | + | then az | |
587 | + | else bt(az, av[aA]) | |
588 | + | ||
589 | + | func aB (az,aA) = if ((aA >= aw)) | |
590 | + | then az | |
591 | + | else throw("List size exceeds 30") | |
592 | + | ||
593 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
594 | + | } | |
595 | + | $Tuple2(nil, au) | |
596 | + | } | |
597 | + | } | |
545 | 598 | ||
546 | 599 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let b = { | |
7 | 7 | let c = a | |
8 | 8 | if ((base58'2W' == c)) | |
9 | 9 | then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
10 | 10 | else if ((base58'2T' == c)) | |
11 | 11 | then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let d = { | |
16 | 16 | let c = a | |
17 | 17 | if ((base58'2W' == c)) | |
18 | 18 | then 6307198406 | |
19 | 19 | else if ((base58'2T' == c)) | |
20 | 20 | then 63071984 | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let e = "LAND" | |
25 | 25 | ||
26 | 26 | let f = "DUCK" | |
27 | 27 | ||
28 | 28 | let g = "__" | |
29 | 29 | ||
30 | 30 | let h = "PRESALE" | |
31 | 31 | ||
32 | 32 | let i = 3456000 | |
33 | 33 | ||
34 | 34 | let j = 86400000 | |
35 | 35 | ||
36 | 36 | let k = 6 | |
37 | 37 | ||
38 | 38 | let l = 25 | |
39 | 39 | ||
40 | 40 | let m = 100 | |
41 | 41 | ||
42 | 42 | let n = 225 | |
43 | 43 | ||
44 | 44 | let o = 400 | |
45 | 45 | ||
46 | 46 | let p = 625 | |
47 | 47 | ||
48 | 48 | let q = 0 | |
49 | 49 | ||
50 | 50 | let r = 1 | |
51 | 51 | ||
52 | 52 | let s = 2 | |
53 | 53 | ||
54 | 54 | let t = 3 | |
55 | 55 | ||
56 | 56 | let u = 0 | |
57 | 57 | ||
58 | 58 | let v = 1 | |
59 | 59 | ||
60 | 60 | let w = 2 | |
61 | 61 | ||
62 | 62 | let x = 3 | |
63 | 63 | ||
64 | 64 | let y = 4 | |
65 | 65 | ||
66 | 66 | func z () = "%s__restConfig" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | let A = 1 | |
70 | 70 | ||
71 | 71 | let B = 2 | |
72 | 72 | ||
73 | 73 | let C = 3 | |
74 | 74 | ||
75 | 75 | func D (E,F) = valueOrErrorMessage(getString(E, F), makeString(["mandatory ", toString(E), ".", F, " is not defined"], "")) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func G () = split_4C(D(this, z()), g) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func H (I,J) = valueOrErrorMessage(addressFromString(I[J]), ("Rest cfg doesn't contain address at index " + toString(J))) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | let I = G() | |
85 | 85 | ||
86 | 86 | let K = H(I, A) | |
87 | 87 | ||
88 | 88 | let L = H(I, B) | |
89 | 89 | ||
90 | 90 | let M = H(I, B) | |
91 | 91 | ||
92 | - | func N ( | |
92 | + | func N () = "contractsBlocked" | |
93 | 93 | ||
94 | 94 | ||
95 | - | func | |
95 | + | func O (P) = ("duckOwner_" + P) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func Q ( | |
98 | + | func Q (P) = ("stakedTime_" + P) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func | |
101 | + | func R (S) = ("stakedDuckByOwner_" + S) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func | |
104 | + | func T (U,P,S) = ((((("stakedTimeByTypeAssetIdAndOwner_" + U) + "_") + P) + "_") + S) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func | |
107 | + | func V (W) = ("backPack_" + W) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func | |
110 | + | func X (Y) = ("wareHouse_" + Y) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func Z ( | |
113 | + | func Z (W) = ("duckLocation_" + W) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func aa ( | |
116 | + | func aa (W) = ("duckHealth_" + W) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func ab ( | |
119 | + | func ab (P) = ("nftOwner_" + P) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func ac ( | |
122 | + | func ac (P) = ("infraLevel_" + P) | |
123 | 123 | ||
124 | 124 | ||
125 | - | func | |
125 | + | func ad (ae,P) = makeString(["landArtStatus", ae, P], "_") | |
126 | 126 | ||
127 | 127 | ||
128 | - | func af ( | |
128 | + | func af (P) = ("presaleArtActivated_" + P) | |
129 | 129 | ||
130 | 130 | ||
131 | - | func ag ( | |
131 | + | func ag (S) = ("stakedLandsByOwner_" + S) | |
132 | 132 | ||
133 | 133 | ||
134 | - | func ah (ai) = { | |
135 | - | let c = ai | |
134 | + | func ah (Y) = ("landOrder_" + Y) | |
135 | + | ||
136 | + | ||
137 | + | func ai (aj) = { | |
138 | + | let c = aj | |
136 | 139 | if ($isInstanceOf(c, "String")) | |
137 | 140 | then { | |
138 | - | let | |
139 | - | | |
141 | + | let ak = c | |
142 | + | ak | |
140 | 143 | } | |
141 | 144 | else throw("fail to cast into String") | |
142 | 145 | } | |
143 | 146 | ||
144 | 147 | ||
145 | - | func ak (al) = { | |
146 | - | let c = al | |
148 | + | func al (aj) = { | |
149 | + | let c = aj | |
150 | + | if ($isInstanceOf(c, "Boolean")) | |
151 | + | then { | |
152 | + | let ak = c | |
153 | + | ak | |
154 | + | } | |
155 | + | else throw("fail to cast into Boolean") | |
156 | + | } | |
157 | + | ||
158 | + | ||
159 | + | func am (an) = { | |
160 | + | let c = an | |
147 | 161 | if ($isInstanceOf(c, "List[Any]")) | |
148 | 162 | then { | |
149 | - | let | |
150 | - | if ((size( | |
151 | - | then throw(("Array size is " + toString(size( | |
163 | + | let ao = c | |
164 | + | if ((size(ao) != k)) | |
165 | + | then throw(("Array size is " + toString(size(ao)))) | |
152 | 166 | else { | |
153 | - | func | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
167 | + | func ap (aq,ar) = { | |
168 | + | let as = ar | |
169 | + | if ($isInstanceOf(as, "Int")) | |
156 | 170 | then { | |
157 | - | let | |
158 | - | ( | |
171 | + | let at = as | |
172 | + | (aq :+ toString(at)) | |
159 | 173 | } | |
160 | 174 | else throw("List type is not Int") | |
161 | 175 | } | |
162 | 176 | ||
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | func | |
168 | - | then | |
169 | - | else | |
177 | + | let au = { | |
178 | + | let av = ao | |
179 | + | let aw = size(av) | |
180 | + | let ax = nil | |
181 | + | func ay (az,aA) = if ((aA >= aw)) | |
182 | + | then az | |
183 | + | else ap(az, av[aA]) | |
170 | 184 | ||
171 | - | func | |
172 | - | then | |
185 | + | func aB (az,aA) = if ((aA >= aw)) | |
186 | + | then az | |
173 | 187 | else throw("List size exceeds 6") | |
174 | 188 | ||
175 | - | | |
189 | + | aB(ay(ay(ay(ay(ay(ay(ax, 0), 1), 2), 3), 4), 5), 6) | |
176 | 190 | } | |
177 | - | makeString( | |
191 | + | makeString(au, "_") | |
178 | 192 | } | |
179 | 193 | } | |
180 | 194 | else throw("fail to cast into List") | |
181 | 195 | } | |
182 | 196 | ||
183 | 197 | ||
184 | - | func | |
185 | - | let c = | |
198 | + | func aC (an) = { | |
199 | + | let c = an | |
186 | 200 | if ($isInstanceOf(c, "(List[Any], List[Any])")) | |
187 | 201 | then { | |
188 | - | let | |
189 | - | $Tuple2( | |
202 | + | let aD = c | |
203 | + | $Tuple2(am(aD._1), am(aD._2)) | |
190 | 204 | } | |
191 | 205 | else throw("fail to cast into (List, List)") | |
192 | 206 | } | |
193 | 207 | ||
194 | 208 | ||
195 | - | func | |
196 | - | let | |
197 | - | let | |
198 | - | then wavesBalance(value( | |
209 | + | func aE (aF) = { | |
210 | + | let aG = addressFromString(aF) | |
211 | + | let aH = if (isDefined(aG)) | |
212 | + | then wavesBalance(value(aG)) | |
199 | 213 | else BalanceDetails(0, 0, 0, 0) | |
200 | - | let | |
201 | - | then assetBalance(value( | |
214 | + | let aI = if (isDefined(aG)) | |
215 | + | then assetBalance(value(aG), b) | |
202 | 216 | else 0 | |
203 | - | makeString(["%s%d%d", "wallet", toString( | |
217 | + | makeString(["%s%d%d", "wallet", toString(aH.available), toString(aI)], g) | |
204 | 218 | } | |
205 | 219 | ||
206 | 220 | ||
207 | - | func | |
208 | - | let | |
209 | - | let | |
210 | - | then | |
221 | + | func aJ (Y,aK) = { | |
222 | + | let aL = valueOrElse(getInteger(K, ac(Y)), 0) | |
223 | + | let aM = valueOrElse(getInteger(K, ad(h, Y)), if (valueOrElse(getBoolean(K, af(Y)), false)) | |
224 | + | then aK | |
211 | 225 | else 0) | |
212 | - | $Tuple3( | |
226 | + | $Tuple3(aL, aM, ((i + fraction(i, aL, 4)) + fraction(i, (aM * 3), (aK * 20)))) | |
213 | 227 | } | |
214 | 228 | ||
215 | 229 | ||
216 | - | func | |
217 | - | let c = | |
230 | + | func aN (aO) = { | |
231 | + | let c = aO | |
218 | 232 | if (("S" == c)) | |
219 | 233 | then l | |
220 | 234 | else if (("M" == c)) | |
221 | 235 | then m | |
222 | 236 | else if (("L" == c)) | |
223 | 237 | then n | |
224 | 238 | else if (("XL" == c)) | |
225 | 239 | then o | |
226 | 240 | else if (("XXL" == c)) | |
227 | 241 | then p | |
228 | 242 | else throw("Unknown land size") | |
229 | 243 | } | |
230 | 244 | ||
231 | 245 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | [ | |
236 | - | then | |
237 | - | else "0_0_0_0_0_0", if ((size(split( | |
238 | - | then | |
239 | - | else "0_0_0_0_0_0", | |
246 | + | func aP (aQ,aR,aL) = { | |
247 | + | let aS = ((toString(aR) + "_") + toString(aL)) | |
248 | + | let aT = split(valueOrElse(getString(K, aQ), (aS + ":0_0_0_0_0_0:0_0_0_0_0_0::0")), ":") | |
249 | + | [aT[u], if ((size(split(aT[v], "_")) == k)) | |
250 | + | then aT[v] | |
251 | + | else "0_0_0_0_0_0", if ((size(split(aT[w], "_")) == k)) | |
252 | + | then aT[w] | |
253 | + | else "0_0_0_0_0_0", aT[x], if ((5 > size(aT))) | |
240 | 254 | then "0" | |
241 | - | else | |
255 | + | else aT[y]] | |
242 | 256 | } | |
243 | 257 | ||
244 | 258 | ||
245 | - | func | |
259 | + | func aU (W) = $Tuple5(valueOrElse(getInteger(K, Q(W)), -1), value(assetInfo(fromBase58String(W))).name, valueOrElse(getString(K, Z(W)), ""), valueOrElse(getInteger(K, aa(W)), -1), ai(invoke(K, "getBackpackREADONLY", [W], nil))) | |
246 | 260 | ||
247 | 261 | ||
248 | - | func | |
262 | + | func aV (W,aW,aX) = [("%s%s__assetId__" + W), ("%s%s__owner__" + aW), ("%s%d__stakedTime__" + toString(aX._1)), ("%s%s__name__" + aX._2), ("%s%s__location__" + aX._3), ("%s%d__health__" + toString(aX._4)), ("%s%s__backPack__" + aX._5)] | |
249 | 263 | ||
250 | 264 | ||
251 | - | func | |
265 | + | func aY (Y,aW,aZ) = if ((Y == "")) | |
252 | 266 | then throw("landAssetId is required") | |
253 | 267 | else { | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | then | |
258 | - | else ("-" + | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | then fraction( | |
268 | + | let ba = value(assetInfo(fromBase58String(Y))) | |
269 | + | let bb = split(ba.description, "_") | |
270 | + | let bc = if ((ba.quantity > 0)) | |
271 | + | then bb[q] | |
272 | + | else ("-" + bb[q]) | |
273 | + | let aK = aN(bb[r]) | |
274 | + | let bd = aJ(Y, aK) | |
275 | + | let be = (lastBlock.timestamp - aZ) | |
276 | + | let bf = if ((aZ > 0)) | |
277 | + | then fraction(be, (bd._3 * aK), j) | |
264 | 278 | else 0 | |
265 | - | let | |
266 | - | let | |
267 | - | then | |
268 | - | else $Tuple2( | |
269 | - | [("%s%s__assetId__" + | |
279 | + | let bg = fraction(d, (aK * (bd._1 + 1)), l) | |
280 | + | let bh = if ((aZ > 0)) | |
281 | + | then aC(invoke(K, "splitByGlobalAndLocalWeightsREADONLY", [bg, bf, bb[s]], nil)) | |
282 | + | else $Tuple2(am(invoke(K, "splitByGlobalWeightsREADONLY", [bg], nil)), "") | |
283 | + | [("%s%s__assetId__" + Y), ("%s%s__owner__" + aW), ("%s%d__stakedTime__" + toString(aZ)), ("%s%s__description__" + makeString([bc, bb[r], bb[s], bb[t]], "_")), ("%s%d__infraLevel__" + toString(bd._1)), ("%s%s__availResByType__" + bh._2), ("%s%d__availResTotal__" + toString(bf)), ("%s%s__needMaterial__" + bh._1), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(bd._2))], g), ("%s%s__warehouse__" + makeString(aP(X(Y), (aK / l), bd._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(L, ah(Y)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
270 | 284 | } | |
271 | 285 | ||
272 | 286 | ||
273 | - | func | |
287 | + | func bi (Y,aW) = if ((Y == "")) | |
274 | 288 | then throw("landAssetId is required") | |
275 | 289 | else { | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | [("%s%s__assetId__" + | |
290 | + | let ba = value(assetInfo(fromBase58String(Y))) | |
291 | + | let bb = split(ba.description, "_") | |
292 | + | let aK = aN(bb[r]) | |
293 | + | let bd = aJ(Y, aK) | |
294 | + | [("%s%s__assetId__" + Y), ("%s%s__owner__" + aW), ("%s%s__warehouse__" + makeString(aP(X(Y), (aK / l), bd._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(L, ah(Y)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
281 | 295 | } | |
282 | 296 | ||
283 | 297 | ||
284 | - | @Callable( | |
285 | - | func constructorV1 (K,L,M) = if (( | |
298 | + | @Callable(bj) | |
299 | + | func constructorV1 (K,L,M) = if ((bj.caller != this)) | |
286 | 300 | then throw("permissions denied") | |
287 | 301 | else [StringEntry(z(), makeString(["%s%s%s", K, L, M], g))] | |
288 | 302 | ||
289 | 303 | ||
290 | 304 | ||
291 | - | @Callable( | |
292 | - | func walletInfoREADONLY ( | |
305 | + | @Callable(bj) | |
306 | + | func walletInfoREADONLY (aF) = $Tuple2(nil, aE(aF)) | |
293 | 307 | ||
294 | 308 | ||
295 | 309 | ||
296 | - | @Callable( | |
297 | - | func duckInfoREADONLY ( | |
298 | - | let | |
299 | - | let | |
300 | - | if (( | |
310 | + | @Callable(bj) | |
311 | + | func duckInfoREADONLY (W,aF) = { | |
312 | + | let aG = addressFromString(aF) | |
313 | + | let bk = fromBase58String(W) | |
314 | + | if ((W == "")) | |
301 | 315 | then throw("duckAssetId is required") | |
302 | 316 | else { | |
303 | - | let | |
304 | - | let | |
305 | - | then value( | |
306 | - | else if (if (isDefined( | |
307 | - | then (assetBalance(value( | |
317 | + | let bl = getString(K, O(W)) | |
318 | + | let aW = if (isDefined(bl)) | |
319 | + | then value(bl) | |
320 | + | else if (if (isDefined(aG)) | |
321 | + | then (assetBalance(value(aG), bk) == 1) | |
308 | 322 | else false) | |
309 | - | then | |
323 | + | then aF | |
310 | 324 | else "" | |
311 | - | $Tuple2(nil, $Tuple2( | |
325 | + | $Tuple2(nil, $Tuple2(aV(W, aW, aU(W)), aE(aF))) | |
312 | 326 | } | |
313 | 327 | } | |
314 | 328 | ||
315 | 329 | ||
316 | 330 | ||
317 | - | @Callable( | |
318 | - | func landInfoREADONLY ( | |
319 | - | let | |
320 | - | let | |
321 | - | if (( | |
331 | + | @Callable(bj) | |
332 | + | func landInfoREADONLY (Y,aF) = { | |
333 | + | let aG = addressFromString(aF) | |
334 | + | let bm = fromBase58String(Y) | |
335 | + | if ((Y == "")) | |
322 | 336 | then throw("landAssetId is required") | |
323 | 337 | else { | |
324 | - | let | |
325 | - | let | |
326 | - | then value(getString(K, | |
327 | - | else if (if (isDefined( | |
328 | - | then (assetBalance(value( | |
338 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), 0) | |
339 | + | let aW = if ((aZ > 0)) | |
340 | + | then value(getString(K, ab(Y))) | |
341 | + | else if (if (isDefined(aG)) | |
342 | + | then (assetBalance(value(aG), bm) == 1) | |
329 | 343 | else false) | |
330 | - | then | |
344 | + | then aF | |
331 | 345 | else "" | |
332 | - | let | |
333 | - | let | |
334 | - | then isDefined( | |
346 | + | let bn = getString(K, R(aF)) | |
347 | + | let aX = if (if (isDefined(aG)) | |
348 | + | then isDefined(bn) | |
335 | 349 | else false) | |
336 | 350 | then { | |
337 | - | let | |
338 | - | $Tuple2( | |
351 | + | let W = value(bn) | |
352 | + | $Tuple2(W, aU(W)) | |
339 | 353 | } | |
340 | 354 | else $Tuple2("", $Tuple5(-1, "", "", -1, "")) | |
341 | - | $Tuple2(nil, $Tuple3( | |
355 | + | $Tuple2(nil, $Tuple3(aY(Y, aW, aZ), aV(aX._1, aF, aX._2), aE(aF))) | |
342 | 356 | } | |
343 | 357 | } | |
344 | 358 | ||
345 | 359 | ||
346 | 360 | ||
347 | - | @Callable( | |
348 | - | func stakedLandsInfoREADONLY ( | |
361 | + | @Callable(bj) | |
362 | + | func stakedLandsInfoREADONLY (bo,bp) = if ((bp == "")) | |
349 | 363 | then throw("landOwnerAddress is required") | |
350 | 364 | else { | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | then split_51C(value( | |
365 | + | let bq = addressFromString(bo) | |
366 | + | let br = getString(K, ag(bp)) | |
367 | + | let bs = if (isDefined(br)) | |
368 | + | then split_51C(value(br), "_") | |
355 | 369 | else nil | |
356 | - | func | |
357 | - | let | |
358 | - | if (( | |
370 | + | func bt (aq,Y) = { | |
371 | + | let bm = fromBase58String(Y) | |
372 | + | if ((Y == "")) | |
359 | 373 | then throw("landAssetId is required") | |
360 | 374 | else { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | ( | |
375 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), 0) | |
376 | + | let bu = value(assetInfo(bm)).description | |
377 | + | let bb = split(bu, "_") | |
378 | + | let aK = aN(bb[r]) | |
379 | + | let bd = aJ(Y, aK) | |
380 | + | let be = (lastBlock.timestamp - aZ) | |
381 | + | let bf = fraction(be, (bd._3 * aK), j) | |
382 | + | (aq :+ [("%s%s__landAssetId__" + Y), ("%s%d__stakedTime__" + toString(aZ)), ("%s%s__description__" + bu), ("%s%d__infraLevel__" + toString(bd._1)), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(bd._2))], g), ("%s%s__availRes__" + toString(bf))]) | |
369 | 383 | } | |
370 | 384 | } | |
371 | 385 | ||
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | func | |
377 | - | then | |
378 | - | else | |
386 | + | let au = { | |
387 | + | let av = bs | |
388 | + | let aw = size(av) | |
389 | + | let ax = nil | |
390 | + | func ay (az,aA) = if ((aA >= aw)) | |
391 | + | then az | |
392 | + | else bt(az, av[aA]) | |
379 | 393 | ||
380 | - | func | |
381 | - | then | |
394 | + | func aB (az,aA) = if ((aA >= aw)) | |
395 | + | then az | |
382 | 396 | else throw("List size exceeds 100") | |
383 | 397 | ||
384 | - | | |
398 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
385 | 399 | } | |
386 | - | let | |
387 | - | let | |
388 | - | then isDefined( | |
400 | + | let bn = getString(K, R(bo)) | |
401 | + | let aX = if (if (isDefined(bq)) | |
402 | + | then isDefined(bn) | |
389 | 403 | else false) | |
390 | 404 | then { | |
391 | - | let | |
392 | - | $Tuple2( | |
405 | + | let W = value(bn) | |
406 | + | $Tuple2(W, aU(W)) | |
393 | 407 | } | |
394 | 408 | else $Tuple2("", $Tuple5(-1, "", "", -1, "")) | |
395 | - | $Tuple2(nil, $Tuple3( | |
409 | + | $Tuple2(nil, $Tuple3(au, aV(aX._1, bo, aX._2), aE(bo))) | |
396 | 410 | } | |
397 | 411 | ||
398 | 412 | ||
399 | 413 | ||
400 | - | @Callable( | |
401 | - | func duckByOwnerInfoREADONLY ( | |
402 | - | let | |
403 | - | $Tuple2(nil, if (if (isDefined(addressFromString( | |
404 | - | then isDefined( | |
414 | + | @Callable(bj) | |
415 | + | func duckByOwnerInfoREADONLY (bv) = { | |
416 | + | let bn = getString(K, R(bv)) | |
417 | + | $Tuple2(nil, if (if (isDefined(addressFromString(bv))) | |
418 | + | then isDefined(bn) | |
405 | 419 | else false) | |
406 | 420 | then { | |
407 | - | let | |
408 | - | | |
421 | + | let W = value(bn) | |
422 | + | aV(W, bv, aU(W)) | |
409 | 423 | } | |
410 | - | else | |
424 | + | else aV("", bv, $Tuple5(-1, "", "", -1, ""))) | |
411 | 425 | } | |
412 | 426 | ||
413 | 427 | ||
414 | 428 | ||
415 | - | @Callable( | |
416 | - | func duckByAssetIdInfoREADONLY ( | |
417 | - | let | |
418 | - | let | |
419 | - | $Tuple2(nil, | |
420 | - | then value( | |
421 | - | else "", | |
429 | + | @Callable(bj) | |
430 | + | func duckByAssetIdInfoREADONLY (W) = { | |
431 | + | let aW = getString(K, O(W)) | |
432 | + | let aX = aU(W) | |
433 | + | $Tuple2(nil, aV(W, if (isDefined(aW)) | |
434 | + | then value(aW) | |
435 | + | else "", aU(W))) | |
422 | 436 | } | |
423 | 437 | ||
424 | 438 | ||
425 | 439 | ||
426 | - | @Callable( | |
427 | - | func landByAssetIdInfoREADONLY ( | |
440 | + | @Callable(bj) | |
441 | + | func landByAssetIdInfoREADONLY (Y) = if ((Y == "")) | |
428 | 442 | then throw("landAssetId is required") | |
429 | 443 | else { | |
430 | - | let | |
431 | - | let | |
432 | - | then value(getString(K, | |
444 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
445 | + | let aW = if ((aZ > 0)) | |
446 | + | then value(getString(K, ab(Y))) | |
433 | 447 | else "" | |
434 | - | $Tuple2(nil, | |
448 | + | $Tuple2(nil, aY(Y, aW, aZ)) | |
435 | 449 | } | |
436 | 450 | ||
437 | 451 | ||
438 | 452 | ||
439 | - | @Callable( | |
440 | - | func stakedLandsByOwnerInfoREADONLY ( | |
453 | + | @Callable(bj) | |
454 | + | func stakedLandsByOwnerInfoREADONLY (bp) = if ((bp == "")) | |
441 | 455 | then throw("landOwnerAddress is required") | |
442 | 456 | else { | |
443 | - | let | |
444 | - | let | |
445 | - | then split_51C(value( | |
457 | + | let br = getString(K, ag(bp)) | |
458 | + | let bs = if (isDefined(br)) | |
459 | + | then split_51C(value(br), "_") | |
446 | 460 | else nil | |
447 | - | func | |
461 | + | func bt (aq,Y) = if ((Y == "")) | |
448 | 462 | then throw("landAssetId is required") | |
449 | 463 | else { | |
450 | - | let | |
451 | - | ( | |
464 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
465 | + | (aq :+ aY(Y, bp, aZ)) | |
452 | 466 | } | |
453 | 467 | ||
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | func | |
459 | - | then | |
460 | - | else | |
468 | + | let au = { | |
469 | + | let av = bs | |
470 | + | let aw = size(av) | |
471 | + | let ax = nil | |
472 | + | func ay (az,aA) = if ((aA >= aw)) | |
473 | + | then az | |
474 | + | else bt(az, av[aA]) | |
461 | 475 | ||
462 | - | func | |
463 | - | then | |
476 | + | func aB (az,aA) = if ((aA >= aw)) | |
477 | + | then az | |
464 | 478 | else throw("List size exceeds 100") | |
465 | 479 | ||
466 | - | | |
480 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
467 | 481 | } | |
468 | - | $Tuple2(nil, | |
482 | + | $Tuple2(nil, au) | |
469 | 483 | } | |
470 | 484 | ||
471 | 485 | ||
472 | 486 | ||
473 | - | @Callable( | |
474 | - | func landsByIdsInfoREADONLY ( | |
475 | - | func | |
487 | + | @Callable(bj) | |
488 | + | func landsByIdsInfoREADONLY (bw) = { | |
489 | + | func bt (aq,Y) = if ((Y == "")) | |
476 | 490 | then throw("landAssetId is required") | |
477 | 491 | else { | |
478 | - | let | |
479 | - | let | |
480 | - | then value(getString(K, | |
492 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
493 | + | let aW = if ((aZ > 0)) | |
494 | + | then value(getString(K, ab(Y))) | |
481 | 495 | else "" | |
482 | - | ( | |
496 | + | (aq :+ aY(Y, aW, aZ)) | |
483 | 497 | } | |
484 | 498 | ||
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | func | |
490 | - | then | |
491 | - | else | |
499 | + | let au = { | |
500 | + | let av = bw | |
501 | + | let aw = size(av) | |
502 | + | let ax = nil | |
503 | + | func ay (az,aA) = if ((aA >= aw)) | |
504 | + | then az | |
505 | + | else bt(az, av[aA]) | |
492 | 506 | ||
493 | - | func | |
494 | - | then | |
507 | + | func aB (az,aA) = if ((aA >= aw)) | |
508 | + | then az | |
495 | 509 | else throw("List size exceeds 100") | |
496 | 510 | ||
497 | - | | |
511 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
498 | 512 | } | |
499 | - | $Tuple2(nil, | |
513 | + | $Tuple2(nil, au) | |
500 | 514 | } | |
501 | 515 | ||
502 | 516 | ||
503 | 517 | ||
504 | - | @Callable( | |
505 | - | func warehouseOrderByAssetIdInfoREADONLY ( | |
518 | + | @Callable(bj) | |
519 | + | func warehouseOrderByAssetIdInfoREADONLY (Y) = if ((Y == "")) | |
506 | 520 | then throw("landAssetId is required") | |
507 | 521 | else { | |
508 | - | let | |
509 | - | let | |
510 | - | then value(getString(K, | |
522 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
523 | + | let aW = if ((aZ > 0)) | |
524 | + | then value(getString(K, ab(Y))) | |
511 | 525 | else "" | |
512 | - | $Tuple2(nil, | |
526 | + | $Tuple2(nil, bi(Y, aW)) | |
513 | 527 | } | |
514 | 528 | ||
515 | 529 | ||
516 | 530 | ||
517 | - | @Callable( | |
518 | - | func ordersByLandIdsInfoREADONLY ( | |
519 | - | func | |
531 | + | @Callable(bj) | |
532 | + | func ordersByLandIdsInfoREADONLY (bw) = { | |
533 | + | func bt (aq,Y) = if ((Y == "")) | |
520 | 534 | then throw("landAssetId is required") | |
521 | 535 | else { | |
522 | - | let | |
523 | - | let | |
524 | - | then value(getString(K, | |
536 | + | let aZ = valueOrElse(getInteger(K, Q(Y)), -1) | |
537 | + | let aW = if ((aZ > 0)) | |
538 | + | then value(getString(K, ab(Y))) | |
525 | 539 | else "" | |
526 | - | ( | |
540 | + | (aq :+ bi(Y, aW)) | |
527 | 541 | } | |
528 | 542 | ||
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | func | |
534 | - | then | |
535 | - | else | |
543 | + | let au = { | |
544 | + | let av = bw | |
545 | + | let aw = size(av) | |
546 | + | let ax = nil | |
547 | + | func ay (az,aA) = if ((aA >= aw)) | |
548 | + | then az | |
549 | + | else bt(az, av[aA]) | |
536 | 550 | ||
537 | - | func | |
538 | - | then | |
551 | + | func aB (az,aA) = if ((aA >= aw)) | |
552 | + | then az | |
539 | 553 | else throw("List size exceeds 100") | |
540 | 554 | ||
541 | - | | |
555 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
542 | 556 | } | |
543 | - | $Tuple2(nil, | |
557 | + | $Tuple2(nil, au) | |
544 | 558 | } | |
559 | + | ||
560 | + | ||
561 | + | ||
562 | + | @Callable(bj) | |
563 | + | func cancelWarehouseOrders (bw) = if ((bj.caller != this)) | |
564 | + | then throw("permission denied") | |
565 | + | else { | |
566 | + | let bx = getBoolean(K, N()) | |
567 | + | if (if (!(isDefined(bx))) | |
568 | + | then true | |
569 | + | else (value(bx) == false)) | |
570 | + | then throw("Contracts should be blocked before canceling orders") | |
571 | + | else { | |
572 | + | func bt (aq,Y) = if ((Y == "")) | |
573 | + | then throw("landAssetId is required") | |
574 | + | else { | |
575 | + | let by = al(invoke(L, "setWarehouseOrder", [Y, "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"], nil)) | |
576 | + | if (aq) | |
577 | + | then true | |
578 | + | else by | |
579 | + | } | |
580 | + | ||
581 | + | let au = { | |
582 | + | let av = bw | |
583 | + | let aw = size(av) | |
584 | + | let ax = false | |
585 | + | func ay (az,aA) = if ((aA >= aw)) | |
586 | + | then az | |
587 | + | else bt(az, av[aA]) | |
588 | + | ||
589 | + | func aB (az,aA) = if ((aA >= aw)) | |
590 | + | then az | |
591 | + | else throw("List size exceeds 30") | |
592 | + | ||
593 | + | aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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) | |
594 | + | } | |
595 | + | $Tuple2(nil, au) | |
596 | + | } | |
597 | + | } | |
545 | 598 | ||
546 | 599 |
github/deemru/w8io/169f3d6 586.11 ms ◑