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