tx · 57Qo7rwGJeiBLcpxkEa9adVH7vK5wNTGWgpwFHZgxqp5

3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7:  -0.01000000 Waves

2023.03.17 11:21 [2493755] smart account 3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7 > SELF 0.00000000 Waves

{ "type": 13, "id": "57Qo7rwGJeiBLcpxkEa9adVH7vK5wNTGWgpwFHZgxqp5", "fee": 1000000, "feeAssetId": null, "timestamp": 1679041286102, "version": 2, "chainId": 84, "sender": "3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7", "senderPublicKey": "CrHxACS7bWTh8cgmgqstvybmgMqR9KtDryGFt5svZhBW", "proofs": [ "21quqrWRdnAU3NuuGKNtbmoZizHRWSRfhVLon6f1YrgP8PY19hBTacWyk7F2w5r51ZoeCWtn6nixmahZLzWHfjQT" ], "script": "base64:BgIkCAISBwoFGBgBAQgSBAoCGBgSBQoDCBgYEgQKAggIEgQKAggIFQAHanNvblJlcwIHanNvblJlcwAFcXVvdGUJALAJAQEBIgEJbWFrZUZpZWxkAQluZXh0VmFsdWUDCQAAAgkArwICCAUJbmV4dFZhbHVlAl8xAAECAXsJAKwCAgkArAICCQCsAgIIBQluZXh0VmFsdWUCXzECAToIBQluZXh0VmFsdWUCXzICASwJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgUFcXVvdGUIBQluZXh0VmFsdWUCXzEFBXF1b3RlAgE6BQVxdW90ZQgFCW5leHRWYWx1ZQJfMgUFcXVvdGUCASwBD3JlZHVjZXJNYWtlSlNPTgIFYWNjdW0JbmV4dFZhbHVlCQCsAgIFBWFjY3VtCQEJbWFrZUZpZWxkAQUJbmV4dFZhbHVlAQ9pdGVyYXRlTWFrZUpTT04DBnBhcmFtcwNyZXMGbGVuZ3RoAwkAAAIFBmxlbmd0aAAACQACAQINRW1wdHkgIHBhcmFtcwMJAAACBQZsZW5ndGgAAQoAAiRsBQZwYXJhbXMKAAIkcw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3JlcwkAlAoCBQNuaWwFA3JlcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQ1yZWFkQnlKU09OS2V5AgRqc29uA2tleQQKdmFsdWVCeUtleQkBEXJlYWRCeUtleUludGVybmFsAgUEanNvbgUDa2V5CQCUCgIFA25pbAUKdmFsdWVCeUtleQFpAQ9kZWxldGVCeUpTT05LZXkCBGpzb24Da2V5BA0kdDAxMjk3NjEzMzM1CQETZGVsZXRlQnlLZXlJbnRlcm5hbAIFBGpzb24FA2tleQQRZGVsZXRlZFZhbHVlQnlLZXkIBQ0kdDAxMjk3NjEzMzM1Al8xBAduZXdKc29uCAUNJHQwMTI5NzYxMzMzNQJfMgkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQICDGRlbGV0ZWRWYWx1ZQURZGVsZXRlZFZhbHVlQnlLZXkJAMwIAgkBC1N0cmluZ0VudHJ5AgUHanNvblJlcwUHbmV3SnNvbgUDbmlsCQCUCgIFEWRlbGV0ZWRWYWx1ZUJ5S2V5BQduZXdKc29uAFJzW5k=", "height": 2493755, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 774xTVgrGqDnwAtBh9Nv8E3jAt9n8hqX4QVdhxUABDtW Next: A4DGfhX1J1AmexfiD64R5G9BLwwKCJBVQfUjbNu9h8BG Diff:
OldNewDifferences
55
66 let quote = toUtf8String(base58'b')
77
8-func makeField (nextValue) = (((((((quote + nextValue._1) + quote) + ":") + quote) + nextValue._2) + quote) + ",")
8+func makeField (nextValue) = if ((take(nextValue._1, 1) == "{"))
9+ then (((nextValue._1 + ":") + nextValue._2) + ",")
10+ else (((((((quote + nextValue._1) + quote) + ":") + quote) + nextValue._2) + quote) + ",")
911
1012
1113 func reducerMakeJSON (accum,nextValue) = (accum + makeField(nextValue))
260262
261263
262264 func readByKeyInternal (json,key) = {
263- let $t064226538 = getStartAndEndIndexes(json, key)
264- let keyLen = $t064226538._1
265- let startIndex = $t064226538._2
266- let endIndex = $t064226538._3
265+ let $t065336649 = getStartAndEndIndexes(json, key)
266+ let keyLen = $t065336649._1
267+ let startIndex = $t065336649._2
268+ let endIndex = $t065336649._3
267269 drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
268270 }
269271
270272
271273 func deleteByKeyInternal (json,key) = {
272- let $t068196946 = getStartAndEndIndexes(json, key)
273- let keyLen = $t068196946._1
274- let startIndex = $t068196946._2
275- let endIndex = $t068196946._3
274+ let $t069307057 = getStartAndEndIndexes(json, key)
275+ let keyLen = $t069307057._1
276+ let startIndex = $t069307057._2
277+ let endIndex = $t069307057._3
276278 let deletedValue = drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
277279 let newJson = if (((size(json) - endIndex) == 1))
278280 then (take(json, (startIndex - 2)) + drop(json, endIndex))
284286 @Callable(i)
285287 func makeJSONInternal (arrKeys,arrValues,iterationsCount,lastIterationLen,res) = valueOrElse(onlyInternal(i.caller), if ((iterationsCount > 0))
286288 then {
287- let $t080728237 = getPartAndTail(arrKeys)
288- let currentArrPartKeys = $t080728237._1
289- let arrTailKeys = $t080728237._2
290- let $t082468364 = getPartAndTail(arrValues)
291- let currentArrPartValues = $t082468364._1
292- let arrTailValues = $t082468364._2
289+ let $t081838348 = getPartAndTail(arrKeys)
290+ let currentArrPartKeys = $t081838348._1
291+ let arrTailKeys = $t081838348._2
292+ let $t083578475 = getPartAndTail(arrValues)
293+ let currentArrPartValues = $t083578475._1
294+ let arrTailValues = $t083578475._2
293295 let params = prepareParams(currentArrPartKeys, currentArrPartValues, 10)
294296 let newString = iterateMakeJSON(params, res, 10)
295297 let result = invoke(this, "makeJSONInternal", [arrTailKeys, arrTailValues, (iterationsCount - 1), lastIterationLen, newString], nil)
347349
348350 @Callable(i)
349351 func deleteByJSONKey (json,key) = {
350- let $t01286513224 = deleteByKeyInternal(json, key)
351- let deletedValueByKey = $t01286513224._1
352- let newJson = $t01286513224._2
352+ let $t01297613335 = deleteByKeyInternal(json, key)
353+ let deletedValueByKey = $t01297613335._1
354+ let newJson = $t01297613335._2
353355 $Tuple2([StringEntry("deletedValue", deletedValueByKey), StringEntry(jsonRes, newJson)], $Tuple2(deletedValueByKey, newJson))
354356 }
355357
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let jsonRes = "jsonRes"
55
66 let quote = toUtf8String(base58'b')
77
8-func makeField (nextValue) = (((((((quote + nextValue._1) + quote) + ":") + quote) + nextValue._2) + quote) + ",")
8+func makeField (nextValue) = if ((take(nextValue._1, 1) == "{"))
9+ then (((nextValue._1 + ":") + nextValue._2) + ",")
10+ else (((((((quote + nextValue._1) + quote) + ":") + quote) + nextValue._2) + quote) + ",")
911
1012
1113 func reducerMakeJSON (accum,nextValue) = (accum + makeField(nextValue))
1214
1315
1416 func iterateMakeJSON (params,res,length) = if ((length == 0))
1517 then throw("Empty params")
1618 else if ((length == 1))
1719 then {
1820 let $l = params
1921 let $s = size($l)
2022 let $acc0 = res
2123 func $f0_1 ($a,$i) = if (($i >= $s))
2224 then $a
2325 else reducerMakeJSON($a, $l[$i])
2426
2527 func $f0_2 ($a,$i) = if (($i >= $s))
2628 then $a
2729 else throw("List size exceeds 1")
2830
2931 $f0_2($f0_1($acc0, 0), 1)
3032 }
3133 else if ((length == 2))
3234 then {
3335 let $l = params
3436 let $s = size($l)
3537 let $acc0 = res
3638 func $f0_1 ($a,$i) = if (($i >= $s))
3739 then $a
3840 else reducerMakeJSON($a, $l[$i])
3941
4042 func $f0_2 ($a,$i) = if (($i >= $s))
4143 then $a
4244 else throw("List size exceeds 2")
4345
4446 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
4547 }
4648 else if ((length == 3))
4749 then {
4850 let $l = params
4951 let $s = size($l)
5052 let $acc0 = res
5153 func $f0_1 ($a,$i) = if (($i >= $s))
5254 then $a
5355 else reducerMakeJSON($a, $l[$i])
5456
5557 func $f0_2 ($a,$i) = if (($i >= $s))
5658 then $a
5759 else throw("List size exceeds 3")
5860
5961 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
6062 }
6163 else if ((length == 4))
6264 then {
6365 let $l = params
6466 let $s = size($l)
6567 let $acc0 = res
6668 func $f0_1 ($a,$i) = if (($i >= $s))
6769 then $a
6870 else reducerMakeJSON($a, $l[$i])
6971
7072 func $f0_2 ($a,$i) = if (($i >= $s))
7173 then $a
7274 else throw("List size exceeds 4")
7375
7476 $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
7577 }
7678 else if ((length == 5))
7779 then {
7880 let $l = params
7981 let $s = size($l)
8082 let $acc0 = res
8183 func $f0_1 ($a,$i) = if (($i >= $s))
8284 then $a
8385 else reducerMakeJSON($a, $l[$i])
8486
8587 func $f0_2 ($a,$i) = if (($i >= $s))
8688 then $a
8789 else throw("List size exceeds 5")
8890
8991 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
9092 }
9193 else if ((length == 6))
9294 then {
9395 let $l = params
9496 let $s = size($l)
9597 let $acc0 = res
9698 func $f0_1 ($a,$i) = if (($i >= $s))
9799 then $a
98100 else reducerMakeJSON($a, $l[$i])
99101
100102 func $f0_2 ($a,$i) = if (($i >= $s))
101103 then $a
102104 else throw("List size exceeds 6")
103105
104106 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
105107 }
106108 else if ((length == 7))
107109 then {
108110 let $l = params
109111 let $s = size($l)
110112 let $acc0 = res
111113 func $f0_1 ($a,$i) = if (($i >= $s))
112114 then $a
113115 else reducerMakeJSON($a, $l[$i])
114116
115117 func $f0_2 ($a,$i) = if (($i >= $s))
116118 then $a
117119 else throw("List size exceeds 7")
118120
119121 $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)
120122 }
121123 else if ((length == 8))
122124 then {
123125 let $l = params
124126 let $s = size($l)
125127 let $acc0 = res
126128 func $f0_1 ($a,$i) = if (($i >= $s))
127129 then $a
128130 else reducerMakeJSON($a, $l[$i])
129131
130132 func $f0_2 ($a,$i) = if (($i >= $s))
131133 then $a
132134 else throw("List size exceeds 8")
133135
134136 $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)
135137 }
136138 else if ((length == 9))
137139 then {
138140 let $l = params
139141 let $s = size($l)
140142 let $acc0 = res
141143 func $f0_1 ($a,$i) = if (($i >= $s))
142144 then $a
143145 else reducerMakeJSON($a, $l[$i])
144146
145147 func $f0_2 ($a,$i) = if (($i >= $s))
146148 then $a
147149 else throw("List size exceeds 9")
148150
149151 $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)
150152 }
151153 else if ((length == 10))
152154 then {
153155 let $l = params
154156 let $s = size($l)
155157 let $acc0 = res
156158 func $f0_1 ($a,$i) = if (($i >= $s))
157159 then $a
158160 else reducerMakeJSON($a, $l[$i])
159161
160162 func $f0_2 ($a,$i) = if (($i >= $s))
161163 then $a
162164 else throw("List size exceeds 10")
163165
164166 $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)
165167 }
166168 else throw("The max number of parameters exceeded")
167169
168170
169171 func getPartAndTail (arr) = {
170172 let el0 = arr[0]
171173 let el1 = arr[1]
172174 let el2 = arr[2]
173175 let el3 = arr[3]
174176 let el4 = arr[4]
175177 let el5 = arr[5]
176178 let el6 = arr[6]
177179 let el7 = arr[7]
178180 let el8 = arr[8]
179181 let el9 = arr[9]
180182 let arr0 = removeByIndex(arr, 0)
181183 let arr1 = removeByIndex(arr0, 0)
182184 let arr2 = removeByIndex(arr1, 0)
183185 let arr3 = removeByIndex(arr2, 0)
184186 let arr4 = removeByIndex(arr3, 0)
185187 let arr5 = removeByIndex(arr4, 0)
186188 let arr6 = removeByIndex(arr5, 0)
187189 let arr7 = removeByIndex(arr6, 0)
188190 let arr8 = removeByIndex(arr7, 0)
189191 let arr9 = removeByIndex(arr8, 0)
190192 $Tuple2([el0, el1, el2, el3, el4, el5, el6, el7, el8, el9], arr9)
191193 }
192194
193195
194196 func onlyInternal (caller) = if ((caller == this))
195197 then unit
196198 else throw("Only internal call")
197199
198200
199201 func prepare_1 (arr,arr2) = [$Tuple2(arr[0], arr2[0])]
200202
201203
202204 func prepare_2 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1])]
203205
204206
205207 func prepare_3 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2])]
206208
207209
208210 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])]
209211
210212
211213 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])]
212214
213215
214216 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])]
215217
216218
217219 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])]
218220
219221
220222 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])]
221223
222224
223225 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])]
224226
225227
226228 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])]
227229
228230
229231 func prepareParams (currentArrPartKeys,currentArrPartValues,length) = if ((length == 0))
230232 then throw("Empty params")
231233 else if ((length == 1))
232234 then prepare_1(currentArrPartKeys, currentArrPartValues)
233235 else if ((length == 2))
234236 then prepare_2(currentArrPartKeys, currentArrPartValues)
235237 else if ((length == 3))
236238 then prepare_3(currentArrPartKeys, currentArrPartValues)
237239 else if ((length == 4))
238240 then prepare_4(currentArrPartKeys, currentArrPartValues)
239241 else if ((length == 5))
240242 then prepare_5(currentArrPartKeys, currentArrPartValues)
241243 else if ((length == 6))
242244 then prepare_6(currentArrPartKeys, currentArrPartValues)
243245 else if ((length == 7))
244246 then prepare_7(currentArrPartKeys, currentArrPartValues)
245247 else if ((length == 8))
246248 then prepare_8(currentArrPartKeys, currentArrPartValues)
247249 else if ((length == 9))
248250 then prepare_9(currentArrPartKeys, currentArrPartValues)
249251 else if ((length == 10))
250252 then prepare_10(currentArrPartKeys, currentArrPartValues)
251253 else throw("Max number of parameters exceeded")
252254
253255
254256 func getStartAndEndIndexes (json,key) = {
255257 let keyLen = size(key)
256258 let startIndex = value(indexOf(json, key))
257259 let endIndex = valueOrElse(indexOf(json, ",", startIndex), value(indexOf(json, "}", startIndex)))
258260 $Tuple3(keyLen, startIndex, endIndex)
259261 }
260262
261263
262264 func readByKeyInternal (json,key) = {
263- let $t064226538 = getStartAndEndIndexes(json, key)
264- let keyLen = $t064226538._1
265- let startIndex = $t064226538._2
266- let endIndex = $t064226538._3
265+ let $t065336649 = getStartAndEndIndexes(json, key)
266+ let keyLen = $t065336649._1
267+ let startIndex = $t065336649._2
268+ let endIndex = $t065336649._3
267269 drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
268270 }
269271
270272
271273 func deleteByKeyInternal (json,key) = {
272- let $t068196946 = getStartAndEndIndexes(json, key)
273- let keyLen = $t068196946._1
274- let startIndex = $t068196946._2
275- let endIndex = $t068196946._3
274+ let $t069307057 = getStartAndEndIndexes(json, key)
275+ let keyLen = $t069307057._1
276+ let startIndex = $t069307057._2
277+ let endIndex = $t069307057._3
276278 let deletedValue = drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
277279 let newJson = if (((size(json) - endIndex) == 1))
278280 then (take(json, (startIndex - 2)) + drop(json, endIndex))
279281 else (take(json, (startIndex - 1)) + drop(json, (endIndex + 1)))
280282 $Tuple2(deletedValue, newJson)
281283 }
282284
283285
284286 @Callable(i)
285287 func makeJSONInternal (arrKeys,arrValues,iterationsCount,lastIterationLen,res) = valueOrElse(onlyInternal(i.caller), if ((iterationsCount > 0))
286288 then {
287- let $t080728237 = getPartAndTail(arrKeys)
288- let currentArrPartKeys = $t080728237._1
289- let arrTailKeys = $t080728237._2
290- let $t082468364 = getPartAndTail(arrValues)
291- let currentArrPartValues = $t082468364._1
292- let arrTailValues = $t082468364._2
289+ let $t081838348 = getPartAndTail(arrKeys)
290+ let currentArrPartKeys = $t081838348._1
291+ let arrTailKeys = $t081838348._2
292+ let $t083578475 = getPartAndTail(arrValues)
293+ let currentArrPartValues = $t083578475._1
294+ let arrTailValues = $t083578475._2
293295 let params = prepareParams(currentArrPartKeys, currentArrPartValues, 10)
294296 let newString = iterateMakeJSON(params, res, 10)
295297 let result = invoke(this, "makeJSONInternal", [arrTailKeys, arrTailValues, (iterationsCount - 1), lastIterationLen, newString], nil)
296298 if ((result == result))
297299 then $Tuple2(nil, result)
298300 else throw("Strict value is not equal to itself.")
299301 }
300302 else if ((lastIterationLen != 0))
301303 then {
302304 let params = prepareParams(arrKeys, arrValues, lastIterationLen)
303305 let newString = iterateMakeJSON(params, res, lastIterationLen)
304306 $Tuple2(nil, (("{" + dropRight(newString, 1)) + "}"))
305307 }
306308 else $Tuple2(nil, (("{" + dropRight(res, 1)) + "}")))
307309
308310
309311
310312 @Callable(i)
311313 func makeJSON (arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
312314 then throw("ArrayKeys and ArrayValues length must be equal")
313315 else {
314316 let len = size(arrKeys)
315317 let iterationsCount = fraction(1, len, 10)
316318 let lastIterationLen = (len % 10)
317319 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, ""], nil)
318320 if ((res == res))
319321 then $Tuple2(nil, res)
320322 else throw("Strict value is not equal to itself.")
321323 }
322324
323325
324326
325327 @Callable(i)
326328 func addToJSON (oldJson,arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
327329 then throw("ArrayKeys and ArrayValues length must be equal")
328330 else {
329331 let len = size(arrKeys)
330332 let iterationsCount = fraction(1, len, 10)
331333 let lastIterationLen = (len % 10)
332334 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, (drop(dropRight(oldJson, 1), 1) + ",")], nil)
333335 if ((res == res))
334336 then $Tuple2(nil, res)
335337 else throw("Strict value is not equal to itself.")
336338 }
337339
338340
339341
340342 @Callable(i)
341343 func readByJSONKey (json,key) = {
342344 let valueByKey = readByKeyInternal(json, key)
343345 $Tuple2(nil, valueByKey)
344346 }
345347
346348
347349
348350 @Callable(i)
349351 func deleteByJSONKey (json,key) = {
350- let $t01286513224 = deleteByKeyInternal(json, key)
351- let deletedValueByKey = $t01286513224._1
352- let newJson = $t01286513224._2
352+ let $t01297613335 = deleteByKeyInternal(json, key)
353+ let deletedValueByKey = $t01297613335._1
354+ let newJson = $t01297613335._2
353355 $Tuple2([StringEntry("deletedValue", deletedValueByKey), StringEntry(jsonRes, newJson)], $Tuple2(deletedValueByKey, newJson))
354356 }
355357
356358

github/deemru/w8io/026f985 
79.97 ms