tx · pfXeUaN1KXiEY1dZsUEUPAJaXQKLRSeepDTJFH7u1Hw 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: -0.01400000 Waves 2023.03.22 20:46 [2501538] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves
{ "type": 13, "id": "pfXeUaN1KXiEY1dZsUEUPAJaXQKLRSeepDTJFH7u1Hw", "fee": 1400000, "feeAssetId": null, "timestamp": 1679507165032, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "sY1ddYkmCT3Kfhtx7UvhDSUBDjobtH7nch7KqkYQiQLXu4cRV8pwXNtsD7faB4WqKA32mvgPkUkdZGzPNt6TNK5" ], "script": "base64:BgJHCAISBAoCCAgSBAoCCAESAwoBCBIGCgQICAgIEgUKAwgICBIDCgECEgQKAggBEgMKAQgSBgoECAEBARIECgIBARIDCgEBEgAcAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAHYmFzZVVSSQkBEUBleHRyTmF0aXZlKDEwNTgpAQIHYmFzZVVSSQAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAMdG9rZW5QYXltZW50CQERQGV4dHJOYXRpdmUoMTA1NykBAgx0b2tlblBheW1lbnQAEXRva2VuUGF5bWVudEFzc2V0CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAOwHAQ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AAlACYAJwAoACkAKgArACwALQAuAC8AMAAxADIAMwA0ADUANgA3ADgAOQA6ADsAPAA9AD4APwBAAEEAQgBDAEQARQBGAEcASABJAEoASwBMAE0ATgBPAFAAUQBSAFMAVABVAFYAVwBYAFkAWgBbAFwAXQBeAF8AYABhAGIAYwBkBQNuaWwA3IfFcw==", "height": 2501538, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Xm3RPpvnyxxRcb5VvqpeDGKmrRMcEj7gB5u7jgTEBA Next: 5DPNXoZeUBxnjP6xgRYsRJFnG5xEncov8SAQwhEhmkHW Diff:
Old | New | Differences | |
---|---|---|---|
95 | 95 | ||
96 | 96 | ||
97 | 97 | func reducerListToString (accum,next) = ((accum + "-") + next) | |
98 | + | ||
99 | + | ||
100 | + | func reducerTest (accum,next) = { | |
101 | + | let $t031863236 = accum | |
102 | + | let deletions = $t031863236._1 | |
103 | + | let current = $t031863236._2 | |
104 | + | let maxCount = $t031863236._3 | |
105 | + | let lendId = $t031863236._4 | |
106 | + | if ((maxCount > current)) | |
107 | + | then $Tuple3((deletions :+ ((("lend-rent-" + lendId) + "-") + toString(current))), (current + 1), maxCount) | |
108 | + | else accum | |
109 | + | } | |
98 | 110 | ||
99 | 111 | ||
100 | 112 | func checkAssetOwner (caller,assetId) = if ((assetBalance(caller, fromBase58String(assetId)) == 1)) | |
296 | 308 | @Callable(i) | |
297 | 309 | func test () = { | |
298 | 310 | let data = ["1", "2", "3"] | |
299 | - | let list = { | |
300 | - | let $l = data | |
301 | - | let $s = size($l) | |
302 | - | let $acc0 = data | |
303 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
304 | - | then $a | |
305 | - | else reducerConcatListsString($a, $l[$i]) | |
311 | + | let list = ( let $l = hundredList | |
312 | + | let $s = size($l) | |
313 | + | let $acc0 = $Tuple4(data, 0, 0, "5") | |
314 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
315 | + | then $a | |
316 | + | else reducerTest($a, $l[$i]) | |
306 | 317 | ||
307 | - | ||
308 | - | ||
309 | - | ||
318 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
319 | + | then $a | |
320 | + | else throw("List size exceeds 100") | |
310 | 321 | ||
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 | - | } | |
322 | + | $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 | |
313 | 323 | [StringEntry("Debug", { | |
314 | 324 | let $l = list | |
315 | 325 | let $s = size($l) |
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 | + | ||
99 | + | ||
100 | + | func reducerTest (accum,next) = { | |
101 | + | let $t031863236 = accum | |
102 | + | let deletions = $t031863236._1 | |
103 | + | let current = $t031863236._2 | |
104 | + | let maxCount = $t031863236._3 | |
105 | + | let lendId = $t031863236._4 | |
106 | + | if ((maxCount > current)) | |
107 | + | then $Tuple3((deletions :+ ((("lend-rent-" + lendId) + "-") + toString(current))), (current + 1), maxCount) | |
108 | + | else accum | |
109 | + | } | |
98 | 110 | ||
99 | 111 | ||
100 | 112 | func checkAssetOwner (caller,assetId) = if ((assetBalance(caller, fromBase58String(assetId)) == 1)) | |
101 | 113 | then unit | |
102 | 114 | else throw("Only asset owner") | |
103 | 115 | ||
104 | 116 | ||
105 | 117 | func checkPayment (payments,amount) = if ((payments[0].amount >= amount)) | |
106 | 118 | then unit | |
107 | 119 | else throw("amount less then need") | |
108 | 120 | ||
109 | 121 | ||
110 | 122 | func checkAssetExists (assetId) = if (valueOrElse(getBoolean(assetId), false)) | |
111 | 123 | then throw("this token already use") | |
112 | 124 | else unit | |
113 | 125 | ||
114 | 126 | ||
115 | 127 | func checkLendOwner (caller,lendId) = if ((getKey(getLendJson(lendId), "owner") != toString(caller))) | |
116 | 128 | then throw("you haven't perms") | |
117 | 129 | else unit | |
118 | 130 | ||
119 | 131 | ||
120 | 132 | @Callable(i) | |
121 | 133 | func setString (_key,_value) = valueOrElse(onlyInternal(i.caller), [StringEntry(_key, _value)]) | |
122 | 134 | ||
123 | 135 | ||
124 | 136 | ||
125 | 137 | @Callable(i) | |
126 | 138 | func setInt (_key,_value) = valueOrElse(onlyInternal(i.caller), [IntegerEntry(_key, _value)]) | |
127 | 139 | ||
128 | 140 | ||
129 | 141 | ||
130 | 142 | @Callable(i) | |
131 | 143 | func deleteEntry (_key) = valueOrElse(onlyInternal(i.caller), [DeleteEntry(_key)]) | |
132 | 144 | ||
133 | 145 | ||
134 | 146 | ||
135 | 147 | @Callable(i) | |
136 | 148 | 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 | 149 | ||
138 | 150 | ||
139 | 151 | ||
140 | 152 | @Callable(i) | |
141 | 153 | func setUser (assetId,user,expires) = { | |
142 | 154 | let res = invoke(dAppJson, "makeJSON", [["user", "expires"], [user, expires]], nil) | |
143 | 155 | if ((res == res)) | |
144 | 156 | then $Tuple2([StringEntry(("userOf-" + assetId), { | |
145 | 157 | let @ = res | |
146 | 158 | if ($isInstanceOf(@, "String")) | |
147 | 159 | then @ | |
148 | 160 | else throw(($getType(@) + " couldn't be cast to String")) | |
149 | 161 | })], res) | |
150 | 162 | else throw("Strict value is not equal to itself.") | |
151 | 163 | } | |
152 | 164 | ||
153 | 165 | ||
154 | 166 | ||
155 | 167 | @Callable(i) | |
156 | 168 | func setTokenPayment (assetBinary) = valueOrElse(onlyInternal(i.caller), [BinaryEntry("tokenPayment", assetBinary)]) | |
157 | 169 | ||
158 | 170 | ||
159 | 171 | ||
160 | 172 | @Callable(i) | |
161 | 173 | func mintTokens (to,amount) = { | |
162 | 174 | let reisue = Reissue(tokenPayment, amount, true) | |
163 | 175 | let toAddress = Address(fromBase58String(to)) | |
164 | 176 | let transfer = transferOrNot(toAddress, amount, tokenPayment) | |
165 | 177 | if ((transfer == transfer)) | |
166 | 178 | then [transfer, reisue] | |
167 | 179 | else throw("Strict value is not equal to itself.") | |
168 | 180 | } | |
169 | 181 | ||
170 | 182 | ||
171 | 183 | ||
172 | 184 | @Callable(i) | |
173 | 185 | func mintNFT (to) = { | |
174 | 186 | let tokenId = (totalAmount + 1) | |
175 | 187 | let tokenIdString = toString(tokenId) | |
176 | 188 | let preName = ((symbol + "#") + tokenIdString) | |
177 | 189 | let name = if ((16 >= size(preName))) | |
178 | 190 | then preName | |
179 | 191 | else tokenIdString | |
180 | 192 | let tokenURI = (baseURI + tokenIdString) | |
181 | 193 | let json = { | |
182 | 194 | let @ = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], nil) | |
183 | 195 | if ($isInstanceOf(@, "String")) | |
184 | 196 | then @ | |
185 | 197 | else throw(($getType(@) + " couldn't be cast to String")) | |
186 | 198 | } | |
187 | 199 | let asset = Issue(name, json, 1, 0, false, unit, height) | |
188 | 200 | let assetId = calculateAssetId(asset) | |
189 | 201 | let toAddress = Address(fromBase58String(to)) | |
190 | 202 | let transfer = transferOrNot(toAddress, 1, assetId) | |
191 | 203 | if ((transfer == transfer)) | |
192 | 204 | then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
193 | 205 | else throw("Strict value is not equal to itself.") | |
194 | 206 | } | |
195 | 207 | ||
196 | 208 | ||
197 | 209 | ||
198 | 210 | @Callable(i) | |
199 | 211 | func initLend (assetId,timeUnitSeconds,timeUnitPrice,timeUnitCount) = valueOrElse(checkAssetOwner(i.caller, assetId), valueOrElse(checkAssetExists(assetId), { | |
200 | 212 | let asset = parseIdtoAsset(assetId) | |
201 | 213 | let tokenURI = { | |
202 | 214 | let @ = invoke(dAppJson, "readByJSONKey", [asset.description, "tokenURI"], nil) | |
203 | 215 | if ($isInstanceOf(@, "String")) | |
204 | 216 | then @ | |
205 | 217 | else throw(($getType(@) + " couldn't be cast to String")) | |
206 | 218 | } | |
207 | 219 | if ((tokenURI == tokenURI)) | |
208 | 220 | then { | |
209 | 221 | let lendJson = { | |
210 | 222 | 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 | 223 | if ($isInstanceOf(@, "String")) | |
212 | 224 | then @ | |
213 | 225 | else throw(($getType(@) + " couldn't be cast to String")) | |
214 | 226 | } | |
215 | 227 | if ((lendJson == lendJson)) | |
216 | 228 | then { | |
217 | 229 | let lendIdString = toString(lendCount) | |
218 | 230 | [IntegerEntry("lendCount", (lendCount + 1)), IntegerEntry("lendCurrentCount", (lendCurrentCount + 1)), IntegerEntry(("lend-rentCount-" + lendIdString), 0), StringEntry(("lend-" + lendIdString), lendJson), BooleanEntry(assetId, true)] | |
219 | 231 | } | |
220 | 232 | else throw("Strict value is not equal to itself.") | |
221 | 233 | } | |
222 | 234 | else throw("Strict value is not equal to itself.") | |
223 | 235 | })) | |
224 | 236 | ||
225 | 237 | ||
226 | 238 | ||
227 | 239 | @Callable(i) | |
228 | 240 | func initRent (lendId,timeUnitCount) = valueOrElse(checkPayment(i.payments, calcLendCost(lendId, timeUnitCount)), { | |
229 | 241 | let lendIdString = toString(lendId) | |
230 | 242 | let lendJson = getStringValue(("lend-" + lendIdString)) | |
231 | 243 | let rentId = getRentCount(lendId) | |
232 | 244 | let rentIdString = toString(rentId) | |
233 | 245 | let timeUnitSeconds = { | |
234 | 246 | let @ = invoke(dAppJson, "readByJSONKey", [lendJson, "timeUnitSeconds"], nil) | |
235 | 247 | if ($isInstanceOf(@, "String")) | |
236 | 248 | then @ | |
237 | 249 | else throw(($getType(@) + " couldn't be cast to String")) | |
238 | 250 | } | |
239 | 251 | if ((timeUnitSeconds == timeUnitSeconds)) | |
240 | 252 | then { | |
241 | 253 | let timeUnitSecondsInt = parseIntValue(timeUnitSeconds) | |
242 | 254 | if ((timeUnitSecondsInt == timeUnitSecondsInt)) | |
243 | 255 | then { | |
244 | 256 | let rentJson = { | |
245 | 257 | 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 | 258 | if ($isInstanceOf(@, "String")) | |
247 | 259 | then @ | |
248 | 260 | else throw(($getType(@) + " couldn't be cast to String")) | |
249 | 261 | } | |
250 | 262 | if ((rentJson == rentJson)) | |
251 | 263 | then [IntegerEntry(("lend-rentCount-" + lendIdString), (rentId + 1)), StringEntry(((("lend-rent-" + lendIdString) + "-") + rentIdString), rentJson), IntegerEntry(("lend-cost-" + lendIdString), (calcLendCost(lendId, timeUnitCount) + getLendCost(lendId)))] | |
252 | 264 | else throw("Strict value is not equal to itself.") | |
253 | 265 | } | |
254 | 266 | else throw("Strict value is not equal to itself.") | |
255 | 267 | } | |
256 | 268 | else throw("Strict value is not equal to itself.") | |
257 | 269 | }) | |
258 | 270 | ||
259 | 271 | ||
260 | 272 | ||
261 | 273 | @Callable(i) | |
262 | 274 | func closeLend (lendId) = valueOrElse(checkLendOwner(i.caller, lendId), { | |
263 | 275 | let lendIdString = toString(lendId) | |
264 | 276 | let deleteEntryList = ( let $l = hundredList | |
265 | 277 | let $s = size($l) | |
266 | 278 | let $acc0 = $Tuple4(nil, 0, 0, lendIdString) | |
267 | 279 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
268 | 280 | then $a | |
269 | 281 | else reducerGetDeleteEntry($a, $l[$i]) | |
270 | 282 | ||
271 | 283 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
272 | 284 | then $a | |
273 | 285 | else throw("List size exceeds 100") | |
274 | 286 | ||
275 | 287 | $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 | 288 | let txListRaw = [DeleteEntry(("lend-" + lendIdString)), DeleteEntry(("lend-rentCount-" + lendIdString)), DeleteEntry(("lend-cost-" + lendIdString)), IntegerEntry("lendCurrentCount", (lendCurrentCount - 1)), ScriptTransfer(i.caller, getLendCost(lendId), tokenPayment)] | |
277 | 289 | let txList = { | |
278 | 290 | let $l = txListRaw | |
279 | 291 | let $s = size($l) | |
280 | 292 | let $acc0 = deleteEntryList | |
281 | 293 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
282 | 294 | then $a | |
283 | 295 | else reducerConcatLists($a, $l[$i]) | |
284 | 296 | ||
285 | 297 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
286 | 298 | then $a | |
287 | 299 | else throw("List size exceeds 100") | |
288 | 300 | ||
289 | 301 | $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 | 302 | } | |
291 | 303 | txList | |
292 | 304 | }) | |
293 | 305 | ||
294 | 306 | ||
295 | 307 | ||
296 | 308 | @Callable(i) | |
297 | 309 | func test () = { | |
298 | 310 | let data = ["1", "2", "3"] | |
299 | - | let list = { | |
300 | - | let $l = data | |
301 | - | let $s = size($l) | |
302 | - | let $acc0 = data | |
303 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
304 | - | then $a | |
305 | - | else reducerConcatListsString($a, $l[$i]) | |
311 | + | let list = ( let $l = hundredList | |
312 | + | let $s = size($l) | |
313 | + | let $acc0 = $Tuple4(data, 0, 0, "5") | |
314 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
315 | + | then $a | |
316 | + | else reducerTest($a, $l[$i]) | |
306 | 317 | ||
307 | - | ||
308 | - | ||
309 | - | ||
318 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
319 | + | then $a | |
320 | + | else throw("List size exceeds 100") | |
310 | 321 | ||
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 | - | } | |
322 | + | $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 | |
313 | 323 | [StringEntry("Debug", { | |
314 | 324 | let $l = list | |
315 | 325 | let $s = size($l) | |
316 | 326 | let $acc0 = "" | |
317 | 327 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
318 | 328 | then $a | |
319 | 329 | else reducerListToString($a, $l[$i]) | |
320 | 330 | ||
321 | 331 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
322 | 332 | then $a | |
323 | 333 | else throw("List size exceeds 100") | |
324 | 334 | ||
325 | 335 | $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 | 336 | })] | |
327 | 337 | } | |
328 | 338 | ||
329 | 339 |
github/deemru/w8io/169f3d6 84.13 ms ◑