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