tx · YqnaqEPcV9BeUzUCQsyn7HJBvPwPvxc7ev5fbLyugUn 3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7: -0.01000000 Waves 2023.03.17 21:11 [2494347] smart account 3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7 > SELF 0.00000000 Waves
{ "type": 13, "id": "YqnaqEPcV9BeUzUCQsyn7HJBvPwPvxc7ev5fbLyugUn", "fee": 1000000, "feeAssetId": null, "timestamp": 1679076703655, "version": 2, "chainId": 84, "sender": "3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7", "senderPublicKey": "CrHxACS7bWTh8cgmgqstvybmgMqR9KtDryGFt5svZhBW", "proofs": [ "NqhmFY5oc1TZ8EfFjyj7vcAUFmGMFHcn9Mz71J9hxQSw9rmzA84ZVL9aG6JsD8vUy6Pebmab3PA3YC36XiLdvmt" ], "script": "base64:BgIkCAISBwoFGBgBAQgSBAoCGBgSBQoDCBgYEgQKAggIEgQKAggIFQAIa0pzb25SZXMCB2pzb25SZXMABXF1b3RlCQCwCQEBASIBCW1ha2VGaWVsZAEJbmV4dFZhbHVlCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIFBXF1b3RlCAUJbmV4dFZhbHVlAl8xBQVxdW90ZQIBOgUFcXVvdGUIBQluZXh0VmFsdWUCXzIFBXF1b3RlAgEsAQ9yZWR1Y2VyTWFrZUpTT04CBWFjY3VtCW5leHRWYWx1ZQkArAICBQVhY2N1bQkBCW1ha2VGaWVsZAEFCW5leHRWYWx1ZQEPaXRlcmF0ZU1ha2VKU09OAwZwYXJhbXMDcmVzBmxlbmd0aAMJAAACBQZsZW5ndGgAAAkAAgECDUVtcHR5ICBwYXJhbXMDCQAAAgUGbGVuZ3RoAAEKAAIkbAUGcGFyYW1zCgACJHMJAJADAQUCJGwKAAUkYWNjMAUDcmVzCgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQ9yZWR1Y2VyTWFrZU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AoCBQNuaWwFA3JlcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQ1yZWFkQnlKU09OS2V5AgRqc29uA2tleQQKdmFsdWVCeUtleQkBEXJlYWRCeUtleUludGVybmFsAgUEanNvbgUDa2V5CQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIKdmFsdWVCeUtleQUKdmFsdWVCeUtleQUDbmlsBQp2YWx1ZUJ5S2V5AWkBD2RlbGV0ZUJ5SlNPTktleQIEanNvbgNrZXkEDSR0MDEyOTE5MTMyNzAJARNkZWxldGVCeUtleUludGVybmFsAgUEanNvbgUDa2V5BBFkZWxldGVkVmFsdWVCeUtleQgFDSR0MDEyOTE5MTMyNzACXzEEB25ld0pzb24IBQ0kdDAxMjkxOTEzMjcwAl8yCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIMZGVsZXRlZFZhbHVlBRFkZWxldGVkVmFsdWVCeUtleQkAzAgCCQELU3RyaW5nRW50cnkCBQhrSnNvblJlcwUHbmV3SnNvbgUDbmlsCQCUCgIFEWRlbGV0ZWRWYWx1ZUJ5S2V5BQduZXdKc29uANedF9U=", "height": 2494347, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2j51bHgAjCD2SZpYmUpJPKZbnWBmJmQxhSeYcsTNPLGb Next: HLUgGNAPKgj69aEY19sqfVVBxvkudqAmCwmHQMDGCHvf Diff:
Old | New | Differences | |
---|---|---|---|
254 | 254 | func ac (ad,ae) = { | |
255 | 255 | let af = size(ae) | |
256 | 256 | let ag = value(indexOf(ad, ae)) | |
257 | - | let ah = $Tuple2(valueOrElse(indexOf(ad, ",", ag), value(indexOf(ad, "}", ag))), 3) | |
258 | - | let ai = ah._1 | |
259 | - | let aj = ah._2 | |
260 | - | $Tuple4(af, ag, ai, aj) | |
257 | + | let ah = valueOrElse(indexOf(ad, ",", ag), value(indexOf(ad, "}", ag))) | |
258 | + | $Tuple4(af, ag, ah, 3) | |
261 | 259 | } | |
262 | 260 | ||
263 | 261 | ||
264 | - | func | |
265 | - | let | |
266 | - | let af = | |
267 | - | let ag = | |
268 | - | let | |
269 | - | let | |
270 | - | drop(take(ad, ( | |
262 | + | func ai (ad,ae) = { | |
263 | + | let aj = ac(ad, ae) | |
264 | + | let af = aj._1 | |
265 | + | let ag = aj._2 | |
266 | + | let ah = aj._3 | |
267 | + | let ak = aj._4 | |
268 | + | drop(take(ad, (ah - 1)), ((ag + af) + ak)) | |
271 | 269 | } | |
272 | 270 | ||
273 | 271 | ||
274 | - | func | |
275 | - | let | |
276 | - | let af = | |
277 | - | let ag = | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | then (take(ad, (ag - 2)) + drop(ad, | |
283 | - | else (take(ad, (ag - 1)) + drop(ad, ( | |
284 | - | $Tuple2( | |
272 | + | func al (ad,ae) = { | |
273 | + | let am = ac(ad, ae) | |
274 | + | let af = am._1 | |
275 | + | let ag = am._2 | |
276 | + | let ah = am._3 | |
277 | + | let ak = am._4 | |
278 | + | let an = drop(take(ad, (ah - 1)), ((ag + af) + ak)) | |
279 | + | let ao = if (((size(ad) - ah) == 1)) | |
280 | + | then (take(ad, (ag - 2)) + drop(ad, ah)) | |
281 | + | else (take(ad, (ag - 1)) + drop(ad, (ah + 1))) | |
282 | + | $Tuple2(an, ao) | |
285 | 283 | } | |
286 | 284 | ||
287 | 285 | ||
288 | - | @Callable( | |
289 | - | func makeJSONInternal (ar,as,at | |
286 | + | @Callable(ap) | |
287 | + | func makeJSONInternal (aq,ar,as,at,i) = valueOrElse(N(ap.caller), if ((as > 0)) | |
290 | 288 | then { | |
291 | - | let | |
292 | - | let aa = | |
293 | - | let | |
294 | - | let | |
295 | - | let ab = | |
296 | - | let | |
289 | + | let au = r(aq) | |
290 | + | let aa = au._1 | |
291 | + | let av = au._2 | |
292 | + | let aw = r(ar) | |
293 | + | let ab = aw._1 | |
294 | + | let ax = aw._2 | |
297 | 295 | let h = Z(aa, ab, 10) | |
298 | - | let | |
299 | - | let | |
300 | - | if (( | |
301 | - | then $Tuple2(nil, | |
296 | + | let ay = g(h, i, 10) | |
297 | + | let az = invoke(this, "makeJSONInternal", [av, ax, (as - 1), at, ay], nil) | |
298 | + | if ((az == az)) | |
299 | + | then $Tuple2(nil, az) | |
302 | 300 | else throw("Strict value is not equal to itself.") | |
303 | 301 | } | |
304 | - | else if (( | |
302 | + | else if ((at != 0)) | |
305 | 303 | then { | |
306 | - | let h = Z(ar, | |
307 | - | let | |
308 | - | $Tuple2(nil, (("{" + dropRight( | |
304 | + | let h = Z(aq, ar, at) | |
305 | + | let ay = g(h, i, at) | |
306 | + | $Tuple2(nil, (("{" + dropRight(ay, 1)) + "}")) | |
309 | 307 | } | |
310 | 308 | else $Tuple2(nil, (("{" + dropRight(i, 1)) + "}"))) | |
311 | 309 | ||
312 | 310 | ||
313 | 311 | ||
314 | - | @Callable( | |
315 | - | func makeJSON (ar | |
312 | + | @Callable(ap) | |
313 | + | func makeJSON (aq,ar) = if ((size(aq) != size(ar))) | |
316 | 314 | then throw("ArrayKeys and ArrayValues length must be equal") | |
317 | 315 | else { | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let i = invoke(this, "makeJSONInternal", [ar, as, at, | |
316 | + | let aA = size(aq) | |
317 | + | let as = fraction(1, aA, 10) | |
318 | + | let at = (aA % 10) | |
319 | + | let i = invoke(this, "makeJSONInternal", [aq, ar, as, at, ""], nil) | |
322 | 320 | if ((i == i)) | |
323 | 321 | then $Tuple2(nil, i) | |
324 | 322 | else throw("Strict value is not equal to itself.") | |
326 | 324 | ||
327 | 325 | ||
328 | 326 | ||
329 | - | @Callable( | |
330 | - | func addToJSON (ad,ar | |
327 | + | @Callable(ap) | |
328 | + | func addToJSON (ad,aq,ar) = if ((size(aq) != size(ar))) | |
331 | 329 | then throw("ArrayKeys and ArrayValues length must be equal") | |
332 | 330 | else { | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let i = invoke(this, "makeJSONInternal", [ar, as, at | |
331 | + | let aA = size(aq) | |
332 | + | let as = fraction(1, aA, 10) | |
333 | + | let at = (aA % 10) | |
334 | + | let i = invoke(this, "makeJSONInternal", [aq, ar, as, at, (drop(dropRight(ad, 1), 1) + ",")], nil) | |
337 | 335 | if ((i == i)) | |
338 | 336 | then $Tuple2(nil, i) | |
339 | 337 | else throw("Strict value is not equal to itself.") | |
341 | 339 | ||
342 | 340 | ||
343 | 341 | ||
344 | - | @Callable( | |
342 | + | @Callable(ap) | |
345 | 343 | func readByJSONKey (ad,ae) = { | |
346 | - | let | |
347 | - | $Tuple2([StringEntry("valueByKey", | |
344 | + | let aB = ai(ad, ae) | |
345 | + | $Tuple2([StringEntry("valueByKey", aB)], aB) | |
348 | 346 | } | |
349 | 347 | ||
350 | 348 | ||
351 | 349 | ||
352 | - | @Callable( | |
350 | + | @Callable(ap) | |
353 | 351 | func deleteByJSONKey (ad,ae) = { | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple2([StringEntry("deletedValue", | |
352 | + | let aC = al(ad, ae) | |
353 | + | let aD = aC._1 | |
354 | + | let ao = aC._2 | |
355 | + | $Tuple2([StringEntry("deletedValue", aD), StringEntry(a, ao)], $Tuple2(aD, ao)) | |
358 | 356 | } | |
359 | 357 | ||
360 | 358 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "jsonRes" | |
5 | 5 | ||
6 | 6 | let b = toUtf8String(base58'b') | |
7 | 7 | ||
8 | 8 | func c (d) = (((((((b + d._1) + b) + ":") + b) + d._2) + b) + ",") | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (f,d) = (f + c(d)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func g (h,i,j) = if ((j == 0)) | |
15 | 15 | then throw("Empty params") | |
16 | 16 | else if ((j == 1)) | |
17 | 17 | then { | |
18 | 18 | let k = h | |
19 | 19 | let l = size(k) | |
20 | 20 | let m = i | |
21 | 21 | func n (o,p) = if ((p >= l)) | |
22 | 22 | then o | |
23 | 23 | else e(o, k[p]) | |
24 | 24 | ||
25 | 25 | func q (o,p) = if ((p >= l)) | |
26 | 26 | then o | |
27 | 27 | else throw("List size exceeds 1") | |
28 | 28 | ||
29 | 29 | q(n(m, 0), 1) | |
30 | 30 | } | |
31 | 31 | else if ((j == 2)) | |
32 | 32 | then { | |
33 | 33 | let k = h | |
34 | 34 | let l = size(k) | |
35 | 35 | let m = i | |
36 | 36 | func n (o,p) = if ((p >= l)) | |
37 | 37 | then o | |
38 | 38 | else e(o, k[p]) | |
39 | 39 | ||
40 | 40 | func q (o,p) = if ((p >= l)) | |
41 | 41 | then o | |
42 | 42 | else throw("List size exceeds 2") | |
43 | 43 | ||
44 | 44 | q(n(n(m, 0), 1), 2) | |
45 | 45 | } | |
46 | 46 | else if ((j == 3)) | |
47 | 47 | then { | |
48 | 48 | let k = h | |
49 | 49 | let l = size(k) | |
50 | 50 | let m = i | |
51 | 51 | func n (o,p) = if ((p >= l)) | |
52 | 52 | then o | |
53 | 53 | else e(o, k[p]) | |
54 | 54 | ||
55 | 55 | func q (o,p) = if ((p >= l)) | |
56 | 56 | then o | |
57 | 57 | else throw("List size exceeds 3") | |
58 | 58 | ||
59 | 59 | q(n(n(n(m, 0), 1), 2), 3) | |
60 | 60 | } | |
61 | 61 | else if ((j == 4)) | |
62 | 62 | then { | |
63 | 63 | let k = h | |
64 | 64 | let l = size(k) | |
65 | 65 | let m = i | |
66 | 66 | func n (o,p) = if ((p >= l)) | |
67 | 67 | then o | |
68 | 68 | else e(o, k[p]) | |
69 | 69 | ||
70 | 70 | func q (o,p) = if ((p >= l)) | |
71 | 71 | then o | |
72 | 72 | else throw("List size exceeds 4") | |
73 | 73 | ||
74 | 74 | q(n(n(n(n(m, 0), 1), 2), 3), 4) | |
75 | 75 | } | |
76 | 76 | else if ((j == 5)) | |
77 | 77 | then { | |
78 | 78 | let k = h | |
79 | 79 | let l = size(k) | |
80 | 80 | let m = i | |
81 | 81 | func n (o,p) = if ((p >= l)) | |
82 | 82 | then o | |
83 | 83 | else e(o, k[p]) | |
84 | 84 | ||
85 | 85 | func q (o,p) = if ((p >= l)) | |
86 | 86 | then o | |
87 | 87 | else throw("List size exceeds 5") | |
88 | 88 | ||
89 | 89 | q(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5) | |
90 | 90 | } | |
91 | 91 | else if ((j == 6)) | |
92 | 92 | then { | |
93 | 93 | let k = h | |
94 | 94 | let l = size(k) | |
95 | 95 | let m = i | |
96 | 96 | func n (o,p) = if ((p >= l)) | |
97 | 97 | then o | |
98 | 98 | else e(o, k[p]) | |
99 | 99 | ||
100 | 100 | func q (o,p) = if ((p >= l)) | |
101 | 101 | then o | |
102 | 102 | else throw("List size exceeds 6") | |
103 | 103 | ||
104 | 104 | q(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6) | |
105 | 105 | } | |
106 | 106 | else if ((j == 7)) | |
107 | 107 | then { | |
108 | 108 | let k = h | |
109 | 109 | let l = size(k) | |
110 | 110 | let m = i | |
111 | 111 | func n (o,p) = if ((p >= l)) | |
112 | 112 | then o | |
113 | 113 | else e(o, k[p]) | |
114 | 114 | ||
115 | 115 | func q (o,p) = if ((p >= l)) | |
116 | 116 | then o | |
117 | 117 | else throw("List size exceeds 7") | |
118 | 118 | ||
119 | 119 | q(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7) | |
120 | 120 | } | |
121 | 121 | else if ((j == 8)) | |
122 | 122 | then { | |
123 | 123 | let k = h | |
124 | 124 | let l = size(k) | |
125 | 125 | let m = i | |
126 | 126 | func n (o,p) = if ((p >= l)) | |
127 | 127 | then o | |
128 | 128 | else e(o, k[p]) | |
129 | 129 | ||
130 | 130 | func q (o,p) = if ((p >= l)) | |
131 | 131 | then o | |
132 | 132 | else throw("List size exceeds 8") | |
133 | 133 | ||
134 | 134 | q(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
135 | 135 | } | |
136 | 136 | else if ((j == 9)) | |
137 | 137 | then { | |
138 | 138 | let k = h | |
139 | 139 | let l = size(k) | |
140 | 140 | let m = i | |
141 | 141 | func n (o,p) = if ((p >= l)) | |
142 | 142 | then o | |
143 | 143 | else e(o, k[p]) | |
144 | 144 | ||
145 | 145 | func q (o,p) = if ((p >= l)) | |
146 | 146 | then o | |
147 | 147 | else throw("List size exceeds 9") | |
148 | 148 | ||
149 | 149 | q(n(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
150 | 150 | } | |
151 | 151 | else if ((j == 10)) | |
152 | 152 | then { | |
153 | 153 | let k = h | |
154 | 154 | let l = size(k) | |
155 | 155 | let m = i | |
156 | 156 | func n (o,p) = if ((p >= l)) | |
157 | 157 | then o | |
158 | 158 | else e(o, k[p]) | |
159 | 159 | ||
160 | 160 | func q (o,p) = if ((p >= l)) | |
161 | 161 | then o | |
162 | 162 | else throw("List size exceeds 10") | |
163 | 163 | ||
164 | 164 | q(n(n(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
165 | 165 | } | |
166 | 166 | else throw("The max number of parameters exceeded") | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func r (s) = { | |
170 | 170 | let t = s[0] | |
171 | 171 | let u = s[1] | |
172 | 172 | let v = s[2] | |
173 | 173 | let w = s[3] | |
174 | 174 | let x = s[4] | |
175 | 175 | let y = s[5] | |
176 | 176 | let z = s[6] | |
177 | 177 | let A = s[7] | |
178 | 178 | let B = s[8] | |
179 | 179 | let C = s[9] | |
180 | 180 | let D = removeByIndex(s, 0) | |
181 | 181 | let E = removeByIndex(D, 0) | |
182 | 182 | let F = removeByIndex(E, 0) | |
183 | 183 | let G = removeByIndex(F, 0) | |
184 | 184 | let H = removeByIndex(G, 0) | |
185 | 185 | let I = removeByIndex(H, 0) | |
186 | 186 | let J = removeByIndex(I, 0) | |
187 | 187 | let K = removeByIndex(J, 0) | |
188 | 188 | let L = removeByIndex(K, 0) | |
189 | 189 | let M = removeByIndex(L, 0) | |
190 | 190 | $Tuple2([t, u, v, w, x, y, z, A, B, C], M) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func N (O) = if ((O == this)) | |
195 | 195 | then unit | |
196 | 196 | else throw("Only internal call") | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func P (s,F) = [$Tuple2(s[0], F[0])] | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func Q (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1])] | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func R (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2])] | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func S (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3])] | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func T (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4])] | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func U (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5])] | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func V (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6])] | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func W (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6]), $Tuple2(s[7], F[7])] | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func X (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6]), $Tuple2(s[7], F[7]), $Tuple2(s[8], F[8])] | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func Y (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6]), $Tuple2(s[7], F[7]), $Tuple2(s[8], F[8]), $Tuple2(s[9], F[9])] | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func Z (aa,ab,j) = if ((j == 0)) | |
230 | 230 | then throw("Empty params") | |
231 | 231 | else if ((j == 1)) | |
232 | 232 | then P(aa, ab) | |
233 | 233 | else if ((j == 2)) | |
234 | 234 | then Q(aa, ab) | |
235 | 235 | else if ((j == 3)) | |
236 | 236 | then R(aa, ab) | |
237 | 237 | else if ((j == 4)) | |
238 | 238 | then S(aa, ab) | |
239 | 239 | else if ((j == 5)) | |
240 | 240 | then T(aa, ab) | |
241 | 241 | else if ((j == 6)) | |
242 | 242 | then U(aa, ab) | |
243 | 243 | else if ((j == 7)) | |
244 | 244 | then V(aa, ab) | |
245 | 245 | else if ((j == 8)) | |
246 | 246 | then W(aa, ab) | |
247 | 247 | else if ((j == 9)) | |
248 | 248 | then X(aa, ab) | |
249 | 249 | else if ((j == 10)) | |
250 | 250 | then Y(aa, ab) | |
251 | 251 | else throw("Max number of parameters exceeded") | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func ac (ad,ae) = { | |
255 | 255 | let af = size(ae) | |
256 | 256 | let ag = value(indexOf(ad, ae)) | |
257 | - | let ah = $Tuple2(valueOrElse(indexOf(ad, ",", ag), value(indexOf(ad, "}", ag))), 3) | |
258 | - | let ai = ah._1 | |
259 | - | let aj = ah._2 | |
260 | - | $Tuple4(af, ag, ai, aj) | |
257 | + | let ah = valueOrElse(indexOf(ad, ",", ag), value(indexOf(ad, "}", ag))) | |
258 | + | $Tuple4(af, ag, ah, 3) | |
261 | 259 | } | |
262 | 260 | ||
263 | 261 | ||
264 | - | func | |
265 | - | let | |
266 | - | let af = | |
267 | - | let ag = | |
268 | - | let | |
269 | - | let | |
270 | - | drop(take(ad, ( | |
262 | + | func ai (ad,ae) = { | |
263 | + | let aj = ac(ad, ae) | |
264 | + | let af = aj._1 | |
265 | + | let ag = aj._2 | |
266 | + | let ah = aj._3 | |
267 | + | let ak = aj._4 | |
268 | + | drop(take(ad, (ah - 1)), ((ag + af) + ak)) | |
271 | 269 | } | |
272 | 270 | ||
273 | 271 | ||
274 | - | func | |
275 | - | let | |
276 | - | let af = | |
277 | - | let ag = | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | then (take(ad, (ag - 2)) + drop(ad, | |
283 | - | else (take(ad, (ag - 1)) + drop(ad, ( | |
284 | - | $Tuple2( | |
272 | + | func al (ad,ae) = { | |
273 | + | let am = ac(ad, ae) | |
274 | + | let af = am._1 | |
275 | + | let ag = am._2 | |
276 | + | let ah = am._3 | |
277 | + | let ak = am._4 | |
278 | + | let an = drop(take(ad, (ah - 1)), ((ag + af) + ak)) | |
279 | + | let ao = if (((size(ad) - ah) == 1)) | |
280 | + | then (take(ad, (ag - 2)) + drop(ad, ah)) | |
281 | + | else (take(ad, (ag - 1)) + drop(ad, (ah + 1))) | |
282 | + | $Tuple2(an, ao) | |
285 | 283 | } | |
286 | 284 | ||
287 | 285 | ||
288 | - | @Callable( | |
289 | - | func makeJSONInternal (ar,as,at | |
286 | + | @Callable(ap) | |
287 | + | func makeJSONInternal (aq,ar,as,at,i) = valueOrElse(N(ap.caller), if ((as > 0)) | |
290 | 288 | then { | |
291 | - | let | |
292 | - | let aa = | |
293 | - | let | |
294 | - | let | |
295 | - | let ab = | |
296 | - | let | |
289 | + | let au = r(aq) | |
290 | + | let aa = au._1 | |
291 | + | let av = au._2 | |
292 | + | let aw = r(ar) | |
293 | + | let ab = aw._1 | |
294 | + | let ax = aw._2 | |
297 | 295 | let h = Z(aa, ab, 10) | |
298 | - | let | |
299 | - | let | |
300 | - | if (( | |
301 | - | then $Tuple2(nil, | |
296 | + | let ay = g(h, i, 10) | |
297 | + | let az = invoke(this, "makeJSONInternal", [av, ax, (as - 1), at, ay], nil) | |
298 | + | if ((az == az)) | |
299 | + | then $Tuple2(nil, az) | |
302 | 300 | else throw("Strict value is not equal to itself.") | |
303 | 301 | } | |
304 | - | else if (( | |
302 | + | else if ((at != 0)) | |
305 | 303 | then { | |
306 | - | let h = Z(ar, | |
307 | - | let | |
308 | - | $Tuple2(nil, (("{" + dropRight( | |
304 | + | let h = Z(aq, ar, at) | |
305 | + | let ay = g(h, i, at) | |
306 | + | $Tuple2(nil, (("{" + dropRight(ay, 1)) + "}")) | |
309 | 307 | } | |
310 | 308 | else $Tuple2(nil, (("{" + dropRight(i, 1)) + "}"))) | |
311 | 309 | ||
312 | 310 | ||
313 | 311 | ||
314 | - | @Callable( | |
315 | - | func makeJSON (ar | |
312 | + | @Callable(ap) | |
313 | + | func makeJSON (aq,ar) = if ((size(aq) != size(ar))) | |
316 | 314 | then throw("ArrayKeys and ArrayValues length must be equal") | |
317 | 315 | else { | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let i = invoke(this, "makeJSONInternal", [ar, as, at, | |
316 | + | let aA = size(aq) | |
317 | + | let as = fraction(1, aA, 10) | |
318 | + | let at = (aA % 10) | |
319 | + | let i = invoke(this, "makeJSONInternal", [aq, ar, as, at, ""], nil) | |
322 | 320 | if ((i == i)) | |
323 | 321 | then $Tuple2(nil, i) | |
324 | 322 | else throw("Strict value is not equal to itself.") | |
325 | 323 | } | |
326 | 324 | ||
327 | 325 | ||
328 | 326 | ||
329 | - | @Callable( | |
330 | - | func addToJSON (ad,ar | |
327 | + | @Callable(ap) | |
328 | + | func addToJSON (ad,aq,ar) = if ((size(aq) != size(ar))) | |
331 | 329 | then throw("ArrayKeys and ArrayValues length must be equal") | |
332 | 330 | else { | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let i = invoke(this, "makeJSONInternal", [ar, as, at | |
331 | + | let aA = size(aq) | |
332 | + | let as = fraction(1, aA, 10) | |
333 | + | let at = (aA % 10) | |
334 | + | let i = invoke(this, "makeJSONInternal", [aq, ar, as, at, (drop(dropRight(ad, 1), 1) + ",")], nil) | |
337 | 335 | if ((i == i)) | |
338 | 336 | then $Tuple2(nil, i) | |
339 | 337 | else throw("Strict value is not equal to itself.") | |
340 | 338 | } | |
341 | 339 | ||
342 | 340 | ||
343 | 341 | ||
344 | - | @Callable( | |
342 | + | @Callable(ap) | |
345 | 343 | func readByJSONKey (ad,ae) = { | |
346 | - | let | |
347 | - | $Tuple2([StringEntry("valueByKey", | |
344 | + | let aB = ai(ad, ae) | |
345 | + | $Tuple2([StringEntry("valueByKey", aB)], aB) | |
348 | 346 | } | |
349 | 347 | ||
350 | 348 | ||
351 | 349 | ||
352 | - | @Callable( | |
350 | + | @Callable(ap) | |
353 | 351 | func deleteByJSONKey (ad,ae) = { | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple2([StringEntry("deletedValue", | |
352 | + | let aC = al(ad, ae) | |
353 | + | let aD = aC._1 | |
354 | + | let ao = aC._2 | |
355 | + | $Tuple2([StringEntry("deletedValue", aD), StringEntry(a, ao)], $Tuple2(aD, ao)) | |
358 | 356 | } | |
359 | 357 | ||
360 | 358 |
github/deemru/w8io/169f3d6 127.97 ms ◑