tx · 6HkiJZhvmR393T8YxBmF85gjSsyRMGhGGpe1W1C2nAgF 3MyrsoUShtK8LVWE6mGVinCdwiJeedCtkvr: -0.01000000 Waves 2023.11.27 13:33 [2861687] smart account 3MyrsoUShtK8LVWE6mGVinCdwiJeedCtkvr > SELF 0.00000000 Waves
{ "type": 13, "id": "6HkiJZhvmR393T8YxBmF85gjSsyRMGhGGpe1W1C2nAgF", "fee": 1000000, "feeAssetId": null, "timestamp": 1701081238896, "version": 1, "sender": "3MyrsoUShtK8LVWE6mGVinCdwiJeedCtkvr", "senderPublicKey": "53WfUfPHKFYj846Npe6Bu5indsxPueAsu9YWe8fnprXh", "proofs": [ "3YjjjgLG8Wo2w9aA9gFbxe7DpWSvRuVyyTqtt3mzrRQBFFSnDjG3USBQrir33kFedZCzQcCvBxQT7DZDdMPyWzKb" ], "script": "base64:BgIaCAISBgoECAgBCBIDCgEEEgMKAQgSBAoCCAJBAANTRVACAl9fAAdXQVZFU0lEAQQTq9kzAAZXQVZFU0QAgMLXLwAJR0FNRV9OQU1FAg9DYXJkIG9mIHRoZSBEYXkADFJBTkRPTV9SQU5HRQAoAAhOVU1fQkVUUwABAQxnZXRTdHJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQC5CQIJAMwIAgIKbWFuZGF0b3J5IAkAzAgCCQClCAEFB2FkZHJlc3MJAMwIAgIBLgkAzAgCBQNrZXkJAMwIAgIPIGlzIG5vdCBkZWZpbmVkBQNuaWwCAAEMZ2V0SW50T3JGYWlsAgdhZGRyZXNzA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCaCAIFB2FkZHJlc3MFA2tleQkAuQkCCQDMCAICCm1hbmRhdG9yeSAJAMwIAgkApQgBBQdhZGRyZXNzCQDMCAICAS4JAMwIAgUDa2V5CQDMCAICDyBpcyBub3QgZGVmaW5lZAUDbmlsAgABDWdldEJvb2xPckZhaWwC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W5zYWN0aW9uBANzdHgFByRtYXRjaDAKAQdjaGVja2VyAgNhY2MFYXNzZXQDBQNhY2MJAAACCQEIZ2V0SW50T3ICCQEYa2V5UmVzZXJ2YXRpb25CeUFzc2V0U3RyAQUFYXNzZXQAAAAABwoAAiRsBQZBU1NFVFMKAAIkcwkAkAMBBQIkbAoABSRhY2MwBgoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEHY2hlY2tlcgIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQIUTGlzdCBzaXplIGV4Y2VlZHMgMTAJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgcHN6gJbg==", "chainId": 84, "height": 2861687, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: DGsR1vDJrNaRA1WeRT65YhtvBeNefZrwUSMGXTQ1f4cU Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = base58'WAVES' | |
7 | + | ||
8 | + | let c = 100000000 | |
9 | + | ||
10 | + | let d = "Card of the Day" | |
11 | + | ||
12 | + | let e = 40 | |
13 | + | ||
14 | + | let f = 1 | |
15 | + | ||
16 | + | func g (h,i) = valueOrErrorMessage(getString(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], "")) | |
17 | + | ||
18 | + | ||
19 | + | func j (h,i) = valueOrErrorMessage(getInteger(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], "")) | |
20 | + | ||
21 | + | ||
22 | + | func k (h,i) = valueOrErrorMessage(getBoolean(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], "")) | |
23 | + | ||
24 | + | ||
25 | + | let l = "%s%s__cfg__allowedAssets" | |
26 | + | ||
27 | + | let m = "%s%s__cfg__assetsDecimals" | |
28 | + | ||
29 | + | let n = "%s%s__cfg__assetsBetDividers" | |
30 | + | ||
31 | + | let o = "%s%s__cfg__rsaPublic64" | |
32 | + | ||
33 | + | let p = "%s%s__cfg__benzAddress" | |
34 | + | ||
35 | + | let q = "%s%s__cfg__withdrawTimeFrame" | |
36 | + | ||
37 | + | let r = "%s%s__runtime__gameNum" | |
38 | + | ||
39 | + | let s = "%s%s__runtime__contractIsBlocked" | |
40 | + | ||
41 | + | func t (i) = { | |
42 | + | let u = g(this, i) | |
43 | + | func v (w,x) = (w :+ parseIntValue(x)) | |
44 | + | ||
45 | + | let y = split(u, a) | |
46 | + | let z = size(y) | |
47 | + | let A = nil | |
48 | + | func B (C,D) = if ((D >= z)) | |
49 | + | then C | |
50 | + | else v(C, y[D]) | |
51 | + | ||
52 | + | func E (C,D) = if ((D >= z)) | |
53 | + | then C | |
54 | + | else throw("List size exceeds 10") | |
55 | + | ||
56 | + | E(B(B(B(B(B(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | let F = split(g(this, l), a) | |
61 | + | ||
62 | + | let G = t(m) | |
63 | + | ||
64 | + | let H = t(n) | |
65 | + | ||
66 | + | func I (J) = ("$RESERVED_AMOUNT_" + J) | |
67 | + | ||
68 | + | ||
69 | + | func K (L) = I(F[L]) | |
70 | + | ||
71 | + | ||
72 | + | let M = ((5 * c) / 1000) | |
73 | + | ||
74 | + | let N = 0 | |
75 | + | ||
76 | + | let O = 1 | |
77 | + | ||
78 | + | let P = 2 | |
79 | + | ||
80 | + | let Q = 1 | |
81 | + | ||
82 | + | let R = 2 | |
83 | + | ||
84 | + | let S = 4 | |
85 | + | ||
86 | + | let T = 8 | |
87 | + | ||
88 | + | let U = 14 | |
89 | + | ||
90 | + | let V = 10000 | |
91 | + | ||
92 | + | let W = 250000 | |
93 | + | ||
94 | + | let X = [R] | |
95 | + | ||
96 | + | let Y = 0 | |
97 | + | ||
98 | + | let Z = 1 | |
99 | + | ||
100 | + | let aa = 2 | |
101 | + | ||
102 | + | let ab = 3 | |
103 | + | ||
104 | + | let ac = 4 | |
105 | + | ||
106 | + | let ad = 5 | |
107 | + | ||
108 | + | let ae = "SUBMITTED" | |
109 | + | ||
110 | + | let af = "WON" | |
111 | + | ||
112 | + | let ag = "LOST" | |
113 | + | ||
114 | + | func ah (i) = valueOrErrorMessage(getString(this, i), (i + " key is not specified in this.state")) | |
115 | + | ||
116 | + | ||
117 | + | let ai = fromBase64String(ah(o)) | |
118 | + | ||
119 | + | let aj = addressFromStringValue(ah(p)) | |
120 | + | ||
121 | + | let ak = valueOrElse(getInteger(this, q), 7200) | |
122 | + | ||
123 | + | func al (i,am) = if (isDefined(getInteger(i))) | |
124 | + | then getIntegerValue(i) | |
125 | + | else am | |
126 | + | ||
127 | + | ||
128 | + | func an (i,ao) = IntegerEntry(i, ao) | |
129 | + | ||
130 | + | ||
131 | + | func ap (i) = an(i, (al(i, -1) + 1)) | |
132 | + | ||
133 | + | ||
134 | + | func aq (i,ar) = an(i, (al(i, 0) + ar)) | |
135 | + | ||
136 | + | ||
137 | + | func as (at) = { | |
138 | + | let au = at | |
139 | + | if ($isInstanceOf(au, "ByteVector")) | |
140 | + | then { | |
141 | + | let av = au | |
142 | + | toBase58String(av) | |
143 | + | } | |
144 | + | else "WAVES" | |
145 | + | } | |
146 | + | ||
147 | + | ||
148 | + | func aw (ax) = if ((ax == "WAVES")) | |
149 | + | then unit | |
150 | + | else fromBase58String(ax) | |
151 | + | ||
152 | + | ||
153 | + | func ay (at) = { | |
154 | + | let au = at | |
155 | + | if ($isInstanceOf(au, "ByteVector")) | |
156 | + | then { | |
157 | + | let az = au | |
158 | + | assetBalance(this, az) | |
159 | + | } | |
160 | + | else wavesBalance(this).available | |
161 | + | } | |
162 | + | ||
163 | + | ||
164 | + | func aA (aB,L) = { | |
165 | + | let ax = F[L] | |
166 | + | let aC = (al(K(L), 0) + aB) | |
167 | + | if ((aC > ay(aw(ax)))) | |
168 | + | then throw((("Insufficient funds on " + d) + " account. Transaction was rejected for your safety.")) | |
169 | + | else aC | |
170 | + | } | |
171 | + | ||
172 | + | ||
173 | + | func aD (aE,L,aB) = if ((0 > (al(K(L), 0) - aB))) | |
174 | + | then throw((("Invalid " + d) + " account state - reserved amount is less than 0")) | |
175 | + | else aq(K(L), -(aB)) | |
176 | + | ||
177 | + | ||
178 | + | func aF (ax) = { | |
179 | + | let aG = indexOf(F, ax) | |
180 | + | if (!(isDefined(aG))) | |
181 | + | then throw("Invalid payment asset") | |
182 | + | else value(aG) | |
183 | + | } | |
184 | + | ||
185 | + | ||
186 | + | func aH (aI,aJ,aK) = { | |
187 | + | let aL = size(aK) | |
188 | + | func aM (u,aN) = if (u) | |
189 | + | then true | |
190 | + | else (aI == ((aN * G[aJ]) / H[aJ])) | |
191 | + | ||
192 | + | if (!({ | |
193 | + | let y = X | |
194 | + | let z = size(y) | |
195 | + | let A = false | |
196 | + | func B (C,D) = if ((D >= z)) | |
197 | + | then C | |
198 | + | else aM(C, y[D]) | |
199 | + | ||
200 | + | func E (C,D) = if ((D >= z)) | |
201 | + | then C | |
202 | + | else throw("List size exceeds 5") | |
203 | + | ||
204 | + | E(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5) | |
205 | + | })) | |
206 | + | then throw("Bet amount is not valid") | |
207 | + | else if ((parseInt(aK) == unit)) | |
208 | + | then throw("Invalid player's choice") | |
209 | + | else fraction(aI, W, V) | |
210 | + | } | |
211 | + | ||
212 | + | ||
213 | + | func aO (aE,aP,aK) = { | |
214 | + | let aQ = rsaVerify_16Kb(SHA256, toBytes(aE), aP, ai) | |
215 | + | if (!(aQ)) | |
216 | + | then throw("Invalid RSA signature") | |
217 | + | else { | |
218 | + | let aR = (toInt(sha256((aP + toBytes(aK)))) % e) | |
219 | + | toString(aR) | |
220 | + | } | |
221 | + | } | |
222 | + | ||
223 | + | ||
224 | + | func aS (aK,aT) = if ((size(aK) == f)) | |
225 | + | then (aT == toString((e - 1))) | |
226 | + | else false | |
227 | + | ||
228 | + | ||
229 | + | func aU (aV,aK,aW,aX,aB,L,aY) = makeString([aV, aK, aW, aX, aB, L, if ((aY == "")) | |
230 | + | then "" | |
231 | + | else aY], "_") | |
232 | + | ||
233 | + | ||
234 | + | func aZ (aV,aK,aW,aX,aB,L,aY) = aU(aV, aK, aW, toString(aX), toString(aB), toString(L), aY) | |
235 | + | ||
236 | + | ||
237 | + | func ba (bb,aV,aR,bc) = { | |
238 | + | let ba = aU(aV, bb[Z], bb[aa], bb[ab], bb[ac], bb[ad], aR) | |
239 | + | if (bc) | |
240 | + | then (ba + "_TIMEOUT") | |
241 | + | else ba | |
242 | + | } | |
243 | + | ||
244 | + | ||
245 | + | func bd (aE) = split({ | |
246 | + | let au = getString(this, aE) | |
247 | + | if ($isInstanceOf(au, "String")) | |
248 | + | then { | |
249 | + | let be = au | |
250 | + | be | |
251 | + | } | |
252 | + | else throw((("Game: " + aE) + " not found.")) | |
253 | + | }, "_") | |
254 | + | ||
255 | + | ||
256 | + | @Callable(bf) | |
257 | + | func constructorV1 (bg,bh,bi,bj) = if ((bf.caller != aj)) | |
258 | + | then throw("not authorized") | |
259 | + | else { | |
260 | + | func bk (w,bl) = { | |
261 | + | let bm = split(bl, ":") | |
262 | + | if ((size(bm) != 4)) | |
263 | + | then throw("Invalid asset record") | |
264 | + | else $Tuple3((w._1 :+ bm[N]), (w._2 :+ bm[O]), (w._3 :+ bm[P])) | |
265 | + | } | |
266 | + | ||
267 | + | let bn = { | |
268 | + | let y = split_4C(bj, "_") | |
269 | + | let z = size(y) | |
270 | + | let A = $Tuple3(nil, nil, nil) | |
271 | + | func B (C,D) = if ((D >= z)) | |
272 | + | then C | |
273 | + | else bk(C, y[D]) | |
274 | + | ||
275 | + | func E (C,D) = if ((D >= z)) | |
276 | + | then C | |
277 | + | else throw("List size exceeds 10") | |
278 | + | ||
279 | + | E(B(B(B(B(B(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
280 | + | } | |
281 | + | [StringEntry(o, bg), StringEntry(p, bh), IntegerEntry(q, bi), StringEntry(l, makeString_2C(bn._1, a)), StringEntry(m, makeString(bn._2, a)), StringEntry(n, makeString(bn._3, a))] | |
282 | + | } | |
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | @Callable(bf) | |
287 | + | func maintenance (bo) = if ((bf.caller != aj)) | |
288 | + | then throw("not authorized") | |
289 | + | else [BooleanEntry(s, bo)] | |
290 | + | ||
291 | + | ||
292 | + | ||
293 | + | @Callable(bf) | |
294 | + | func bet (aK) = if (valueOrElse(getBoolean(s), false)) | |
295 | + | then throw("Game is stopped for maintenence") | |
296 | + | else { | |
297 | + | let aE = toBase58String(bf.transactionId) | |
298 | + | if ((1 >= size(bf.payments))) | |
299 | + | then throw("2 payments must be attached") | |
300 | + | else if (isDefined(getString(this, aE))) | |
301 | + | then throw((("Bet for: " + aE) + " was already made.")) | |
302 | + | else { | |
303 | + | let bp = value(bf.payments[0]) | |
304 | + | let bq = value(bf.payments[1]) | |
305 | + | if (isDefined(bq.assetId)) | |
306 | + | then throw("feePmt (2nd payment) assetId must be in Waves") | |
307 | + | else if ((M > bq.amount)) | |
308 | + | then throw("feePmt (2nd payment) must be >= 0.005 Waves") | |
309 | + | else { | |
310 | + | let ax = as(bp.assetId) | |
311 | + | let aJ = aF(ax) | |
312 | + | let br = bq.amount | |
313 | + | let aB = aH(bp.amount, aJ, aK) | |
314 | + | let aW = toBase58String(bf.callerPublicKey) | |
315 | + | let bs = aZ(ae, aK, aW, height, aB, aJ, "") | |
316 | + | [IntegerEntry(K(aJ), aA(aB, aJ)), ap(r), StringEntry(aE, bs), ScriptTransfer(aj, br, bq.assetId)] | |
317 | + | } | |
318 | + | } | |
319 | + | } | |
320 | + | ||
321 | + | ||
322 | + | ||
323 | + | @Callable(bf) | |
324 | + | func withdraw (aE,aP) = { | |
325 | + | let bs = bd(aE) | |
326 | + | let bt = bs[Y] | |
327 | + | let aK = bs[Z] | |
328 | + | let aX = parseIntValue(bs[ab]) | |
329 | + | let aB = parseIntValue(bs[ac]) | |
330 | + | let L = parseIntValue(bs[ad]) | |
331 | + | let aW = bs[aa] | |
332 | + | let bu = addressFromPublicKey(fromBase58String(aW)) | |
333 | + | if ((bt != ae)) | |
334 | + | then throw("Invalid game state for passed gameId") | |
335 | + | else if ((bf.caller != aj)) | |
336 | + | then throw("Regular withdraw can be done by server only") | |
337 | + | else { | |
338 | + | let bc = ((height - aX) > ak) | |
339 | + | let aT = if (bc) | |
340 | + | then aK | |
341 | + | else aO(aE, aP, aK) | |
342 | + | let bv = aS(aK, aT) | |
343 | + | let bw = if (bv) | |
344 | + | then af | |
345 | + | else ag | |
346 | + | let bx = ba(bs, bw, aT, bc) | |
347 | + | ([StringEntry(aE, bx), aD(aE, L, aB)] ++ (if (bv) | |
348 | + | then [ScriptTransfer(bu, aB, aw(F[L]))] | |
349 | + | else nil)) | |
350 | + | } | |
351 | + | } | |
352 | + | ||
353 | + | ||
354 | + | @Verifier(by) | |
355 | + | func bz () = if (sigVerify(by.bodyBytes, by.proofs[0], by.senderPublicKey)) | |
356 | + | then { | |
357 | + | let au = by | |
358 | + | if ($isInstanceOf(au, "TransferTransaction")) | |
359 | + | then { | |
360 | + | let bA = au | |
361 | + | let L = aF(as(bA.assetId)) | |
362 | + | ((ay(bA.assetId) - bA.amount) >= al(K(L), 0)) | |
363 | + | } | |
364 | + | else if ($isInstanceOf(au, "SetScriptTransaction")) | |
365 | + | then { | |
366 | + | let bB = au | |
367 | + | func bC (w,bD) = if (w) | |
368 | + | then (al(I(bD), 0) == 0) | |
369 | + | else false | |
370 | + | ||
371 | + | let y = F | |
372 | + | let z = size(y) | |
373 | + | let A = true | |
374 | + | func B (C,D) = if ((D >= z)) | |
375 | + | then C | |
376 | + | else bC(C, y[D]) | |
377 | + | ||
378 | + | func E (C,D) = if ((D >= z)) | |
379 | + | then C | |
380 | + | else throw("List size exceeds 10") | |
381 | + | ||
382 | + | E(B(B(B(B(B(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
383 | + | } | |
384 | + | else false | |
385 | + | } | |
386 | + | else false | |
387 | + |
github/deemru/w8io/026f985 25.18 ms ◑