tx · Ahxab9SswMdm24fP1JLXCADFUEhd2onMK7XvzAHYEoaZ 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.01800000 Waves 2023.06.07 22:03 [2612642] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "Ahxab9SswMdm24fP1JLXCADFUEhd2onMK7XvzAHYEoaZ", "fee": 1800000, "feeAssetId": null, "timestamp": 1686164619286, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "4xcXPpH47BM6EZzMrXHc5Yzp67nzR7HvUtTFGNPrF5ePijFEYpufKjGarcTTd79TWjck2Huk4egaS33qr6cRZYEM" ], "script": "base64:BgJACAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKAQgSAEYABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duIGNoYWluABVkZWZhdWx0UmVzdEFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQUUN1dkZidmg0TGtQVW5yblUxejNqbmJBMXA5bTNXTmh2AwkAAAIBAVQFByRtYXRjaDACIzNNdW1rR0d6dENLQVhwV0RxeGtkZG9mcVhTVWJxUWt2U0p5CQACAQINVW5rbm93biBjaGFpbgARSW5mcmFVcGdyYWRlQ29zdFMEByRtYXRjaDAFBWNoYWluAwkAAAIB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AZyZXN1bHQJAKwCAgIcJXMlc19fZW1lcmdlbmN5U2VydmljZURhdGFfXwUBcwkAlAoCBQNuaWwFBnJlc3VsdADpx0Tx", "height": 2612642, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Do714kwTAiETwg575wS3t5gWByraDb8Q49SbXbUpmkvM Next: 6S3RgLgoCvibn8UKxg6X6SJkDLiwMZtVxMR7Syk46prF Diff:
Old | New | Differences | |
---|---|---|---|
34 | 34 | ||
35 | 35 | let g = 1000000 | |
36 | 36 | ||
37 | - | let h = | |
37 | + | let h = "PRESALE" | |
38 | 38 | ||
39 | - | let i = | |
39 | + | let i = 6 | |
40 | 40 | ||
41 | - | let j = | |
41 | + | let j = 25 | |
42 | 42 | ||
43 | - | let k = | |
43 | + | let k = 100 | |
44 | 44 | ||
45 | - | let l = | |
45 | + | let l = 225 | |
46 | 46 | ||
47 | - | let m = | |
47 | + | let m = 400 | |
48 | 48 | ||
49 | - | let n = | |
49 | + | let n = 625 | |
50 | 50 | ||
51 | - | let o = | |
51 | + | let o = 3456000 | |
52 | 52 | ||
53 | - | let p = | |
53 | + | let p = 86400000 | |
54 | 54 | ||
55 | - | let q = | |
55 | + | let q = 10000000000 | |
56 | 56 | ||
57 | - | let r = | |
57 | + | let r = 39637 | |
58 | 58 | ||
59 | - | let s = | |
59 | + | let s = 3 | |
60 | 60 | ||
61 | - | let t = | |
61 | + | let t = 4 | |
62 | 62 | ||
63 | - | let u = | |
63 | + | let u = 10 | |
64 | 64 | ||
65 | - | let v = | |
65 | + | let v = ["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"] | |
66 | 66 | ||
67 | - | let w = | |
67 | + | let w = 7 | |
68 | 68 | ||
69 | - | let x = | |
69 | + | let x = 0 | |
70 | 70 | ||
71 | - | let y = | |
71 | + | let y = 1 | |
72 | 72 | ||
73 | - | let z = | |
73 | + | let z = 2 | |
74 | 74 | ||
75 | - | let A = | |
75 | + | let A = 3 | |
76 | 76 | ||
77 | - | let B = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"] | |
78 | - | ||
79 | - | let C = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
80 | - | ||
81 | - | let D = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3"] | |
82 | - | ||
83 | - | let E = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
84 | - | ||
85 | - | let F = ["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"] | |
86 | - | ||
87 | - | let G = 0 | |
88 | - | ||
89 | - | let H = 1 | |
90 | - | ||
91 | - | let I = 2 | |
92 | - | ||
93 | - | let J = 3 | |
94 | - | ||
95 | - | let K = 4 | |
96 | - | ||
97 | - | let L = 0 | |
98 | - | ||
99 | - | let M = 1 | |
100 | - | ||
101 | - | let N = 2 | |
102 | - | ||
103 | - | let O = 3 | |
104 | - | ||
105 | - | let P = 4 | |
106 | - | ||
107 | - | let Q = 5 | |
108 | - | ||
109 | - | let R = 6 | |
110 | - | ||
111 | - | let S = 7 | |
112 | - | ||
113 | - | let T = 8 | |
114 | - | ||
115 | - | let U = 0 | |
116 | - | ||
117 | - | let V = 1 | |
118 | - | ||
119 | - | let W = 2 | |
120 | - | ||
121 | - | let X = 3 | |
122 | - | ||
123 | - | let Y = 0 | |
124 | - | ||
125 | - | let Z = 1 | |
126 | - | ||
127 | - | let aa = 2 | |
128 | - | ||
129 | - | let ab = 3 | |
130 | - | ||
131 | - | let ac = 4 | |
132 | - | ||
133 | - | let ad = 0 | |
134 | - | ||
135 | - | let ae = 1 | |
136 | - | ||
137 | - | let af = 2 | |
138 | - | ||
139 | - | let ag = 3 | |
140 | - | ||
141 | - | let ah = 0 | |
142 | - | ||
143 | - | let ai = 1 | |
144 | - | ||
145 | - | let aj = 2 | |
146 | - | ||
147 | - | let ak = 3 | |
148 | - | ||
149 | - | func al (am) = parseIntValue(split(F[am], "_")[S]) | |
77 | + | func B (C,D) = valueOrErrorMessage(getString(C, D), makeString(["mandatory ", toString(C), ".", D, " is not defined"], "")) | |
150 | 78 | ||
151 | 79 | ||
152 | - | func an (ao,ap) = valueOrErrorMessage(getString(ao, ap), makeString(["mandatory ", toString(ao), ".", ap, " is not defined"], "")) | |
80 | + | let E = 1 | |
81 | + | ||
82 | + | let F = 2 | |
83 | + | ||
84 | + | func G () = "%s__restConfig" | |
153 | 85 | ||
154 | 86 | ||
155 | - | func | |
87 | + | func H () = "%s__restAddr" | |
156 | 88 | ||
157 | 89 | ||
158 | - | let as = 1 | |
159 | - | ||
160 | - | let at = 2 | |
161 | - | ||
162 | - | let au = 3 | |
163 | - | ||
164 | - | let av = 4 | |
165 | - | ||
166 | - | func aw () = "%s__restConfig" | |
90 | + | func I (J) = split_4C(B(J, G()), f) | |
167 | 91 | ||
168 | 92 | ||
169 | - | func | |
93 | + | func K (L,M) = valueOrErrorMessage(addressFromString(L[M]), ("Rest cfg doesn't contain address at index " + toString(M))) | |
170 | 94 | ||
171 | 95 | ||
172 | - | func ay (az) = split_4C(an(az, aw()), f) | |
96 | + | let N = addressFromStringValue(valueOrElse(getString(this, H()), d)) | |
97 | + | ||
98 | + | let L = I(N) | |
99 | + | ||
100 | + | let O = K(L, E) | |
101 | + | ||
102 | + | let P = K(L, F) | |
103 | + | ||
104 | + | func Q (R) = ("lastTxIdByUser_" + R) | |
173 | 105 | ||
174 | 106 | ||
175 | - | func | |
107 | + | func S (T) = ("nftOwner_" + T) | |
176 | 108 | ||
177 | 109 | ||
178 | - | let aD = addressFromStringValue(valueOrElse(getString(this, ax()), d)) | |
179 | - | ||
180 | - | let aB = ay(aD) | |
181 | - | ||
182 | - | let aE = aA(aB, as) | |
183 | - | ||
184 | - | let aF = aA(aB, at) | |
185 | - | ||
186 | - | let aG = aA(aB, au) | |
187 | - | ||
188 | - | let aH = aA(aB, av) | |
189 | - | ||
190 | - | func aI (aJ) = ("lastTxIdByUser_" + aJ) | |
110 | + | func U (T) = ("landCustomNameByAssetId_" + T) | |
191 | 111 | ||
192 | 112 | ||
193 | - | func | |
113 | + | func V (T) = ("stakedTime_" + T) | |
194 | 114 | ||
195 | 115 | ||
196 | - | func | |
116 | + | func W (T) = ("infraLevel_" + T) | |
197 | 117 | ||
198 | 118 | ||
199 | - | func | |
119 | + | func X (Y,T) = makeString(["landArtStatus", Y, T], "_") | |
200 | 120 | ||
201 | 121 | ||
202 | - | func | |
122 | + | func Z (aa) = ("wareHouse_" + aa) | |
203 | 123 | ||
204 | 124 | ||
205 | - | func | |
125 | + | func ab (ac) = ("stakedLandsByOwner_" + ac) | |
206 | 126 | ||
207 | 127 | ||
208 | - | func | |
128 | + | func ad (T) = ("duckCustomNameByAssetId_" + T) | |
209 | 129 | ||
210 | 130 | ||
211 | - | func | |
131 | + | func ae (R) = ("accountCustomNameByAddr_" + R) | |
212 | 132 | ||
213 | 133 | ||
214 | - | func | |
134 | + | func af (R) = ("accRefBy_" + R) | |
215 | 135 | ||
216 | 136 | ||
217 | - | func | |
137 | + | func ag (R) = ("accReferrals_" + R) | |
218 | 138 | ||
219 | 139 | ||
220 | - | func | |
140 | + | func ah (T) = ("duckOwner_" + T) | |
221 | 141 | ||
222 | 142 | ||
223 | - | func | |
143 | + | func ai (ac) = ("stakedDuckByOwner_" + ac) | |
224 | 144 | ||
225 | 145 | ||
226 | - | func | |
146 | + | func aj (ak) = ("duckLocation_" + ak) | |
227 | 147 | ||
228 | 148 | ||
229 | - | func | |
149 | + | func al (ak) = ("duckHealth_" + ak) | |
230 | 150 | ||
231 | 151 | ||
232 | - | func | |
152 | + | func am () = "contractsBlocked" | |
233 | 153 | ||
234 | 154 | ||
235 | - | func | |
155 | + | func an (aa) = ("landOrder_" + aa) | |
236 | 156 | ||
237 | 157 | ||
238 | - | func | |
158 | + | func ao (ap) = ("dutyWhByProd_" + toString(ap)) | |
239 | 159 | ||
240 | 160 | ||
241 | - | func bg (be) = ("duckHealth_" + be) | |
242 | - | ||
243 | - | ||
244 | - | func bh () = "resTypesProportions" | |
245 | - | ||
246 | - | ||
247 | - | func bi () = "contractsBlocked" | |
248 | - | ||
249 | - | ||
250 | - | func bj (bk) = ("%s%s__userGwlReleaseTime__" + bk) | |
251 | - | ||
252 | - | ||
253 | - | func bl (aV) = ("landOrder_" + aV) | |
254 | - | ||
255 | - | ||
256 | - | func bm (bn) = ("dutyWhByProd_" + toString(bn)) | |
257 | - | ||
258 | - | ||
259 | - | let bo = 0 | |
260 | - | ||
261 | - | let bp = 1 | |
262 | - | ||
263 | - | let bq = 2 | |
264 | - | ||
265 | - | func br (bs) = { | |
266 | - | let c = bs | |
161 | + | func aq (ar) = { | |
162 | + | let c = ar | |
267 | 163 | if ($isInstanceOf(c, "String")) | |
268 | 164 | then { | |
269 | - | let | |
270 | - | | |
165 | + | let as = c | |
166 | + | as | |
271 | 167 | } | |
272 | 168 | else throw("fail to cast into String") | |
273 | 169 | } | |
274 | 170 | ||
275 | 171 | ||
276 | - | func bu (bs) = { | |
277 | - | let c = bs | |
278 | - | if ($isInstanceOf(c, "Int")) | |
279 | - | then { | |
280 | - | let bv = c | |
281 | - | bv | |
282 | - | } | |
283 | - | else throw("fail to cast into Int") | |
284 | - | } | |
285 | - | ||
286 | - | ||
287 | - | func bw (bs) = { | |
288 | - | let c = bs | |
289 | - | if ($isInstanceOf(c, "List[Any]")) | |
290 | - | then { | |
291 | - | let bx = c | |
292 | - | bx | |
293 | - | } | |
294 | - | else throw("fail to cast into List[Any]") | |
295 | - | } | |
296 | - | ||
297 | - | ||
298 | - | func by (bs) = { | |
299 | - | let c = bs | |
172 | + | func at (ar) = { | |
173 | + | let c = ar | |
300 | 174 | if ($isInstanceOf(c, "Boolean")) | |
301 | 175 | then { | |
302 | - | let | |
303 | - | | |
176 | + | let as = c | |
177 | + | as | |
304 | 178 | } | |
305 | 179 | else throw("fail to cast into Boolean") | |
306 | 180 | } | |
307 | 181 | ||
308 | 182 | ||
309 | - | func | |
310 | - | let c = | |
183 | + | func au (av) = { | |
184 | + | let c = av | |
311 | 185 | if (("S" == c)) | |
312 | - | then | |
186 | + | then j | |
313 | 187 | else if (("M" == c)) | |
314 | - | then | |
188 | + | then k | |
315 | 189 | else if (("L" == c)) | |
316 | - | then | |
190 | + | then l | |
317 | 191 | else if (("XL" == c)) | |
318 | - | then | |
192 | + | then m | |
319 | 193 | else if (("XXL" == c)) | |
320 | - | then | |
194 | + | then n | |
321 | 195 | else throw("Unknown land size") | |
322 | 196 | } | |
323 | 197 | ||
324 | 198 | ||
325 | - | let | |
199 | + | let aw = 500000 | |
326 | 200 | ||
327 | - | let bC = 1 | |
328 | - | ||
329 | - | func bD (bE) = { | |
330 | - | let bF = split(valueOrElse(getString(aE, bh()), "0_0_0_0_0_0"), "_") | |
331 | - | func bG (bH,bI) = (bH + parseIntValue(bI)) | |
332 | - | ||
333 | - | let bJ = { | |
334 | - | let bK = bF | |
335 | - | let bL = size(bK) | |
336 | - | let bM = 0 | |
337 | - | func bN (bO,bP) = if ((bP >= bL)) | |
338 | - | then bO | |
339 | - | else bG(bO, bK[bP]) | |
340 | - | ||
341 | - | func bQ (bO,bP) = if ((bP >= bL)) | |
342 | - | then bO | |
343 | - | else throw("List size exceeds 6") | |
344 | - | ||
345 | - | bQ(bN(bN(bN(bN(bN(bN(bM, 0), 1), 2), 3), 4), 5), 6) | |
346 | - | } | |
347 | - | let bR = if ((bE == "")) | |
348 | - | then 0 | |
349 | - | else { | |
350 | - | let bS = getString(aE, aW(bE)) | |
351 | - | let bT = if (isDefined(bS)) | |
352 | - | then split_51C(value(bS), "_") | |
353 | - | else nil | |
354 | - | func bU (bH,aV) = { | |
355 | - | let bV = value(assetInfo(fromBase58String(aV))) | |
356 | - | let bA = split(bV.description, "_")[V] | |
357 | - | (bH + bz(bA)) | |
358 | - | } | |
359 | - | ||
360 | - | let bK = bT | |
361 | - | let bL = size(bK) | |
362 | - | let bM = 0 | |
363 | - | func bW (bO,bP) = if ((bP >= bL)) | |
364 | - | then bO | |
365 | - | else bU(bO, bK[bP]) | |
366 | - | ||
367 | - | func bX (bO,bP) = if ((bP >= bL)) | |
368 | - | then bO | |
369 | - | else throw("List size exceeds 100") | |
370 | - | ||
371 | - | bX(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bM, 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) | |
372 | - | } | |
373 | - | [bJ, bR] | |
374 | - | } | |
375 | - | ||
376 | - | ||
377 | - | let bY = 500000 | |
378 | - | ||
379 | - | func bZ (ca) = { | |
380 | - | let c = ca | |
201 | + | func ax (ay) = { | |
202 | + | let c = ay | |
381 | 203 | if ($isInstanceOf(c, "List[Any]")) | |
382 | 204 | then { | |
383 | - | let | |
384 | - | if ((size( | |
385 | - | then throw(("Array size is " + toString(size( | |
205 | + | let az = c | |
206 | + | if ((size(az) != i)) | |
207 | + | then throw(("Array size is " + toString(size(az)))) | |
386 | 208 | else { | |
387 | - | func | |
388 | - | let | |
389 | - | if ($isInstanceOf( | |
209 | + | func aA (aB,aC) = { | |
210 | + | let aD = aC | |
211 | + | if ($isInstanceOf(aD, "Int")) | |
390 | 212 | then { | |
391 | - | let | |
392 | - | ( | |
213 | + | let aE = aD | |
214 | + | (aB :+ toString(aE)) | |
393 | 215 | } | |
394 | 216 | else throw("List type is not Int") | |
395 | 217 | } | |
396 | 218 | ||
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | func | |
402 | - | then | |
403 | - | else | |
219 | + | let aF = { | |
220 | + | let aG = az | |
221 | + | let aH = size(aG) | |
222 | + | let aI = nil | |
223 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
224 | + | then aK | |
225 | + | else aA(aK, aG[aL]) | |
404 | 226 | ||
405 | - | func | |
406 | - | then | |
227 | + | func aM (aK,aL) = if ((aL >= aH)) | |
228 | + | then aK | |
407 | 229 | else throw("List size exceeds 6") | |
408 | 230 | ||
409 | - | | |
231 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6) | |
410 | 232 | } | |
411 | - | makeString( | |
233 | + | makeString(aF, "_") | |
412 | 234 | } | |
413 | 235 | } | |
414 | 236 | else throw("fail to cast into List") | |
415 | 237 | } | |
416 | 238 | ||
417 | 239 | ||
418 | - | func | |
419 | - | let c = | |
240 | + | func aN (ay) = { | |
241 | + | let c = ay | |
420 | 242 | if ($isInstanceOf(c, "(List[Any], List[Any])")) | |
421 | 243 | then { | |
422 | - | let | |
423 | - | $Tuple2( | |
244 | + | let aO = c | |
245 | + | $Tuple2(ax(aO._1), ax(aO._2)) | |
424 | 246 | } | |
425 | 247 | else throw("fail to cast into (List, List)") | |
426 | 248 | } | |
427 | 249 | ||
428 | 250 | ||
429 | - | func | |
430 | - | let | |
431 | - | let | |
432 | - | then wavesBalance(value( | |
251 | + | func aP (aQ) = { | |
252 | + | let R = addressFromString(aQ) | |
253 | + | let aR = if (isDefined(R)) | |
254 | + | then wavesBalance(value(R)) | |
433 | 255 | else BalanceDetails(0, 0, 0, 0) | |
434 | - | let | |
435 | - | then assetBalance(value( | |
256 | + | let aS = if (isDefined(R)) | |
257 | + | then assetBalance(value(R), b) | |
436 | 258 | else 0 | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | [("%s%s__customName__" + | |
259 | + | let aT = valueOrElse(getString(O, ae(aQ)), aQ) | |
260 | + | let aU = valueOrElse(getString(O, af(aQ)), "") | |
261 | + | let aV = valueOrElse(getString(O, ag(aQ)), "") | |
262 | + | let aW = valueOrElse(getString(O, Q(aQ)), "") | |
263 | + | [("%s%s__customName__" + aT), ("%s%s__referredBy__" + aU), ("%s%s__referrals__" + aV), ("%s%s__lastTxId__" + aW), ("%s%s%d__wavesBalance__" + toString(aR.available)), ("%s%s%d__usdtBalance__" + toString(aS))] | |
442 | 264 | } | |
443 | 265 | ||
444 | 266 | ||
445 | - | func | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | $Tuple3( | |
267 | + | func aX (aa,aY) = { | |
268 | + | let aZ = valueOrElse(getInteger(O, W(aa)), 0) | |
269 | + | let ba = valueOrElse(getInteger(O, X(h, aa)), 0) | |
270 | + | let bb = (aZ / 6) | |
271 | + | let bc = (aZ / 7) | |
272 | + | $Tuple3(aZ, ba, ((o + fraction(o, ((aZ + bb) + (2 * bc)), 5)) + fraction(o, ba, (aY * 5)))) | |
451 | 273 | } | |
452 | 274 | ||
453 | 275 | ||
454 | - | func | |
455 | - | let | |
456 | - | (( | |
276 | + | func bd (be) = { | |
277 | + | let bf = split(be, "_") | |
278 | + | ((q * (parseIntValue(bf[1]) + 1)) * parseIntValue(bf[0])) | |
457 | 279 | } | |
458 | 280 | ||
459 | 281 | ||
460 | - | func | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | split( | |
282 | + | func bg (bh,bi,aZ) = { | |
283 | + | let be = ((toString(bi) + "_") + toString(aZ)) | |
284 | + | let bj = toString(bd(be)) | |
285 | + | let bk = valueOrElse(getString(O, bh), ((((be + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + bj) + "_") + bj)) | |
286 | + | split(bk, ":") | |
465 | 287 | } | |
466 | 288 | ||
467 | 289 | ||
468 | - | func | |
290 | + | func bl (ak) = $Tuple5(valueOrElse(getInteger(O, V(ak)), -1), value(assetInfo(fromBase58String(ak))).name, valueOrElse(getString(O, aj(ak)), ""), valueOrElse(getInteger(O, al(ak)), -1), aq(invoke(O, "getBackpackREADONLY", [ak], nil))) | |
469 | 291 | ||
470 | 292 | ||
471 | - | func | |
472 | - | let | |
473 | - | [("%s%s__assetId__" + | |
293 | + | func bm (ak,bn,bo) = { | |
294 | + | let aT = valueOrElse(getString(O, ad(ak)), bo._2) | |
295 | + | [("%s%s__assetId__" + ak), ("%s%s__owner__" + bn), ("%s%s__customName__" + aT), ("%s%d__stakedTime__" + toString(bo._1)), ("%s%s__name__" + bo._2), ("%s%s__location__" + bo._3), ("%s%d__health__" + toString(bo._4)), ("%s%s__backPack__" + bo._5)] | |
474 | 296 | } | |
475 | 297 | ||
476 | 298 | ||
477 | - | func | |
299 | + | func bp (aa,bn,bq) = if ((aa == "")) | |
478 | 300 | then throw("landAssetId is required") | |
479 | 301 | else { | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | then | |
484 | - | else ("-" + | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | then fraction( | |
302 | + | let br = value(assetInfo(fromBase58String(aa))) | |
303 | + | let bs = split(br.description, "_") | |
304 | + | let bt = if ((br.quantity > 0)) | |
305 | + | then bs[x] | |
306 | + | else ("-" + bs[x]) | |
307 | + | let aY = au(bs[y]) | |
308 | + | let bu = aX(aa, aY) | |
309 | + | let bv = (lastBlock.timestamp - bq) | |
310 | + | let bw = if ((bq > 0)) | |
311 | + | then fraction(bv, (bu._3 * aY), p) | |
490 | 312 | else 0 | |
491 | - | let | |
492 | - | let | |
493 | - | then | |
494 | - | else $Tuple2( | |
495 | - | let | |
496 | - | [("%s%s__assetId__" + | |
313 | + | let bx = fraction(e, (aY * (bu._1 + 1)), j) | |
314 | + | let by = if ((bq > 0)) | |
315 | + | then aN(invoke(O, "splitByGlobalAndLocalWeightsREADONLY", [bx, bw, bs[z]], nil)) | |
316 | + | else $Tuple2(ax(invoke(O, "splitByGlobalWeightsREADONLY", [bx], nil)), "") | |
317 | + | let aT = valueOrElse(getString(O, U(aa)), ((bs[A] + "-") + bs[x])) | |
318 | + | [("%s%s__assetId__" + aa), ("%s%s__owner__" + bn), ("%s%s__customName__" + aT), ("%s%d__stakedTime__" + toString(bq)), ("%s%s__description__" + makeString([bt, bs[y], bs[z], bs[A]], "_")), ("%s%d__infraLevel__" + toString(bu._1)), ("%s%s__availResByType__" + by._2), ("%s%d__availResTotal__" + toString(bw)), ("%s%s__needMaterial__" + by._1), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(bu._2))], f), ("%s%s__warehouse__" + makeString(bg(Z(aa), (aY / j), bu._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(P, an(aa)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
497 | 319 | } | |
498 | 320 | ||
499 | 321 | ||
500 | - | func | |
322 | + | func bz (aa,bn) = if ((aa == "")) | |
501 | 323 | then throw("landAssetId is required") | |
502 | 324 | else { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | [("%s%s__assetId__" + | |
325 | + | let br = value(assetInfo(fromBase58String(aa))) | |
326 | + | let bs = split(br.description, "_") | |
327 | + | let aY = au(bs[y]) | |
328 | + | let bu = aX(aa, aY) | |
329 | + | [("%s%s__assetId__" + aa), ("%s%s__owner__" + bn), ("%s%s__warehouse__" + makeString(bg(Z(aa), (aY / j), bu._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(P, an(aa)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
508 | 330 | } | |
509 | 331 | ||
510 | 332 | ||
511 | - | @Callable( | |
512 | - | func constructorV1 ( | |
333 | + | @Callable(bA) | |
334 | + | func constructorV1 (bB) = if ((bA.caller != this)) | |
513 | 335 | then throw("permissions denied") | |
514 | 336 | else { | |
515 | - | func | |
337 | + | func bC (aB,bD) = (aB + "%s") | |
516 | 338 | ||
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | func | |
522 | - | then | |
523 | - | else | |
339 | + | let bE = { | |
340 | + | let aG = bB | |
341 | + | let aH = size(aG) | |
342 | + | let aI = "" | |
343 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
344 | + | then aK | |
345 | + | else bC(aK, aG[aL]) | |
524 | 346 | ||
525 | - | func | |
526 | - | then | |
347 | + | func aM (aK,aL) = if ((aL >= aH)) | |
348 | + | then aK | |
527 | 349 | else throw("List size exceeds 10") | |
528 | 350 | ||
529 | - | | |
351 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
530 | 352 | } | |
531 | - | [StringEntry( | |
353 | + | [StringEntry(G(), makeString(bE :: bB, f)), StringEntry(H(), toString(this))] | |
532 | 354 | } | |
533 | 355 | ||
534 | 356 | ||
535 | 357 | ||
536 | - | @Callable( | |
537 | - | func walletInfoREADONLY ( | |
358 | + | @Callable(bA) | |
359 | + | func walletInfoREADONLY (aQ) = $Tuple2(nil, aP(aQ)) | |
538 | 360 | ||
539 | 361 | ||
540 | 362 | ||
541 | - | @Callable( | |
542 | - | func duckByOwnerInfoREADONLY ( | |
543 | - | let | |
544 | - | $Tuple2(nil, if (if (isDefined(addressFromString( | |
545 | - | then isDefined( | |
363 | + | @Callable(bA) | |
364 | + | func duckByOwnerInfoREADONLY (bF) = { | |
365 | + | let bG = getString(O, ai(bF)) | |
366 | + | $Tuple2(nil, if (if (isDefined(addressFromString(bF))) | |
367 | + | then isDefined(bG) | |
546 | 368 | else false) | |
547 | 369 | then { | |
548 | - | let | |
549 | - | | |
370 | + | let ak = value(bG) | |
371 | + | bm(ak, bF, bl(ak)) | |
550 | 372 | } | |
551 | - | else | |
373 | + | else bm("", bF, $Tuple5(-1, "", "", -1, ""))) | |
552 | 374 | } | |
553 | 375 | ||
554 | 376 | ||
555 | 377 | ||
556 | - | @Callable( | |
557 | - | func duckByAssetIdInfoREADONLY ( | |
558 | - | let | |
559 | - | let | |
560 | - | $Tuple2(nil, | |
561 | - | then value( | |
562 | - | else "", | |
378 | + | @Callable(bA) | |
379 | + | func duckByAssetIdInfoREADONLY (ak) = { | |
380 | + | let bn = getString(O, ah(ak)) | |
381 | + | let bo = bl(ak) | |
382 | + | $Tuple2(nil, bm(ak, if (isDefined(bn)) | |
383 | + | then value(bn) | |
384 | + | else "", bl(ak))) | |
563 | 385 | } | |
564 | 386 | ||
565 | 387 | ||
566 | 388 | ||
567 | - | @Callable( | |
568 | - | func landByAssetIdInfoREADONLY ( | |
389 | + | @Callable(bA) | |
390 | + | func landByAssetIdInfoREADONLY (aa) = if ((aa == "")) | |
569 | 391 | then throw("landAssetId is required") | |
570 | 392 | else { | |
571 | - | let | |
572 | - | let | |
573 | - | then value(getString( | |
393 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
394 | + | let bn = if ((bq > 0)) | |
395 | + | then value(getString(O, S(aa))) | |
574 | 396 | else "" | |
575 | - | $Tuple2(nil, | |
397 | + | $Tuple2(nil, bp(aa, bn, bq)) | |
576 | 398 | } | |
577 | 399 | ||
578 | 400 | ||
579 | 401 | ||
580 | - | @Callable( | |
581 | - | func stakedLandsByOwnerInfoREADONLY ( | |
402 | + | @Callable(bA) | |
403 | + | func stakedLandsByOwnerInfoREADONLY (bH) = if ((bH == "")) | |
582 | 404 | then throw("landOwnerAddress is required") | |
583 | 405 | else { | |
584 | - | let | |
585 | - | let | |
586 | - | then split_51C(value( | |
406 | + | let bI = getString(O, ab(bH)) | |
407 | + | let bJ = if (isDefined(bI)) | |
408 | + | then split_51C(value(bI), "_") | |
587 | 409 | else nil | |
588 | - | func | |
410 | + | func bK (aB,aa) = if ((aa == "")) | |
589 | 411 | then throw("landAssetId is required") | |
590 | 412 | else { | |
591 | - | let | |
592 | - | ( | |
413 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
414 | + | (aB :+ bp(aa, bH, bq)) | |
593 | 415 | } | |
594 | 416 | ||
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | func | |
600 | - | then | |
601 | - | else | |
417 | + | let aF = { | |
418 | + | let aG = bJ | |
419 | + | let aH = size(aG) | |
420 | + | let aI = nil | |
421 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
422 | + | then aK | |
423 | + | else bK(aK, aG[aL]) | |
602 | 424 | ||
603 | - | func | |
604 | - | then | |
425 | + | func aM (aK,aL) = if ((aL >= aH)) | |
426 | + | then aK | |
605 | 427 | else throw("List size exceeds 40") | |
606 | 428 | ||
607 | - | | |
429 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
608 | 430 | } | |
609 | - | $Tuple2(nil, | |
431 | + | $Tuple2(nil, aF) | |
610 | 432 | } | |
611 | 433 | ||
612 | 434 | ||
613 | 435 | ||
614 | - | @Callable( | |
615 | - | func landsByIdsInfoREADONLY ( | |
616 | - | func | |
436 | + | @Callable(bA) | |
437 | + | func landsByIdsInfoREADONLY (bL) = { | |
438 | + | func bK (aB,aa) = if ((aa == "")) | |
617 | 439 | then throw("landAssetId is required") | |
618 | 440 | else { | |
619 | - | let | |
620 | - | let | |
621 | - | then value(getString( | |
441 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
442 | + | let bn = if ((bq > 0)) | |
443 | + | then value(getString(O, S(aa))) | |
622 | 444 | else "" | |
623 | - | ( | |
445 | + | (aB :+ bp(aa, bn, bq)) | |
624 | 446 | } | |
625 | 447 | ||
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | func | |
631 | - | then | |
632 | - | else | |
448 | + | let aF = { | |
449 | + | let aG = bL | |
450 | + | let aH = size(aG) | |
451 | + | let aI = nil | |
452 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
453 | + | then aK | |
454 | + | else bK(aK, aG[aL]) | |
633 | 455 | ||
634 | - | func | |
635 | - | then | |
456 | + | func aM (aK,aL) = if ((aL >= aH)) | |
457 | + | then aK | |
636 | 458 | else throw("List size exceeds 40") | |
637 | 459 | ||
638 | - | | |
460 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
639 | 461 | } | |
640 | - | $Tuple2(nil, | |
462 | + | $Tuple2(nil, aF) | |
641 | 463 | } | |
642 | 464 | ||
643 | 465 | ||
644 | 466 | ||
645 | - | @Callable( | |
646 | - | func warehouseOrderByAssetIdInfoREADONLY ( | |
467 | + | @Callable(bA) | |
468 | + | func warehouseOrderByAssetIdInfoREADONLY (aa) = if ((aa == "")) | |
647 | 469 | then throw("landAssetId is required") | |
648 | 470 | else { | |
649 | - | let | |
650 | - | let | |
651 | - | then value(getString( | |
471 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
472 | + | let bn = if ((bq > 0)) | |
473 | + | then value(getString(O, S(aa))) | |
652 | 474 | else "" | |
653 | - | $Tuple2(nil, | |
475 | + | $Tuple2(nil, bz(aa, bn)) | |
654 | 476 | } | |
655 | 477 | ||
656 | 478 | ||
657 | 479 | ||
658 | - | @Callable( | |
659 | - | func ordersByLandIdsInfoREADONLY ( | |
660 | - | func | |
480 | + | @Callable(bA) | |
481 | + | func ordersByLandIdsInfoREADONLY (bL) = { | |
482 | + | func bK (aB,aa) = if ((aa == "")) | |
661 | 483 | then throw("landAssetId is required") | |
662 | 484 | else { | |
663 | - | let | |
664 | - | let | |
665 | - | then value(getString( | |
485 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
486 | + | let bn = if ((bq > 0)) | |
487 | + | then value(getString(O, S(aa))) | |
666 | 488 | else "" | |
667 | - | ( | |
489 | + | (aB :+ bz(aa, bn)) | |
668 | 490 | } | |
669 | 491 | ||
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | func | |
675 | - | then | |
676 | - | else | |
492 | + | let aF = { | |
493 | + | let aG = bL | |
494 | + | let aH = size(aG) | |
495 | + | let aI = nil | |
496 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
497 | + | then aK | |
498 | + | else bK(aK, aG[aL]) | |
677 | 499 | ||
678 | - | func | |
679 | - | then | |
500 | + | func aM (aK,aL) = if ((aL >= aH)) | |
501 | + | then aK | |
680 | 502 | else throw("List size exceeds 40") | |
681 | 503 | ||
682 | - | | |
504 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
683 | 505 | } | |
684 | - | $Tuple2(nil, | |
506 | + | $Tuple2(nil, aF) | |
685 | 507 | } | |
686 | 508 | ||
687 | 509 | ||
688 | 510 | ||
689 | - | @Callable( | |
690 | - | func cancelWarehouseOrders ( | |
511 | + | @Callable(bA) | |
512 | + | func cancelWarehouseOrders (bL) = if ((bA.caller != this)) | |
691 | 513 | then throw("permission denied") | |
692 | 514 | else { | |
693 | - | let | |
694 | - | if (if (!(isDefined( | |
515 | + | let bM = getBoolean(O, am()) | |
516 | + | if (if (!(isDefined(bM))) | |
695 | 517 | then true | |
696 | - | else (value( | |
518 | + | else (value(bM) == false)) | |
697 | 519 | then throw("Contracts should be blocked before canceling orders") | |
698 | 520 | else { | |
699 | - | func | |
521 | + | func bK (br,aa) = if ((aa == "")) | |
700 | 522 | then throw("landAssetId is required") | |
701 | 523 | else { | |
702 | - | let | |
703 | - | if (if ( | |
524 | + | let bN = at(invoke(P, "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:", aa], nil)) | |
525 | + | if (if (br) | |
704 | 526 | then true | |
705 | - | else | |
706 | - | then !(if ( | |
707 | - | then | |
527 | + | else bN) | |
528 | + | then !(if (br) | |
529 | + | then bN | |
708 | 530 | else false) | |
709 | 531 | else false | |
710 | 532 | } | |
711 | 533 | ||
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | func | |
717 | - | then | |
718 | - | else | |
534 | + | let aF = { | |
535 | + | let aG = bL | |
536 | + | let aH = size(aG) | |
537 | + | let aI = false | |
538 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
539 | + | then aK | |
540 | + | else bK(aK, aG[aL]) | |
719 | 541 | ||
720 | - | func | |
721 | - | then | |
542 | + | func aM (aK,aL) = if ((aL >= aH)) | |
543 | + | then aK | |
722 | 544 | else throw("List size exceeds 30") | |
723 | 545 | ||
724 | - | | |
546 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
725 | 547 | } | |
726 | - | $Tuple2(nil, | |
548 | + | $Tuple2(nil, aF) | |
727 | 549 | } | |
728 | 550 | } | |
729 | 551 | ||
730 | 552 | ||
731 | 553 | ||
732 | - | @Callable( | |
733 | - | func fixWarehouseFormats ( | |
554 | + | @Callable(bA) | |
555 | + | func fixWarehouseFormats (bL) = if ((bA.caller != this)) | |
734 | 556 | then throw("permission denied") | |
735 | 557 | else { | |
736 | - | func | |
558 | + | func bK (aB,aa) = if ((aa == "")) | |
737 | 559 | then throw("landAssetId is required") | |
738 | - | else ( | |
560 | + | else (aB + size(aq(invoke(O, "fixWarehouseFormat", [aa], nil)))) | |
739 | 561 | ||
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | func | |
745 | - | then | |
746 | - | else | |
562 | + | let aF = { | |
563 | + | let aG = bL | |
564 | + | let aH = size(aG) | |
565 | + | let aI = 0 | |
566 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
567 | + | then aK | |
568 | + | else bK(aK, aG[aL]) | |
747 | 569 | ||
748 | - | func | |
749 | - | then | |
570 | + | func aM (aK,aL) = if ((aL >= aH)) | |
571 | + | then aK | |
750 | 572 | else throw("List size exceeds 25") | |
751 | 573 | ||
752 | - | | |
574 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
753 | 575 | } | |
754 | - | $Tuple2(nil, | |
576 | + | $Tuple2(nil, aF) | |
755 | 577 | } | |
756 | 578 | ||
757 | 579 | ||
758 | 580 | ||
759 | - | @Callable( | |
760 | - | func sendUsdtPrize ( | |
581 | + | @Callable(bA) | |
582 | + | func sendUsdtPrize (bF) = if ((bA.caller != O)) | |
761 | 583 | then throw("permission denied") | |
762 | 584 | else { | |
763 | - | let | |
764 | - | $Tuple2([ScriptTransfer(addressFromStringValue( | |
585 | + | let bO = fraction(assetBalance(this, b), aw, g) | |
586 | + | $Tuple2([ScriptTransfer(addressFromStringValue(bF), bO, b)], bO) | |
765 | 587 | } | |
766 | 588 | ||
767 | 589 | ||
768 | 590 | ||
769 | - | @Callable( | |
591 | + | @Callable(bA) | |
770 | 592 | func getEmergencyServiceDataREADONLY () = { | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | then ( | |
593 | + | func bP (aB,bQ) = { | |
594 | + | let bR = aB._2 | |
595 | + | let bS = split(bQ, "_") | |
596 | + | let bT = parseIntValue(bS[w]) | |
597 | + | let bU = if ((bR == 0)) | |
598 | + | then (s * bT) | |
777 | 599 | else 0 | |
778 | - | let | |
779 | - | func | |
600 | + | let bV = valueOrElse(getInteger(P, ao(bR)), 0) | |
601 | + | func bW (bX,bY) = (bX + parseIntValue(bS[bY])) | |
780 | 602 | ||
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | func | |
786 | - | then | |
787 | - | else | |
603 | + | let bZ = { | |
604 | + | let aG = [0, 1, 2, 3, 4, 5] | |
605 | + | let aH = size(aG) | |
606 | + | let aI = 0 | |
607 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
608 | + | then aK | |
609 | + | else bW(aK, aG[aL]) | |
788 | 610 | ||
789 | - | func | |
790 | - | then | |
611 | + | func aM (aK,aL) = if ((aL >= aH)) | |
612 | + | then aK | |
791 | 613 | else throw("List size exceeds 6") | |
792 | 614 | ||
793 | - | | |
615 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6) | |
794 | 616 | } | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | $Tuple2(( | |
617 | + | let ca = fraction((bZ * t), r, (bT * 10)) | |
618 | + | let cb = fraction((bZ * u), r, (bT * 10)) | |
619 | + | let cc = makeString([toString(bU), toString(bV), toString(ca), toString(cb)], "_") | |
620 | + | $Tuple2((aB._1 :+ cc), (bR + 1)) | |
799 | 621 | } | |
800 | 622 | ||
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | func | |
805 | - | then | |
806 | - | else | |
623 | + | let as = makeString_2C(( let aG = v | |
624 | + | let aH = size(aG) | |
625 | + | let aI = $Tuple2(nil, 0) | |
626 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
627 | + | then aK | |
628 | + | else bP(aK, aG[aL]) | |
807 | 629 | ||
808 | - | func | |
809 | - | then | |
630 | + | func aM (aK,aL) = if ((aL >= aH)) | |
631 | + | then aK | |
810 | 632 | else throw("List size exceeds 50") | |
811 | 633 | ||
812 | - | | |
813 | - | let | |
814 | - | $Tuple2(nil, | |
634 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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, ":") | |
635 | + | let cd = ("%s%s__emergencyServiceData__" + as) | |
636 | + | $Tuple2(nil, cd) | |
815 | 637 | } | |
816 | 638 | ||
817 | 639 |
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'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
10 | 10 | else if ((base58'2T' == c)) | |
11 | 11 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
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 "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
19 | 19 | else if ((base58'2T' == c)) | |
20 | 20 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let e = { | |
25 | 25 | let c = a | |
26 | 26 | if ((base58'2W' == c)) | |
27 | 27 | then 10000000000 | |
28 | 28 | else if ((base58'2T' == c)) | |
29 | 29 | then 100000000 | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let f = "__" | |
34 | 34 | ||
35 | 35 | let g = 1000000 | |
36 | 36 | ||
37 | - | let h = | |
37 | + | let h = "PRESALE" | |
38 | 38 | ||
39 | - | let i = | |
39 | + | let i = 6 | |
40 | 40 | ||
41 | - | let j = | |
41 | + | let j = 25 | |
42 | 42 | ||
43 | - | let k = | |
43 | + | let k = 100 | |
44 | 44 | ||
45 | - | let l = | |
45 | + | let l = 225 | |
46 | 46 | ||
47 | - | let m = | |
47 | + | let m = 400 | |
48 | 48 | ||
49 | - | let n = | |
49 | + | let n = 625 | |
50 | 50 | ||
51 | - | let o = | |
51 | + | let o = 3456000 | |
52 | 52 | ||
53 | - | let p = | |
53 | + | let p = 86400000 | |
54 | 54 | ||
55 | - | let q = | |
55 | + | let q = 10000000000 | |
56 | 56 | ||
57 | - | let r = | |
57 | + | let r = 39637 | |
58 | 58 | ||
59 | - | let s = | |
59 | + | let s = 3 | |
60 | 60 | ||
61 | - | let t = | |
61 | + | let t = 4 | |
62 | 62 | ||
63 | - | let u = | |
63 | + | let u = 10 | |
64 | 64 | ||
65 | - | let v = | |
65 | + | let v = ["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"] | |
66 | 66 | ||
67 | - | let w = | |
67 | + | let w = 7 | |
68 | 68 | ||
69 | - | let x = | |
69 | + | let x = 0 | |
70 | 70 | ||
71 | - | let y = | |
71 | + | let y = 1 | |
72 | 72 | ||
73 | - | let z = | |
73 | + | let z = 2 | |
74 | 74 | ||
75 | - | let A = | |
75 | + | let A = 3 | |
76 | 76 | ||
77 | - | let B = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"] | |
78 | - | ||
79 | - | let C = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
80 | - | ||
81 | - | let D = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3"] | |
82 | - | ||
83 | - | let E = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
84 | - | ||
85 | - | let F = ["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"] | |
86 | - | ||
87 | - | let G = 0 | |
88 | - | ||
89 | - | let H = 1 | |
90 | - | ||
91 | - | let I = 2 | |
92 | - | ||
93 | - | let J = 3 | |
94 | - | ||
95 | - | let K = 4 | |
96 | - | ||
97 | - | let L = 0 | |
98 | - | ||
99 | - | let M = 1 | |
100 | - | ||
101 | - | let N = 2 | |
102 | - | ||
103 | - | let O = 3 | |
104 | - | ||
105 | - | let P = 4 | |
106 | - | ||
107 | - | let Q = 5 | |
108 | - | ||
109 | - | let R = 6 | |
110 | - | ||
111 | - | let S = 7 | |
112 | - | ||
113 | - | let T = 8 | |
114 | - | ||
115 | - | let U = 0 | |
116 | - | ||
117 | - | let V = 1 | |
118 | - | ||
119 | - | let W = 2 | |
120 | - | ||
121 | - | let X = 3 | |
122 | - | ||
123 | - | let Y = 0 | |
124 | - | ||
125 | - | let Z = 1 | |
126 | - | ||
127 | - | let aa = 2 | |
128 | - | ||
129 | - | let ab = 3 | |
130 | - | ||
131 | - | let ac = 4 | |
132 | - | ||
133 | - | let ad = 0 | |
134 | - | ||
135 | - | let ae = 1 | |
136 | - | ||
137 | - | let af = 2 | |
138 | - | ||
139 | - | let ag = 3 | |
140 | - | ||
141 | - | let ah = 0 | |
142 | - | ||
143 | - | let ai = 1 | |
144 | - | ||
145 | - | let aj = 2 | |
146 | - | ||
147 | - | let ak = 3 | |
148 | - | ||
149 | - | func al (am) = parseIntValue(split(F[am], "_")[S]) | |
77 | + | func B (C,D) = valueOrErrorMessage(getString(C, D), makeString(["mandatory ", toString(C), ".", D, " is not defined"], "")) | |
150 | 78 | ||
151 | 79 | ||
152 | - | func an (ao,ap) = valueOrErrorMessage(getString(ao, ap), makeString(["mandatory ", toString(ao), ".", ap, " is not defined"], "")) | |
80 | + | let E = 1 | |
81 | + | ||
82 | + | let F = 2 | |
83 | + | ||
84 | + | func G () = "%s__restConfig" | |
153 | 85 | ||
154 | 86 | ||
155 | - | func | |
87 | + | func H () = "%s__restAddr" | |
156 | 88 | ||
157 | 89 | ||
158 | - | let as = 1 | |
159 | - | ||
160 | - | let at = 2 | |
161 | - | ||
162 | - | let au = 3 | |
163 | - | ||
164 | - | let av = 4 | |
165 | - | ||
166 | - | func aw () = "%s__restConfig" | |
90 | + | func I (J) = split_4C(B(J, G()), f) | |
167 | 91 | ||
168 | 92 | ||
169 | - | func | |
93 | + | func K (L,M) = valueOrErrorMessage(addressFromString(L[M]), ("Rest cfg doesn't contain address at index " + toString(M))) | |
170 | 94 | ||
171 | 95 | ||
172 | - | func ay (az) = split_4C(an(az, aw()), f) | |
96 | + | let N = addressFromStringValue(valueOrElse(getString(this, H()), d)) | |
97 | + | ||
98 | + | let L = I(N) | |
99 | + | ||
100 | + | let O = K(L, E) | |
101 | + | ||
102 | + | let P = K(L, F) | |
103 | + | ||
104 | + | func Q (R) = ("lastTxIdByUser_" + R) | |
173 | 105 | ||
174 | 106 | ||
175 | - | func | |
107 | + | func S (T) = ("nftOwner_" + T) | |
176 | 108 | ||
177 | 109 | ||
178 | - | let aD = addressFromStringValue(valueOrElse(getString(this, ax()), d)) | |
179 | - | ||
180 | - | let aB = ay(aD) | |
181 | - | ||
182 | - | let aE = aA(aB, as) | |
183 | - | ||
184 | - | let aF = aA(aB, at) | |
185 | - | ||
186 | - | let aG = aA(aB, au) | |
187 | - | ||
188 | - | let aH = aA(aB, av) | |
189 | - | ||
190 | - | func aI (aJ) = ("lastTxIdByUser_" + aJ) | |
110 | + | func U (T) = ("landCustomNameByAssetId_" + T) | |
191 | 111 | ||
192 | 112 | ||
193 | - | func | |
113 | + | func V (T) = ("stakedTime_" + T) | |
194 | 114 | ||
195 | 115 | ||
196 | - | func | |
116 | + | func W (T) = ("infraLevel_" + T) | |
197 | 117 | ||
198 | 118 | ||
199 | - | func | |
119 | + | func X (Y,T) = makeString(["landArtStatus", Y, T], "_") | |
200 | 120 | ||
201 | 121 | ||
202 | - | func | |
122 | + | func Z (aa) = ("wareHouse_" + aa) | |
203 | 123 | ||
204 | 124 | ||
205 | - | func | |
125 | + | func ab (ac) = ("stakedLandsByOwner_" + ac) | |
206 | 126 | ||
207 | 127 | ||
208 | - | func | |
128 | + | func ad (T) = ("duckCustomNameByAssetId_" + T) | |
209 | 129 | ||
210 | 130 | ||
211 | - | func | |
131 | + | func ae (R) = ("accountCustomNameByAddr_" + R) | |
212 | 132 | ||
213 | 133 | ||
214 | - | func | |
134 | + | func af (R) = ("accRefBy_" + R) | |
215 | 135 | ||
216 | 136 | ||
217 | - | func | |
137 | + | func ag (R) = ("accReferrals_" + R) | |
218 | 138 | ||
219 | 139 | ||
220 | - | func | |
140 | + | func ah (T) = ("duckOwner_" + T) | |
221 | 141 | ||
222 | 142 | ||
223 | - | func | |
143 | + | func ai (ac) = ("stakedDuckByOwner_" + ac) | |
224 | 144 | ||
225 | 145 | ||
226 | - | func | |
146 | + | func aj (ak) = ("duckLocation_" + ak) | |
227 | 147 | ||
228 | 148 | ||
229 | - | func | |
149 | + | func al (ak) = ("duckHealth_" + ak) | |
230 | 150 | ||
231 | 151 | ||
232 | - | func | |
152 | + | func am () = "contractsBlocked" | |
233 | 153 | ||
234 | 154 | ||
235 | - | func | |
155 | + | func an (aa) = ("landOrder_" + aa) | |
236 | 156 | ||
237 | 157 | ||
238 | - | func | |
158 | + | func ao (ap) = ("dutyWhByProd_" + toString(ap)) | |
239 | 159 | ||
240 | 160 | ||
241 | - | func bg (be) = ("duckHealth_" + be) | |
242 | - | ||
243 | - | ||
244 | - | func bh () = "resTypesProportions" | |
245 | - | ||
246 | - | ||
247 | - | func bi () = "contractsBlocked" | |
248 | - | ||
249 | - | ||
250 | - | func bj (bk) = ("%s%s__userGwlReleaseTime__" + bk) | |
251 | - | ||
252 | - | ||
253 | - | func bl (aV) = ("landOrder_" + aV) | |
254 | - | ||
255 | - | ||
256 | - | func bm (bn) = ("dutyWhByProd_" + toString(bn)) | |
257 | - | ||
258 | - | ||
259 | - | let bo = 0 | |
260 | - | ||
261 | - | let bp = 1 | |
262 | - | ||
263 | - | let bq = 2 | |
264 | - | ||
265 | - | func br (bs) = { | |
266 | - | let c = bs | |
161 | + | func aq (ar) = { | |
162 | + | let c = ar | |
267 | 163 | if ($isInstanceOf(c, "String")) | |
268 | 164 | then { | |
269 | - | let | |
270 | - | | |
165 | + | let as = c | |
166 | + | as | |
271 | 167 | } | |
272 | 168 | else throw("fail to cast into String") | |
273 | 169 | } | |
274 | 170 | ||
275 | 171 | ||
276 | - | func bu (bs) = { | |
277 | - | let c = bs | |
278 | - | if ($isInstanceOf(c, "Int")) | |
279 | - | then { | |
280 | - | let bv = c | |
281 | - | bv | |
282 | - | } | |
283 | - | else throw("fail to cast into Int") | |
284 | - | } | |
285 | - | ||
286 | - | ||
287 | - | func bw (bs) = { | |
288 | - | let c = bs | |
289 | - | if ($isInstanceOf(c, "List[Any]")) | |
290 | - | then { | |
291 | - | let bx = c | |
292 | - | bx | |
293 | - | } | |
294 | - | else throw("fail to cast into List[Any]") | |
295 | - | } | |
296 | - | ||
297 | - | ||
298 | - | func by (bs) = { | |
299 | - | let c = bs | |
172 | + | func at (ar) = { | |
173 | + | let c = ar | |
300 | 174 | if ($isInstanceOf(c, "Boolean")) | |
301 | 175 | then { | |
302 | - | let | |
303 | - | | |
176 | + | let as = c | |
177 | + | as | |
304 | 178 | } | |
305 | 179 | else throw("fail to cast into Boolean") | |
306 | 180 | } | |
307 | 181 | ||
308 | 182 | ||
309 | - | func | |
310 | - | let c = | |
183 | + | func au (av) = { | |
184 | + | let c = av | |
311 | 185 | if (("S" == c)) | |
312 | - | then | |
186 | + | then j | |
313 | 187 | else if (("M" == c)) | |
314 | - | then | |
188 | + | then k | |
315 | 189 | else if (("L" == c)) | |
316 | - | then | |
190 | + | then l | |
317 | 191 | else if (("XL" == c)) | |
318 | - | then | |
192 | + | then m | |
319 | 193 | else if (("XXL" == c)) | |
320 | - | then | |
194 | + | then n | |
321 | 195 | else throw("Unknown land size") | |
322 | 196 | } | |
323 | 197 | ||
324 | 198 | ||
325 | - | let | |
199 | + | let aw = 500000 | |
326 | 200 | ||
327 | - | let bC = 1 | |
328 | - | ||
329 | - | func bD (bE) = { | |
330 | - | let bF = split(valueOrElse(getString(aE, bh()), "0_0_0_0_0_0"), "_") | |
331 | - | func bG (bH,bI) = (bH + parseIntValue(bI)) | |
332 | - | ||
333 | - | let bJ = { | |
334 | - | let bK = bF | |
335 | - | let bL = size(bK) | |
336 | - | let bM = 0 | |
337 | - | func bN (bO,bP) = if ((bP >= bL)) | |
338 | - | then bO | |
339 | - | else bG(bO, bK[bP]) | |
340 | - | ||
341 | - | func bQ (bO,bP) = if ((bP >= bL)) | |
342 | - | then bO | |
343 | - | else throw("List size exceeds 6") | |
344 | - | ||
345 | - | bQ(bN(bN(bN(bN(bN(bN(bM, 0), 1), 2), 3), 4), 5), 6) | |
346 | - | } | |
347 | - | let bR = if ((bE == "")) | |
348 | - | then 0 | |
349 | - | else { | |
350 | - | let bS = getString(aE, aW(bE)) | |
351 | - | let bT = if (isDefined(bS)) | |
352 | - | then split_51C(value(bS), "_") | |
353 | - | else nil | |
354 | - | func bU (bH,aV) = { | |
355 | - | let bV = value(assetInfo(fromBase58String(aV))) | |
356 | - | let bA = split(bV.description, "_")[V] | |
357 | - | (bH + bz(bA)) | |
358 | - | } | |
359 | - | ||
360 | - | let bK = bT | |
361 | - | let bL = size(bK) | |
362 | - | let bM = 0 | |
363 | - | func bW (bO,bP) = if ((bP >= bL)) | |
364 | - | then bO | |
365 | - | else bU(bO, bK[bP]) | |
366 | - | ||
367 | - | func bX (bO,bP) = if ((bP >= bL)) | |
368 | - | then bO | |
369 | - | else throw("List size exceeds 100") | |
370 | - | ||
371 | - | bX(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bM, 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) | |
372 | - | } | |
373 | - | [bJ, bR] | |
374 | - | } | |
375 | - | ||
376 | - | ||
377 | - | let bY = 500000 | |
378 | - | ||
379 | - | func bZ (ca) = { | |
380 | - | let c = ca | |
201 | + | func ax (ay) = { | |
202 | + | let c = ay | |
381 | 203 | if ($isInstanceOf(c, "List[Any]")) | |
382 | 204 | then { | |
383 | - | let | |
384 | - | if ((size( | |
385 | - | then throw(("Array size is " + toString(size( | |
205 | + | let az = c | |
206 | + | if ((size(az) != i)) | |
207 | + | then throw(("Array size is " + toString(size(az)))) | |
386 | 208 | else { | |
387 | - | func | |
388 | - | let | |
389 | - | if ($isInstanceOf( | |
209 | + | func aA (aB,aC) = { | |
210 | + | let aD = aC | |
211 | + | if ($isInstanceOf(aD, "Int")) | |
390 | 212 | then { | |
391 | - | let | |
392 | - | ( | |
213 | + | let aE = aD | |
214 | + | (aB :+ toString(aE)) | |
393 | 215 | } | |
394 | 216 | else throw("List type is not Int") | |
395 | 217 | } | |
396 | 218 | ||
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | func | |
402 | - | then | |
403 | - | else | |
219 | + | let aF = { | |
220 | + | let aG = az | |
221 | + | let aH = size(aG) | |
222 | + | let aI = nil | |
223 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
224 | + | then aK | |
225 | + | else aA(aK, aG[aL]) | |
404 | 226 | ||
405 | - | func | |
406 | - | then | |
227 | + | func aM (aK,aL) = if ((aL >= aH)) | |
228 | + | then aK | |
407 | 229 | else throw("List size exceeds 6") | |
408 | 230 | ||
409 | - | | |
231 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6) | |
410 | 232 | } | |
411 | - | makeString( | |
233 | + | makeString(aF, "_") | |
412 | 234 | } | |
413 | 235 | } | |
414 | 236 | else throw("fail to cast into List") | |
415 | 237 | } | |
416 | 238 | ||
417 | 239 | ||
418 | - | func | |
419 | - | let c = | |
240 | + | func aN (ay) = { | |
241 | + | let c = ay | |
420 | 242 | if ($isInstanceOf(c, "(List[Any], List[Any])")) | |
421 | 243 | then { | |
422 | - | let | |
423 | - | $Tuple2( | |
244 | + | let aO = c | |
245 | + | $Tuple2(ax(aO._1), ax(aO._2)) | |
424 | 246 | } | |
425 | 247 | else throw("fail to cast into (List, List)") | |
426 | 248 | } | |
427 | 249 | ||
428 | 250 | ||
429 | - | func | |
430 | - | let | |
431 | - | let | |
432 | - | then wavesBalance(value( | |
251 | + | func aP (aQ) = { | |
252 | + | let R = addressFromString(aQ) | |
253 | + | let aR = if (isDefined(R)) | |
254 | + | then wavesBalance(value(R)) | |
433 | 255 | else BalanceDetails(0, 0, 0, 0) | |
434 | - | let | |
435 | - | then assetBalance(value( | |
256 | + | let aS = if (isDefined(R)) | |
257 | + | then assetBalance(value(R), b) | |
436 | 258 | else 0 | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | [("%s%s__customName__" + | |
259 | + | let aT = valueOrElse(getString(O, ae(aQ)), aQ) | |
260 | + | let aU = valueOrElse(getString(O, af(aQ)), "") | |
261 | + | let aV = valueOrElse(getString(O, ag(aQ)), "") | |
262 | + | let aW = valueOrElse(getString(O, Q(aQ)), "") | |
263 | + | [("%s%s__customName__" + aT), ("%s%s__referredBy__" + aU), ("%s%s__referrals__" + aV), ("%s%s__lastTxId__" + aW), ("%s%s%d__wavesBalance__" + toString(aR.available)), ("%s%s%d__usdtBalance__" + toString(aS))] | |
442 | 264 | } | |
443 | 265 | ||
444 | 266 | ||
445 | - | func | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | $Tuple3( | |
267 | + | func aX (aa,aY) = { | |
268 | + | let aZ = valueOrElse(getInteger(O, W(aa)), 0) | |
269 | + | let ba = valueOrElse(getInteger(O, X(h, aa)), 0) | |
270 | + | let bb = (aZ / 6) | |
271 | + | let bc = (aZ / 7) | |
272 | + | $Tuple3(aZ, ba, ((o + fraction(o, ((aZ + bb) + (2 * bc)), 5)) + fraction(o, ba, (aY * 5)))) | |
451 | 273 | } | |
452 | 274 | ||
453 | 275 | ||
454 | - | func | |
455 | - | let | |
456 | - | (( | |
276 | + | func bd (be) = { | |
277 | + | let bf = split(be, "_") | |
278 | + | ((q * (parseIntValue(bf[1]) + 1)) * parseIntValue(bf[0])) | |
457 | 279 | } | |
458 | 280 | ||
459 | 281 | ||
460 | - | func | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | split( | |
282 | + | func bg (bh,bi,aZ) = { | |
283 | + | let be = ((toString(bi) + "_") + toString(aZ)) | |
284 | + | let bj = toString(bd(be)) | |
285 | + | let bk = valueOrElse(getString(O, bh), ((((be + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + bj) + "_") + bj)) | |
286 | + | split(bk, ":") | |
465 | 287 | } | |
466 | 288 | ||
467 | 289 | ||
468 | - | func | |
290 | + | func bl (ak) = $Tuple5(valueOrElse(getInteger(O, V(ak)), -1), value(assetInfo(fromBase58String(ak))).name, valueOrElse(getString(O, aj(ak)), ""), valueOrElse(getInteger(O, al(ak)), -1), aq(invoke(O, "getBackpackREADONLY", [ak], nil))) | |
469 | 291 | ||
470 | 292 | ||
471 | - | func | |
472 | - | let | |
473 | - | [("%s%s__assetId__" + | |
293 | + | func bm (ak,bn,bo) = { | |
294 | + | let aT = valueOrElse(getString(O, ad(ak)), bo._2) | |
295 | + | [("%s%s__assetId__" + ak), ("%s%s__owner__" + bn), ("%s%s__customName__" + aT), ("%s%d__stakedTime__" + toString(bo._1)), ("%s%s__name__" + bo._2), ("%s%s__location__" + bo._3), ("%s%d__health__" + toString(bo._4)), ("%s%s__backPack__" + bo._5)] | |
474 | 296 | } | |
475 | 297 | ||
476 | 298 | ||
477 | - | func | |
299 | + | func bp (aa,bn,bq) = if ((aa == "")) | |
478 | 300 | then throw("landAssetId is required") | |
479 | 301 | else { | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | then | |
484 | - | else ("-" + | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | then fraction( | |
302 | + | let br = value(assetInfo(fromBase58String(aa))) | |
303 | + | let bs = split(br.description, "_") | |
304 | + | let bt = if ((br.quantity > 0)) | |
305 | + | then bs[x] | |
306 | + | else ("-" + bs[x]) | |
307 | + | let aY = au(bs[y]) | |
308 | + | let bu = aX(aa, aY) | |
309 | + | let bv = (lastBlock.timestamp - bq) | |
310 | + | let bw = if ((bq > 0)) | |
311 | + | then fraction(bv, (bu._3 * aY), p) | |
490 | 312 | else 0 | |
491 | - | let | |
492 | - | let | |
493 | - | then | |
494 | - | else $Tuple2( | |
495 | - | let | |
496 | - | [("%s%s__assetId__" + | |
313 | + | let bx = fraction(e, (aY * (bu._1 + 1)), j) | |
314 | + | let by = if ((bq > 0)) | |
315 | + | then aN(invoke(O, "splitByGlobalAndLocalWeightsREADONLY", [bx, bw, bs[z]], nil)) | |
316 | + | else $Tuple2(ax(invoke(O, "splitByGlobalWeightsREADONLY", [bx], nil)), "") | |
317 | + | let aT = valueOrElse(getString(O, U(aa)), ((bs[A] + "-") + bs[x])) | |
318 | + | [("%s%s__assetId__" + aa), ("%s%s__owner__" + bn), ("%s%s__customName__" + aT), ("%s%d__stakedTime__" + toString(bq)), ("%s%s__description__" + makeString([bt, bs[y], bs[z], bs[A]], "_")), ("%s%d__infraLevel__" + toString(bu._1)), ("%s%s__availResByType__" + by._2), ("%s%d__availResTotal__" + toString(bw)), ("%s%s__needMaterial__" + by._1), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(bu._2))], f), ("%s%s__warehouse__" + makeString(bg(Z(aa), (aY / j), bu._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(P, an(aa)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
497 | 319 | } | |
498 | 320 | ||
499 | 321 | ||
500 | - | func | |
322 | + | func bz (aa,bn) = if ((aa == "")) | |
501 | 323 | then throw("landAssetId is required") | |
502 | 324 | else { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | [("%s%s__assetId__" + | |
325 | + | let br = value(assetInfo(fromBase58String(aa))) | |
326 | + | let bs = split(br.description, "_") | |
327 | + | let aY = au(bs[y]) | |
328 | + | let bu = aX(aa, aY) | |
329 | + | [("%s%s__assetId__" + aa), ("%s%s__owner__" + bn), ("%s%s__warehouse__" + makeString(bg(Z(aa), (aY / j), bu._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(P, an(aa)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
508 | 330 | } | |
509 | 331 | ||
510 | 332 | ||
511 | - | @Callable( | |
512 | - | func constructorV1 ( | |
333 | + | @Callable(bA) | |
334 | + | func constructorV1 (bB) = if ((bA.caller != this)) | |
513 | 335 | then throw("permissions denied") | |
514 | 336 | else { | |
515 | - | func | |
337 | + | func bC (aB,bD) = (aB + "%s") | |
516 | 338 | ||
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | func | |
522 | - | then | |
523 | - | else | |
339 | + | let bE = { | |
340 | + | let aG = bB | |
341 | + | let aH = size(aG) | |
342 | + | let aI = "" | |
343 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
344 | + | then aK | |
345 | + | else bC(aK, aG[aL]) | |
524 | 346 | ||
525 | - | func | |
526 | - | then | |
347 | + | func aM (aK,aL) = if ((aL >= aH)) | |
348 | + | then aK | |
527 | 349 | else throw("List size exceeds 10") | |
528 | 350 | ||
529 | - | | |
351 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
530 | 352 | } | |
531 | - | [StringEntry( | |
353 | + | [StringEntry(G(), makeString(bE :: bB, f)), StringEntry(H(), toString(this))] | |
532 | 354 | } | |
533 | 355 | ||
534 | 356 | ||
535 | 357 | ||
536 | - | @Callable( | |
537 | - | func walletInfoREADONLY ( | |
358 | + | @Callable(bA) | |
359 | + | func walletInfoREADONLY (aQ) = $Tuple2(nil, aP(aQ)) | |
538 | 360 | ||
539 | 361 | ||
540 | 362 | ||
541 | - | @Callable( | |
542 | - | func duckByOwnerInfoREADONLY ( | |
543 | - | let | |
544 | - | $Tuple2(nil, if (if (isDefined(addressFromString( | |
545 | - | then isDefined( | |
363 | + | @Callable(bA) | |
364 | + | func duckByOwnerInfoREADONLY (bF) = { | |
365 | + | let bG = getString(O, ai(bF)) | |
366 | + | $Tuple2(nil, if (if (isDefined(addressFromString(bF))) | |
367 | + | then isDefined(bG) | |
546 | 368 | else false) | |
547 | 369 | then { | |
548 | - | let | |
549 | - | | |
370 | + | let ak = value(bG) | |
371 | + | bm(ak, bF, bl(ak)) | |
550 | 372 | } | |
551 | - | else | |
373 | + | else bm("", bF, $Tuple5(-1, "", "", -1, ""))) | |
552 | 374 | } | |
553 | 375 | ||
554 | 376 | ||
555 | 377 | ||
556 | - | @Callable( | |
557 | - | func duckByAssetIdInfoREADONLY ( | |
558 | - | let | |
559 | - | let | |
560 | - | $Tuple2(nil, | |
561 | - | then value( | |
562 | - | else "", | |
378 | + | @Callable(bA) | |
379 | + | func duckByAssetIdInfoREADONLY (ak) = { | |
380 | + | let bn = getString(O, ah(ak)) | |
381 | + | let bo = bl(ak) | |
382 | + | $Tuple2(nil, bm(ak, if (isDefined(bn)) | |
383 | + | then value(bn) | |
384 | + | else "", bl(ak))) | |
563 | 385 | } | |
564 | 386 | ||
565 | 387 | ||
566 | 388 | ||
567 | - | @Callable( | |
568 | - | func landByAssetIdInfoREADONLY ( | |
389 | + | @Callable(bA) | |
390 | + | func landByAssetIdInfoREADONLY (aa) = if ((aa == "")) | |
569 | 391 | then throw("landAssetId is required") | |
570 | 392 | else { | |
571 | - | let | |
572 | - | let | |
573 | - | then value(getString( | |
393 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
394 | + | let bn = if ((bq > 0)) | |
395 | + | then value(getString(O, S(aa))) | |
574 | 396 | else "" | |
575 | - | $Tuple2(nil, | |
397 | + | $Tuple2(nil, bp(aa, bn, bq)) | |
576 | 398 | } | |
577 | 399 | ||
578 | 400 | ||
579 | 401 | ||
580 | - | @Callable( | |
581 | - | func stakedLandsByOwnerInfoREADONLY ( | |
402 | + | @Callable(bA) | |
403 | + | func stakedLandsByOwnerInfoREADONLY (bH) = if ((bH == "")) | |
582 | 404 | then throw("landOwnerAddress is required") | |
583 | 405 | else { | |
584 | - | let | |
585 | - | let | |
586 | - | then split_51C(value( | |
406 | + | let bI = getString(O, ab(bH)) | |
407 | + | let bJ = if (isDefined(bI)) | |
408 | + | then split_51C(value(bI), "_") | |
587 | 409 | else nil | |
588 | - | func | |
410 | + | func bK (aB,aa) = if ((aa == "")) | |
589 | 411 | then throw("landAssetId is required") | |
590 | 412 | else { | |
591 | - | let | |
592 | - | ( | |
413 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
414 | + | (aB :+ bp(aa, bH, bq)) | |
593 | 415 | } | |
594 | 416 | ||
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | func | |
600 | - | then | |
601 | - | else | |
417 | + | let aF = { | |
418 | + | let aG = bJ | |
419 | + | let aH = size(aG) | |
420 | + | let aI = nil | |
421 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
422 | + | then aK | |
423 | + | else bK(aK, aG[aL]) | |
602 | 424 | ||
603 | - | func | |
604 | - | then | |
425 | + | func aM (aK,aL) = if ((aL >= aH)) | |
426 | + | then aK | |
605 | 427 | else throw("List size exceeds 40") | |
606 | 428 | ||
607 | - | | |
429 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
608 | 430 | } | |
609 | - | $Tuple2(nil, | |
431 | + | $Tuple2(nil, aF) | |
610 | 432 | } | |
611 | 433 | ||
612 | 434 | ||
613 | 435 | ||
614 | - | @Callable( | |
615 | - | func landsByIdsInfoREADONLY ( | |
616 | - | func | |
436 | + | @Callable(bA) | |
437 | + | func landsByIdsInfoREADONLY (bL) = { | |
438 | + | func bK (aB,aa) = if ((aa == "")) | |
617 | 439 | then throw("landAssetId is required") | |
618 | 440 | else { | |
619 | - | let | |
620 | - | let | |
621 | - | then value(getString( | |
441 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
442 | + | let bn = if ((bq > 0)) | |
443 | + | then value(getString(O, S(aa))) | |
622 | 444 | else "" | |
623 | - | ( | |
445 | + | (aB :+ bp(aa, bn, bq)) | |
624 | 446 | } | |
625 | 447 | ||
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | func | |
631 | - | then | |
632 | - | else | |
448 | + | let aF = { | |
449 | + | let aG = bL | |
450 | + | let aH = size(aG) | |
451 | + | let aI = nil | |
452 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
453 | + | then aK | |
454 | + | else bK(aK, aG[aL]) | |
633 | 455 | ||
634 | - | func | |
635 | - | then | |
456 | + | func aM (aK,aL) = if ((aL >= aH)) | |
457 | + | then aK | |
636 | 458 | else throw("List size exceeds 40") | |
637 | 459 | ||
638 | - | | |
460 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
639 | 461 | } | |
640 | - | $Tuple2(nil, | |
462 | + | $Tuple2(nil, aF) | |
641 | 463 | } | |
642 | 464 | ||
643 | 465 | ||
644 | 466 | ||
645 | - | @Callable( | |
646 | - | func warehouseOrderByAssetIdInfoREADONLY ( | |
467 | + | @Callable(bA) | |
468 | + | func warehouseOrderByAssetIdInfoREADONLY (aa) = if ((aa == "")) | |
647 | 469 | then throw("landAssetId is required") | |
648 | 470 | else { | |
649 | - | let | |
650 | - | let | |
651 | - | then value(getString( | |
471 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
472 | + | let bn = if ((bq > 0)) | |
473 | + | then value(getString(O, S(aa))) | |
652 | 474 | else "" | |
653 | - | $Tuple2(nil, | |
475 | + | $Tuple2(nil, bz(aa, bn)) | |
654 | 476 | } | |
655 | 477 | ||
656 | 478 | ||
657 | 479 | ||
658 | - | @Callable( | |
659 | - | func ordersByLandIdsInfoREADONLY ( | |
660 | - | func | |
480 | + | @Callable(bA) | |
481 | + | func ordersByLandIdsInfoREADONLY (bL) = { | |
482 | + | func bK (aB,aa) = if ((aa == "")) | |
661 | 483 | then throw("landAssetId is required") | |
662 | 484 | else { | |
663 | - | let | |
664 | - | let | |
665 | - | then value(getString( | |
485 | + | let bq = valueOrElse(getInteger(O, V(aa)), -1) | |
486 | + | let bn = if ((bq > 0)) | |
487 | + | then value(getString(O, S(aa))) | |
666 | 488 | else "" | |
667 | - | ( | |
489 | + | (aB :+ bz(aa, bn)) | |
668 | 490 | } | |
669 | 491 | ||
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | func | |
675 | - | then | |
676 | - | else | |
492 | + | let aF = { | |
493 | + | let aG = bL | |
494 | + | let aH = size(aG) | |
495 | + | let aI = nil | |
496 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
497 | + | then aK | |
498 | + | else bK(aK, aG[aL]) | |
677 | 499 | ||
678 | - | func | |
679 | - | then | |
500 | + | func aM (aK,aL) = if ((aL >= aH)) | |
501 | + | then aK | |
680 | 502 | else throw("List size exceeds 40") | |
681 | 503 | ||
682 | - | | |
504 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
683 | 505 | } | |
684 | - | $Tuple2(nil, | |
506 | + | $Tuple2(nil, aF) | |
685 | 507 | } | |
686 | 508 | ||
687 | 509 | ||
688 | 510 | ||
689 | - | @Callable( | |
690 | - | func cancelWarehouseOrders ( | |
511 | + | @Callable(bA) | |
512 | + | func cancelWarehouseOrders (bL) = if ((bA.caller != this)) | |
691 | 513 | then throw("permission denied") | |
692 | 514 | else { | |
693 | - | let | |
694 | - | if (if (!(isDefined( | |
515 | + | let bM = getBoolean(O, am()) | |
516 | + | if (if (!(isDefined(bM))) | |
695 | 517 | then true | |
696 | - | else (value( | |
518 | + | else (value(bM) == false)) | |
697 | 519 | then throw("Contracts should be blocked before canceling orders") | |
698 | 520 | else { | |
699 | - | func | |
521 | + | func bK (br,aa) = if ((aa == "")) | |
700 | 522 | then throw("landAssetId is required") | |
701 | 523 | else { | |
702 | - | let | |
703 | - | if (if ( | |
524 | + | let bN = at(invoke(P, "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:", aa], nil)) | |
525 | + | if (if (br) | |
704 | 526 | then true | |
705 | - | else | |
706 | - | then !(if ( | |
707 | - | then | |
527 | + | else bN) | |
528 | + | then !(if (br) | |
529 | + | then bN | |
708 | 530 | else false) | |
709 | 531 | else false | |
710 | 532 | } | |
711 | 533 | ||
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | func | |
717 | - | then | |
718 | - | else | |
534 | + | let aF = { | |
535 | + | let aG = bL | |
536 | + | let aH = size(aG) | |
537 | + | let aI = false | |
538 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
539 | + | then aK | |
540 | + | else bK(aK, aG[aL]) | |
719 | 541 | ||
720 | - | func | |
721 | - | then | |
542 | + | func aM (aK,aL) = if ((aL >= aH)) | |
543 | + | then aK | |
722 | 544 | else throw("List size exceeds 30") | |
723 | 545 | ||
724 | - | | |
546 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
725 | 547 | } | |
726 | - | $Tuple2(nil, | |
548 | + | $Tuple2(nil, aF) | |
727 | 549 | } | |
728 | 550 | } | |
729 | 551 | ||
730 | 552 | ||
731 | 553 | ||
732 | - | @Callable( | |
733 | - | func fixWarehouseFormats ( | |
554 | + | @Callable(bA) | |
555 | + | func fixWarehouseFormats (bL) = if ((bA.caller != this)) | |
734 | 556 | then throw("permission denied") | |
735 | 557 | else { | |
736 | - | func | |
558 | + | func bK (aB,aa) = if ((aa == "")) | |
737 | 559 | then throw("landAssetId is required") | |
738 | - | else ( | |
560 | + | else (aB + size(aq(invoke(O, "fixWarehouseFormat", [aa], nil)))) | |
739 | 561 | ||
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | func | |
745 | - | then | |
746 | - | else | |
562 | + | let aF = { | |
563 | + | let aG = bL | |
564 | + | let aH = size(aG) | |
565 | + | let aI = 0 | |
566 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
567 | + | then aK | |
568 | + | else bK(aK, aG[aL]) | |
747 | 569 | ||
748 | - | func | |
749 | - | then | |
570 | + | func aM (aK,aL) = if ((aL >= aH)) | |
571 | + | then aK | |
750 | 572 | else throw("List size exceeds 25") | |
751 | 573 | ||
752 | - | | |
574 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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) | |
753 | 575 | } | |
754 | - | $Tuple2(nil, | |
576 | + | $Tuple2(nil, aF) | |
755 | 577 | } | |
756 | 578 | ||
757 | 579 | ||
758 | 580 | ||
759 | - | @Callable( | |
760 | - | func sendUsdtPrize ( | |
581 | + | @Callable(bA) | |
582 | + | func sendUsdtPrize (bF) = if ((bA.caller != O)) | |
761 | 583 | then throw("permission denied") | |
762 | 584 | else { | |
763 | - | let | |
764 | - | $Tuple2([ScriptTransfer(addressFromStringValue( | |
585 | + | let bO = fraction(assetBalance(this, b), aw, g) | |
586 | + | $Tuple2([ScriptTransfer(addressFromStringValue(bF), bO, b)], bO) | |
765 | 587 | } | |
766 | 588 | ||
767 | 589 | ||
768 | 590 | ||
769 | - | @Callable( | |
591 | + | @Callable(bA) | |
770 | 592 | func getEmergencyServiceDataREADONLY () = { | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | then ( | |
593 | + | func bP (aB,bQ) = { | |
594 | + | let bR = aB._2 | |
595 | + | let bS = split(bQ, "_") | |
596 | + | let bT = parseIntValue(bS[w]) | |
597 | + | let bU = if ((bR == 0)) | |
598 | + | then (s * bT) | |
777 | 599 | else 0 | |
778 | - | let | |
779 | - | func | |
600 | + | let bV = valueOrElse(getInteger(P, ao(bR)), 0) | |
601 | + | func bW (bX,bY) = (bX + parseIntValue(bS[bY])) | |
780 | 602 | ||
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | func | |
786 | - | then | |
787 | - | else | |
603 | + | let bZ = { | |
604 | + | let aG = [0, 1, 2, 3, 4, 5] | |
605 | + | let aH = size(aG) | |
606 | + | let aI = 0 | |
607 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
608 | + | then aK | |
609 | + | else bW(aK, aG[aL]) | |
788 | 610 | ||
789 | - | func | |
790 | - | then | |
611 | + | func aM (aK,aL) = if ((aL >= aH)) | |
612 | + | then aK | |
791 | 613 | else throw("List size exceeds 6") | |
792 | 614 | ||
793 | - | | |
615 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6) | |
794 | 616 | } | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | $Tuple2(( | |
617 | + | let ca = fraction((bZ * t), r, (bT * 10)) | |
618 | + | let cb = fraction((bZ * u), r, (bT * 10)) | |
619 | + | let cc = makeString([toString(bU), toString(bV), toString(ca), toString(cb)], "_") | |
620 | + | $Tuple2((aB._1 :+ cc), (bR + 1)) | |
799 | 621 | } | |
800 | 622 | ||
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | func | |
805 | - | then | |
806 | - | else | |
623 | + | let as = makeString_2C(( let aG = v | |
624 | + | let aH = size(aG) | |
625 | + | let aI = $Tuple2(nil, 0) | |
626 | + | func aJ (aK,aL) = if ((aL >= aH)) | |
627 | + | then aK | |
628 | + | else bP(aK, aG[aL]) | |
807 | 629 | ||
808 | - | func | |
809 | - | then | |
630 | + | func aM (aK,aL) = if ((aL >= aH)) | |
631 | + | then aK | |
810 | 632 | else throw("List size exceeds 50") | |
811 | 633 | ||
812 | - | | |
813 | - | let | |
814 | - | $Tuple2(nil, | |
634 | + | aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 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, ":") | |
635 | + | let cd = ("%s%s__emergencyServiceData__" + as) | |
636 | + | $Tuple2(nil, cd) | |
815 | 637 | } | |
816 | 638 | ||
817 | 639 |
github/deemru/w8io/169f3d6 303.68 ms ◑