tx · BLcVMsP9hQnpMEU4FEG4U8LA5kVtA4dtvPq3dLN9Hffd

3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7:  -0.01500000 Waves

2023.03.19 14:21 [2496824] smart account 3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7 > SELF 0.00000000 Waves

{ "type": 13, "id": "BLcVMsP9hQnpMEU4FEG4U8LA5kVtA4dtvPq3dLN9Hffd", "fee": 1500000, "feeAssetId": null, "timestamp": 1679224977873, "version": 2, "chainId": 84, "sender": "3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7", "senderPublicKey": "CrHxACS7bWTh8cgmgqstvybmgMqR9KtDryGFt5svZhBW", "proofs": [ "MVDBFG65k2B4qXbLezz3KNoaXbYwbvASagKaCuMWEfDJhUPhbdDBygytqe5fBLK94Ex6FY55hg1BLLYu4WzKiXu" ], "script": "base64:BgIkCAISBwoFGBgBAQgSBAoCGBgSBQoDCBgYEgQKAggIEgQKAggIGAAIa0pzb25SZXMCB2pzb25SZXMABXF1b3RlCQCwCQEBASIBCW1ha2VGaWVsZAEJbmV4dFZhbHVlAwcJAKwCAgkArAICCQCsAgIJAKwCAgkArAICBQVxdW90ZQgFCW5leHRWYWx1ZQJfMQUFcXVvdGUCAToIBQluZXh0VmFsdWUCXzICASwJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgUFcXVvdGUIBQluZXh0VmFsdWUCXzEFBXF1b3RlAgE6BQVxdW90ZQgFCW5leHRWYWx1ZQJfMgUFcXVvdGUCASwBD3JlZHVjZXJNYWtlSlNPTgIFYWNjdW0JbmV4dFZhbHVlCQCsAgIFBWFjY3VtCQEJbWFrZUZpZWxkAQUJbmV4dFZhbHVlAQ9pdGVyYXRlTWFrZUpTT04DBnBhcmFtcwNyZXMGbGVuZ3RoAwkAAAIFBmxlbmd0aAAACQACAQINRW1wdHkgIHBhcmFtcwMJAAACBQZsZW5ndGgAAQoAAiRsBQZwYXJhbXMKAAIk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AAoEA3JlcwkA/AcEBQR0aGlzAhBtYWtlSlNPTkludGVybmFsCQDMCAIFB2FycktleXMJAMwIAgUJYXJyVmFsdWVzCQDMCAIFD2l0ZXJhdGlvbnNDb3VudAkAzAgCBRBsYXN0SXRlcmF0aW9uTGVuCQDMCAIJAKwCAgkAsAICCQCzAgIFBGpzb24AAQABAgEsBQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAlAoCBQNuaWwFA3JlcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQ1yZWFkQnlKU09OS2V5AgRqc29uA2tleQQKdmFsdWVCeUtleQkBEXJlYWRCeUtleUludGVybmFsAgUEanNvbgUDa2V5CQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIKdmFsdWVCeUtleQUKdmFsdWVCeUtleQUDbmlsBQp2YWx1ZUJ5S2V5AWkBD2RlbGV0ZUJ5SlNPTktleQIEanNvbgNrZXkEDSR0MDE2NTE1MTY4NzQJARNkZWxldGVCeUtleUludGVybmFsAgUEanNvbgUDa2V5BBFkZWxldGVkVmFsdWVCeUtleQgFDSR0MDE2NTE1MTY4NzQCXzEEB25ld0pzb24IBQ0kdDAxNjUxNTE2ODc0Al8yCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIMZGVsZXRlZFZhbHVlBRFkZWxldGVkVmFsdWVCeUtleQkAzAgCCQELU3RyaW5nRW50cnkCBQhrSnNvblJlcwUHbmV3SnNvbgUDbmlsCQCUCgIFEWRlbGV0ZWRWYWx1ZUJ5S2V5BQduZXdKc29uALQMDRc=", "height": 2496824, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hmbug2Lh7e8Kw1XypSXzvTC9APpYxMxB7axa1LFHQ2ss Next: GTL2xHDPwwJYgNaiNU1p2mozUSJ5otV5cD8UYDAeE5MD Diff:
OldNewDifferences
261261 }
262262
263263
264+func reducerFindObjcetByKey (accum,next) = {
265+ let $t064546776 = accum
266+ let key = $t064546776._1
267+ let levelOn = $t064546776._2
268+ let currentLevelOn = $t064546776._3
269+ let startIndex = $t064546776._4
270+ let endIndex = $t064546776._5
271+ let currentIndex = $t064546776._6
272+ let end = $t064546776._7
273+ if (!(end))
274+ then {
275+ let keyValueList = split(next, ":")
276+ let leftBraceCount = (size(split(next, "{")) - 1)
277+ let rightBraceCount = (size(split(next, "}")) - 1)
278+ let nextCurrentCount = (leftBraceCount - rightBraceCount)
279+ let $t070297229 = if (if ((levelOn == currentLevelOn))
280+ then (keyValueList[0] == key)
281+ else false)
282+ then $Tuple2(currentIndex, true)
283+ else $Tuple2(0, false)
284+ let foundedStartIndex = $t070297229._1
285+ let foundedStart = $t070297229._2
286+ let $t072397435 = if (if ((levelOn == currentLevelOn))
287+ then (keyValueList[0] == key)
288+ else false)
289+ then $Tuple2(currentIndex, true)
290+ else $Tuple2(0, false)
291+ let foundedEndIndex = $t072397435._1
292+ let foundedEnd = $t072397435._2
293+ $Tuple7(key, levelOn, (currentLevelOn + nextCurrentCount), if (foundedStart)
294+ then foundedStartIndex
295+ else startIndex, if (foundedEnd)
296+ then foundedEndIndex
297+ else endIndex, (currentIndex + 1), if (foundedEnd)
298+ then foundedEnd
299+ else end)
300+ }
301+ else accum
302+ }
303+
304+
305+func reducerConcatList (accum,next) = {
306+ let $t078817942 = accum
307+ let result = $t078817942._1
308+ let currentIndex = $t078817942._2
309+ let startIndex = $t078817942._3
310+ let endIndex = $t078817942._4
311+ let end = $t078817942._5
312+ if (!(end))
313+ then {
314+ let newResult = if (if ((currentIndex >= startIndex))
315+ then (endIndex >= currentIndex)
316+ else false)
317+ then ((result + ",") + next)
318+ else result
319+ let newEnd = (currentIndex > endIndex)
320+ $Tuple5(newResult, (currentIndex + 1), startIndex, endIndex, newEnd)
321+ }
322+ else accum
323+ }
324+
325+
264326 func reducerTakeObject (accum,next) = {
265- let $t064426502 = accum
266- let result = $t064426502._1
267- let leftCount = $t064426502._2
268- let rightCount = $t064426502._3
269- let i = $t064426502._4
270- let iCount = $t064426502._5
271- let end = $t064426502._6
327+ let $t083808440 = accum
328+ let result = $t083808440._1
329+ let leftCount = $t083808440._2
330+ let rightCount = $t083808440._3
331+ let i = $t083808440._4
332+ let iCount = $t083808440._5
333+ let end = $t083808440._6
272334 if (if (!(end))
273335 then true
274336 else (iCount > i))
275337 then {
276- let $t065407297 = if (contains(next, "{"))
338+ let $t084789235 = if (contains(next, "{"))
277339 then {
278340 let _nextLeftCount = (size(split(next, "{")) - 1)
279341 $Tuple2(_nextLeftCount, 0)
284346 $Tuple2(0, _nextRightCount)
285347 }
286348 else $Tuple2(0, 0)
287- let nextLeftCount = $t065407297._1
288- let nextRightCount = $t065407297._2
349+ let nextLeftCount = $t084789235._1
350+ let nextRightCount = $t084789235._2
289351 let curentLeftCount = (leftCount + nextLeftCount)
290352 let currentRightCount = (rightCount + nextRightCount)
291353 if ((curentLeftCount == currentRightCount))
297359
298360
299361 func readByKeyInternal (json,key) = {
300- let $t078317947 = getStartAndEndIndexes(json, key)
301- let keyLen = $t078317947._1
302- let startIndex = $t078317947._2
303- let endIndex = $t078317947._3
362+ let $t097699885 = getStartAndEndIndexes(json, key)
363+ let keyLen = $t097699885._1
364+ let startIndex = $t097699885._2
365+ let endIndex = $t097699885._3
304366 drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
305367 }
306368
307369
308370 func deleteByKeyInternal (json,key) = {
309- let $t082288296 = getStartAndEndIndexes(json, key)
310- let keyLen = $t082288296._1
311- let startIndex = $t082288296._2
312- let endIndex = $t082288296._3
371+ let $t01016610234 = getStartAndEndIndexes(json, key)
372+ let keyLen = $t01016610234._1
373+ let startIndex = $t01016610234._2
374+ let endIndex = $t01016610234._3
313375 let rowValue = drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
314376 let jsonBody = dropRight(drop(json, 2), 2)
315377 let jsonList = split(jsonBody, ",")
328390
329391 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100))._1
330392 else rowValue
393+ let debugValue = ( let $l = jsonList
394+ let $s = size($l)
395+ let $acc0 = $Tuple5("", 0, 1, 13, false)
396+ func $f0_1 ($a,$i) = if (($i >= $s))
397+ then $a
398+ else reducerConcatList($a, $l[$i])
399+
400+ func $f0_2 ($a,$i) = if (($i >= $s))
401+ then $a
402+ else throw("List size exceeds 100")
403+
404+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100))._1
331405 let newJson = if (((size(json) - endIndex) == 1))
332406 then (take(json, (startIndex - 2)) + drop(json, endIndex))
333407 else (take(json, (startIndex - 1)) + drop(json, (endIndex + 1)))
334- $Tuple2(deletedValue, newJson)
408+ $Tuple2(debugValue, newJson)
335409 }
336410
337411
338412 @Callable(i)
339413 func makeJSONInternal (arrKeys,arrValues,iterationsCount,lastIterationLen,res) = valueOrElse(onlyInternal(i.caller), if ((iterationsCount > 0))
340414 then {
341- let $t097539918 = getPartAndTail(arrKeys)
342- let currentArrPartKeys = $t097539918._1
343- let arrTailKeys = $t097539918._2
344- let $t0992710045 = getPartAndTail(arrValues)
345- let currentArrPartValues = $t0992710045._1
346- let arrTailValues = $t0992710045._2
415+ let $t01180711972 = getPartAndTail(arrKeys)
416+ let currentArrPartKeys = $t01180711972._1
417+ let arrTailKeys = $t01180711972._2
418+ let $t01198112099 = getPartAndTail(arrValues)
419+ let currentArrPartValues = $t01198112099._1
420+ let arrTailValues = $t01198112099._2
347421 let params = prepareParams(currentArrPartKeys, currentArrPartValues, 10)
348422 let newString = iterateMakeJSON(params, res, 10)
349423 let result = invoke(this, "makeJSONInternal", [arrTailKeys, arrTailValues, (iterationsCount - 1), lastIterationLen, newString], nil)
401475
402476 @Callable(i)
403477 func deleteByJSONKey (json,key) = {
404- let $t01446114820 = deleteByKeyInternal(json, key)
405- let deletedValueByKey = $t01446114820._1
406- let newJson = $t01446114820._2
478+ let $t01651516874 = deleteByKeyInternal(json, key)
479+ let deletedValueByKey = $t01651516874._1
480+ let newJson = $t01651516874._2
407481 $Tuple2([StringEntry("deletedValue", deletedValueByKey), StringEntry(kJsonRes, newJson)], $Tuple2(deletedValueByKey, newJson))
408482 }
409483
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kJsonRes = "jsonRes"
55
66 let quote = toUtf8String(base58'b')
77
88 func makeField (nextValue) = if (false)
99 then (((((quote + nextValue._1) + quote) + ":") + nextValue._2) + ",")
1010 else (((((((quote + nextValue._1) + quote) + ":") + quote) + nextValue._2) + quote) + ",")
1111
1212
1313 func reducerMakeJSON (accum,nextValue) = (accum + makeField(nextValue))
1414
1515
1616 func iterateMakeJSON (params,res,length) = if ((length == 0))
1717 then throw("Empty params")
1818 else if ((length == 1))
1919 then {
2020 let $l = params
2121 let $s = size($l)
2222 let $acc0 = res
2323 func $f0_1 ($a,$i) = if (($i >= $s))
2424 then $a
2525 else reducerMakeJSON($a, $l[$i])
2626
2727 func $f0_2 ($a,$i) = if (($i >= $s))
2828 then $a
2929 else throw("List size exceeds 1")
3030
3131 $f0_2($f0_1($acc0, 0), 1)
3232 }
3333 else if ((length == 2))
3434 then {
3535 let $l = params
3636 let $s = size($l)
3737 let $acc0 = res
3838 func $f0_1 ($a,$i) = if (($i >= $s))
3939 then $a
4040 else reducerMakeJSON($a, $l[$i])
4141
4242 func $f0_2 ($a,$i) = if (($i >= $s))
4343 then $a
4444 else throw("List size exceeds 2")
4545
4646 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
4747 }
4848 else if ((length == 3))
4949 then {
5050 let $l = params
5151 let $s = size($l)
5252 let $acc0 = res
5353 func $f0_1 ($a,$i) = if (($i >= $s))
5454 then $a
5555 else reducerMakeJSON($a, $l[$i])
5656
5757 func $f0_2 ($a,$i) = if (($i >= $s))
5858 then $a
5959 else throw("List size exceeds 3")
6060
6161 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
6262 }
6363 else if ((length == 4))
6464 then {
6565 let $l = params
6666 let $s = size($l)
6767 let $acc0 = res
6868 func $f0_1 ($a,$i) = if (($i >= $s))
6969 then $a
7070 else reducerMakeJSON($a, $l[$i])
7171
7272 func $f0_2 ($a,$i) = if (($i >= $s))
7373 then $a
7474 else throw("List size exceeds 4")
7575
7676 $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
7777 }
7878 else if ((length == 5))
7979 then {
8080 let $l = params
8181 let $s = size($l)
8282 let $acc0 = res
8383 func $f0_1 ($a,$i) = if (($i >= $s))
8484 then $a
8585 else reducerMakeJSON($a, $l[$i])
8686
8787 func $f0_2 ($a,$i) = if (($i >= $s))
8888 then $a
8989 else throw("List size exceeds 5")
9090
9191 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
9292 }
9393 else if ((length == 6))
9494 then {
9595 let $l = params
9696 let $s = size($l)
9797 let $acc0 = res
9898 func $f0_1 ($a,$i) = if (($i >= $s))
9999 then $a
100100 else reducerMakeJSON($a, $l[$i])
101101
102102 func $f0_2 ($a,$i) = if (($i >= $s))
103103 then $a
104104 else throw("List size exceeds 6")
105105
106106 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
107107 }
108108 else if ((length == 7))
109109 then {
110110 let $l = params
111111 let $s = size($l)
112112 let $acc0 = res
113113 func $f0_1 ($a,$i) = if (($i >= $s))
114114 then $a
115115 else reducerMakeJSON($a, $l[$i])
116116
117117 func $f0_2 ($a,$i) = if (($i >= $s))
118118 then $a
119119 else throw("List size exceeds 7")
120120
121121 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7)
122122 }
123123 else if ((length == 8))
124124 then {
125125 let $l = params
126126 let $s = size($l)
127127 let $acc0 = res
128128 func $f0_1 ($a,$i) = if (($i >= $s))
129129 then $a
130130 else reducerMakeJSON($a, $l[$i])
131131
132132 func $f0_2 ($a,$i) = if (($i >= $s))
133133 then $a
134134 else throw("List size exceeds 8")
135135
136136 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
137137 }
138138 else if ((length == 9))
139139 then {
140140 let $l = params
141141 let $s = size($l)
142142 let $acc0 = res
143143 func $f0_1 ($a,$i) = if (($i >= $s))
144144 then $a
145145 else reducerMakeJSON($a, $l[$i])
146146
147147 func $f0_2 ($a,$i) = if (($i >= $s))
148148 then $a
149149 else throw("List size exceeds 9")
150150
151151 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9)
152152 }
153153 else if ((length == 10))
154154 then {
155155 let $l = params
156156 let $s = size($l)
157157 let $acc0 = res
158158 func $f0_1 ($a,$i) = if (($i >= $s))
159159 then $a
160160 else reducerMakeJSON($a, $l[$i])
161161
162162 func $f0_2 ($a,$i) = if (($i >= $s))
163163 then $a
164164 else throw("List size exceeds 10")
165165
166166 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
167167 }
168168 else throw("The max number of parameters exceeded")
169169
170170
171171 func getPartAndTail (arr) = {
172172 let el0 = arr[0]
173173 let el1 = arr[1]
174174 let el2 = arr[2]
175175 let el3 = arr[3]
176176 let el4 = arr[4]
177177 let el5 = arr[5]
178178 let el6 = arr[6]
179179 let el7 = arr[7]
180180 let el8 = arr[8]
181181 let el9 = arr[9]
182182 let arr0 = removeByIndex(arr, 0)
183183 let arr1 = removeByIndex(arr0, 0)
184184 let arr2 = removeByIndex(arr1, 0)
185185 let arr3 = removeByIndex(arr2, 0)
186186 let arr4 = removeByIndex(arr3, 0)
187187 let arr5 = removeByIndex(arr4, 0)
188188 let arr6 = removeByIndex(arr5, 0)
189189 let arr7 = removeByIndex(arr6, 0)
190190 let arr8 = removeByIndex(arr7, 0)
191191 let arr9 = removeByIndex(arr8, 0)
192192 $Tuple2([el0, el1, el2, el3, el4, el5, el6, el7, el8, el9], arr9)
193193 }
194194
195195
196196 func onlyInternal (caller) = if ((caller == this))
197197 then unit
198198 else throw("Only internal call")
199199
200200
201201 func prepare_1 (arr,arr2) = [$Tuple2(arr[0], arr2[0])]
202202
203203
204204 func prepare_2 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1])]
205205
206206
207207 func prepare_3 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2])]
208208
209209
210210 func prepare_4 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3])]
211211
212212
213213 func prepare_5 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4])]
214214
215215
216216 func prepare_6 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5])]
217217
218218
219219 func prepare_7 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6])]
220220
221221
222222 func prepare_8 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6]), $Tuple2(arr[7], arr2[7])]
223223
224224
225225 func prepare_9 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6]), $Tuple2(arr[7], arr2[7]), $Tuple2(arr[8], arr2[8])]
226226
227227
228228 func prepare_10 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6]), $Tuple2(arr[7], arr2[7]), $Tuple2(arr[8], arr2[8]), $Tuple2(arr[9], arr2[9])]
229229
230230
231231 func prepareParams (currentArrPartKeys,currentArrPartValues,length) = if ((length == 0))
232232 then throw("Empty params")
233233 else if ((length == 1))
234234 then prepare_1(currentArrPartKeys, currentArrPartValues)
235235 else if ((length == 2))
236236 then prepare_2(currentArrPartKeys, currentArrPartValues)
237237 else if ((length == 3))
238238 then prepare_3(currentArrPartKeys, currentArrPartValues)
239239 else if ((length == 4))
240240 then prepare_4(currentArrPartKeys, currentArrPartValues)
241241 else if ((length == 5))
242242 then prepare_5(currentArrPartKeys, currentArrPartValues)
243243 else if ((length == 6))
244244 then prepare_6(currentArrPartKeys, currentArrPartValues)
245245 else if ((length == 7))
246246 then prepare_7(currentArrPartKeys, currentArrPartValues)
247247 else if ((length == 8))
248248 then prepare_8(currentArrPartKeys, currentArrPartValues)
249249 else if ((length == 9))
250250 then prepare_9(currentArrPartKeys, currentArrPartValues)
251251 else if ((length == 10))
252252 then prepare_10(currentArrPartKeys, currentArrPartValues)
253253 else throw("Max number of parameters exceeded")
254254
255255
256256 func getStartAndEndIndexes (json,key) = {
257257 let keyLen = size(key)
258258 let startIndex = value(indexOf(json, key))
259259 let endIndex = valueOrElse(indexOf(json, ",", startIndex), value(indexOf(json, "}", startIndex)))
260260 $Tuple3(keyLen, startIndex, endIndex)
261261 }
262262
263263
264+func reducerFindObjcetByKey (accum,next) = {
265+ let $t064546776 = accum
266+ let key = $t064546776._1
267+ let levelOn = $t064546776._2
268+ let currentLevelOn = $t064546776._3
269+ let startIndex = $t064546776._4
270+ let endIndex = $t064546776._5
271+ let currentIndex = $t064546776._6
272+ let end = $t064546776._7
273+ if (!(end))
274+ then {
275+ let keyValueList = split(next, ":")
276+ let leftBraceCount = (size(split(next, "{")) - 1)
277+ let rightBraceCount = (size(split(next, "}")) - 1)
278+ let nextCurrentCount = (leftBraceCount - rightBraceCount)
279+ let $t070297229 = if (if ((levelOn == currentLevelOn))
280+ then (keyValueList[0] == key)
281+ else false)
282+ then $Tuple2(currentIndex, true)
283+ else $Tuple2(0, false)
284+ let foundedStartIndex = $t070297229._1
285+ let foundedStart = $t070297229._2
286+ let $t072397435 = if (if ((levelOn == currentLevelOn))
287+ then (keyValueList[0] == key)
288+ else false)
289+ then $Tuple2(currentIndex, true)
290+ else $Tuple2(0, false)
291+ let foundedEndIndex = $t072397435._1
292+ let foundedEnd = $t072397435._2
293+ $Tuple7(key, levelOn, (currentLevelOn + nextCurrentCount), if (foundedStart)
294+ then foundedStartIndex
295+ else startIndex, if (foundedEnd)
296+ then foundedEndIndex
297+ else endIndex, (currentIndex + 1), if (foundedEnd)
298+ then foundedEnd
299+ else end)
300+ }
301+ else accum
302+ }
303+
304+
305+func reducerConcatList (accum,next) = {
306+ let $t078817942 = accum
307+ let result = $t078817942._1
308+ let currentIndex = $t078817942._2
309+ let startIndex = $t078817942._3
310+ let endIndex = $t078817942._4
311+ let end = $t078817942._5
312+ if (!(end))
313+ then {
314+ let newResult = if (if ((currentIndex >= startIndex))
315+ then (endIndex >= currentIndex)
316+ else false)
317+ then ((result + ",") + next)
318+ else result
319+ let newEnd = (currentIndex > endIndex)
320+ $Tuple5(newResult, (currentIndex + 1), startIndex, endIndex, newEnd)
321+ }
322+ else accum
323+ }
324+
325+
264326 func reducerTakeObject (accum,next) = {
265- let $t064426502 = accum
266- let result = $t064426502._1
267- let leftCount = $t064426502._2
268- let rightCount = $t064426502._3
269- let i = $t064426502._4
270- let iCount = $t064426502._5
271- let end = $t064426502._6
327+ let $t083808440 = accum
328+ let result = $t083808440._1
329+ let leftCount = $t083808440._2
330+ let rightCount = $t083808440._3
331+ let i = $t083808440._4
332+ let iCount = $t083808440._5
333+ let end = $t083808440._6
272334 if (if (!(end))
273335 then true
274336 else (iCount > i))
275337 then {
276- let $t065407297 = if (contains(next, "{"))
338+ let $t084789235 = if (contains(next, "{"))
277339 then {
278340 let _nextLeftCount = (size(split(next, "{")) - 1)
279341 $Tuple2(_nextLeftCount, 0)
280342 }
281343 else if (contains(next, "}"))
282344 then {
283345 let _nextRightCount = (size(split(next, "}")) - 1)
284346 $Tuple2(0, _nextRightCount)
285347 }
286348 else $Tuple2(0, 0)
287- let nextLeftCount = $t065407297._1
288- let nextRightCount = $t065407297._2
349+ let nextLeftCount = $t084789235._1
350+ let nextRightCount = $t084789235._2
289351 let curentLeftCount = (leftCount + nextLeftCount)
290352 let currentRightCount = (rightCount + nextRightCount)
291353 if ((curentLeftCount == currentRightCount))
292354 then $Tuple6(result, curentLeftCount, currentRightCount, (i + 1), iCount, true)
293355 else $Tuple6(((result + ",") + next), curentLeftCount, currentRightCount, (i + 1), iCount, false)
294356 }
295357 else accum
296358 }
297359
298360
299361 func readByKeyInternal (json,key) = {
300- let $t078317947 = getStartAndEndIndexes(json, key)
301- let keyLen = $t078317947._1
302- let startIndex = $t078317947._2
303- let endIndex = $t078317947._3
362+ let $t097699885 = getStartAndEndIndexes(json, key)
363+ let keyLen = $t097699885._1
364+ let startIndex = $t097699885._2
365+ let endIndex = $t097699885._3
304366 drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
305367 }
306368
307369
308370 func deleteByKeyInternal (json,key) = {
309- let $t082288296 = getStartAndEndIndexes(json, key)
310- let keyLen = $t082288296._1
311- let startIndex = $t082288296._2
312- let endIndex = $t082288296._3
371+ let $t01016610234 = getStartAndEndIndexes(json, key)
372+ let keyLen = $t01016610234._1
373+ let startIndex = $t01016610234._2
374+ let endIndex = $t01016610234._3
313375 let rowValue = drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
314376 let jsonBody = dropRight(drop(json, 2), 2)
315377 let jsonList = split(jsonBody, ",")
316378 let jsonSize = size(jsonList)
317379 let deletedValue = if (contains(rowValue, "{"))
318380 then ( let $l = jsonList
319381 let $s = size($l)
320382 let $acc0 = $Tuple6("", 0, 0, 0, jsonSize, false)
321383 func $f0_1 ($a,$i) = if (($i >= $s))
322384 then $a
323385 else reducerTakeObject($a, $l[$i])
324386
325387 func $f0_2 ($a,$i) = if (($i >= $s))
326388 then $a
327389 else throw("List size exceeds 100")
328390
329391 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100))._1
330392 else rowValue
393+ let debugValue = ( let $l = jsonList
394+ let $s = size($l)
395+ let $acc0 = $Tuple5("", 0, 1, 13, false)
396+ func $f0_1 ($a,$i) = if (($i >= $s))
397+ then $a
398+ else reducerConcatList($a, $l[$i])
399+
400+ func $f0_2 ($a,$i) = if (($i >= $s))
401+ then $a
402+ else throw("List size exceeds 100")
403+
404+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100))._1
331405 let newJson = if (((size(json) - endIndex) == 1))
332406 then (take(json, (startIndex - 2)) + drop(json, endIndex))
333407 else (take(json, (startIndex - 1)) + drop(json, (endIndex + 1)))
334- $Tuple2(deletedValue, newJson)
408+ $Tuple2(debugValue, newJson)
335409 }
336410
337411
338412 @Callable(i)
339413 func makeJSONInternal (arrKeys,arrValues,iterationsCount,lastIterationLen,res) = valueOrElse(onlyInternal(i.caller), if ((iterationsCount > 0))
340414 then {
341- let $t097539918 = getPartAndTail(arrKeys)
342- let currentArrPartKeys = $t097539918._1
343- let arrTailKeys = $t097539918._2
344- let $t0992710045 = getPartAndTail(arrValues)
345- let currentArrPartValues = $t0992710045._1
346- let arrTailValues = $t0992710045._2
415+ let $t01180711972 = getPartAndTail(arrKeys)
416+ let currentArrPartKeys = $t01180711972._1
417+ let arrTailKeys = $t01180711972._2
418+ let $t01198112099 = getPartAndTail(arrValues)
419+ let currentArrPartValues = $t01198112099._1
420+ let arrTailValues = $t01198112099._2
347421 let params = prepareParams(currentArrPartKeys, currentArrPartValues, 10)
348422 let newString = iterateMakeJSON(params, res, 10)
349423 let result = invoke(this, "makeJSONInternal", [arrTailKeys, arrTailValues, (iterationsCount - 1), lastIterationLen, newString], nil)
350424 if ((result == result))
351425 then $Tuple2(nil, result)
352426 else throw("Strict value is not equal to itself.")
353427 }
354428 else if ((lastIterationLen != 0))
355429 then {
356430 let params = prepareParams(arrKeys, arrValues, lastIterationLen)
357431 let newString = iterateMakeJSON(params, res, lastIterationLen)
358432 $Tuple2(nil, (("{" + dropRight(newString, 1)) + "}"))
359433 }
360434 else $Tuple2(nil, (("{" + dropRight(res, 1)) + "}")))
361435
362436
363437
364438 @Callable(i)
365439 func makeJSON (arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
366440 then throw("ArrayKeys and ArrayValues length must be equal")
367441 else {
368442 let len = size(arrKeys)
369443 let iterationsCount = fraction(1, len, 10)
370444 let lastIterationLen = (len % 10)
371445 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, ""], nil)
372446 if ((res == res))
373447 then $Tuple2(nil, res)
374448 else throw("Strict value is not equal to itself.")
375449 }
376450
377451
378452
379453 @Callable(i)
380454 func addToJSON (json,arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
381455 then throw("ArrayKeys and ArrayValues length must be equal")
382456 else {
383457 let len = size(arrKeys)
384458 let iterationsCount = fraction(1, len, 10)
385459 let lastIterationLen = (len % 10)
386460 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, (drop(dropRight(json, 1), 1) + ",")], nil)
387461 if ((res == res))
388462 then $Tuple2(nil, res)
389463 else throw("Strict value is not equal to itself.")
390464 }
391465
392466
393467
394468 @Callable(i)
395469 func readByJSONKey (json,key) = {
396470 let valueByKey = readByKeyInternal(json, key)
397471 $Tuple2([StringEntry("valueByKey", valueByKey)], valueByKey)
398472 }
399473
400474
401475
402476 @Callable(i)
403477 func deleteByJSONKey (json,key) = {
404- let $t01446114820 = deleteByKeyInternal(json, key)
405- let deletedValueByKey = $t01446114820._1
406- let newJson = $t01446114820._2
478+ let $t01651516874 = deleteByKeyInternal(json, key)
479+ let deletedValueByKey = $t01651516874._1
480+ let newJson = $t01651516874._2
407481 $Tuple2([StringEntry("deletedValue", deletedValueByKey), StringEntry(kJsonRes, newJson)], $Tuple2(deletedValueByKey, newJson))
408482 }
409483
410484

github/deemru/w8io/169f3d6 
68.00 ms