tx · T3pgitk5qfkFgr89Fgr1BaPw5u3tE4XqAEo9eSUoVvk 3MyhMcrCuBoTaov5Z2BiSsXVzS6z2bkvNm1: -0.01500000 Waves 2020.04.29 16:32 [976115] smart account 3MyhMcrCuBoTaov5Z2BiSsXVzS6z2bkvNm1 > SELF 0.00000000 Waves
{ "type": 13, "id": "T3pgitk5qfkFgr89Fgr1BaPw5u3tE4XqAEo9eSUoVvk", "fee": 1500000, "feeAssetId": null, "timestamp": 1588167200143, "version": 1, "sender": "3MyhMcrCuBoTaov5Z2BiSsXVzS6z2bkvNm1", "senderPublicKey": "AiHiuEsvDvRfZatZXdcoM2CsZAWp4A39Wqh77nUDTCJB", "proofs": [ "5RKC5gh6mNCoqsVPJSbsdZr2QsfET3atxxQQJjFsDz1cJSYzSEhvEtuj2BuAho9HsQfx3dPVBnZZe8X8eACKr7QL" ], "script": "base64:AAIDAAAAAAAAAA0IARIDCgEIEgQKAggCAAAASAAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQW1wdVhjSS9vNHBJQjV5d3Y5RE9PR2FwVEJVd1JWbE0vNitINmhGZWxPWHRrcndZL1lJdG1QeEVEcHo3ckFlclFQUWU5dERQRWFBdi9HbmxFenR5Yk9GWGd1OUR6RGU4WW9NUkQxdmFrZ29BY29nbWJZNThRRDZLTWo1SGtvVmoveVROSWM5c3pqNXFoSWxyQWRtYjNLTEw2aFFVN3k4K0pqNjlCV1ZQc2FRZ2tzcFNkZVl0YjF0SFFjN3Q5NW43T1o1NnIyQTdHMytiUWY2blNNa1BrQWhJckVwYkNtNThvaUdCY3pkVGQvTHFGU1ZvdFpzYkw3WWg2U0hMZm5IZUQrUWdjZkpybmFtOE9ITUdKRUpUUlhqSUxlSEdqbFJDUDhvVnBpb0hyeTFTMnhQeDVzVnpJbTJNTStDelllbkFHbG8wajI2YXRCaGlVTG9UdWx3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GF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgkABEwAAAACBQAAABFkZWNyZWFzZWRSZXNlcnZlcwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwBAAAAAdhc3NldElkCQEAAAAVdmFsaWRhdGVBbmRHZXRBc3NldElkAAAAAQgFAAAAA3R0eAAAAAdhc3NldElkCQAAZwAAAAIJAABlAAAAAgkBAAAADHdhdmVzQmFsYW5jZQAAAAEFAAAABHRoaXMIBQAAAAN0dHgAAAAGYW1vdW50CQEAAAAIZ2V0SW50T3IAAAACCQABkQAAAAIFAAAADlJFU0VSVkFUSU9OS0VZBQAAAAdhc3NldElkAAAAAAAAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwAwkAAAAAAAACCQEAAAAIZ2V0SW50T3IAAAACCQABkQAAAAIFAAAADlJFU0VSVkFUSU9OS0VZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAAAAAIJAQAAAAhnZXRJbnRPcgAAAAIJAAGRAAAAAgUAAAAOUkVTRVJWQVRJT05LRVkAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAHBwe3ECbH", "chainId": 84, "height": 976115, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmpuXcI/o4pIB5ywv9DOOGapTBUwRVlM/6+H6hFelOXtkrwY/YItmPxEDpz7rAerQPQe9tDPEaAv/GnlEztybOFXgu9DzDe8YoMRD1vakgoAcogmbY58QD6KMj5HkoVj/yTNIc9szj5qhIlrAdmb3KLL6hQU7y8+Jj69BWVPsaQgkspSdeYtb1tHQc7t95n7OZ56r2A7G3+bQf6nSMkPkAhIrEpbCm58oiGBczdTd/LqFSVotZsbL7Yh6SHLfnHeD+QgcfJrnam8OHMGJEJTRXjILeHGjlRCP8oVpioHry1S2xPx5sVzIm2MM+CzYenAGlo0j26atBhiULoTulwD3pQIDAQAB") | |
5 | + | ||
6 | + | let b = addressFromStringValue("3N4Aib5iubWiGMzdTh6wWiVDVbo32oeVUmH") | |
7 | + | ||
8 | + | let c = 4320 | |
9 | + | ||
10 | + | let d = 100000000 | |
11 | + | ||
12 | + | let e = 1000000 | |
13 | + | ||
14 | + | let f = [d, e] | |
15 | + | ||
16 | + | let g = [unit, fromBase58String("3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC")] | |
17 | + | ||
18 | + | func h (i) = ((5 * f[i]) / 1000) | |
19 | + | ||
20 | + | ||
21 | + | func j (i) = ((1 * f[i]) / 2) | |
22 | + | ||
23 | + | ||
24 | + | func k (i) = (6 * f[i]) | |
25 | + | ||
26 | + | ||
27 | + | func l (i) = ((1 * f[i]) / 10) | |
28 | + | ||
29 | + | ||
30 | + | func m (n,o) = if (isDefined(getInteger(this, n))) | |
31 | + | then getIntegerValue(this, n) | |
32 | + | else o | |
33 | + | ||
34 | + | ||
35 | + | func p (n,q) = DataEntry(n, q) | |
36 | + | ||
37 | + | ||
38 | + | func r (n) = p(n, (m(n, -1) + 1)) | |
39 | + | ||
40 | + | ||
41 | + | func s (n,t) = p(n, (m(n, 0) + t)) | |
42 | + | ||
43 | + | ||
44 | + | let u = 10000 | |
45 | + | ||
46 | + | let v = 96 | |
47 | + | ||
48 | + | let w = 94 | |
49 | + | ||
50 | + | let x = 9860 | |
51 | + | ||
52 | + | let y = 93 | |
53 | + | ||
54 | + | let z = 87 | |
55 | + | ||
56 | + | let A = 9800 | |
57 | + | ||
58 | + | let B = 86 | |
59 | + | ||
60 | + | let C = 86 | |
61 | + | ||
62 | + | let D = 9750 | |
63 | + | ||
64 | + | let E = 85 | |
65 | + | ||
66 | + | let F = 84 | |
67 | + | ||
68 | + | let G = 9670 | |
69 | + | ||
70 | + | let H = 83 | |
71 | + | ||
72 | + | let I = 83 | |
73 | + | ||
74 | + | let J = 9630 | |
75 | + | ||
76 | + | let K = 82 | |
77 | + | ||
78 | + | let L = 67 | |
79 | + | ||
80 | + | let M = 9610 | |
81 | + | ||
82 | + | let N = 66 | |
83 | + | ||
84 | + | let O = 56 | |
85 | + | ||
86 | + | let P = 9560 | |
87 | + | ||
88 | + | let Q = 55 | |
89 | + | ||
90 | + | let R = 38 | |
91 | + | ||
92 | + | let S = 9500 | |
93 | + | ||
94 | + | let T = 37 | |
95 | + | ||
96 | + | let U = 3 | |
97 | + | ||
98 | + | let V = 9290 | |
99 | + | ||
100 | + | let W = 2 | |
101 | + | ||
102 | + | let X = 1 | |
103 | + | ||
104 | + | let Y = 9860 | |
105 | + | ||
106 | + | let Z = 0 | |
107 | + | ||
108 | + | let aa = 1 | |
109 | + | ||
110 | + | let ab = 2 | |
111 | + | ||
112 | + | let ac = 3 | |
113 | + | ||
114 | + | let ad = 4 | |
115 | + | ||
116 | + | let ae = 5 | |
117 | + | ||
118 | + | let af = ["$RESERVED_AMOUNT_WAVES", "$RESERVED_AMOUNT_USDN"] | |
119 | + | ||
120 | + | let ag = "$GAME_NUM" | |
121 | + | ||
122 | + | let ah = "$MAX_BALANCE" | |
123 | + | ||
124 | + | let ai = "SUBMITTED" | |
125 | + | ||
126 | + | let aj = "WON" | |
127 | + | ||
128 | + | let ak = "LOST" | |
129 | + | ||
130 | + | func al () = { | |
131 | + | let am = { | |
132 | + | let an = getInteger(this, ag) | |
133 | + | if ($isInstanceOf(an, "Int")) | |
134 | + | then { | |
135 | + | let ao = an | |
136 | + | ao | |
137 | + | } | |
138 | + | else 0 | |
139 | + | } | |
140 | + | (am + 1) | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | func ap (i) = { | |
145 | + | let an = getInteger(this, af[i]) | |
146 | + | if ($isInstanceOf(an, "Int")) | |
147 | + | then { | |
148 | + | let aq = an | |
149 | + | aq | |
150 | + | } | |
151 | + | else 0 | |
152 | + | } | |
153 | + | ||
154 | + | ||
155 | + | func ar (as,i) = { | |
156 | + | let at = (m(af[i], 0) + as) | |
157 | + | if ((at > wavesBalance(this))) | |
158 | + | then throw("Insufficient funds on Dice Roller account. Transaction was rejected for your safety.") | |
159 | + | else at | |
160 | + | } | |
161 | + | ||
162 | + | ||
163 | + | func au (av,i,as) = if ((0 > (m(af[i], 0) - as))) | |
164 | + | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
165 | + | else s(af[i], -(as)) | |
166 | + | ||
167 | + | ||
168 | + | func aw (i) = if ((i == g[0])) | |
169 | + | then 0 | |
170 | + | else if ((i == g[1])) | |
171 | + | then 1 | |
172 | + | else throw("Invalid payment asset") | |
173 | + | ||
174 | + | ||
175 | + | func ax (ay,i,az) = { | |
176 | + | let aA = (ay - h(i)) | |
177 | + | let aB = j(i) | |
178 | + | let aC = k(i) | |
179 | + | let aD = l(i) | |
180 | + | let aE = if (if ((aA >= aB)) | |
181 | + | then (aC >= aA) | |
182 | + | else false) | |
183 | + | then ((aA % aD) == 0) | |
184 | + | else false | |
185 | + | if (aE) | |
186 | + | then { | |
187 | + | let aF = parseIntValue(az) | |
188 | + | if (if ((aF >= 1)) | |
189 | + | then (96 >= aF) | |
190 | + | else false) | |
191 | + | then { | |
192 | + | let aG = if (if ((v >= aF)) | |
193 | + | then (aF >= w) | |
194 | + | else false) | |
195 | + | then x | |
196 | + | else if (if ((y >= aF)) | |
197 | + | then (aF >= z) | |
198 | + | else false) | |
199 | + | then A | |
200 | + | else if (if ((B >= aF)) | |
201 | + | then (aF >= C) | |
202 | + | else false) | |
203 | + | then D | |
204 | + | else if (if ((E >= aF)) | |
205 | + | then (aF >= F) | |
206 | + | else false) | |
207 | + | then G | |
208 | + | else if (if ((H >= aF)) | |
209 | + | then (aF >= I) | |
210 | + | else false) | |
211 | + | then J | |
212 | + | else if (if ((K >= aF)) | |
213 | + | then (aF >= L) | |
214 | + | else false) | |
215 | + | then M | |
216 | + | else if (if ((N >= aF)) | |
217 | + | then (aF >= O) | |
218 | + | else false) | |
219 | + | then P | |
220 | + | else if (if ((Q >= aF)) | |
221 | + | then (aF >= R) | |
222 | + | else false) | |
223 | + | then S | |
224 | + | else if (if ((T >= aF)) | |
225 | + | then (aF >= U) | |
226 | + | else false) | |
227 | + | then V | |
228 | + | else if (if ((W >= aF)) | |
229 | + | then (aF >= X) | |
230 | + | else false) | |
231 | + | then Y | |
232 | + | else throw(("Couldn't define range: playerChoice=" + az)) | |
233 | + | ((((100 * aG) / aF) * aA) / u) | |
234 | + | } | |
235 | + | else throw("Player choice is out of the condition below: 1 <= choice <= 96") | |
236 | + | } | |
237 | + | else throw(((((("Bet amount is not in range: minBet=" + toString(aB)) + " maxBet=") + toString(aC)) + " betStep=") + toString(aD))) | |
238 | + | } | |
239 | + | ||
240 | + | ||
241 | + | func aH (aI) = if (if ((aI >= 1)) | |
242 | + | then (100 >= aI) | |
243 | + | else false) | |
244 | + | then toString(aI) | |
245 | + | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString(aI))) | |
246 | + | ||
247 | + | ||
248 | + | func aJ (av,aK) = { | |
249 | + | let aL = rsaVerify(SHA256, toBytes(av), aK, a) | |
250 | + | if (aL) | |
251 | + | then { | |
252 | + | let aM = (toInt(sha256(aK)) % 100) | |
253 | + | if ((0 > aM)) | |
254 | + | then ((-1 * aM) + 1) | |
255 | + | else (aM + 1) | |
256 | + | } | |
257 | + | else throw("Invalid RSA signature") | |
258 | + | } | |
259 | + | ||
260 | + | ||
261 | + | func aN (az,aM) = { | |
262 | + | let aF = parseIntValue(az) | |
263 | + | (aF >= aM) | |
264 | + | } | |
265 | + | ||
266 | + | ||
267 | + | func aO (aP) = { | |
268 | + | let aQ = size(aP) | |
269 | + | if ((aQ == 0)) | |
270 | + | then throw("Parameter size must be greater then 0") | |
271 | + | else if ((aQ > 99)) | |
272 | + | then throw("Parameter size must be less then 100") | |
273 | + | else if ((10 > aQ)) | |
274 | + | then (("0" + toString(aQ)) + aP) | |
275 | + | else (toString(aQ) + aP) | |
276 | + | } | |
277 | + | ||
278 | + | ||
279 | + | func aR (aS,az,aT,aU,as,i,aV) = (((((((((((aS + "_") + az) + "_") + aT) + "_") + toString(aU)) + "_") + toString(as)) + "_") + toString(i)) + (if ((aV == "")) | |
280 | + | then "" | |
281 | + | else ("_" + aV))) | |
282 | + | ||
283 | + | ||
284 | + | func aW (aX) = if ((size(aX) > 0)) | |
285 | + | then drop(aX, 1) | |
286 | + | else aX | |
287 | + | ||
288 | + | ||
289 | + | func aY (av) = split({ | |
290 | + | let an = getString(this, av) | |
291 | + | if ($isInstanceOf(an, "String")) | |
292 | + | then { | |
293 | + | let aZ = an | |
294 | + | aZ | |
295 | + | } | |
296 | + | else throw((("Game: " + av) + " not found.")) | |
297 | + | }, "_") | |
298 | + | ||
299 | + | ||
300 | + | func ba (av,bb,as,i,bc,bd,be) = { | |
301 | + | let bf = [be] | |
302 | + | let bg = [ScriptTransfer(bb, as, g[i])] | |
303 | + | if (bd) | |
304 | + | then { | |
305 | + | let bh = (bc + "_TIMEOUT") | |
306 | + | let bi = DataEntry(av, bh) | |
307 | + | ScriptResult(WriteSet(bi :: bf), TransferSet(bg)) | |
308 | + | } | |
309 | + | else { | |
310 | + | let bi = DataEntry(av, bc) | |
311 | + | ScriptResult(WriteSet(bi :: bf), TransferSet(bg)) | |
312 | + | } | |
313 | + | } | |
314 | + | ||
315 | + | ||
316 | + | @Callable(bj) | |
317 | + | func bet (az) = { | |
318 | + | let av = toBase58String(bj.transactionId) | |
319 | + | if ((bj.payment == unit)) | |
320 | + | then throw("No payment") | |
321 | + | else if (isDefined(getString(this, av))) | |
322 | + | then throw((("Bet for: " + av) + " was already made.")) | |
323 | + | else { | |
324 | + | let aP = extract(bj.payment) | |
325 | + | let i = aw(aP.assetId) | |
326 | + | let bk = h(i) | |
327 | + | let as = ax(aP.amount, i, az) | |
328 | + | let aT = toBase58String(bj.callerPublicKey) | |
329 | + | let bi = aR(ai, az, aT, height, as, i, "") | |
330 | + | ScriptResult(WriteSet([DataEntry(af[i], ar(as, i)), r(ag), DataEntry(av, bi)]), TransferSet([ScriptTransfer(b, bk, aP.assetId)])) | |
331 | + | } | |
332 | + | } | |
333 | + | ||
334 | + | ||
335 | + | ||
336 | + | @Callable(bj) | |
337 | + | func withdraw (av,aK) = { | |
338 | + | let bi = aY(av) | |
339 | + | let aS = bi[Z] | |
340 | + | let az = bi[aa] | |
341 | + | let aU = parseIntValue(bi[ac]) | |
342 | + | let as = parseIntValue(bi[ad]) | |
343 | + | let i = parseIntValue(bi[ae]) | |
344 | + | let aT = bi[ab] | |
345 | + | let bb = addressFromPublicKey(fromBase58String(aT)) | |
346 | + | let bd = ((height - aU) > c) | |
347 | + | let be = au(av, i, as) | |
348 | + | if ((aS != ai)) | |
349 | + | then throw("Invalid game state for passed gameId") | |
350 | + | else if (bd) | |
351 | + | then { | |
352 | + | let bl = az | |
353 | + | let bc = aR(aj, az, aT, aU, as, i, bl) | |
354 | + | ba(av, bb, as, i, bc, bd, be) | |
355 | + | } | |
356 | + | else { | |
357 | + | let aM = aJ(av, aK) | |
358 | + | let bl = aH(aM) | |
359 | + | if (aN(az, aM)) | |
360 | + | then { | |
361 | + | let bc = aR(aj, az, aT, aU, as, i, bl) | |
362 | + | ba(av, bb, as, i, bc, bd, be) | |
363 | + | } | |
364 | + | else { | |
365 | + | let bc = aR(ak, az, aT, aU, as, i, bl) | |
366 | + | WriteSet([DataEntry(av, bc), be]) | |
367 | + | } | |
368 | + | } | |
369 | + | } | |
370 | + | ||
371 | + | ||
372 | + | @Verifier(bm) | |
373 | + | func bn () = if (sigVerify(bm.bodyBytes, bm.proofs[0], bm.senderPublicKey)) | |
374 | + | then { | |
375 | + | let an = bm | |
376 | + | if ($isInstanceOf(an, "TransferTransaction")) | |
377 | + | then { | |
378 | + | let bo = an | |
379 | + | let i = aw(bo.assetId) | |
380 | + | ((wavesBalance(this) - bo.amount) >= m(af[i], 0)) | |
381 | + | } | |
382 | + | else if ($isInstanceOf(an, "SetScriptTransaction")) | |
383 | + | then { | |
384 | + | let bp = an | |
385 | + | if ((m(af[0], 0) == 0)) | |
386 | + | then (m(af[1], 0) == 0) | |
387 | + | else false | |
388 | + | } | |
389 | + | else false | |
390 | + | } | |
391 | + | else false | |
392 | + |
github/deemru/w8io/169f3d6 58.93 ms ◑