tx · 8zXjWngZoos5FHYVEV9CbUX2L862nkAnHZKD4rcMZRet

3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7:  -0.01000000 Waves

2023.03.17 15:44 [2494012] smart account 3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7 > SELF 0.00000000 Waves

{ "type": 13, "id": "8zXjWngZoos5FHYVEV9CbUX2L862nkAnHZKD4rcMZRet", "fee": 1000000, "feeAssetId": null, "timestamp": 1679057096000, "version": 2, "chainId": 84, "sender": "3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7", "senderPublicKey": "CrHxACS7bWTh8cgmgqstvybmgMqR9KtDryGFt5svZhBW", "proofs": [ "5fx8wBseggpmh4KHWaF1MvFtMNQ6PcwsW98JPyUczfGdBF3TpzmKqxtLVfcqstxMKdtHoAdLkiP3eJ3JdfdcFaER" ], "script": "base64:BgIkCAISBwoFGBgBAQgSBAoCGBgSBQoDCBgYEgQKAggIEgQKAggIFQAIa0pzb25SZXMCB2pzb25SZXMABXF1b3RlCQCwCQEBASIBCW1ha2VGaWVsZAEJbmV4dFZhbHVlAwkAAAIJAK8CAggFCW5leHRWYWx1ZQJfMQAAAgF7CQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgUFcXVvdGUIBQluZXh0VmFsdWUCXzEFBXF1b3RlAgE6CAUJbmV4dFZhbHVlAl8yAgEsCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIFBXF1b3RlCAUJbmV4dFZhbHVlAl8xBQVxdW90ZQIBOgUFcXVvdGUIBQluZXh0VmFsdWUCXzIFBXF1b3RlAgEsAQ9yZWR1Y2VyTWFrZUpTT04CBWFjY3VtCW5leHRWYWx1ZQkArAICBQVhY2N1bQkBCW1ha2VGaWVsZAEFCW5leHRWYWx1ZQEPaXRlcmF0ZU1ha2VKU09OAwZwYXJhbXMDcmVzBmxlbmd0aAMJAAACBQZsZW5ndGgAAAkAAgECDUVtcHR5ICBwYXJhbXMDCQAA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kAzAgCCQCsAgIJALACAgkAswICBQRqc29uAAEAAQIBLAUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMJAJQKAgUDbmlsBQNyZXMJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQENcmVhZEJ5SlNPTktleQIEanNvbgNrZXkECnZhbHVlQnlLZXkJARFyZWFkQnlLZXlJbnRlcm5hbAIFBGpzb24FA2tleQkAlAoCBQNuaWwFCnZhbHVlQnlLZXkBaQEPZGVsZXRlQnlKU09OS2V5AgRqc29uA2tleQQNJHQwMTI2MDExMjczMQkBE2RlbGV0ZUJ5S2V5SW50ZXJuYWwCBQRqc29uBQNrZXkEEWRlbGV0ZWRWYWx1ZUJ5S2V5CAUNJHQwMTI2MDExMjczMQJfMQQHbmV3SnNvbggFDSR0MDEyNjAxMTI3MzECXzIJAJQKAgUDbmlsCQCUCgIFEWRlbGV0ZWRWYWx1ZUJ5S2V5BQduZXdKc29uANeVBAg=", "height": 2494012, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A4DGfhX1J1AmexfiD64R5G9BLwwKCJBVQfUjbNu9h8BG Next: HvUTxgkYWd9o8yryJiQGhf3vDSvH3hDv1qRP9MZnH1md Diff:
OldNewDifferences
55
66 let quote = toUtf8String(base58'b')
77
8-func makeField (nextValue) = if ((take(nextValue._1, 1) == "{"))
8+func makeField (nextValue) = if ((take(nextValue._1, 0) == "{"))
99 then (((((quote + nextValue._1) + quote) + ":") + nextValue._2) + ",")
1010 else (((((((quote + nextValue._1) + quote) + ":") + quote) + nextValue._2) + quote) + ",")
1111
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
8-func makeField (nextValue) = if ((take(nextValue._1, 1) == "{"))
8+func makeField (nextValue) = if ((take(nextValue._1, 0) == "{"))
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
264264 func readByKeyInternal (json,key) = {
265265 let $t064116524 = getStartAndEndIndexes(json, key)
266266 let keyLen = $t064116524._1
267267 let startIndex = $t064116524._2
268268 let endIndex = $t064116524._3
269269 drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
270270 }
271271
272272
273273 func deleteByKeyInternal (json,key) = {
274274 let $t067986922 = getStartAndEndIndexes(json, key)
275275 let keyLen = $t067986922._1
276276 let startIndex = $t067986922._2
277277 let endIndex = $t067986922._3
278278 let deletedValue = drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
279279 let newJson = if (((size(json) - endIndex) == 1))
280280 then (take(json, (startIndex - 2)) + drop(json, endIndex))
281281 else (take(json, (startIndex - 1)) + drop(json, (endIndex + 1)))
282282 $Tuple2(deletedValue, newJson)
283283 }
284284
285285
286286 @Callable(i)
287287 func makeJSONInternal (arrKeys,arrValues,iterationsCount,lastIterationLen,res) = valueOrElse(onlyInternal(i.caller), if ((iterationsCount > 0))
288288 then {
289289 let $t080208182 = getPartAndTail(arrKeys)
290290 let currentArrPartKeys = $t080208182._1
291291 let arrTailKeys = $t080208182._2
292292 let $t081918306 = getPartAndTail(arrValues)
293293 let currentArrPartValues = $t081918306._1
294294 let arrTailValues = $t081918306._2
295295 let params = prepareParams(currentArrPartKeys, currentArrPartValues, 10)
296296 let newString = iterateMakeJSON(params, res, 10)
297297 let result = invoke(this, "makeJSONInternal", [arrTailKeys, arrTailValues, (iterationsCount - 1), lastIterationLen, newString], nil)
298298 if ((result == result))
299299 then $Tuple2(nil, result)
300300 else throw("Strict value is not equal to itself.")
301301 }
302302 else if ((lastIterationLen != 0))
303303 then {
304304 let params = prepareParams(arrKeys, arrValues, lastIterationLen)
305305 let newString = iterateMakeJSON(params, res, lastIterationLen)
306306 $Tuple2(nil, (("{" + dropRight(newString, 1)) + "}"))
307307 }
308308 else $Tuple2(nil, (("{" + dropRight(res, 1)) + "}")))
309309
310310
311311
312312 @Callable(i)
313313 func makeJSON (arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
314314 then throw("ArrayKeys and ArrayValues length must be equal")
315315 else {
316316 let len = size(arrKeys)
317317 let iterationsCount = fraction(1, len, 10)
318318 let lastIterationLen = (len % 10)
319319 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, ""], nil)
320320 if ((res == res))
321321 then $Tuple2(nil, res)
322322 else throw("Strict value is not equal to itself.")
323323 }
324324
325325
326326
327327 @Callable(i)
328328 func addToJSON (json,arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
329329 then throw("ArrayKeys and ArrayValues length must be equal")
330330 else {
331331 let len = size(arrKeys)
332332 let iterationsCount = fraction(1, len, 10)
333333 let lastIterationLen = (len % 10)
334334 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, (drop(dropRight(json, 1), 1) + ",")], nil)
335335 if ((res == res))
336336 then $Tuple2(nil, res)
337337 else throw("Strict value is not equal to itself.")
338338 }
339339
340340
341341
342342 @Callable(i)
343343 func readByJSONKey (json,key) = {
344344 let valueByKey = readByKeyInternal(json, key)
345345 $Tuple2(nil, valueByKey)
346346 }
347347
348348
349349
350350 @Callable(i)
351351 func deleteByJSONKey (json,key) = {
352352 let $t01260112731 = deleteByKeyInternal(json, key)
353353 let deletedValueByKey = $t01260112731._1
354354 let newJson = $t01260112731._2
355355 $Tuple2(nil, $Tuple2(deletedValueByKey, newJson))
356356 }
357357
358358

github/deemru/w8io/026f985 
73.73 ms