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