tx · 2fmMxLi6Bisiogo7S27NamqZcrHnWBrGJuS6V43LffaF

3N6fTzqTSR5TgnERgXCu6QdBXko9hCefzP5:  -0.01300000 Waves

2023.03.23 16:50 [2502731] smart account 3N6fTzqTSR5TgnERgXCu6QdBXko9hCefzP5 > SELF 0.00000000 Waves

{ "type": 13, "id": "2fmMxLi6Bisiogo7S27NamqZcrHnWBrGJuS6V43LffaF", "fee": 1300000, "feeAssetId": null, "timestamp": 1679579456269, "version": 2, "chainId": 84, "sender": "3N6fTzqTSR5TgnERgXCu6QdBXko9hCefzP5", "senderPublicKey": "HgH8MfpuURJBWAr8E3KbVp9C2NYiXi3H4WnsJJq5xVqG", "proofs": [ "3NtwjawKvbrYNojRzrxVx7zK9LLiBftXFcg21qeyaKPCu1oyzY6aXfr8iE2ved3HJJd8tenhRzcSjUXEDtty7duR" ], "script": "base64:BgJHCAISBAoCCAgSBAoCCAESAwoBCBIGCgQICAgIEgUKAwgICBIDCgECEgQKAggBEgMKAQgSBgoECAEBARIECgIBARIDCgEBEgAcAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAHYmFzZVVSSQkBEUBleHRyTmF0aXZlKDEwNTgpAQIHYmFzZVVSSQAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAMdG9rZW5QYXltZW50CQERQGV4dHJOYXRpdmUoMTA1NykBAgx0b2tlblBheW1lbnQAEXRva2VuUGF5bWVudEFzc2V0CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAOwHAQkBE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MQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZAUDbmlsABLU8rs=", "height": 2502731, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HRSxMw8vt2cDtMxzGmUMXbWZ1dpCniR4Gj1ex8bqXVpG Next: 4cN7zb9WWbBCCvz6Tf8ok4HqX3vBJHotrBN1bT4rNoY1 Diff:
OldNewDifferences
8383 let L = I._3
8484 let r = I._4
8585 if ((L > K))
86- then $Tuple3((J :+ DeleteEntry(((("lend-rent-" + r) + "-") + toString(K)))), (K + 1), L)
86+ then $Tuple4((J :+ DeleteEntry(((("lend-rent-" + r) + "-") + toString(K)))), (K + 1), L, r)
8787 else G
8888 }
8989
9797 func O (G,H) = ((G + "-") + H)
9898
9999
100-func P (E,m) = if ((assetBalance(E, fromBase58String(m)) == 1))
100+func P (G,H) = {
101+ let Q = G
102+ let J = Q._1
103+ let K = Q._2
104+ let L = Q._3
105+ let r = Q._4
106+ if ((L > K))
107+ then $Tuple4((J :+ ((("lend-rent-" + r) + "-") + toString(K))), (K + 1), L, r)
108+ else $Tuple4(J, K, L, r)
109+ }
110+
111+
112+func R (E,m) = if ((assetBalance(E, fromBase58String(m)) == 1))
101113 then unit
102114 else throw("Only asset owner")
103115
104116
105-func Q (R,p) = if ((R[0].amount >= p))
117+func S (T,p) = if ((T[0].amount >= p))
106118 then unit
107119 else throw("amount less then need")
108120
109121
110-func S (m) = if (valueOrElse(getBoolean(m), false))
122+func U (m) = if (valueOrElse(getBoolean(m), false))
111123 then throw("this token already use")
112124 else unit
113125
114126
115-func T (E,r) = if ((t(q(r), "owner") != toString(E)))
127+func V (E,r) = if ((t(q(r), "owner") != toString(E)))
116128 then throw("you haven't perms")
117129 else unit
118130
119131
120-@Callable(U)
121-func setString (V,W) = valueOrElse(D(U.caller), [StringEntry(V, W)])
132+@Callable(W)
133+func setString (X,Y) = valueOrElse(D(W.caller), [StringEntry(X, Y)])
122134
123135
124136
125-@Callable(U)
126-func setInt (V,W) = valueOrElse(D(U.caller), [IntegerEntry(V, W)])
137+@Callable(W)
138+func setInt (X,Y) = valueOrElse(D(W.caller), [IntegerEntry(X, Y)])
127139
128140
129141
130-@Callable(U)
131-func deleteEntry (V) = valueOrElse(D(U.caller), [DeleteEntry(V)])
142+@Callable(W)
143+func deleteEntry (X) = valueOrElse(D(W.caller), [DeleteEntry(X)])
132144
133145
134146
135-@Callable(U)
136-func init (X,Y,Z,aa) = valueOrElse(D(U.caller), [StringEntry("collectionName", X), StringEntry("symbol", Y), StringEntry("description", Z), IntegerEntry("totalAmount", 0), StringEntry("baseURI", aa)])
147+@Callable(W)
148+func init (Z,aa,ab,ac) = valueOrElse(D(W.caller), [StringEntry("collectionName", Z), StringEntry("symbol", aa), StringEntry("description", ab), IntegerEntry("totalAmount", 0), StringEntry("baseURI", ac)])
137149
138150
139151
140-@Callable(U)
141-func setUser (m,ab,ac) = {
142- let ad = invoke(f, "makeJSON", [["user", "expires"], [ab, ac]], nil)
143- if ((ad == ad))
152+@Callable(W)
153+func setUser (m,ad,ae) = {
154+ let af = invoke(f, "makeJSON", [["user", "expires"], [ad, ae]], nil)
155+ if ((af == af))
144156 then $Tuple2([StringEntry(("userOf-" + m), {
145- let x = ad
157+ let x = af
146158 if ($isInstanceOf(x, "String"))
147159 then x
148160 else throw(($getType(x) + " couldn't be cast to String"))
149- })], ad)
161+ })], af)
150162 else throw("Strict value is not equal to itself.")
151163 }
152164
153165
154166
155-@Callable(U)
156-func setTokenPayment (ae) = valueOrElse(D(U.caller), [BinaryEntry("tokenPayment", ae)])
167+@Callable(W)
168+func setTokenPayment (ag) = valueOrElse(D(W.caller), [BinaryEntry("tokenPayment", ag)])
157169
158170
159171
160-@Callable(U)
172+@Callable(W)
161173 func mintTokens (o,p) = {
162- let af = Reissue(g, p, true)
163- let ag = Address(fromBase58String(o))
164- let ah = n(ag, p, g)
165- if ((ah == ah))
166- then [ah, af]
174+ let ah = Reissue(g, p, true)
175+ let ai = Address(fromBase58String(o))
176+ let aj = n(ai, p, g)
177+ if ((aj == aj))
178+ then [aj, ah]
167179 else throw("Strict value is not equal to itself.")
168180 }
169181
170182
171183
172-@Callable(U)
184+@Callable(W)
173185 func mintNFT (o) = {
174- let ai = (d + 1)
175- let aj = toString(ai)
176- let ak = ((b + "#") + aj)
177- let al = if ((16 >= size(ak)))
178- then ak
179- else aj
180- let am = (e + aj)
181- let an = {
182- let x = invoke(f, "makeJSON", [["tokenURI"], [am]], nil)
186+ let ak = (d + 1)
187+ let al = toString(ak)
188+ let am = ((b + "#") + al)
189+ let an = if ((16 >= size(am)))
190+ then am
191+ else al
192+ let ao = (e + al)
193+ let ap = {
194+ let x = invoke(f, "makeJSON", [["tokenURI"], [ao]], nil)
183195 if ($isInstanceOf(x, "String"))
184196 then x
185197 else throw(($getType(x) + " couldn't be cast to String"))
186198 }
187- let ao = Issue(al, an, 1, 0, false, unit, height)
188- let m = calculateAssetId(ao)
189- let ag = Address(fromBase58String(o))
190- let ah = n(ag, 1, m)
191- if ((ah == ah))
192- then [ao, ah, IntegerEntry("totalAmount", ai), StringEntry(al, am)]
199+ let aq = Issue(an, ap, 1, 0, false, unit, height)
200+ let m = calculateAssetId(aq)
201+ let ai = Address(fromBase58String(o))
202+ let aj = n(ai, 1, m)
203+ if ((aj == aj))
204+ then [aq, aj, IntegerEntry("totalAmount", ak), StringEntry(an, ao)]
193205 else throw("Strict value is not equal to itself.")
194206 }
195207
196208
197209
198-@Callable(U)
199-func initLend (m,w,B,ap) = valueOrElse(P(U.caller, m), valueOrElse(S(m), {
200- let ao = l(m)
201- let am = {
202- let x = invoke(f, "readByJSONKey", [ao.description, "tokenURI"], nil)
210+@Callable(W)
211+func initLend (m,w,B,ar) = valueOrElse(R(W.caller, m), valueOrElse(U(m), {
212+ let aq = l(m)
213+ let ao = {
214+ let x = invoke(f, "readByJSONKey", [aq.description, "tokenURI"], nil)
203215 if ($isInstanceOf(x, "String"))
204216 then x
205217 else throw(($getType(x) + " couldn't be cast to String"))
206218 }
207- if ((am == am))
219+ if ((ao == ao))
208220 then {
209221 let u = {
210- let x = invoke(f, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", m, am, toString(U.caller), toString(w), toString(B), toString(ap), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (w * ap))), "0", "0"]], nil)
222+ let x = invoke(f, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", m, ao, toString(W.caller), toString(w), toString(B), toString(ar), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (w * ar))), "0", "0"]], nil)
211223 if ($isInstanceOf(x, "String"))
212224 then x
213225 else throw(($getType(x) + " couldn't be cast to String"))
224236
225237
226238
227-@Callable(U)
228-func initRent (r,ap) = valueOrElse(Q(U.payments, z(r, ap)), {
239+@Callable(W)
240+func initRent (r,ar) = valueOrElse(S(W.payments, z(r, ar)), {
229241 let s = toString(r)
230242 let u = getStringValue(("lend-" + s))
231- let aq = y(r)
232- let ar = toString(aq)
243+ let as = y(r)
244+ let at = toString(as)
233245 let w = {
234246 let x = invoke(f, "readByJSONKey", [u, "timeUnitSeconds"], nil)
235247 if ($isInstanceOf(x, "String"))
238250 }
239251 if ((w == w))
240252 then {
241- let as = parseIntValue(w)
242- if ((as == as))
253+ let au = parseIntValue(w)
254+ if ((au == au))
243255 then {
244- let at = {
245- let x = invoke(f, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(U.caller), toString(ap), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (as * ap))), "0"]], nil)
256+ let av = {
257+ let x = invoke(f, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(W.caller), toString(ar), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (au * ar))), "0"]], nil)
246258 if ($isInstanceOf(x, "String"))
247259 then x
248260 else throw(($getType(x) + " couldn't be cast to String"))
249261 }
250- if ((at == at))
251- then [IntegerEntry(("lend-rentCount-" + s), (aq + 1)), StringEntry(((("lend-rent-" + s) + "-") + ar), at), IntegerEntry(("lend-cost-" + s), (z(r, ap) + C(r)))]
262+ if ((av == av))
263+ then [IntegerEntry(("lend-rentCount-" + s), (as + 1)), StringEntry(((("lend-rent-" + s) + "-") + at), av), IntegerEntry(("lend-cost-" + s), (z(r, ar) + C(r)))]
252264 else throw("Strict value is not equal to itself.")
253265 }
254266 else throw("Strict value is not equal to itself.")
258270
259271
260272
261-@Callable(U)
262-func closeLend (r) = valueOrElse(T(U.caller, r), {
273+@Callable(W)
274+func closeLend (r) = valueOrElse(V(W.caller, r), {
263275 let s = toString(r)
264- let au = ( let av = k
265- let aw = size(av)
266- let ax = $Tuple4(nil, 0, 0, s)
267- func ay (az,aA) = if ((aA >= aw))
268- then az
269- else F(az, av[aA])
276+ let aw = getIntegerValue(("lend-rentCount-" + s))
277+ let ax = ( let ay = k
278+ let az = size(ay)
279+ let aA = $Tuple4(nil, 0, aw, s)
280+ func aB (aC,aD) = if ((aD >= az))
281+ then aC
282+ else F(aC, ay[aD])
270283
271- func aB (az,aA) = if ((aA >= aw))
272- then az
284+ func aE (aC,aD) = if ((aD >= az))
285+ then aC
273286 else throw("List size exceeds 100")
274287
275- aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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- let aC = [DeleteEntry(("lend-" + s)), DeleteEntry(("lend-rentCount-" + s)), DeleteEntry(("lend-cost-" + s)), IntegerEntry("lendCurrentCount", (j - 1)), ScriptTransfer(U.caller, C(r), g)]
277- let aD = {
278- let av = aC
279- let aw = size(av)
280- let ax = au
281- func aE (az,aA) = if ((aA >= aw))
282- then az
283- else M(az, av[aA])
284-
285- func aF (az,aA) = if ((aA >= aw))
286- then az
287- else throw("List size exceeds 100")
288-
289- aF(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(ax, 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- }
291- aD
288+ aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 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
289+ let m = t(q(r), "assetId")
290+ let aF = [BooleanEntry(m, false), DeleteEntry(("lend-cost-" + s)), ScriptTransfer(W.caller, C(r), g)]
291+ aF
292292 })
293293
294294
295295
296-@Callable(U)
296+@Callable(W)
297297 func test () = {
298298 let aG = ["1", "2", "3"]
299- let aH = {
300- let av = aG
301- let aw = size(av)
302- let ax = aG
303- func ay (az,aA) = if ((aA >= aw))
304- then az
305- else N(az, av[aA])
299+ let aH = ( let ay = k
300+ let az = size(ay)
301+ let aA = $Tuple4(aG, 0, 5, "5")
302+ func aB (aC,aD) = if ((aD >= az))
303+ then aC
304+ else P(aC, ay[aD])
306305
307- func aB (az,aA) = if ((aA >= aw))
308- then az
306+ func aE (aC,aD) = if ((aD >= az))
307+ then aC
308+ else throw("List size exceeds 100")
309+
310+ aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 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
311+[StringEntry("Debug", {
312+ let ay = aH
313+ let az = size(ay)
314+ let aA = ""
315+ func aI (aC,aD) = if ((aD >= az))
316+ then aC
317+ else O(aC, ay[aD])
318+
319+ func aJ (aC,aD) = if ((aD >= az))
320+ then aC
309321 else throw("List size exceeds 100")
310322
311- aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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- }
313-[StringEntry("Debug", {
314- let av = aG
315- let aw = size(av)
316- let ax = ""
317- func aE (az,aA) = if ((aA >= aw))
318- then az
319- else O(az, av[aA])
320-
321- func aF (az,aA) = if ((aA >= aw))
322- then az
323- else throw("List size exceeds 100")
324-
325- aF(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(ax, 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)
323+ aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aA, 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)
326324 })]
327325 }
328326
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = getStringValue("collectionName")
55
66 let b = getStringValue("symbol")
77
88 let c = getStringValue("description")
99
1010 let d = getIntegerValue("totalAmount")
1111
1212 let e = getStringValue("baseURI")
1313
1414 let f = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7"))
1515
1616 let g = getBinaryValue("tokenPayment")
1717
1818 let h = valueOrErrorMessage(assetInfo(getBinaryValue("tokenPayment")), "token payment asset doesn't connect")
1919
2020 let i = getIntegerValue("lendCount")
2121
2222 let j = getIntegerValue("lendCurrentCount")
2323
2424 let k = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]
2525
2626 func l (m) = valueOrErrorMessage(assetInfo(fromBase58String(m)), "Can't find asset by asset id")
2727
2828
2929 func n (o,p,m) = if ((o == this))
3030 then StringEntry("smth", "smth")
3131 else ScriptTransfer(o, p, m)
3232
3333
3434 func q (r) = {
3535 let s = toString(r)
3636 getStringValue(("lend-" + s))
3737 }
3838
3939
4040 func t (u,v) = {
4141 let w = {
4242 let x = invoke(f, "readByJSONKey", [u, v], nil)
4343 if ($isInstanceOf(x, "String"))
4444 then x
4545 else throw(($getType(x) + " couldn't be cast to String"))
4646 }
4747 if ((w == w))
4848 then w
4949 else throw("Strict value is not equal to itself.")
5050 }
5151
5252
5353 func y (r) = {
5454 let s = toString(r)
5555 getIntegerValue(("lend-rentCount-" + s))
5656 }
5757
5858
5959 func z (r,w) = {
6060 let u = q(r)
6161 let A = t(u, "timeUnitPrice")
6262 if ((A == A))
6363 then {
6464 let B = parseIntValue(A)
6565 (w * B)
6666 }
6767 else throw("Strict value is not equal to itself.")
6868 }
6969
7070
7171 func C (r) = valueOrElse(getInteger(("lend-cost-" + toString(r))), 0)
7272
7373
7474 func D (E) = if ((E == this))
7575 then unit
7676 else throw("Only internal call")
7777
7878
7979 func F (G,H) = {
8080 let I = G
8181 let J = I._1
8282 let K = I._2
8383 let L = I._3
8484 let r = I._4
8585 if ((L > K))
86- then $Tuple3((J :+ DeleteEntry(((("lend-rent-" + r) + "-") + toString(K)))), (K + 1), L)
86+ then $Tuple4((J :+ DeleteEntry(((("lend-rent-" + r) + "-") + toString(K)))), (K + 1), L, r)
8787 else G
8888 }
8989
9090
9191 func M (G,H) = (G :+ H)
9292
9393
9494 func N (G,H) = (G :+ H)
9595
9696
9797 func O (G,H) = ((G + "-") + H)
9898
9999
100-func P (E,m) = if ((assetBalance(E, fromBase58String(m)) == 1))
100+func P (G,H) = {
101+ let Q = G
102+ let J = Q._1
103+ let K = Q._2
104+ let L = Q._3
105+ let r = Q._4
106+ if ((L > K))
107+ then $Tuple4((J :+ ((("lend-rent-" + r) + "-") + toString(K))), (K + 1), L, r)
108+ else $Tuple4(J, K, L, r)
109+ }
110+
111+
112+func R (E,m) = if ((assetBalance(E, fromBase58String(m)) == 1))
101113 then unit
102114 else throw("Only asset owner")
103115
104116
105-func Q (R,p) = if ((R[0].amount >= p))
117+func S (T,p) = if ((T[0].amount >= p))
106118 then unit
107119 else throw("amount less then need")
108120
109121
110-func S (m) = if (valueOrElse(getBoolean(m), false))
122+func U (m) = if (valueOrElse(getBoolean(m), false))
111123 then throw("this token already use")
112124 else unit
113125
114126
115-func T (E,r) = if ((t(q(r), "owner") != toString(E)))
127+func V (E,r) = if ((t(q(r), "owner") != toString(E)))
116128 then throw("you haven't perms")
117129 else unit
118130
119131
120-@Callable(U)
121-func setString (V,W) = valueOrElse(D(U.caller), [StringEntry(V, W)])
132+@Callable(W)
133+func setString (X,Y) = valueOrElse(D(W.caller), [StringEntry(X, Y)])
122134
123135
124136
125-@Callable(U)
126-func setInt (V,W) = valueOrElse(D(U.caller), [IntegerEntry(V, W)])
137+@Callable(W)
138+func setInt (X,Y) = valueOrElse(D(W.caller), [IntegerEntry(X, Y)])
127139
128140
129141
130-@Callable(U)
131-func deleteEntry (V) = valueOrElse(D(U.caller), [DeleteEntry(V)])
142+@Callable(W)
143+func deleteEntry (X) = valueOrElse(D(W.caller), [DeleteEntry(X)])
132144
133145
134146
135-@Callable(U)
136-func init (X,Y,Z,aa) = valueOrElse(D(U.caller), [StringEntry("collectionName", X), StringEntry("symbol", Y), StringEntry("description", Z), IntegerEntry("totalAmount", 0), StringEntry("baseURI", aa)])
147+@Callable(W)
148+func init (Z,aa,ab,ac) = valueOrElse(D(W.caller), [StringEntry("collectionName", Z), StringEntry("symbol", aa), StringEntry("description", ab), IntegerEntry("totalAmount", 0), StringEntry("baseURI", ac)])
137149
138150
139151
140-@Callable(U)
141-func setUser (m,ab,ac) = {
142- let ad = invoke(f, "makeJSON", [["user", "expires"], [ab, ac]], nil)
143- if ((ad == ad))
152+@Callable(W)
153+func setUser (m,ad,ae) = {
154+ let af = invoke(f, "makeJSON", [["user", "expires"], [ad, ae]], nil)
155+ if ((af == af))
144156 then $Tuple2([StringEntry(("userOf-" + m), {
145- let x = ad
157+ let x = af
146158 if ($isInstanceOf(x, "String"))
147159 then x
148160 else throw(($getType(x) + " couldn't be cast to String"))
149- })], ad)
161+ })], af)
150162 else throw("Strict value is not equal to itself.")
151163 }
152164
153165
154166
155-@Callable(U)
156-func setTokenPayment (ae) = valueOrElse(D(U.caller), [BinaryEntry("tokenPayment", ae)])
167+@Callable(W)
168+func setTokenPayment (ag) = valueOrElse(D(W.caller), [BinaryEntry("tokenPayment", ag)])
157169
158170
159171
160-@Callable(U)
172+@Callable(W)
161173 func mintTokens (o,p) = {
162- let af = Reissue(g, p, true)
163- let ag = Address(fromBase58String(o))
164- let ah = n(ag, p, g)
165- if ((ah == ah))
166- then [ah, af]
174+ let ah = Reissue(g, p, true)
175+ let ai = Address(fromBase58String(o))
176+ let aj = n(ai, p, g)
177+ if ((aj == aj))
178+ then [aj, ah]
167179 else throw("Strict value is not equal to itself.")
168180 }
169181
170182
171183
172-@Callable(U)
184+@Callable(W)
173185 func mintNFT (o) = {
174- let ai = (d + 1)
175- let aj = toString(ai)
176- let ak = ((b + "#") + aj)
177- let al = if ((16 >= size(ak)))
178- then ak
179- else aj
180- let am = (e + aj)
181- let an = {
182- let x = invoke(f, "makeJSON", [["tokenURI"], [am]], nil)
186+ let ak = (d + 1)
187+ let al = toString(ak)
188+ let am = ((b + "#") + al)
189+ let an = if ((16 >= size(am)))
190+ then am
191+ else al
192+ let ao = (e + al)
193+ let ap = {
194+ let x = invoke(f, "makeJSON", [["tokenURI"], [ao]], nil)
183195 if ($isInstanceOf(x, "String"))
184196 then x
185197 else throw(($getType(x) + " couldn't be cast to String"))
186198 }
187- let ao = Issue(al, an, 1, 0, false, unit, height)
188- let m = calculateAssetId(ao)
189- let ag = Address(fromBase58String(o))
190- let ah = n(ag, 1, m)
191- if ((ah == ah))
192- then [ao, ah, IntegerEntry("totalAmount", ai), StringEntry(al, am)]
199+ let aq = Issue(an, ap, 1, 0, false, unit, height)
200+ let m = calculateAssetId(aq)
201+ let ai = Address(fromBase58String(o))
202+ let aj = n(ai, 1, m)
203+ if ((aj == aj))
204+ then [aq, aj, IntegerEntry("totalAmount", ak), StringEntry(an, ao)]
193205 else throw("Strict value is not equal to itself.")
194206 }
195207
196208
197209
198-@Callable(U)
199-func initLend (m,w,B,ap) = valueOrElse(P(U.caller, m), valueOrElse(S(m), {
200- let ao = l(m)
201- let am = {
202- let x = invoke(f, "readByJSONKey", [ao.description, "tokenURI"], nil)
210+@Callable(W)
211+func initLend (m,w,B,ar) = valueOrElse(R(W.caller, m), valueOrElse(U(m), {
212+ let aq = l(m)
213+ let ao = {
214+ let x = invoke(f, "readByJSONKey", [aq.description, "tokenURI"], nil)
203215 if ($isInstanceOf(x, "String"))
204216 then x
205217 else throw(($getType(x) + " couldn't be cast to String"))
206218 }
207- if ((am == am))
219+ if ((ao == ao))
208220 then {
209221 let u = {
210- let x = invoke(f, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", m, am, toString(U.caller), toString(w), toString(B), toString(ap), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (w * ap))), "0", "0"]], nil)
222+ let x = invoke(f, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", m, ao, toString(W.caller), toString(w), toString(B), toString(ar), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (w * ar))), "0", "0"]], nil)
211223 if ($isInstanceOf(x, "String"))
212224 then x
213225 else throw(($getType(x) + " couldn't be cast to String"))
214226 }
215227 if ((u == u))
216228 then {
217229 let s = toString(i)
218230 [IntegerEntry("lendCount", (i + 1)), IntegerEntry("lendCurrentCount", (j + 1)), IntegerEntry(("lend-rentCount-" + s), 0), StringEntry(("lend-" + s), u), BooleanEntry(m, true)]
219231 }
220232 else throw("Strict value is not equal to itself.")
221233 }
222234 else throw("Strict value is not equal to itself.")
223235 }))
224236
225237
226238
227-@Callable(U)
228-func initRent (r,ap) = valueOrElse(Q(U.payments, z(r, ap)), {
239+@Callable(W)
240+func initRent (r,ar) = valueOrElse(S(W.payments, z(r, ar)), {
229241 let s = toString(r)
230242 let u = getStringValue(("lend-" + s))
231- let aq = y(r)
232- let ar = toString(aq)
243+ let as = y(r)
244+ let at = toString(as)
233245 let w = {
234246 let x = invoke(f, "readByJSONKey", [u, "timeUnitSeconds"], nil)
235247 if ($isInstanceOf(x, "String"))
236248 then x
237249 else throw(($getType(x) + " couldn't be cast to String"))
238250 }
239251 if ((w == w))
240252 then {
241- let as = parseIntValue(w)
242- if ((as == as))
253+ let au = parseIntValue(w)
254+ if ((au == au))
243255 then {
244- let at = {
245- let x = invoke(f, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(U.caller), toString(ap), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (as * ap))), "0"]], nil)
256+ let av = {
257+ let x = invoke(f, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(W.caller), toString(ar), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (au * ar))), "0"]], nil)
246258 if ($isInstanceOf(x, "String"))
247259 then x
248260 else throw(($getType(x) + " couldn't be cast to String"))
249261 }
250- if ((at == at))
251- then [IntegerEntry(("lend-rentCount-" + s), (aq + 1)), StringEntry(((("lend-rent-" + s) + "-") + ar), at), IntegerEntry(("lend-cost-" + s), (z(r, ap) + C(r)))]
262+ if ((av == av))
263+ then [IntegerEntry(("lend-rentCount-" + s), (as + 1)), StringEntry(((("lend-rent-" + s) + "-") + at), av), IntegerEntry(("lend-cost-" + s), (z(r, ar) + C(r)))]
252264 else throw("Strict value is not equal to itself.")
253265 }
254266 else throw("Strict value is not equal to itself.")
255267 }
256268 else throw("Strict value is not equal to itself.")
257269 })
258270
259271
260272
261-@Callable(U)
262-func closeLend (r) = valueOrElse(T(U.caller, r), {
273+@Callable(W)
274+func closeLend (r) = valueOrElse(V(W.caller, r), {
263275 let s = toString(r)
264- let au = ( let av = k
265- let aw = size(av)
266- let ax = $Tuple4(nil, 0, 0, s)
267- func ay (az,aA) = if ((aA >= aw))
268- then az
269- else F(az, av[aA])
276+ let aw = getIntegerValue(("lend-rentCount-" + s))
277+ let ax = ( let ay = k
278+ let az = size(ay)
279+ let aA = $Tuple4(nil, 0, aw, s)
280+ func aB (aC,aD) = if ((aD >= az))
281+ then aC
282+ else F(aC, ay[aD])
270283
271- func aB (az,aA) = if ((aA >= aw))
272- then az
284+ func aE (aC,aD) = if ((aD >= az))
285+ then aC
273286 else throw("List size exceeds 100")
274287
275- aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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- let aC = [DeleteEntry(("lend-" + s)), DeleteEntry(("lend-rentCount-" + s)), DeleteEntry(("lend-cost-" + s)), IntegerEntry("lendCurrentCount", (j - 1)), ScriptTransfer(U.caller, C(r), g)]
277- let aD = {
278- let av = aC
279- let aw = size(av)
280- let ax = au
281- func aE (az,aA) = if ((aA >= aw))
282- then az
283- else M(az, av[aA])
284-
285- func aF (az,aA) = if ((aA >= aw))
286- then az
287- else throw("List size exceeds 100")
288-
289- aF(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(ax, 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- }
291- aD
288+ aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 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
289+ let m = t(q(r), "assetId")
290+ let aF = [BooleanEntry(m, false), DeleteEntry(("lend-cost-" + s)), ScriptTransfer(W.caller, C(r), g)]
291+ aF
292292 })
293293
294294
295295
296-@Callable(U)
296+@Callable(W)
297297 func test () = {
298298 let aG = ["1", "2", "3"]
299- let aH = {
300- let av = aG
301- let aw = size(av)
302- let ax = aG
303- func ay (az,aA) = if ((aA >= aw))
304- then az
305- else N(az, av[aA])
299+ let aH = ( let ay = k
300+ let az = size(ay)
301+ let aA = $Tuple4(aG, 0, 5, "5")
302+ func aB (aC,aD) = if ((aD >= az))
303+ then aC
304+ else P(aC, ay[aD])
306305
307- func aB (az,aA) = if ((aA >= aw))
308- then az
306+ func aE (aC,aD) = if ((aD >= az))
307+ then aC
308+ else throw("List size exceeds 100")
309+
310+ aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 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
311+[StringEntry("Debug", {
312+ let ay = aH
313+ let az = size(ay)
314+ let aA = ""
315+ func aI (aC,aD) = if ((aD >= az))
316+ then aC
317+ else O(aC, ay[aD])
318+
319+ func aJ (aC,aD) = if ((aD >= az))
320+ then aC
309321 else throw("List size exceeds 100")
310322
311- aB(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ay(ax, 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- }
313-[StringEntry("Debug", {
314- let av = aG
315- let aw = size(av)
316- let ax = ""
317- func aE (az,aA) = if ((aA >= aw))
318- then az
319- else O(az, av[aA])
320-
321- func aF (az,aA) = if ((aA >= aw))
322- then az
323- else throw("List size exceeds 100")
324-
325- aF(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(ax, 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)
323+ aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aA, 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)
326324 })]
327325 }
328326
329327

github/deemru/w8io/169f3d6 
75.83 ms