tx · 2xy7nu1D54u3z7Q7asLBd1kxuxQEGWmcpncedhaLdHBZ 3N7oEUCqnxK6nSvaphxc9VbsUvNNeX4pvV6: -0.01000000 Waves 2022.05.05 10:57 [2038138] smart account 3N7oEUCqnxK6nSvaphxc9VbsUvNNeX4pvV6 > SELF 0.00000000 Waves
{ "type": 13, "id": "2xy7nu1D54u3z7Q7asLBd1kxuxQEGWmcpncedhaLdHBZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1651737490060, "version": 2, "chainId": 84, "sender": "3N7oEUCqnxK6nSvaphxc9VbsUvNNeX4pvV6", "senderPublicKey": "BUFEu7JZr2y8QBFRwA3vLU8gzDnSgD8uSz9YcHu8vog4", "proofs": [ "22hkeQRcwKuaJoF7zJRph9ZgK5Y9GR7pjyX1o1gqzf1cq4zMFM983h9zpFJC8g9LtPCwgrmacqT9acwmrwsLyG29" ], "script": "base64:AAIFAAAAAAAAABcIAhIECgIICBIGCgQICAEBEgMKAQgSAAAAAB0AAAAADnJlYmlydGhBZGRyZXNzAQAAABoBV3CRddSe63o+H/lkADDI3EZdXJpE33XC9wAAAAAQaW5jdWJhdG9yQWRkcmVzcwEAAAAaAVeMtUiffp4V1RiXjht3+wl/Z2La4W1jJUkAAAAADWJhY2tlbmRQdWJLZXkBAAAAIJ/u9pS34AlL2xW1JDjPBq7tIL/E6huecGxiSXTybOIcAAAAAA5TVEFSVFRJTUVTVEFNUAAAAAF8FwhqgAAAAAAJTEFQTEVOR1RIAAAAAAABSZcAAAAAAApFR0dBU1NFVElEAQAAACCjn39PI3JR0SziIZJiiE0MC/PqIm6B1a/8C5MXzm2xyQAAAAANRFVDS0xJTkdQUklDRQAAAAAABMS0AAAAAAAWcGVyY2VudEdyb3d0aFByZWNpc2lvbgAAI4byb8EAAAAAAAAVZXhpc3RpbmdEdWNrUHJlY2lzaW9uAAAAWvMQekAAAAAAABZLR2xvYmFsSXNzdWVkVGltZXN0YW1wAgAAABdnbG9iYWxfaXNzdWVkX3RpbWVzdG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jaGluZwkABEwAAAACAgAAAAAFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAARjYWxsBQAAAARjYWxsBAAAAA5rRHVja2xpbmdHcm93bgkBAAAAEGtleUR1Y2tsaW5nR3Jvd24AAAABCQACWAAAAAEIBQAAAANwbXQAAAACaWQJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAADmtEdWNrbGluZ0dyb3duBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAWS0dsb2JhbElzc3VlZFRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRnZco8=", "height": 2038138, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'3PCC6fVHNa6289DTDmcUo3RuLaFmteZZsmQ' | |
5 | + | ||
6 | + | let b = base58'3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv' | |
7 | + | ||
8 | + | let c = base58'BmKAXRQy7jZm44fa1YxNQDTcAwNSb74EpQwP5CT7UHdV' | |
9 | + | ||
10 | + | let d = 1632474000000 | |
11 | + | ||
12 | + | let e = 21600000 | |
13 | + | ||
14 | + | let f = base58'C1iWsKGqLwjHUndiQ7iXpdmPum9PeCDFfyXBdJJosDRS' | |
15 | + | ||
16 | + | let g = 80000000 | |
17 | + | ||
18 | + | let h = 10000000000000000 | |
19 | + | ||
20 | + | let i = 100000000000000 | |
21 | + | ||
22 | + | let j = "global_issued_timestamp" | |
23 | + | ||
24 | + | let k = 86400000 | |
25 | + | ||
26 | + | func l (m) = (("duckling_" + m) + "_feed") | |
27 | + | ||
28 | + | ||
29 | + | func n (m) = (("duckling_" + m) + "_fedLap") | |
30 | + | ||
31 | + | ||
32 | + | func o (m) = (("duckling_" + m) + "_fedTs") | |
33 | + | ||
34 | + | ||
35 | + | func p (m,q) = (((("duckling_" + m) + "_lap_") + toString(q)) + "_fedTs") | |
36 | + | ||
37 | + | ||
38 | + | func r (s,q,t) = ((((("address_" + s) + "_lap_") + toString(q)) + "_fedTs_") + toString(t)) | |
39 | + | ||
40 | + | ||
41 | + | func u (s) = (("address_" + s) + "_nonce") | |
42 | + | ||
43 | + | ||
44 | + | func v (m) = (("duckling_" + m) + "_fedLastTs") | |
45 | + | ||
46 | + | ||
47 | + | func w (m) = (("duckling_" + m) + "_level") | |
48 | + | ||
49 | + | ||
50 | + | func x (s,q) = (((("address_" + s) + "_lap_") + toString(q)) + "_feed") | |
51 | + | ||
52 | + | ||
53 | + | func y (m) = (("duckling_" + m) + "_grown") | |
54 | + | ||
55 | + | ||
56 | + | func z (m) = (("duckling_" + m) + "_grown") | |
57 | + | ||
58 | + | ||
59 | + | func A (B) = { | |
60 | + | let C = { | |
61 | + | let D = getInteger(this, B) | |
62 | + | if ($isInstanceOf(D, "Int")) | |
63 | + | then { | |
64 | + | let E = D | |
65 | + | E | |
66 | + | } | |
67 | + | else 0 | |
68 | + | } | |
69 | + | C | |
70 | + | } | |
71 | + | ||
72 | + | ||
73 | + | func F (B) = { | |
74 | + | let D = getBoolean(this, B) | |
75 | + | if ($isInstanceOf(D, "Boolean")) | |
76 | + | then { | |
77 | + | let E = D | |
78 | + | E | |
79 | + | } | |
80 | + | else false | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | func G (m) = { | |
85 | + | let H = w(m) | |
86 | + | let D = getString(H) | |
87 | + | if ($isInstanceOf(D, "String")) | |
88 | + | then { | |
89 | + | let I = D | |
90 | + | parseBigIntValue(I) | |
91 | + | } | |
92 | + | else { | |
93 | + | let J = getBoolean((("duckling_" + m) + "_issuedByFeedCall")) | |
94 | + | if ($isInstanceOf(J, "Boolean")) | |
95 | + | then { | |
96 | + | let E = J | |
97 | + | toBigInt(0) | |
98 | + | } | |
99 | + | else toBigInt((20 * i)) | |
100 | + | } | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | func K () = (((lastBlock.timestamp - d) / e) + 1) | |
105 | + | ||
106 | + | ||
107 | + | func L (m) = { | |
108 | + | let M = A(v(m)) | |
109 | + | if ((M > 0)) | |
110 | + | then M | |
111 | + | else lastBlock.timestamp | |
112 | + | } | |
113 | + | ||
114 | + | ||
115 | + | func N (m,O) = { | |
116 | + | let P = lastBlock.timestamp | |
117 | + | let Q = L(m) | |
118 | + | let R = (P - Q) | |
119 | + | let S = toBigInt(0) | |
120 | + | let T = fraction(toBigInt(O), toBigInt(h), toBigInt(g)) | |
121 | + | let U = G(m) | |
122 | + | let V = ((U - S) + T) | |
123 | + | let W = if ((toBigInt(0) > V)) | |
124 | + | then toString(T) | |
125 | + | else toString(V) | |
126 | + | $Tuple2(W, [("currentLevel=" + toString(U)), ("newLevel=" + toString(V)), ("growth=" + toString(T)), ("penalty=" + toString(S)), ("lastFedTs=" + toString(Q)), ("fedDiff=" + toString(R))]) | |
127 | + | } | |
128 | + | ||
129 | + | ||
130 | + | func X (Y,Z,s) = makeString([toString(Y), toString(Z), s], ";") | |
131 | + | ||
132 | + | ||
133 | + | @Callable(aa) | |
134 | + | func issueFreeDuckling (s,ab) = if (if ((aa.caller != this)) | |
135 | + | then (aa.caller.bytes != a) | |
136 | + | else false) | |
137 | + | then throw("You can't issue free duckling") | |
138 | + | else { | |
139 | + | let ac = Issue("BABY-11111111-GZ", "", 1, 0, false, unit, height) | |
140 | + | let ad = calculateAssetId(ac) | |
141 | + | $Tuple2([StringEntry((((s + "_") + ab) + "_di"), toBase58String(ad)), IntegerEntry("stats_amount", (A("stats_amount") + 1)), BooleanEntry((("duckling_" + toBase58String(ad)) + "_issuedByFeedCall"), (aa.caller == this)), ac, ScriptTransfer(value(addressFromString(s)), 1, ad)], toBase58String(ad)) | |
142 | + | } | |
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | @Callable(aa) | |
147 | + | func feedDuckling (m,ae,Y,Z) = { | |
148 | + | let af = toString(aa.caller) | |
149 | + | let ag = X(Y, Z, af) | |
150 | + | let ah = u(af) | |
151 | + | let ai = A(ah) | |
152 | + | let aj = if (!(sigVerify_8Kb(toBytes(ag), fromBase58String(ae), c))) | |
153 | + | then throw("Invalid proof from backend") | |
154 | + | else if (if ((size(aa.payments) != 1)) | |
155 | + | then true | |
156 | + | else (value(aa.payments[0]).assetId != f)) | |
157 | + | then throw("Bad payment attached (asset[s] or amount)") | |
158 | + | else if (F(y(m))) | |
159 | + | then throw("Duckling is already grown") | |
160 | + | else if ((Z != (ai + 1))) | |
161 | + | then throw(((("User Nonce should be " + toString(ai)) + " + 1, while received ") + toString(Z))) | |
162 | + | else if ((m == "")) | |
163 | + | then { | |
164 | + | let ak = invoke(this, "issueFreeDuckling", [toString(aa.originCaller), toBase58String(aa.transactionId)], nil) | |
165 | + | if ((ak == ak)) | |
166 | + | then { | |
167 | + | let al = { | |
168 | + | let D = ak | |
169 | + | if ($isInstanceOf(D, "String")) | |
170 | + | then { | |
171 | + | let am = D | |
172 | + | am | |
173 | + | } | |
174 | + | else throw("Can't generate NFT") | |
175 | + | } | |
176 | + | al | |
177 | + | } | |
178 | + | else throw("Strict value is not equal to itself.") | |
179 | + | } | |
180 | + | else { | |
181 | + | let an = value(assetInfo(fromBase58String(m))) | |
182 | + | if ((assetBalance(aa.caller, an.id) != 1)) | |
183 | + | then throw("You're not the owner of the duckling") | |
184 | + | else if ((an.issuer != this)) | |
185 | + | then throw("Cant find duckling with such id") | |
186 | + | else { | |
187 | + | let ao = toBase58String(an.id) | |
188 | + | ao | |
189 | + | } | |
190 | + | } | |
191 | + | let ap = v(m) | |
192 | + | let aq = L(aj) | |
193 | + | let ar = value(aa.payments[0]).amount | |
194 | + | let as = w(aj) | |
195 | + | let at = l(aj) | |
196 | + | let au = A(at) | |
197 | + | let av = ((("duckling_" + aj) + "_stat_") + toString(lastBlock.timestamp)) | |
198 | + | let aw = r(af, K(), lastBlock.timestamp) | |
199 | + | let ax = p(aj, K()) | |
200 | + | let ay = n(aj) | |
201 | + | if ((ar > Y)) | |
202 | + | then throw(("Cannot feed duckling for such amount, max feed amount is: " + toString(Y))) | |
203 | + | else { | |
204 | + | let az = N(aj, ar) | |
205 | + | [IntegerEntry(ah, (ai + 1)), IntegerEntry(ap, lastBlock.timestamp), IntegerEntry(at, (au + ar)), IntegerEntry(av, ar), IntegerEntry(aw, ar), IntegerEntry(ax, ar), IntegerEntry(ay, K()), StringEntry(as, az._1), StringEntry((av + "_debug"), makeString(az._2, ";"))] | |
206 | + | } | |
207 | + | } | |
208 | + | ||
209 | + | ||
210 | + | ||
211 | + | @Callable(aa) | |
212 | + | func fixLevels (aA) = if ((aa.callerPublicKey != base58'GDxBbsDRmeY39quNrDsTXKJzFWbQVtjxHseF4ikxZ7n9')) | |
213 | + | then throw("") | |
214 | + | else { | |
215 | + | let aB = value(split(aA, ",")) | |
216 | + | func aC (aD,al) = { | |
217 | + | let at = l(al) | |
218 | + | let au = A(at) | |
219 | + | let as = w(al) | |
220 | + | let aE = { | |
221 | + | let D = getBoolean((("duckling_" + al) + "_issuedByFeedCall")) | |
222 | + | if ($isInstanceOf(D, "Boolean")) | |
223 | + | then { | |
224 | + | let E = D | |
225 | + | if ((E == true)) | |
226 | + | then toBigInt(0) | |
227 | + | else toBigInt((20 * i)) | |
228 | + | } | |
229 | + | else toBigInt((20 * i)) | |
230 | + | } | |
231 | + | let T = fraction(toBigInt(au), toBigInt(h), toBigInt(g)) | |
232 | + | (aD ++ [StringEntry(as, toString((aE + T)))]) | |
233 | + | } | |
234 | + | ||
235 | + | let aF = aB | |
236 | + | let aG = size(aF) | |
237 | + | let aH = nil | |
238 | + | if ((aG == 0)) | |
239 | + | then aH | |
240 | + | else { | |
241 | + | let aI = aC(aH, aF[0]) | |
242 | + | if ((aG == 1)) | |
243 | + | then aI | |
244 | + | else { | |
245 | + | let aJ = aC(aI, aF[1]) | |
246 | + | if ((aG == 2)) | |
247 | + | then aJ | |
248 | + | else { | |
249 | + | let aK = aC(aJ, aF[2]) | |
250 | + | if ((aG == 3)) | |
251 | + | then aK | |
252 | + | else { | |
253 | + | let aL = aC(aK, aF[3]) | |
254 | + | if ((aG == 4)) | |
255 | + | then aL | |
256 | + | else { | |
257 | + | let aM = aC(aL, aF[4]) | |
258 | + | if ((aG == 5)) | |
259 | + | then aM | |
260 | + | else { | |
261 | + | let aN = aC(aM, aF[5]) | |
262 | + | if ((aG == 6)) | |
263 | + | then aN | |
264 | + | else { | |
265 | + | let aO = aC(aN, aF[6]) | |
266 | + | if ((aG == 7)) | |
267 | + | then aO | |
268 | + | else { | |
269 | + | let aP = aC(aO, aF[7]) | |
270 | + | if ((aG == 8)) | |
271 | + | then aP | |
272 | + | else { | |
273 | + | let aQ = aC(aP, aF[8]) | |
274 | + | if ((aG == 9)) | |
275 | + | then aQ | |
276 | + | else { | |
277 | + | let aR = aC(aQ, aF[9]) | |
278 | + | if ((aG == 10)) | |
279 | + | then aR | |
280 | + | else { | |
281 | + | let aS = aC(aR, aF[10]) | |
282 | + | if ((aG == 11)) | |
283 | + | then aS | |
284 | + | else { | |
285 | + | let aT = aC(aS, aF[11]) | |
286 | + | if ((aG == 12)) | |
287 | + | then aT | |
288 | + | else { | |
289 | + | let aU = aC(aT, aF[12]) | |
290 | + | if ((aG == 13)) | |
291 | + | then aU | |
292 | + | else { | |
293 | + | let aV = aC(aU, aF[13]) | |
294 | + | if ((aG == 14)) | |
295 | + | then aV | |
296 | + | else { | |
297 | + | let aW = aC(aV, aF[14]) | |
298 | + | if ((aG == 15)) | |
299 | + | then aW | |
300 | + | else { | |
301 | + | let aX = aC(aW, aF[15]) | |
302 | + | if ((aG == 16)) | |
303 | + | then aX | |
304 | + | else { | |
305 | + | let aY = aC(aX, aF[16]) | |
306 | + | if ((aG == 17)) | |
307 | + | then aY | |
308 | + | else { | |
309 | + | let aZ = aC(aY, aF[17]) | |
310 | + | if ((aG == 18)) | |
311 | + | then aZ | |
312 | + | else { | |
313 | + | let ba = aC(aZ, aF[18]) | |
314 | + | if ((aG == 19)) | |
315 | + | then ba | |
316 | + | else { | |
317 | + | let bb = aC(ba, aF[19]) | |
318 | + | if ((aG == 20)) | |
319 | + | then bb | |
320 | + | else { | |
321 | + | let bc = aC(bb, aF[20]) | |
322 | + | throw("List size exceed 20") | |
323 | + | } | |
324 | + | } | |
325 | + | } | |
326 | + | } | |
327 | + | } | |
328 | + | } | |
329 | + | } | |
330 | + | } | |
331 | + | } | |
332 | + | } | |
333 | + | } | |
334 | + | } | |
335 | + | } | |
336 | + | } | |
337 | + | } | |
338 | + | } | |
339 | + | } | |
340 | + | } | |
341 | + | } | |
342 | + | } | |
343 | + | } | |
344 | + | } | |
345 | + | ||
346 | + | ||
347 | + | ||
348 | + | @Callable(aa) | |
349 | + | func turnDucklingIntoDuck () = { | |
350 | + | let s = toString(aa.caller) | |
351 | + | let bd = toBase58String(aa.transactionId) | |
352 | + | let be = A(j) | |
353 | + | let bf = ((60 * 60) * 1000) | |
354 | + | if (if ((be > 0)) | |
355 | + | then (bf > (lastBlock.timestamp - be)) | |
356 | + | else false) | |
357 | + | then throw(("Can issue ducklings only once per 5 minutes, please wait for " + toString((bf - (lastBlock.timestamp - be))))) | |
358 | + | else if ((size(aa.payments) != 1)) | |
359 | + | then throw("Bad payment attached (asset[s] or amount)") | |
360 | + | else { | |
361 | + | let bg = value(assetInfo(value(value(aa.payments[0]).assetId))) | |
362 | + | if ((toBigInt(100) > G(toBase58String(bg.id)))) | |
363 | + | then throw("Duckling is not grown yet...") | |
364 | + | else if ((bg.issuer != this)) | |
365 | + | then throw("Can use only ducklings from this dApp") | |
366 | + | else { | |
367 | + | let bh = invoke(Address(b), "startDuckHatching", [""], nil) | |
368 | + | if ((bh == bh)) | |
369 | + | then { | |
370 | + | let bi = y(toBase58String(bg.id)) | |
371 | + | [BooleanEntry(bi, true), IntegerEntry(j, lastBlock.timestamp)] | |
372 | + | } | |
373 | + | else throw("Strict value is not equal to itself.") | |
374 | + | } | |
375 | + | } | |
376 | + | } | |
377 | + | ||
378 | + | ||
379 | + | @Verifier(bj) | |
380 | + | func bk () = sigVerify(bj.bodyBytes, bj.proofs[0], bj.senderPublicKey) | |
381 | + |
github/deemru/w8io/026f985 26.47 ms ◑