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