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