tx · 5q7WMnPQNVy6wNTAZQzTuUdATLE3DQfCGBpHqEKbxsx6 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7: -0.01400000 Waves 2021.08.02 16:50 [1640799] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves
{ "type": 13, "id": "5q7WMnPQNVy6wNTAZQzTuUdATLE3DQfCGBpHqEKbxsx6", "fee": 1400000, "feeAssetId": null, "timestamp": 1627912362700, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "4RpyWZZg2N5YGdYVkutgH14aqyrVFEXgQFwvrUmPrdsT59G564vFcCpVB2Dgx3hHNamvbfiUHZCW9LFGwJnG1eJg" ], "script": "base64:AAIEAAAAAAAAADoIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgSBQoDCAgIAAAANwAAAAAETk9ORQIAAAAETk9ORQAAAAAGVk9URVJTAAAAAAAAAAADAAAAAAZRVU9SVU0AAAAAAAAAAAIAAAAACEZFQVRVUkVEAgAAAAhmZWF0dXJlZAAAAAAIREVMSVNURUQCAAAACGRlbGlzdGVkAAAAAAZWT1RJTkcCAAAABnZvdGluZwAAAAAGUkVWRUFMAgAAAAZyZXZlYWwAAAAACEFQUFJPVkFMAgAAAAhhcHByb3ZhbAAAAAAIUkVKRUNURUQCAAAACHJlamVjdGVkAAAAAAhBQ0NFUFRFRAIAAAAIYWNjZXB0ZWQBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD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AACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHEUc/7A==", "height": 1640799, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5n9u3MMwMgLhRkpGoPjB2Hh9W8WnqnxTCDiPSPx3STwc Next: 7D7FdnNhqE7tLfxXZX3ZJHoMrVt7UdHCeTRTBSn7aTWb Diff:
Old | New | Differences | |
---|---|---|---|
310 | 310 | then true | |
311 | 311 | else (aF != t)) | |
312 | 312 | then throw("Your are not the owner of this item") | |
313 | - | else if ((aG != h)) | |
314 | - | then throw("You cannot reject this purchased") | |
315 | - | else if (if ((au > 0)) | |
316 | - | then (lastBlock.timestamp >= au) | |
317 | - | else false) | |
318 | - | then throw("Coupon expired") | |
319 | - | else { | |
320 | - | let az = O(P) | |
321 | - | let aH = K(t) | |
322 | - | let aI = C(x) | |
323 | - | let aJ = af(P) | |
324 | - | let aK = (Z(t) + aJ) | |
325 | - | let aL = (al(x) + 1) | |
326 | - | let E = ae(P) | |
327 | - | let aM = addressFromStringValue(E) | |
313 | + | else if ((1 == 1)) | |
314 | + | then throw(("AAAAA: " + aN)) | |
315 | + | else if ((aG != h)) | |
316 | + | then throw("You cannot reject this purchased") | |
317 | + | else if (if ((au > 0)) | |
318 | + | then (lastBlock.timestamp >= au) | |
319 | + | else false) | |
320 | + | then throw("Coupon expired") | |
321 | + | else { | |
322 | + | let az = O(P) | |
323 | + | let aH = K(t) | |
324 | + | let aI = C(x) | |
325 | + | let aJ = af(P) | |
326 | + | let aK = (Z(t) + aJ) | |
327 | + | let aL = (al(x) + 1) | |
328 | + | let E = ae(P) | |
329 | + | let aM = addressFromStringValue(E) | |
328 | 330 | [IntegerEntry(aH, aK), IntegerEntry(aI, aL), ScriptTransfer(aM, 1, fromBase58String(aN))] | |
329 | - | } | |
331 | + | } | |
330 | 332 | } | |
331 | 333 | ||
332 | 334 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "NONE" | |
5 | 5 | ||
6 | 6 | let b = 3 | |
7 | 7 | ||
8 | 8 | let c = 2 | |
9 | 9 | ||
10 | 10 | let d = "featured" | |
11 | 11 | ||
12 | 12 | let e = "delisted" | |
13 | 13 | ||
14 | 14 | let f = "voting" | |
15 | 15 | ||
16 | 16 | let g = "reveal" | |
17 | 17 | ||
18 | 18 | let h = "approval" | |
19 | 19 | ||
20 | 20 | let i = "rejected" | |
21 | 21 | ||
22 | 22 | let j = "accepted" | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = getString(this, l) | |
26 | 26 | if ($isInstanceOf(m, "String")) | |
27 | 27 | then { | |
28 | 28 | let n = m | |
29 | 29 | n | |
30 | 30 | } | |
31 | 31 | else a | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o (l) = { | |
36 | 36 | let m = getInteger(this, l) | |
37 | 37 | if ($isInstanceOf(m, "Int")) | |
38 | 38 | then { | |
39 | 39 | let n = m | |
40 | 40 | n | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (q) = (q + "_account") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func r (q) = k(p(q)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func s (t,u) = { | |
53 | 53 | let v = (t + u) | |
54 | 54 | ("item_" + toBase58String(sha256(toBytes(v)))) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func w (x) = (x + "_owner") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func y (x) = (x + "_title") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func z (x) = (x + "_price") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func A (x) = (x + "_data") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func B (x) = (x + "_expiredate") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (x) = (x + "_sold") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D (x,E) = (((x + "_") + E) + "_commit") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func F (x) = (x + "_cmtcnt") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func G (x,E) = (((x + "_") + E) + "_reveal") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func H (x) = (x + "_status") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I (x,J) = ((x + "_res:") + J) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func K (t) = (t + "_balance") | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func L (E,x) = (((E + "_") + x) + "_counter") | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func M (t,x,E,N) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(N)))))) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func O (P) = (P + "_status") | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func Q (P) = (P + "_item") | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func R (P) = (P + "_supplier") | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func S (P) = (P + "_user") | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func T (P) = (P + "_amount") | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func U (P) = (P + "_timestamp") | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func V (W) = ("coupon_" + W) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func X (Y) = (Y + "_item") | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func Z (t) = o(K(t)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func aa (E,x) = o(L(E, x)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ab (P) = k(O(P)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ac (P) = getStringValue(this, Q(P)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ad (P) = getStringValue(this, R(P)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ae (P) = getStringValue(this, S(P)) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func af (P) = getIntegerValue(this, T(P)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ag (P) = o(U(P)) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ah (x) = getIntegerValue(this, z(x)) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ai (x) = k(w(x)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func aj (x) = o(B(x)) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ak (x) = k(y(x)) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func al (x) = o(C(x)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func am (x,E) = k(D(x, E)) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func an (x) = o(F(x)) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func ao (x,E) = k(G(x, E)) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ap (x) = k(H(x)) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aq (x,J) = o(I(x, J)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(ar) | |
179 | 179 | func registerSupplier (as) = { | |
180 | 180 | let t = toBase58String(ar.caller.bytes) | |
181 | 181 | let q = r(t) | |
182 | 182 | if ((q != a)) | |
183 | 183 | then throw("This address has already registred as supplier") | |
184 | 184 | else [StringEntry(p(t), as)] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(ar) | |
190 | 190 | func addItem (u,at,as,au) = { | |
191 | 191 | let t = toBase58String(ar.caller.bytes) | |
192 | 192 | let q = r(t) | |
193 | 193 | let x = s(t, u) | |
194 | 194 | if ((q == a)) | |
195 | 195 | then throw("You should register as supplier to add an item") | |
196 | 196 | else if ((0 >= at)) | |
197 | 197 | then throw("Purchase amount cannot be less than item price") | |
198 | 198 | else if ((ai(x) != a)) | |
199 | 199 | then throw("An item already exists") | |
200 | 200 | else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)] | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(ar) | |
206 | 206 | func updateItem (x,u,at,as,au) = { | |
207 | 207 | let t = toBase58String(ar.caller.bytes) | |
208 | 208 | let q = r(t) | |
209 | 209 | let av = ai(x) | |
210 | 210 | if ((q == a)) | |
211 | 211 | then throw("You should register as supplier to remove an item") | |
212 | 212 | else if (if ((x == a)) | |
213 | 213 | then true | |
214 | 214 | else (t != av)) | |
215 | 215 | then throw(("You don't owned item " + x)) | |
216 | 216 | else [StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)] | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | ||
221 | 221 | @Callable(ar) | |
222 | 222 | func removeItem (x) = { | |
223 | 223 | let t = toBase58String(ar.caller.bytes) | |
224 | 224 | let q = r(t) | |
225 | 225 | let av = ai(x) | |
226 | 226 | if ((q == a)) | |
227 | 227 | then throw("You should register as supplier to remove an item") | |
228 | 228 | else if (if ((x == a)) | |
229 | 229 | then true | |
230 | 230 | else (t != av)) | |
231 | 231 | then throw(("You don't owned item " + x)) | |
232 | 232 | else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))] | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(ar) | |
238 | 238 | func purchase (x) = { | |
239 | 239 | let aw = ar.payments[0] | |
240 | 240 | if (isDefined(aw.assetId)) | |
241 | 241 | then throw("You can buy tokens only with Waves tokens") | |
242 | 242 | else { | |
243 | 243 | let E = toBase58String(ar.caller.bytes) | |
244 | 244 | let at = ah(x) | |
245 | 245 | let t = ai(x) | |
246 | 246 | let au = aj(x) | |
247 | 247 | if (if ((au > 0)) | |
248 | 248 | then (lastBlock.timestamp >= au) | |
249 | 249 | else false) | |
250 | 250 | then throw("Coupon expired") | |
251 | 251 | else if ((at > aw.amount)) | |
252 | 252 | then throw("Purchase amount cannot be less than item price") | |
253 | 253 | else if ((aw.amount > at)) | |
254 | 254 | then throw("Purchase amount cannot be higher than item price") | |
255 | 255 | else if ((t == a)) | |
256 | 256 | then throw("Supplier does not exists") | |
257 | 257 | else { | |
258 | 258 | let ax = L(E, x) | |
259 | 259 | let ay = (aa(E, x) + 1) | |
260 | 260 | let P = M(t, x, E, ay) | |
261 | 261 | let az = O(P) | |
262 | 262 | let aA = Q(P) | |
263 | 263 | let aB = R(P) | |
264 | 264 | let aC = S(P) | |
265 | 265 | let aD = T(P) | |
266 | 266 | let aE = U(P) | |
267 | 267 | [IntegerEntry(ax, ay), StringEntry(az, h), StringEntry(aA, x), StringEntry(aB, t), StringEntry(aC, E), IntegerEntry(aD, aw.amount), IntegerEntry(aE, lastBlock.timestamp)] | |
268 | 268 | } | |
269 | 269 | } | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(ar) | |
275 | 275 | func rejectPurchase (P) = { | |
276 | 276 | let aF = toBase58String(ar.caller.bytes) | |
277 | 277 | let aG = ab(P) | |
278 | 278 | let t = ad(P) | |
279 | 279 | let x = ac(P) | |
280 | 280 | if (if ((t == a)) | |
281 | 281 | then true | |
282 | 282 | else (aF != t)) | |
283 | 283 | then throw("Your are not the owner of this item") | |
284 | 284 | else if ((aG != h)) | |
285 | 285 | then throw("You cannot reject this purchased") | |
286 | 286 | else { | |
287 | 287 | let az = O(P) | |
288 | 288 | let aD = T(P) | |
289 | 289 | let aH = K(t) | |
290 | 290 | let aI = C(x) | |
291 | 291 | let E = ae(P) | |
292 | 292 | let aJ = af(P) | |
293 | 293 | let aK = (Z(t) - aJ) | |
294 | 294 | let aL = (al(x) - 1) | |
295 | 295 | let aM = addressFromStringValue(E) | |
296 | 296 | [StringEntry(az, i), IntegerEntry(aD, 0), ScriptTransfer(aM, aJ, unit)] | |
297 | 297 | } | |
298 | 298 | } | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | ||
302 | 302 | @Callable(ar) | |
303 | 303 | func acceptPurchase (P,aN) = { | |
304 | 304 | let aF = toBase58String(ar.caller.bytes) | |
305 | 305 | let aG = ab(P) | |
306 | 306 | let t = ad(P) | |
307 | 307 | let x = ac(P) | |
308 | 308 | let au = aj(x) | |
309 | 309 | if (if ((t == a)) | |
310 | 310 | then true | |
311 | 311 | else (aF != t)) | |
312 | 312 | then throw("Your are not the owner of this item") | |
313 | - | else if ((aG != h)) | |
314 | - | then throw("You cannot reject this purchased") | |
315 | - | else if (if ((au > 0)) | |
316 | - | then (lastBlock.timestamp >= au) | |
317 | - | else false) | |
318 | - | then throw("Coupon expired") | |
319 | - | else { | |
320 | - | let az = O(P) | |
321 | - | let aH = K(t) | |
322 | - | let aI = C(x) | |
323 | - | let aJ = af(P) | |
324 | - | let aK = (Z(t) + aJ) | |
325 | - | let aL = (al(x) + 1) | |
326 | - | let E = ae(P) | |
327 | - | let aM = addressFromStringValue(E) | |
313 | + | else if ((1 == 1)) | |
314 | + | then throw(("AAAAA: " + aN)) | |
315 | + | else if ((aG != h)) | |
316 | + | then throw("You cannot reject this purchased") | |
317 | + | else if (if ((au > 0)) | |
318 | + | then (lastBlock.timestamp >= au) | |
319 | + | else false) | |
320 | + | then throw("Coupon expired") | |
321 | + | else { | |
322 | + | let az = O(P) | |
323 | + | let aH = K(t) | |
324 | + | let aI = C(x) | |
325 | + | let aJ = af(P) | |
326 | + | let aK = (Z(t) + aJ) | |
327 | + | let aL = (al(x) + 1) | |
328 | + | let E = ae(P) | |
329 | + | let aM = addressFromStringValue(E) | |
328 | 330 | [IntegerEntry(aH, aK), IntegerEntry(aI, aL), ScriptTransfer(aM, 1, fromBase58String(aN))] | |
329 | - | } | |
331 | + | } | |
330 | 332 | } | |
331 | 333 | ||
332 | 334 | ||
333 | 335 | ||
334 | 336 | @Callable(ar) | |
335 | 337 | func voteCommit (x,aO) = { | |
336 | 338 | let E = toBase58String(ar.caller.bytes) | |
337 | 339 | let aP = an(x) | |
338 | 340 | let aG = ap(x) | |
339 | 341 | if ((aP >= b)) | |
340 | 342 | then throw("Reached max number of voters") | |
341 | 343 | else if ((am(x, E) != a)) | |
342 | 344 | then throw("You voted already") | |
343 | 345 | else if ((w(x) == a)) | |
344 | 346 | then throw("Item does not exists") | |
345 | 347 | else if (if ((aG != a)) | |
346 | 348 | then (aG != f) | |
347 | 349 | else false) | |
348 | 350 | then throw("Voting is not active for this item now") | |
349 | 351 | else { | |
350 | 352 | let aQ = if ((aP == b)) | |
351 | 353 | then g | |
352 | 354 | else f | |
353 | 355 | [StringEntry(D(x, E), aO), IntegerEntry(F(x), (aP + 1)), StringEntry(H(x), aQ)] | |
354 | 356 | } | |
355 | 357 | } | |
356 | 358 | ||
357 | 359 | ||
358 | 360 | ||
359 | 361 | @Callable(ar) | |
360 | 362 | func voteReveal (x,J,aR) = { | |
361 | 363 | let E = toBase58String(ar.caller.bytes) | |
362 | 364 | let aG = ap(x) | |
363 | 365 | let aS = (aq(x, J) + 1) | |
364 | 366 | let aT = toBase58String(sha256(toBytes(((x + J) + aR)))) | |
365 | 367 | if ((aT != am(x, E))) | |
366 | 368 | then throw("Reveal data is not valid") | |
367 | 369 | else if ((b > an(x))) | |
368 | 370 | then throw("Max number of voters not reached") | |
369 | 371 | else if ((ao(x, E) != a)) | |
370 | 372 | then throw("You voted already") | |
371 | 373 | else if (if ((aG != f)) | |
372 | 374 | then (aG != g) | |
373 | 375 | else false) | |
374 | 376 | then throw("Voting is not active for this item now") | |
375 | 377 | else if (if ((J != d)) | |
376 | 378 | then (J != e) | |
377 | 379 | else false) | |
378 | 380 | then throw("Provided voting option is incorrect") | |
379 | 381 | else { | |
380 | 382 | let aQ = if ((aS >= c)) | |
381 | 383 | then J | |
382 | 384 | else g | |
383 | 385 | [StringEntry(G(x, E), J), IntegerEntry(I(x, E), aS), StringEntry(H(x), aQ)] | |
384 | 386 | } | |
385 | 387 | } | |
386 | 388 | ||
387 | 389 | ||
388 | 390 | @Verifier(aU) | |
389 | 391 | func aV () = { | |
390 | 392 | let m = aU | |
391 | 393 | if ($isInstanceOf(m, "SetScriptTransaction")) | |
392 | 394 | then { | |
393 | 395 | let aW = m | |
394 | 396 | sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey) | |
395 | 397 | } | |
396 | 398 | else if ($isInstanceOf(m, "IssueTransaction")) | |
397 | 399 | then { | |
398 | 400 | let aW = m | |
399 | 401 | sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey) | |
400 | 402 | } | |
401 | 403 | else if ($isInstanceOf(m, "TransferTransaction")) | |
402 | 404 | then { | |
403 | 405 | let aW = m | |
404 | 406 | sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey) | |
405 | 407 | } | |
406 | 408 | else false | |
407 | 409 | } | |
408 | 410 |
github/deemru/w8io/169f3d6 64.76 ms ◑