tx · 6Xm3RPpvnyxxRcb5VvqpeDGKmrRMcEj7gB5u7jgTEBA

3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn:  -0.01400000 Waves

2023.03.22 20:38 [2501529] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves

{ "type": 13, "id": "6Xm3RPpvnyxxRcb5VvqpeDGKmrRMcEj7gB5u7jgTEBA", "fee": 1400000, "feeAssetId": null, "timestamp": 1679506731484, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "21k7c6yT8fN1ZEAUaNC8yy8dUkLf3uChdhebYo4wnbBGY2uHrnar9sysU9LSpP3YsWzAFzz2FMyk9WPenFvL9SsV" ], "script": "base64:BgJHCAISBAoCCAgSBAoCCAESAwoBCBIGCgQICAgIEgUKAwgICBIDCgECEgQKAggBEgMKAQgSBgoECAEBARIECgIBARIDCgEBEgAbAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAHYmFzZVVSSQkBEUBleHRyTmF0aXZlKDEwNTgpAQIHYmFzZVVSSQAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAMdG9rZW5QYXltZW50CQERQGV4dHJOYXRpdmUoMTA1NykBAgx0b2tlblBheW1lbnQAEXRva2VuUGF5bWVudEFzc2V0CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAOw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kZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZAUDbmlsAMTW7bo=", "height": 2501529, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 33TZr4kyr8bFYZHa618MSKWin2iQfYiMeHGVmVj3emDZ Next: pfXeUaN1KXiEY1dZsUEUPAJaXQKLRSeepDTJFH7u1Hw Diff:
OldNewDifferences
311311 $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)
312312 }
313313 [StringEntry("Debug", {
314- let $l = data
314+ let $l = list
315315 let $s = size($l)
316316 let $acc0 = ""
317317 func $f1_1 ($a,$i) = if (($i >= $s))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let collectionName = getStringValue("collectionName")
55
66 let symbol = getStringValue("symbol")
77
88 let description = getStringValue("description")
99
1010 let totalAmount = getIntegerValue("totalAmount")
1111
1212 let baseURI = getStringValue("baseURI")
1313
1414 let dAppJson = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7"))
1515
1616 let tokenPayment = getBinaryValue("tokenPayment")
1717
1818 let tokenPaymentAsset = valueOrErrorMessage(assetInfo(getBinaryValue("tokenPayment")), "token payment asset doesn't connect")
1919
2020 let lendCount = getIntegerValue("lendCount")
2121
2222 let lendCurrentCount = getIntegerValue("lendCurrentCount")
2323
2424 let hundredList = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]
2525
2626 func parseIdtoAsset (assetId) = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Can't find asset by asset id")
2727
2828
2929 func transferOrNot (to,amount,assetId) = if ((to == this))
3030 then StringEntry("smth", "smth")
3131 else ScriptTransfer(to, amount, assetId)
3232
3333
3434 func getLendJson (lendId) = {
3535 let lendIdString = toString(lendId)
3636 getStringValue(("lend-" + lendIdString))
3737 }
3838
3939
4040 func getKey (lendJson,key) = {
4141 let timeUnitSeconds = {
4242 let @ = invoke(dAppJson, "readByJSONKey", [lendJson, key], nil)
4343 if ($isInstanceOf(@, "String"))
4444 then @
4545 else throw(($getType(@) + " couldn't be cast to String"))
4646 }
4747 if ((timeUnitSeconds == timeUnitSeconds))
4848 then timeUnitSeconds
4949 else throw("Strict value is not equal to itself.")
5050 }
5151
5252
5353 func getRentCount (lendId) = {
5454 let lendIdString = toString(lendId)
5555 getIntegerValue(("lend-rentCount-" + lendIdString))
5656 }
5757
5858
5959 func calcLendCost (lendId,timeUnitSeconds) = {
6060 let lendJson = getLendJson(lendId)
6161 let timeUnitPriceString = getKey(lendJson, "timeUnitPrice")
6262 if ((timeUnitPriceString == timeUnitPriceString))
6363 then {
6464 let timeUnitPrice = parseIntValue(timeUnitPriceString)
6565 (timeUnitSeconds * timeUnitPrice)
6666 }
6767 else throw("Strict value is not equal to itself.")
6868 }
6969
7070
7171 func getLendCost (lendId) = valueOrElse(getInteger(("lend-cost-" + toString(lendId))), 0)
7272
7373
7474 func onlyInternal (caller) = if ((caller == this))
7575 then unit
7676 else throw("Only internal call")
7777
7878
7979 func reducerGetDeleteEntry (accum,next) = {
8080 let $t025422592 = accum
8181 let deletions = $t025422592._1
8282 let current = $t025422592._2
8383 let maxCount = $t025422592._3
8484 let lendId = $t025422592._4
8585 if ((maxCount > current))
8686 then $Tuple3((deletions :+ DeleteEntry(((("lend-rent-" + lendId) + "-") + toString(current)))), (current + 1), maxCount)
8787 else accum
8888 }
8989
9090
9191 func reducerConcatLists (accum,next) = (accum :+ next)
9292
9393
9494 func reducerConcatListsString (accum,next) = (accum :+ next)
9595
9696
9797 func reducerListToString (accum,next) = ((accum + "-") + next)
9898
9999
100100 func checkAssetOwner (caller,assetId) = if ((assetBalance(caller, fromBase58String(assetId)) == 1))
101101 then unit
102102 else throw("Only asset owner")
103103
104104
105105 func checkPayment (payments,amount) = if ((payments[0].amount >= amount))
106106 then unit
107107 else throw("amount less then need")
108108
109109
110110 func checkAssetExists (assetId) = if (valueOrElse(getBoolean(assetId), false))
111111 then throw("this token already use")
112112 else unit
113113
114114
115115 func checkLendOwner (caller,lendId) = if ((getKey(getLendJson(lendId), "owner") != toString(caller)))
116116 then throw("you haven't perms")
117117 else unit
118118
119119
120120 @Callable(i)
121121 func setString (_key,_value) = valueOrElse(onlyInternal(i.caller), [StringEntry(_key, _value)])
122122
123123
124124
125125 @Callable(i)
126126 func setInt (_key,_value) = valueOrElse(onlyInternal(i.caller), [IntegerEntry(_key, _value)])
127127
128128
129129
130130 @Callable(i)
131131 func deleteEntry (_key) = valueOrElse(onlyInternal(i.caller), [DeleteEntry(_key)])
132132
133133
134134
135135 @Callable(i)
136136 func init (_collectionName,_symbol,_description,_baseURI) = valueOrElse(onlyInternal(i.caller), [StringEntry("collectionName", _collectionName), StringEntry("symbol", _symbol), StringEntry("description", _description), IntegerEntry("totalAmount", 0), StringEntry("baseURI", _baseURI)])
137137
138138
139139
140140 @Callable(i)
141141 func setUser (assetId,user,expires) = {
142142 let res = invoke(dAppJson, "makeJSON", [["user", "expires"], [user, expires]], nil)
143143 if ((res == res))
144144 then $Tuple2([StringEntry(("userOf-" + assetId), {
145145 let @ = res
146146 if ($isInstanceOf(@, "String"))
147147 then @
148148 else throw(($getType(@) + " couldn't be cast to String"))
149149 })], res)
150150 else throw("Strict value is not equal to itself.")
151151 }
152152
153153
154154
155155 @Callable(i)
156156 func setTokenPayment (assetBinary) = valueOrElse(onlyInternal(i.caller), [BinaryEntry("tokenPayment", assetBinary)])
157157
158158
159159
160160 @Callable(i)
161161 func mintTokens (to,amount) = {
162162 let reisue = Reissue(tokenPayment, amount, true)
163163 let toAddress = Address(fromBase58String(to))
164164 let transfer = transferOrNot(toAddress, amount, tokenPayment)
165165 if ((transfer == transfer))
166166 then [transfer, reisue]
167167 else throw("Strict value is not equal to itself.")
168168 }
169169
170170
171171
172172 @Callable(i)
173173 func mintNFT (to) = {
174174 let tokenId = (totalAmount + 1)
175175 let tokenIdString = toString(tokenId)
176176 let preName = ((symbol + "#") + tokenIdString)
177177 let name = if ((16 >= size(preName)))
178178 then preName
179179 else tokenIdString
180180 let tokenURI = (baseURI + tokenIdString)
181181 let json = {
182182 let @ = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], nil)
183183 if ($isInstanceOf(@, "String"))
184184 then @
185185 else throw(($getType(@) + " couldn't be cast to String"))
186186 }
187187 let asset = Issue(name, json, 1, 0, false, unit, height)
188188 let assetId = calculateAssetId(asset)
189189 let toAddress = Address(fromBase58String(to))
190190 let transfer = transferOrNot(toAddress, 1, assetId)
191191 if ((transfer == transfer))
192192 then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
193193 else throw("Strict value is not equal to itself.")
194194 }
195195
196196
197197
198198 @Callable(i)
199199 func initLend (assetId,timeUnitSeconds,timeUnitPrice,timeUnitCount) = valueOrElse(checkAssetOwner(i.caller, assetId), valueOrElse(checkAssetExists(assetId), {
200200 let asset = parseIdtoAsset(assetId)
201201 let tokenURI = {
202202 let @ = invoke(dAppJson, "readByJSONKey", [asset.description, "tokenURI"], nil)
203203 if ($isInstanceOf(@, "String"))
204204 then @
205205 else throw(($getType(@) + " couldn't be cast to String"))
206206 }
207207 if ((tokenURI == tokenURI))
208208 then {
209209 let lendJson = {
210210 let @ = invoke(dAppJson, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", assetId, tokenURI, toString(i.caller), toString(timeUnitSeconds), toString(timeUnitPrice), toString(timeUnitCount), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (timeUnitSeconds * timeUnitCount))), "0", "0"]], nil)
211211 if ($isInstanceOf(@, "String"))
212212 then @
213213 else throw(($getType(@) + " couldn't be cast to String"))
214214 }
215215 if ((lendJson == lendJson))
216216 then {
217217 let lendIdString = toString(lendCount)
218218 [IntegerEntry("lendCount", (lendCount + 1)), IntegerEntry("lendCurrentCount", (lendCurrentCount + 1)), IntegerEntry(("lend-rentCount-" + lendIdString), 0), StringEntry(("lend-" + lendIdString), lendJson), BooleanEntry(assetId, true)]
219219 }
220220 else throw("Strict value is not equal to itself.")
221221 }
222222 else throw("Strict value is not equal to itself.")
223223 }))
224224
225225
226226
227227 @Callable(i)
228228 func initRent (lendId,timeUnitCount) = valueOrElse(checkPayment(i.payments, calcLendCost(lendId, timeUnitCount)), {
229229 let lendIdString = toString(lendId)
230230 let lendJson = getStringValue(("lend-" + lendIdString))
231231 let rentId = getRentCount(lendId)
232232 let rentIdString = toString(rentId)
233233 let timeUnitSeconds = {
234234 let @ = invoke(dAppJson, "readByJSONKey", [lendJson, "timeUnitSeconds"], nil)
235235 if ($isInstanceOf(@, "String"))
236236 then @
237237 else throw(($getType(@) + " couldn't be cast to String"))
238238 }
239239 if ((timeUnitSeconds == timeUnitSeconds))
240240 then {
241241 let timeUnitSecondsInt = parseIntValue(timeUnitSeconds)
242242 if ((timeUnitSecondsInt == timeUnitSecondsInt))
243243 then {
244244 let rentJson = {
245245 let @ = invoke(dAppJson, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(i.caller), toString(timeUnitCount), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (timeUnitSecondsInt * timeUnitCount))), "0"]], nil)
246246 if ($isInstanceOf(@, "String"))
247247 then @
248248 else throw(($getType(@) + " couldn't be cast to String"))
249249 }
250250 if ((rentJson == rentJson))
251251 then [IntegerEntry(("lend-rentCount-" + lendIdString), (rentId + 1)), StringEntry(((("lend-rent-" + lendIdString) + "-") + rentIdString), rentJson), IntegerEntry(("lend-cost-" + lendIdString), (calcLendCost(lendId, timeUnitCount) + getLendCost(lendId)))]
252252 else throw("Strict value is not equal to itself.")
253253 }
254254 else throw("Strict value is not equal to itself.")
255255 }
256256 else throw("Strict value is not equal to itself.")
257257 })
258258
259259
260260
261261 @Callable(i)
262262 func closeLend (lendId) = valueOrElse(checkLendOwner(i.caller, lendId), {
263263 let lendIdString = toString(lendId)
264264 let deleteEntryList = ( let $l = hundredList
265265 let $s = size($l)
266266 let $acc0 = $Tuple4(nil, 0, 0, lendIdString)
267267 func $f0_1 ($a,$i) = if (($i >= $s))
268268 then $a
269269 else reducerGetDeleteEntry($a, $l[$i])
270270
271271 func $f0_2 ($a,$i) = if (($i >= $s))
272272 then $a
273273 else throw("List size exceeds 100")
274274
275275 $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
276276 let txListRaw = [DeleteEntry(("lend-" + lendIdString)), DeleteEntry(("lend-rentCount-" + lendIdString)), DeleteEntry(("lend-cost-" + lendIdString)), IntegerEntry("lendCurrentCount", (lendCurrentCount - 1)), ScriptTransfer(i.caller, getLendCost(lendId), tokenPayment)]
277277 let txList = {
278278 let $l = txListRaw
279279 let $s = size($l)
280280 let $acc0 = deleteEntryList
281281 func $f1_1 ($a,$i) = if (($i >= $s))
282282 then $a
283283 else reducerConcatLists($a, $l[$i])
284284
285285 func $f1_2 ($a,$i) = if (($i >= $s))
286286 then $a
287287 else throw("List size exceeds 100")
288288
289289 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_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)
290290 }
291291 txList
292292 })
293293
294294
295295
296296 @Callable(i)
297297 func test () = {
298298 let data = ["1", "2", "3"]
299299 let list = {
300300 let $l = data
301301 let $s = size($l)
302302 let $acc0 = data
303303 func $f0_1 ($a,$i) = if (($i >= $s))
304304 then $a
305305 else reducerConcatListsString($a, $l[$i])
306306
307307 func $f0_2 ($a,$i) = if (($i >= $s))
308308 then $a
309309 else throw("List size exceeds 100")
310310
311311 $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)
312312 }
313313 [StringEntry("Debug", {
314- let $l = data
314+ let $l = list
315315 let $s = size($l)
316316 let $acc0 = ""
317317 func $f1_1 ($a,$i) = if (($i >= $s))
318318 then $a
319319 else reducerListToString($a, $l[$i])
320320
321321 func $f1_2 ($a,$i) = if (($i >= $s))
322322 then $a
323323 else throw("List size exceeds 100")
324324
325325 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_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)
326326 })]
327327 }
328328
329329

github/deemru/w8io/026f985 
58.75 ms