tx · HznQE3rrjgNy5Pubx3MwB4hByhJFn5r1i22hMo4HQ2iw 3NDDhSj9Ddd6P9W3s946zqCK41gaQVPGWSQ: -0.01200000 Waves 2022.07.26 19:08 [2156989] smart account 3NDDhSj9Ddd6P9W3s946zqCK41gaQVPGWSQ > SELF 0.00000000 Waves
{ "type": 13, "id": "HznQE3rrjgNy5Pubx3MwB4hByhJFn5r1i22hMo4HQ2iw", "fee": 1200000, "feeAssetId": null, "timestamp": 1658851708870, "version": 2, "chainId": 84, "sender": "3NDDhSj9Ddd6P9W3s946zqCK41gaQVPGWSQ", "senderPublicKey": "H1ngPRkMA7V24vjMJFbB15JNTsro5ME4yDgNiX6zy2tM", "proofs": [ "29HUD9pt1mj3V4oGQr9SJGUutVq89677pxrwBJM5egQ3YAnoddaUbAMPjNFw66R39csczFZGQRNDtc1zzxEcXTEm" ], "script": "base64:AAIFAAAAAAAAABMIAhIAEgYKBAgIAQESAwoBCBIAAAAAHQAAAAAOcmViaXJ0aEFkZHJlc3MBAAAAGgFXcJF11J7rej4f+WQAMMjcRl1cmkTfdcL3AAAAABBpbmN1YmF0b3JBZGRyZXNzAQAAABoBV4y1SJ9+nhXVGJeOG3f7CX9nYtrhbWMlSQAAAAANYmFja2VuZFB1YktleQEAAAAgn+72lLfgCUvbFbUkOM8Gru0gv8TqG55wbGJJdPJs4hwAAAAADlNUQVJUVElNRVNUQU1QAAAAAXwXCGqAAAAAAAlMQVBMRU5HVEgAAAAAAAFJlwAAAAAACkVHR0FTU0VUSUQBAAAAIKOff08jclHRLOIhkmKITQwL8+oiboHVr/wLkxfObbHJAAAAAA1EVUNLTElOR1BSSUNFAAAAAAAExLQAAAAAABZwZXJjZW50R3Jvd3RoUHJlY2lzaW9uAAAjhvJvwQAAAAAAABVleGlzdGluZ0R1Y2tQcmVjaXNpb24AAABa8xB6QAAAAAAAFktHbG9iYWxJc3N1ZWRUaW1lc3RhbXACAAAAF2dsb2JhbF9pc3N1ZWRfdGltZXN0YW1wAAAAA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HVja2xpbmcgaXMgbm90IGdyb3duIHlldC4uLgMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAGaXNzdWVyBQAAAAR0aGlzCQAAAgAAAAECAAAAJUNhbiB1c2Ugb25seSBkdWNrbGluZ3MgZnJvbSB0aGlzIGRBcHAEAAAABGNhbGwJAAP8AAAABAkBAAAAB0FkZHJlc3MAAAABBQAAABBpbmN1YmF0b3JBZGRyZXNzAgAAABFzdGFydER1Y2tIYXRjaGluZwkABEwAAAACAgAAAAAFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAARjYWxsBQAAAARjYWxsBAAAAA5rRHVja2xpbmdHcm93bgkBAAAAEGtleUR1Y2tsaW5nR3Jvd24AAAABCQACWAAAAAEIBQAAAANwbXQAAAACaWQJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAADmtEdWNrbGluZ0dyb3duBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAWS0dsb2JhbElzc3VlZFRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleag6WnI=", "height": 2156989, "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 = if (if ((R == 0)) | |
120 | + | then true | |
121 | + | else ((k * 2) >= R)) | |
122 | + | then toBigInt(0) | |
123 | + | else (toBigInt((R / k)) * toBigInt((i / 10))) | |
124 | + | let T = fraction(toBigInt(O), toBigInt(h), toBigInt(g)) | |
125 | + | let U = G(m) | |
126 | + | let V = ((U - S) + T) | |
127 | + | let W = if ((toBigInt(0) > V)) | |
128 | + | then toString(T) | |
129 | + | else toString(V) | |
130 | + | $Tuple2(W, [("currentLevel=" + toString(U)), ("newLevel=" + toString(V)), ("growth=" + toString(T)), ("penalty=" + toString(S)), ("lastFedTs=" + toString(Q)), ("fedDiff=" + toString(R))]) | |
131 | + | } | |
132 | + | ||
133 | + | ||
134 | + | func X (Y,Z,s) = makeString([toString(Y), toString(Z), s], ";") | |
135 | + | ||
136 | + | ||
137 | + | @Callable(aa) | |
138 | + | func issueFreeDuckling () = { | |
139 | + | let s = toBase58String(aa.caller.bytes) | |
140 | + | let ab = toBase58String(aa.transactionId) | |
141 | + | let ac = Issue("BABY-11111111-GZ", "", 1, 0, false, unit, height) | |
142 | + | let ad = calculateAssetId(ac) | |
143 | + | $Tuple2([StringEntry((((s + "_") + ab) + "_di"), toBase58String(ad)), StringEntry(toBase58String(ad), toBase58String(ad)), StringEntry(toBase58String(aa.transactionId), 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)) | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | @Callable(aa) | |
149 | + | func feedDuckling (m,ae,Y,Z) = { | |
150 | + | let af = toString(aa.caller) | |
151 | + | let ag = X(Y, Z, af) | |
152 | + | let ah = u(af) | |
153 | + | let ai = A(ah) | |
154 | + | let aj = if (!(sigVerify_8Kb(toBytes(ag), fromBase58String(ae), c))) | |
155 | + | then throw("Invalid proof from backend") | |
156 | + | else if (if ((size(aa.payments) != 1)) | |
157 | + | then true | |
158 | + | else (value(aa.payments[0]).assetId != f)) | |
159 | + | then throw("Bad payment attached (asset[s] or amount)") | |
160 | + | else if (F(y(m))) | |
161 | + | then throw("Duckling is already grown") | |
162 | + | else if ((Z != (ai + 1))) | |
163 | + | then throw(((("User Nonce should be " + toString(ai)) + " + 1, while received ") + toString(Z))) | |
164 | + | else if ((m == "")) | |
165 | + | then { | |
166 | + | let ak = invoke(this, "issueFreeDuckling", [toString(aa.originCaller), toBase58String(aa.transactionId)], nil) | |
167 | + | if ((ak == ak)) | |
168 | + | then { | |
169 | + | let al = { | |
170 | + | let D = ak | |
171 | + | if ($isInstanceOf(D, "String")) | |
172 | + | then { | |
173 | + | let am = D | |
174 | + | am | |
175 | + | } | |
176 | + | else throw("Can't generate NFT") | |
177 | + | } | |
178 | + | al | |
179 | + | } | |
180 | + | else throw("Strict value is not equal to itself.") | |
181 | + | } | |
182 | + | else { | |
183 | + | let an = value(assetInfo(fromBase58String(m))) | |
184 | + | if ((assetBalance(aa.caller, an.id) != 1)) | |
185 | + | then throw("You're not the owner of the duckling") | |
186 | + | else if ((an.issuer != this)) | |
187 | + | then throw("Cant find duckling with such id") | |
188 | + | else { | |
189 | + | let ao = toBase58String(an.id) | |
190 | + | ao | |
191 | + | } | |
192 | + | } | |
193 | + | let ap = v(m) | |
194 | + | let aq = L(aj) | |
195 | + | let ar = value(aa.payments[0]).amount | |
196 | + | let as = w(aj) | |
197 | + | let at = l(aj) | |
198 | + | let au = A(at) | |
199 | + | let av = ((("duckling_" + aj) + "_stat_") + toString(lastBlock.timestamp)) | |
200 | + | let aw = r(af, K(), lastBlock.timestamp) | |
201 | + | let ax = p(aj, K()) | |
202 | + | let ay = n(aj) | |
203 | + | if ((ar > Y)) | |
204 | + | then throw(("Cannot feed duckling for such amount, max feed amount is: " + toString(Y))) | |
205 | + | else { | |
206 | + | let az = N(aj, ar) | |
207 | + | [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, ";"))] | |
208 | + | } | |
209 | + | } | |
210 | + | ||
211 | + | ||
212 | + | ||
213 | + | @Callable(aa) | |
214 | + | func fixLevels (aA) = if ((aa.callerPublicKey != base58'GDxBbsDRmeY39quNrDsTXKJzFWbQVtjxHseF4ikxZ7n9')) | |
215 | + | then throw("") | |
216 | + | else { | |
217 | + | let aB = value(split(aA, ",")) | |
218 | + | func aC (aD,al) = { | |
219 | + | let at = l(al) | |
220 | + | let au = A(at) | |
221 | + | let as = w(al) | |
222 | + | let aE = { | |
223 | + | let D = getBoolean((("duckling_" + al) + "_issuedByFeedCall")) | |
224 | + | if ($isInstanceOf(D, "Boolean")) | |
225 | + | then { | |
226 | + | let E = D | |
227 | + | if ((E == true)) | |
228 | + | then toBigInt(0) | |
229 | + | else toBigInt((20 * i)) | |
230 | + | } | |
231 | + | else toBigInt((20 * i)) | |
232 | + | } | |
233 | + | let T = fraction(toBigInt(au), toBigInt(h), toBigInt(g)) | |
234 | + | (aD ++ [StringEntry(as, toString((aE + T)))]) | |
235 | + | } | |
236 | + | ||
237 | + | let aF = aB | |
238 | + | let aG = size(aF) | |
239 | + | let aH = nil | |
240 | + | func aI (aJ,aK) = if ((aK >= aG)) | |
241 | + | then aJ | |
242 | + | else aC(aJ, aF[aK]) | |
243 | + | ||
244 | + | func aL (aJ,aK) = if ((aK >= aG)) | |
245 | + | then aJ | |
246 | + | else throw("List size exceeds 20") | |
247 | + | ||
248 | + | aL(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aH, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
249 | + | } | |
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | @Callable(aa) | |
254 | + | func turnDucklingIntoDuck () = { | |
255 | + | let s = toString(aa.caller) | |
256 | + | let aM = toBase58String(aa.transactionId) | |
257 | + | let aN = A(j) | |
258 | + | let aO = ((60 * 60) * 1000) | |
259 | + | if (if ((aN > 0)) | |
260 | + | then (aO > (lastBlock.timestamp - aN)) | |
261 | + | else false) | |
262 | + | then throw(("Can issue ducklings only once per 5 minutes, please wait for " + toString((aO - (lastBlock.timestamp - aN))))) | |
263 | + | else if ((size(aa.payments) != 1)) | |
264 | + | then throw("Bad payment attached (asset[s] or amount)") | |
265 | + | else { | |
266 | + | let aP = value(assetInfo(value(value(aa.payments[0]).assetId))) | |
267 | + | if ((toBigInt(100) > G(toBase58String(aP.id)))) | |
268 | + | then throw("Duckling is not grown yet...") | |
269 | + | else if ((aP.issuer != this)) | |
270 | + | then throw("Can use only ducklings from this dApp") | |
271 | + | else { | |
272 | + | let aQ = invoke(Address(b), "startDuckHatching", [""], nil) | |
273 | + | if ((aQ == aQ)) | |
274 | + | then { | |
275 | + | let aR = y(toBase58String(aP.id)) | |
276 | + | [BooleanEntry(aR, true), IntegerEntry(j, lastBlock.timestamp)] | |
277 | + | } | |
278 | + | else throw("Strict value is not equal to itself.") | |
279 | + | } | |
280 | + | } | |
281 | + | } | |
282 | + | ||
283 | + | ||
284 | + | @Verifier(aS) | |
285 | + | func aT () = sigVerify(aS.bodyBytes, aS.proofs[0], aS.senderPublicKey) | |
286 | + |
github/deemru/w8io/169f3d6 36.75 ms ◑