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:BgJHCAISBAoCCAgSBAoCCAESAwoBCBIGCgQICAgIEgUKAwgICBIDCgECEgQKAggBEgMKAQgSBgoECAEBARIECgIBARIDCgEBEgAbAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAHYmFzZVVSSQkBEUBleHRyTmF0aXZlKDEwNTgpAQIHYmFzZVVSSQAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAMdG9rZW5QYXltZW50CQERQGV4dHJOYXRpdmUoMTA1NykBAgx0b2tlblBheW1lbnQAEXRva2VuUGF5bWVudEFzc2V0CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAOwH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ZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZAUDbmlsAMTW7bo=", "height": 2501529, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 33TZr4kyr8bFYZHa618MSKWin2iQfYiMeHGVmVj3emDZ Next: pfXeUaN1KXiEY1dZsUEUPAJaXQKLRSeepDTJFH7u1Hw Diff:
Old | New | Differences | |
---|---|---|---|
311 | 311 | $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) | |
312 | 312 | } | |
313 | 313 | [StringEntry("Debug", { | |
314 | - | let $l = | |
314 | + | let $l = list | |
315 | 315 | let $s = size($l) | |
316 | 316 | let $acc0 = "" | |
317 | 317 | func $f1_1 ($a,$i) = if (($i >= $s)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let collectionName = getStringValue("collectionName") | |
5 | 5 | ||
6 | 6 | let symbol = getStringValue("symbol") | |
7 | 7 | ||
8 | 8 | let description = getStringValue("description") | |
9 | 9 | ||
10 | 10 | let totalAmount = getIntegerValue("totalAmount") | |
11 | 11 | ||
12 | 12 | let baseURI = getStringValue("baseURI") | |
13 | 13 | ||
14 | 14 | let dAppJson = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7")) | |
15 | 15 | ||
16 | 16 | let tokenPayment = getBinaryValue("tokenPayment") | |
17 | 17 | ||
18 | 18 | let tokenPaymentAsset = valueOrErrorMessage(assetInfo(getBinaryValue("tokenPayment")), "token payment asset doesn't connect") | |
19 | 19 | ||
20 | 20 | let lendCount = getIntegerValue("lendCount") | |
21 | 21 | ||
22 | 22 | let lendCurrentCount = getIntegerValue("lendCurrentCount") | |
23 | 23 | ||
24 | 24 | let hundredList = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] | |
25 | 25 | ||
26 | 26 | func parseIdtoAsset (assetId) = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Can't find asset by asset id") | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func transferOrNot (to,amount,assetId) = if ((to == this)) | |
30 | 30 | then StringEntry("smth", "smth") | |
31 | 31 | else ScriptTransfer(to, amount, assetId) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getLendJson (lendId) = { | |
35 | 35 | let lendIdString = toString(lendId) | |
36 | 36 | getStringValue(("lend-" + lendIdString)) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func getKey (lendJson,key) = { | |
41 | 41 | let timeUnitSeconds = { | |
42 | 42 | let @ = invoke(dAppJson, "readByJSONKey", [lendJson, key], nil) | |
43 | 43 | if ($isInstanceOf(@, "String")) | |
44 | 44 | then @ | |
45 | 45 | else throw(($getType(@) + " couldn't be cast to String")) | |
46 | 46 | } | |
47 | 47 | if ((timeUnitSeconds == timeUnitSeconds)) | |
48 | 48 | then timeUnitSeconds | |
49 | 49 | else throw("Strict value is not equal to itself.") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getRentCount (lendId) = { | |
54 | 54 | let lendIdString = toString(lendId) | |
55 | 55 | getIntegerValue(("lend-rentCount-" + lendIdString)) | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func calcLendCost (lendId,timeUnitSeconds) = { | |
60 | 60 | let lendJson = getLendJson(lendId) | |
61 | 61 | let timeUnitPriceString = getKey(lendJson, "timeUnitPrice") | |
62 | 62 | if ((timeUnitPriceString == timeUnitPriceString)) | |
63 | 63 | then { | |
64 | 64 | let timeUnitPrice = parseIntValue(timeUnitPriceString) | |
65 | 65 | (timeUnitSeconds * timeUnitPrice) | |
66 | 66 | } | |
67 | 67 | else throw("Strict value is not equal to itself.") | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getLendCost (lendId) = valueOrElse(getInteger(("lend-cost-" + toString(lendId))), 0) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func onlyInternal (caller) = if ((caller == this)) | |
75 | 75 | then unit | |
76 | 76 | else throw("Only internal call") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func reducerGetDeleteEntry (accum,next) = { | |
80 | 80 | let $t025422592 = accum | |
81 | 81 | let deletions = $t025422592._1 | |
82 | 82 | let current = $t025422592._2 | |
83 | 83 | let maxCount = $t025422592._3 | |
84 | 84 | let lendId = $t025422592._4 | |
85 | 85 | if ((maxCount > current)) | |
86 | 86 | then $Tuple3((deletions :+ DeleteEntry(((("lend-rent-" + lendId) + "-") + toString(current)))), (current + 1), maxCount) | |
87 | 87 | else accum | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func reducerConcatLists (accum,next) = (accum :+ next) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func reducerConcatListsString (accum,next) = (accum :+ next) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func reducerListToString (accum,next) = ((accum + "-") + next) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func checkAssetOwner (caller,assetId) = if ((assetBalance(caller, fromBase58String(assetId)) == 1)) | |
101 | 101 | then unit | |
102 | 102 | else throw("Only asset owner") | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func checkPayment (payments,amount) = if ((payments[0].amount >= amount)) | |
106 | 106 | then unit | |
107 | 107 | else throw("amount less then need") | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func checkAssetExists (assetId) = if (valueOrElse(getBoolean(assetId), false)) | |
111 | 111 | then throw("this token already use") | |
112 | 112 | else unit | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func checkLendOwner (caller,lendId) = if ((getKey(getLendJson(lendId), "owner") != toString(caller))) | |
116 | 116 | then throw("you haven't perms") | |
117 | 117 | else unit | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Callable(i) | |
121 | 121 | func setString (_key,_value) = valueOrElse(onlyInternal(i.caller), [StringEntry(_key, _value)]) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | ||
125 | 125 | @Callable(i) | |
126 | 126 | func setInt (_key,_value) = valueOrElse(onlyInternal(i.caller), [IntegerEntry(_key, _value)]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | ||
130 | 130 | @Callable(i) | |
131 | 131 | func deleteEntry (_key) = valueOrElse(onlyInternal(i.caller), [DeleteEntry(_key)]) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(i) | |
136 | 136 | 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)]) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(i) | |
141 | 141 | func setUser (assetId,user,expires) = { | |
142 | 142 | let res = invoke(dAppJson, "makeJSON", [["user", "expires"], [user, expires]], nil) | |
143 | 143 | if ((res == res)) | |
144 | 144 | then $Tuple2([StringEntry(("userOf-" + assetId), { | |
145 | 145 | let @ = res | |
146 | 146 | if ($isInstanceOf(@, "String")) | |
147 | 147 | then @ | |
148 | 148 | else throw(($getType(@) + " couldn't be cast to String")) | |
149 | 149 | })], res) | |
150 | 150 | else throw("Strict value is not equal to itself.") | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | ||
155 | 155 | @Callable(i) | |
156 | 156 | func setTokenPayment (assetBinary) = valueOrElse(onlyInternal(i.caller), [BinaryEntry("tokenPayment", assetBinary)]) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(i) | |
161 | 161 | func mintTokens (to,amount) = { | |
162 | 162 | let reisue = Reissue(tokenPayment, amount, true) | |
163 | 163 | let toAddress = Address(fromBase58String(to)) | |
164 | 164 | let transfer = transferOrNot(toAddress, amount, tokenPayment) | |
165 | 165 | if ((transfer == transfer)) | |
166 | 166 | then [transfer, reisue] | |
167 | 167 | else throw("Strict value is not equal to itself.") | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(i) | |
173 | 173 | func mintNFT (to) = { | |
174 | 174 | let tokenId = (totalAmount + 1) | |
175 | 175 | let tokenIdString = toString(tokenId) | |
176 | 176 | let preName = ((symbol + "#") + tokenIdString) | |
177 | 177 | let name = if ((16 >= size(preName))) | |
178 | 178 | then preName | |
179 | 179 | else tokenIdString | |
180 | 180 | let tokenURI = (baseURI + tokenIdString) | |
181 | 181 | let json = { | |
182 | 182 | let @ = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], nil) | |
183 | 183 | if ($isInstanceOf(@, "String")) | |
184 | 184 | then @ | |
185 | 185 | else throw(($getType(@) + " couldn't be cast to String")) | |
186 | 186 | } | |
187 | 187 | let asset = Issue(name, json, 1, 0, false, unit, height) | |
188 | 188 | let assetId = calculateAssetId(asset) | |
189 | 189 | let toAddress = Address(fromBase58String(to)) | |
190 | 190 | let transfer = transferOrNot(toAddress, 1, assetId) | |
191 | 191 | if ((transfer == transfer)) | |
192 | 192 | then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
193 | 193 | else throw("Strict value is not equal to itself.") | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(i) | |
199 | 199 | func initLend (assetId,timeUnitSeconds,timeUnitPrice,timeUnitCount) = valueOrElse(checkAssetOwner(i.caller, assetId), valueOrElse(checkAssetExists(assetId), { | |
200 | 200 | let asset = parseIdtoAsset(assetId) | |
201 | 201 | let tokenURI = { | |
202 | 202 | let @ = invoke(dAppJson, "readByJSONKey", [asset.description, "tokenURI"], nil) | |
203 | 203 | if ($isInstanceOf(@, "String")) | |
204 | 204 | then @ | |
205 | 205 | else throw(($getType(@) + " couldn't be cast to String")) | |
206 | 206 | } | |
207 | 207 | if ((tokenURI == tokenURI)) | |
208 | 208 | then { | |
209 | 209 | let lendJson = { | |
210 | 210 | 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) | |
211 | 211 | if ($isInstanceOf(@, "String")) | |
212 | 212 | then @ | |
213 | 213 | else throw(($getType(@) + " couldn't be cast to String")) | |
214 | 214 | } | |
215 | 215 | if ((lendJson == lendJson)) | |
216 | 216 | then { | |
217 | 217 | let lendIdString = toString(lendCount) | |
218 | 218 | [IntegerEntry("lendCount", (lendCount + 1)), IntegerEntry("lendCurrentCount", (lendCurrentCount + 1)), IntegerEntry(("lend-rentCount-" + lendIdString), 0), StringEntry(("lend-" + lendIdString), lendJson), BooleanEntry(assetId, true)] | |
219 | 219 | } | |
220 | 220 | else throw("Strict value is not equal to itself.") | |
221 | 221 | } | |
222 | 222 | else throw("Strict value is not equal to itself.") | |
223 | 223 | })) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(i) | |
228 | 228 | func initRent (lendId,timeUnitCount) = valueOrElse(checkPayment(i.payments, calcLendCost(lendId, timeUnitCount)), { | |
229 | 229 | let lendIdString = toString(lendId) | |
230 | 230 | let lendJson = getStringValue(("lend-" + lendIdString)) | |
231 | 231 | let rentId = getRentCount(lendId) | |
232 | 232 | let rentIdString = toString(rentId) | |
233 | 233 | let timeUnitSeconds = { | |
234 | 234 | let @ = invoke(dAppJson, "readByJSONKey", [lendJson, "timeUnitSeconds"], nil) | |
235 | 235 | if ($isInstanceOf(@, "String")) | |
236 | 236 | then @ | |
237 | 237 | else throw(($getType(@) + " couldn't be cast to String")) | |
238 | 238 | } | |
239 | 239 | if ((timeUnitSeconds == timeUnitSeconds)) | |
240 | 240 | then { | |
241 | 241 | let timeUnitSecondsInt = parseIntValue(timeUnitSeconds) | |
242 | 242 | if ((timeUnitSecondsInt == timeUnitSecondsInt)) | |
243 | 243 | then { | |
244 | 244 | let rentJson = { | |
245 | 245 | let @ = invoke(dAppJson, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(i.caller), toString(timeUnitCount), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (timeUnitSecondsInt * timeUnitCount))), "0"]], nil) | |
246 | 246 | if ($isInstanceOf(@, "String")) | |
247 | 247 | then @ | |
248 | 248 | else throw(($getType(@) + " couldn't be cast to String")) | |
249 | 249 | } | |
250 | 250 | if ((rentJson == rentJson)) | |
251 | 251 | then [IntegerEntry(("lend-rentCount-" + lendIdString), (rentId + 1)), StringEntry(((("lend-rent-" + lendIdString) + "-") + rentIdString), rentJson), IntegerEntry(("lend-cost-" + lendIdString), (calcLendCost(lendId, timeUnitCount) + getLendCost(lendId)))] | |
252 | 252 | else throw("Strict value is not equal to itself.") | |
253 | 253 | } | |
254 | 254 | else throw("Strict value is not equal to itself.") | |
255 | 255 | } | |
256 | 256 | else throw("Strict value is not equal to itself.") | |
257 | 257 | }) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | ||
261 | 261 | @Callable(i) | |
262 | 262 | func closeLend (lendId) = valueOrElse(checkLendOwner(i.caller, lendId), { | |
263 | 263 | let lendIdString = toString(lendId) | |
264 | 264 | let deleteEntryList = ( let $l = hundredList | |
265 | 265 | let $s = size($l) | |
266 | 266 | let $acc0 = $Tuple4(nil, 0, 0, lendIdString) | |
267 | 267 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
268 | 268 | then $a | |
269 | 269 | else reducerGetDeleteEntry($a, $l[$i]) | |
270 | 270 | ||
271 | 271 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
272 | 272 | then $a | |
273 | 273 | else throw("List size exceeds 100") | |
274 | 274 | ||
275 | 275 | $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 | |
276 | 276 | let txListRaw = [DeleteEntry(("lend-" + lendIdString)), DeleteEntry(("lend-rentCount-" + lendIdString)), DeleteEntry(("lend-cost-" + lendIdString)), IntegerEntry("lendCurrentCount", (lendCurrentCount - 1)), ScriptTransfer(i.caller, getLendCost(lendId), tokenPayment)] | |
277 | 277 | let txList = { | |
278 | 278 | let $l = txListRaw | |
279 | 279 | let $s = size($l) | |
280 | 280 | let $acc0 = deleteEntryList | |
281 | 281 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
282 | 282 | then $a | |
283 | 283 | else reducerConcatLists($a, $l[$i]) | |
284 | 284 | ||
285 | 285 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
286 | 286 | then $a | |
287 | 287 | else throw("List size exceeds 100") | |
288 | 288 | ||
289 | 289 | $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) | |
290 | 290 | } | |
291 | 291 | txList | |
292 | 292 | }) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | ||
296 | 296 | @Callable(i) | |
297 | 297 | func test () = { | |
298 | 298 | let data = ["1", "2", "3"] | |
299 | 299 | let list = { | |
300 | 300 | let $l = data | |
301 | 301 | let $s = size($l) | |
302 | 302 | let $acc0 = data | |
303 | 303 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
304 | 304 | then $a | |
305 | 305 | else reducerConcatListsString($a, $l[$i]) | |
306 | 306 | ||
307 | 307 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
308 | 308 | then $a | |
309 | 309 | else throw("List size exceeds 100") | |
310 | 310 | ||
311 | 311 | $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) | |
312 | 312 | } | |
313 | 313 | [StringEntry("Debug", { | |
314 | - | let $l = | |
314 | + | let $l = list | |
315 | 315 | let $s = size($l) | |
316 | 316 | let $acc0 = "" | |
317 | 317 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
318 | 318 | then $a | |
319 | 319 | else reducerListToString($a, $l[$i]) | |
320 | 320 | ||
321 | 321 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
322 | 322 | then $a | |
323 | 323 | else throw("List size exceeds 100") | |
324 | 324 | ||
325 | 325 | $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) | |
326 | 326 | })] | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 |
github/deemru/w8io/026f985 58.75 ms ◑