tx · FNSvmMf4PoovR3PwjYCMhcFfy7vmL3u4Gg4NZwr5iAev 3MqQ9ihYKGehfUnXYf5WmkYSZUD71ByeCQe: -0.01500000 Waves 2019.06.21 14:56 [551708] smart account 3MqQ9ihYKGehfUnXYf5WmkYSZUD71ByeCQe > SELF 0.00000000 Waves
{ "type": 13, "id": "FNSvmMf4PoovR3PwjYCMhcFfy7vmL3u4Gg4NZwr5iAev", "fee": 1500000, "feeAssetId": null, "timestamp": 1561118238918, "version": 1, "sender": "3MqQ9ihYKGehfUnXYf5WmkYSZUD71ByeCQe", "senderPublicKey": "HcUXEkA9JTGp78LcTKsu4FmEpbDmnqntL4aMNLx1BHMB", "proofs": [ "42LiAEPrieaT9CUBsTzDVEDqgErgyhDPotL686WV7fXwzfJ7NiEKg1VUadu2phn4dvgzfeM14vhMHJBcDdpKbiqN" ], "script": "base64:AAIDAAAAAAAAAAAAAAAqAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBcWxBaUFOU21CcERIWUtQOXNLZ2VOL2wxYkFiMjhnL3RHbGdEa3dUNUZpTU40WDNwd2R2ZHhFN212U1I4LzQxZFU5cng0akcrNnRacGIxVUxWRFBzNDMxdFIySVJhVFh3NUNqK0FjMnZoTCs1SmFtQ2VyR0QxVVcrYmgvRUdRdHhvOFczWUxEcm9mWEI1UUhKeDRQa3oyS2dmK29TL0M4aEh1Qi9VNGtyTzc2VTA1MDdHVGpaUFA5a1JRMHVMU01lcVFYdDh3WFMrbk1wNXdhanF4UHBETE1hU1JFZ3NLd3YvQUVrUDRkenBUWWJpa0xCWWw0cXRkSnNEODRITEZTa2l3ZDNCaGNPclBqb0lZbUx4UXVCRDVUSU1LVEtEM3NkWmdhWTlyc3lxeDNBMDBpbm55eEQ2enAzYjRnRnBVT1g4SnhLWmRFQzJteUVxbGVOZ2c3R3p3SURBUUFCAAAAAA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GT Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlAiANSmBpDHYKP9sKgeN/l1bAb28g/tGlgDkwT5FiMN4X3pwdvdxE7mvSR8/41dU9rx4jG+6tZpb1ULVDPs431tR2IRaTXw5Cj+Ac2vhL+5JamCerGD1UW+bh/EGQtxo8W3YLDrofXB5QHJx4Pkz2Kgf+oS/C8hHuB/U4krO76U0507GTjZPP9kRQ0uLSMeqQXt8wXS+nMp5wajqxPpDLMaSREgsKwv/AEkP4dzpTYbikLBYl4qtdJsD84HLFSkiwd3BhcOrPjoIYmLxQuBD5TIMKTKD3sdZgaY9rsyqx3A00innyxD6zp3b4gFpUOX8JxKZdEC2myEqleNgg7GzwIDAQAB") | |
5 | + | ||
6 | + | let b = addressFromStringValue("3N4Aib5iubWiGMzdTh6wWiVDVbo32oeVUmH") | |
7 | + | ||
8 | + | let c = 2880 | |
9 | + | ||
10 | + | let d = ((100 * 1000) * 1000) | |
11 | + | ||
12 | + | let e = ((5 * d) / 1000) | |
13 | + | ||
14 | + | let f = (1 * d) | |
15 | + | ||
16 | + | let g = (2 * d) | |
17 | + | ||
18 | + | let h = (4 * d) | |
19 | + | ||
20 | + | let i = (8 * d) | |
21 | + | ||
22 | + | let j = (14 * d) | |
23 | + | ||
24 | + | let k = 10000 | |
25 | + | ||
26 | + | let l = 39655 | |
27 | + | ||
28 | + | let m = 24600 | |
29 | + | ||
30 | + | let n = 19000 | |
31 | + | ||
32 | + | let o = 14200 | |
33 | + | ||
34 | + | let p = 11400 | |
35 | + | ||
36 | + | let q = 0 | |
37 | + | ||
38 | + | let r = 1 | |
39 | + | ||
40 | + | let s = 2 | |
41 | + | ||
42 | + | let t = 3 | |
43 | + | ||
44 | + | let u = 4 | |
45 | + | ||
46 | + | let v = 5 | |
47 | + | ||
48 | + | let w = "$RESERVED_AMOUNT" | |
49 | + | ||
50 | + | let x = "$GAME_NUM" | |
51 | + | ||
52 | + | let y = "SUBMITTED" | |
53 | + | ||
54 | + | let z = "WON" | |
55 | + | ||
56 | + | let A = "LOST" | |
57 | + | ||
58 | + | func B () = { | |
59 | + | let C = { | |
60 | + | let D = getInteger(this, x) | |
61 | + | if ($isInstanceOf(D, "Int")) | |
62 | + | then { | |
63 | + | let E = D | |
64 | + | E | |
65 | + | } | |
66 | + | else 0 | |
67 | + | } | |
68 | + | (C + 1) | |
69 | + | } | |
70 | + | ||
71 | + | ||
72 | + | func F () = { | |
73 | + | let D = getInteger(this, w) | |
74 | + | if ($isInstanceOf(D, "Int")) | |
75 | + | then { | |
76 | + | let G = D | |
77 | + | G | |
78 | + | } | |
79 | + | else 0 | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | func H (I) = { | |
84 | + | let J = (F() + I) | |
85 | + | let K = wavesBalance(this) | |
86 | + | if ((J > K)) | |
87 | + | then throw("Insufficient funds on Dice Roller account. Transaction was rejected for your safety.") | |
88 | + | else J | |
89 | + | } | |
90 | + | ||
91 | + | ||
92 | + | func L (M,I) = { | |
93 | + | let J = (F() - I) | |
94 | + | if ((0 > J)) | |
95 | + | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
96 | + | else DataEntry(w, J) | |
97 | + | } | |
98 | + | ||
99 | + | ||
100 | + | func N (O,P) = { | |
101 | + | let Q = if (if (if (if ((O == (f + e))) | |
102 | + | then true | |
103 | + | else (O == (g + e))) | |
104 | + | then true | |
105 | + | else (O == (h + e))) | |
106 | + | then true | |
107 | + | else (O == (i + e))) | |
108 | + | then true | |
109 | + | else (O == (j + e)) | |
110 | + | if (Q) | |
111 | + | then { | |
112 | + | let R = size(P) | |
113 | + | let S = (O - e) | |
114 | + | if ((R == 1)) | |
115 | + | then ((S * l) / k) | |
116 | + | else if ((R == 2)) | |
117 | + | then ((S * m) / k) | |
118 | + | else if ((R == 3)) | |
119 | + | then ((S * n) / k) | |
120 | + | else if ((R == 4)) | |
121 | + | then ((S * o) / k) | |
122 | + | else if ((R == 5)) | |
123 | + | then ((S * p) / k) | |
124 | + | else throw("Invalid dices count in player's choice") | |
125 | + | } | |
126 | + | else throw("Bet amount is not in range") | |
127 | + | } | |
128 | + | ||
129 | + | ||
130 | + | func T (U) = if ((U == 0)) | |
131 | + | then "1" | |
132 | + | else if ((U == 1)) | |
133 | + | then "2" | |
134 | + | else if ((U == 2)) | |
135 | + | then "3" | |
136 | + | else if ((U == 3)) | |
137 | + | then "4" | |
138 | + | else if ((U == 4)) | |
139 | + | then "5" | |
140 | + | else if ((U == 5)) | |
141 | + | then "6" | |
142 | + | else throw(("Unsupported r parameter passed: expected=[0,...,5] actual=" + toString(U))) | |
143 | + | ||
144 | + | ||
145 | + | func V (M,W) = { | |
146 | + | let X = rsaVerify(SHA256, toBytes(M), W, a) | |
147 | + | if (X) | |
148 | + | then { | |
149 | + | let Y = (toInt(sha256(W)) % 6) | |
150 | + | if ((0 > Y)) | |
151 | + | then (-1 * Y) | |
152 | + | else Y | |
153 | + | } | |
154 | + | else throw("Invalid RSA signature") | |
155 | + | } | |
156 | + | ||
157 | + | ||
158 | + | func Z (P,aa) = { | |
159 | + | let ab = size(P) | |
160 | + | if (if (if (if (if (if ((ab >= 1)) | |
161 | + | then (take(drop(P, 0), 1) == aa) | |
162 | + | else false) | |
163 | + | then true | |
164 | + | else if ((ab >= 2)) | |
165 | + | then (take(drop(P, 1), 1) == aa) | |
166 | + | else false) | |
167 | + | then true | |
168 | + | else if ((ab >= 3)) | |
169 | + | then (take(drop(P, 2), 1) == aa) | |
170 | + | else false) | |
171 | + | then true | |
172 | + | else if ((ab >= 4)) | |
173 | + | then (take(drop(P, 3), 1) == aa) | |
174 | + | else false) | |
175 | + | then true | |
176 | + | else if ((ab >= 5)) | |
177 | + | then (take(drop(P, 4), 1) == aa) | |
178 | + | else false) | |
179 | + | then true | |
180 | + | else if ((ab >= 6)) | |
181 | + | then (take(drop(P, 5), 1) == aa) | |
182 | + | else false | |
183 | + | } | |
184 | + | ||
185 | + | ||
186 | + | func ac (ad) = { | |
187 | + | let ab = size(ad) | |
188 | + | if ((ab == 0)) | |
189 | + | then throw("Parameter size must be greater then 0") | |
190 | + | else if ((ab > 99)) | |
191 | + | then throw("Parameter size must be less then 100") | |
192 | + | else if ((10 > ab)) | |
193 | + | then (("0" + toString(ab)) + ad) | |
194 | + | else (toString(ab) + ad) | |
195 | + | } | |
196 | + | ||
197 | + | ||
198 | + | func ae (af,P,ag,ah,I,ai) = { | |
199 | + | let aj = ((((((((ac(af) + "_") + ac(P)) + "_") + ac(ag)) + "_") + ac(toString(ah))) + "_") + ac(toString(I))) | |
200 | + | if ((ai == "")) | |
201 | + | then aj | |
202 | + | else ((aj + "_") + ac(ai)) | |
203 | + | } | |
204 | + | ||
205 | + | ||
206 | + | func ak (al) = if ((size(al) > 0)) | |
207 | + | then drop(al, 1) | |
208 | + | else al | |
209 | + | ||
210 | + | ||
211 | + | func am (al) = { | |
212 | + | let ab = size(al) | |
213 | + | if ((ab > 0)) | |
214 | + | then { | |
215 | + | let an = parseIntValue(take(al, 2)) | |
216 | + | let ao = take(drop(al, 2), an) | |
217 | + | let ap = drop(al, (an + 2)) | |
218 | + | let aq = ak(ap) | |
219 | + | [ao, aq] | |
220 | + | } | |
221 | + | else throw("Empty string was passed into parseNextAttribute func") | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | func ar (as) = { | |
226 | + | let af = am(as) | |
227 | + | let P = am(af[1]) | |
228 | + | let ag = am(P[1]) | |
229 | + | let ah = am(ag[1]) | |
230 | + | let I = am(ah[1]) | |
231 | + | [af[0], P[0], ag[0], ah[0], I[0]] | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | func at (M) = { | |
236 | + | let au = { | |
237 | + | let D = getString(this, M) | |
238 | + | if ($isInstanceOf(D, "String")) | |
239 | + | then { | |
240 | + | let av = D | |
241 | + | av | |
242 | + | } | |
243 | + | else throw(("Couldn't find game by " + M)) | |
244 | + | } | |
245 | + | ar(au) | |
246 | + | } | |
247 | + | ||
248 | + | ||
249 | + | func aw (M,ax,I,ay,az,aA) = { | |
250 | + | let aB = [aA] | |
251 | + | let aC = [ScriptTransfer(ax, I, unit)] | |
252 | + | if (az) | |
253 | + | then { | |
254 | + | let aD = ((ay + "_") + ac("TIMEOUT")) | |
255 | + | let aE = DataEntry(M, aD) | |
256 | + | ScriptResult(WriteSet(aE :: aB), TransferSet(aC)) | |
257 | + | } | |
258 | + | else { | |
259 | + | let aE = DataEntry(M, ay) | |
260 | + | ScriptResult(WriteSet(aE :: aB), TransferSet(aC)) | |
261 | + | } | |
262 | + | } | |
263 | + | ||
264 | + | ||
265 | + | @Callable(aF) | |
266 | + | func bet (P) = { | |
267 | + | let aG = B() | |
268 | + | let M = toBase58String(aF.transactionId) | |
269 | + | let aH = extract(aF.payment) | |
270 | + | let aI = isDefined(aH.assetId) | |
271 | + | let aJ = isDefined(aH.assetId) | |
272 | + | let I = N(aH.amount, P) | |
273 | + | let aK = isDefined(getString(this, M)) | |
274 | + | if (aI) | |
275 | + | then throw("Bet amount must be in Waves") | |
276 | + | else if (aJ) | |
277 | + | then throw("Transaction's fee must be in Waves") | |
278 | + | else if (aK) | |
279 | + | then throw("Passed txId had been used before. Game aborted.") | |
280 | + | else { | |
281 | + | let ag = toBase58String(aF.callerPublicKey) | |
282 | + | let aL = ae(y, P, ag, height, I, "") | |
283 | + | ScriptResult(WriteSet([DataEntry(w, H(I)), DataEntry(x, aG), DataEntry(M, aL)]), TransferSet([ScriptTransfer(b, e, unit)])) | |
284 | + | } | |
285 | + | } | |
286 | + | ||
287 | + | ||
288 | + | ||
289 | + | @Callable(aF) | |
290 | + | func withdraw (M,W) = { | |
291 | + | let aM = at(M) | |
292 | + | let af = aM[q] | |
293 | + | let P = aM[r] | |
294 | + | let ah = parseIntValue(aM[t]) | |
295 | + | let I = parseIntValue(aM[u]) | |
296 | + | let ag = aM[s] | |
297 | + | let ax = addressFromPublicKey(fromBase58String(ag)) | |
298 | + | let az = ((height - ah) > c) | |
299 | + | let aA = L(M, I) | |
300 | + | if ((af != y)) | |
301 | + | then throw("Invalid game state for passed gameId") | |
302 | + | else if (az) | |
303 | + | then { | |
304 | + | let aa = take(P, 1) | |
305 | + | let ay = ae(z, P, ag, ah, I, aa) | |
306 | + | aw(M, ax, I, ay, az, aA) | |
307 | + | } | |
308 | + | else { | |
309 | + | let aa = T(V(M, W)) | |
310 | + | if (Z(P, aa)) | |
311 | + | then { | |
312 | + | let ay = ae(z, P, ag, ah, I, aa) | |
313 | + | aw(M, ax, I, ay, az, aA) | |
314 | + | } | |
315 | + | else { | |
316 | + | let ay = ae(A, P, ag, ah, I, aa) | |
317 | + | WriteSet([DataEntry(M, ay), aA]) | |
318 | + | } | |
319 | + | } | |
320 | + | } | |
321 | + | ||
322 | + | ||
323 | + | @Verifier(aN) | |
324 | + | func aO () = if (sigVerify(aN.bodyBytes, aN.proofs[0], aN.senderPublicKey)) | |
325 | + | then { | |
326 | + | let D = aN | |
327 | + | if ($isInstanceOf(D, "TransferTransaction")) | |
328 | + | then { | |
329 | + | let aP = D | |
330 | + | ((wavesBalance(this) - aP.amount) >= F()) | |
331 | + | } | |
332 | + | else if ($isInstanceOf(D, "SetScriptTransaction")) | |
333 | + | then { | |
334 | + | let aQ = D | |
335 | + | true | |
336 | + | } | |
337 | + | else false | |
338 | + | } | |
339 | + | else false | |
340 | + |
github/deemru/w8io/026f985 52.53 ms ◑