tx · C6BVxkC4o14UBNcA5r9YrqtbVuDsDvAXyShBAjCgvhvw 3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD: -0.01500000 Waves 2019.10.05 15:14 [706422] smart account 3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD > SELF 0.00000000 Waves
{ "type": 13, "id": "C6BVxkC4o14UBNcA5r9YrqtbVuDsDvAXyShBAjCgvhvw", "fee": 1500000, "feeAssetId": null, "timestamp": 1570277702918, "version": 1, "sender": "3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD", "senderPublicKey": "8W9JLTJTfxrJrBNXxngzueBF4vJqeb6p9jFob7wb6QWQ", "proofs": [ "32UqUxGQFMYaxeAG1VUNTZSq32UAapASsrhucS7UQN8kwi14huuQiS2oavyxLja1PpwLCHMZjnpNSkvXnWN8cMgL" ], "script": "base64:AAIDAAAAAAAAAAwIARIAEgYKBAgICAgAAAAkAAAAAA1yc2FQdWJsaWNLZXkxCQACWwAAAAECAAAAgE1Gd3dEUVlKS29aSWh2Y05BUUVCQlFBRFN3QXdTQUpCQU9raXV6L0JWNEVqb3hHaFRtTkNidDJUZ2tiU1BIL3c2OWIzRjFyS21ENjFKaVBYdnZGOEwycEk5eE9ZY1c0Rm1vRVpWSGxSUXRBbGFKeWtsMytyc3JFQ0F3RUFBUT09AAAAAA1yc2FQdWJsaWNLZXkyCQACWwAAAAECAAAAgE1Gd3dEUVlKS29aSWh2Y05BUUVCQlFBRFN3QXdTQUpCQUpuWHpiTS9WMnNEVjFVTGJQU09sSGtsZE9UV1JySGk1ZnhJa0JtdWV2ckNsTVBWSDdycWNjd2lyRE5jTWRJZHdYSEk5QWRoajlGV2p3R0l3ZlUvSzZNQ0F3RUFBUT09AAAAAA1yc2FQdWJsaWNLZXkzCQACWwAAAAECAAAAgE1Gd3dEUVlKS29aSWh2Y05BUUVCQlFBRFN3QXdTQUpCQU9SRGV2eTByNGt6THFPeVNsb0I2M0h1djJlNHplSEtI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jcmlwdFRyYW5zYWN0aW9uBAAAAARzc3R4BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAARzc3R4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAAEc3N0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAARzc3R4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAABGlzdHgFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAABGlzdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAARpc3R4AAAABnByb29mcwAAAAAAAAAAAAgFAAAABGlzdHgAAAAPc2VuZGVyUHVibGljS2V5B21kymc=", "chainId": 84, "height": 706422, "spentComplexity": 0 } View: original | compacted Prev: 6RhvMkHuiRQWbRM2MxGbMC5CCL81SBcyC1oY93tASMP9 Next: 5mQsmZJmPFCJhXUDARfCcsAjr863bBCGYJrh2mKmdjA1 Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | ||
10 | 10 | let d = (1440 * 2) | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = 500000 | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "Accepted" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "Win" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "WinByTimeout" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "Lose" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = unit | |
23 | 23 | ||
24 | - | let k = base58' | |
24 | + | let k = base58'Gt4HLkHunts7bWbtYP5UCsAPW7TUA4gmQEnjgjbZ2NqB' | |
25 | 25 | ||
26 | - | let l = base58' | |
26 | + | let l = base58'6A79GDQj8bdHqUaoJQ3qE1TCPnBc3wFirNCSsAY5RKry' | |
27 | 27 | ||
28 | - | let m = base58' | |
28 | + | let m = base58'7oRhs4zoufHM4KiBDuJwRXUWb9JQaFt98N8ubpmytMmw' | |
29 | 29 | ||
30 | - | let n = base58' | |
30 | + | let n = base58'5UyDjBMx1Q8UWhJj1r7JuA6h4aCkKrHE1J19HvMXRpRd' | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = base58'Ae5W927iuKSLLT6Sdt3bqWze6ZUbYHDWzPY6dLKQusZv' | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 1000 | |
35 | 35 | ||
36 | - | let q = (p | |
36 | + | let q = (100000000 / p) | |
37 | 37 | ||
38 | - | let r = ( | |
38 | + | let r = (q * 10) | |
39 | 39 | ||
40 | - | let s = ( | |
40 | + | let s = (10000 / p) | |
41 | 41 | ||
42 | - | let t = ( | |
42 | + | let t = (s * 10) | |
43 | 43 | ||
44 | - | let u = ( | |
44 | + | let u = (1000000 / p) | |
45 | 45 | ||
46 | - | let v = ( | |
46 | + | let v = (u * 10) | |
47 | 47 | ||
48 | - | let w = ( | |
48 | + | let w = (2000000 / p) | |
49 | 49 | ||
50 | - | let x = ( | |
50 | + | let x = (w * 10) | |
51 | 51 | ||
52 | - | let y = ( | |
52 | + | let y = (500000000 / p) | |
53 | 53 | ||
54 | - | let z = ( | |
54 | + | let z = (y * 10) | |
55 | 55 | ||
56 | - | let A = ( | |
56 | + | let A = (500000000 / p) | |
57 | 57 | ||
58 | - | func B (C,D) = if ((C == "WAVES")) | |
59 | - | then if (if ((D >= p)) | |
60 | - | then (q >= D) | |
58 | + | let B = (A * 10) | |
59 | + | ||
60 | + | func C (D,E) = if ((D == "WAVES")) | |
61 | + | then if (if ((E >= q)) | |
62 | + | then (r >= E) | |
61 | 63 | else false) | |
62 | 64 | then true | |
63 | 65 | else throw("Bet amount is not in range") | |
64 | - | else if (( | |
65 | - | then if (if (( | |
66 | - | then ( | |
66 | + | else if ((D == "BTC")) | |
67 | + | then if (if ((E >= s)) | |
68 | + | then (t >= E) | |
67 | 69 | else false) | |
68 | 70 | then true | |
69 | 71 | else throw("Bet amount is not in range") | |
70 | - | else if (( | |
71 | - | then if (if (( | |
72 | - | then ( | |
72 | + | else if ((D == "ETH")) | |
73 | + | then if (if ((E >= u)) | |
74 | + | then (v >= E) | |
73 | 75 | else false) | |
74 | 76 | then true | |
75 | 77 | else throw("Bet amount is not in range") | |
76 | - | else if (( | |
77 | - | then if (if (( | |
78 | - | then ( | |
78 | + | else if ((D == "LTC")) | |
79 | + | then if (if ((E >= w)) | |
80 | + | then (x >= E) | |
79 | 81 | else false) | |
80 | 82 | then true | |
81 | 83 | else throw("Bet amount is not in range") | |
82 | - | else if (( | |
83 | - | then if (if (( | |
84 | - | then ( | |
84 | + | else if ((D == "WCT")) | |
85 | + | then if (if ((E >= y)) | |
86 | + | then (z >= E) | |
85 | 87 | else false) | |
86 | 88 | then true | |
87 | 89 | else throw("Bet amount is not in range") | |
88 | - | else if (if (( | |
89 | - | then ( | |
90 | + | else if (if ((E >= A)) | |
91 | + | then (B >= E) | |
90 | 92 | else false) | |
91 | 93 | then true | |
92 | 94 | else throw("Bet amount is not in range") | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
96 | - | let | |
97 | - | let | |
98 | - | let | |
99 | - | if ($isInstanceOf( | |
97 | + | func F (G,H) = { | |
98 | + | let I = { | |
99 | + | let J = getInteger(this, ("Reserved_" + H)) | |
100 | + | let K = J | |
101 | + | if ($isInstanceOf(K, "Int")) | |
100 | 102 | then { | |
101 | - | let | |
102 | - | | |
103 | + | let L = K | |
104 | + | L | |
103 | 105 | } | |
104 | 106 | else 0 | |
105 | 107 | } | |
106 | - | let | |
107 | - | if ((wavesBalance(this) >= | |
108 | + | let M = (I + G) | |
109 | + | if ((wavesBalance(this) >= M)) | |
108 | 110 | then { | |
109 | - | let | |
110 | - | | |
111 | + | let F = M | |
112 | + | F | |
111 | 113 | } | |
112 | 114 | else throw("Bet was rejected. Insufficient funds on game account.") | |
113 | 115 | } | |
114 | 116 | ||
115 | 117 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
118 | + | func N (O) = { | |
119 | + | let P = getString(this, O) | |
120 | + | let L = { | |
121 | + | let K = P | |
122 | + | if ($isInstanceOf(K, "String")) | |
121 | 123 | then { | |
122 | - | let | |
123 | - | | |
124 | + | let L = K | |
125 | + | L | |
124 | 126 | } | |
125 | 127 | else throw("GameId was not found") | |
126 | 128 | } | |
127 | - | split( | |
129 | + | split(L, "_") | |
128 | 130 | } | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func Q (R) = if ((2 > R)) | |
132 | 134 | then "7" | |
133 | - | else if ((4 > | |
135 | + | else if ((4 > R)) | |
134 | 136 | then "6" | |
135 | - | else if ((6 > | |
137 | + | else if ((6 > R)) | |
136 | 138 | then "5" | |
137 | - | else if ((8 > | |
139 | + | else if ((8 > R)) | |
138 | 140 | then "4" | |
139 | - | else if ((10 > | |
141 | + | else if ((10 > R)) | |
140 | 142 | then "3" | |
141 | - | else if ((12 > | |
143 | + | else if ((12 > R)) | |
142 | 144 | then "2" | |
143 | 145 | else "1" | |
144 | 146 | ||
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ( | |
148 | + | func S (O,T,U) = { | |
149 | + | let V = rsaVerify(SHA256, toBytes(O), fromBase64String(T), U) | |
150 | + | if (V) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | if (if (( | |
152 | - | then (20 >= | |
152 | + | let R = ((toInt(sha256(fromBase64String(T))) % 19) + 1) | |
153 | + | if (if ((R > 0)) | |
154 | + | then (20 >= R) | |
153 | 155 | else false) | |
154 | - | then | |
156 | + | then R | |
155 | 157 | else throw("Integer is not in range") | |
156 | 158 | } | |
157 | 159 | else throw("Rsa Signature is invalid") | |
158 | 160 | } | |
159 | 161 | ||
160 | 162 | ||
161 | - | func | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | if ($isInstanceOf( | |
163 | + | func W (X,Y) = { | |
164 | + | let J = getInteger(this, ("Reserved_" + Y)) | |
165 | + | let Z = { | |
166 | + | let K = J | |
167 | + | if ($isInstanceOf(K, "Int")) | |
166 | 168 | then { | |
167 | - | let | |
168 | - | | |
169 | + | let L = K | |
170 | + | L | |
169 | 171 | } | |
170 | 172 | else 0 | |
171 | 173 | } | |
172 | - | let | |
173 | - | if (( | |
174 | - | then | |
174 | + | let W = (Z - X) | |
175 | + | if ((W > 0)) | |
176 | + | then W | |
175 | 177 | else throw("Reserved balance couldn't be less than 0") | |
176 | 178 | } | |
177 | 179 | ||
178 | 180 | ||
179 | - | func | |
181 | + | func aa (ab,ac) = if ((ab == "777")) | |
180 | 182 | then 5370 | |
181 | - | else if (( | |
183 | + | else if ((ab == "666")) | |
182 | 184 | then 1300 | |
183 | - | else if (( | |
185 | + | else if ((ab == "555")) | |
184 | 186 | then 450 | |
185 | - | else if (( | |
187 | + | else if ((ab == "444")) | |
186 | 188 | then 200 | |
187 | - | else if (( | |
189 | + | else if ((ab == "333")) | |
188 | 190 | then 150 | |
189 | - | else if (( | |
191 | + | else if ((ab == "222")) | |
190 | 192 | then 110 | |
191 | - | else if (( | |
193 | + | else if ((ab == "111")) | |
192 | 194 | then 40 | |
193 | - | else if (( | |
195 | + | else if ((ac == "77")) | |
194 | 196 | then 270 | |
195 | - | else if (( | |
197 | + | else if ((ac == "66")) | |
196 | 198 | then 130 | |
197 | - | else if (( | |
199 | + | else if ((ac == "55")) | |
198 | 200 | then 65 | |
199 | - | else if (( | |
201 | + | else if ((ac == "44")) | |
200 | 202 | then 30 | |
201 | - | else if (( | |
203 | + | else if ((ac == "33")) | |
202 | 204 | then 20 | |
203 | - | else if (( | |
205 | + | else if ((ac == "22")) | |
204 | 206 | then 15 | |
205 | - | else if (( | |
207 | + | else if ((ac == "11")) | |
206 | 208 | then 10 | |
207 | 209 | else 0 | |
208 | 210 | ||
209 | 211 | ||
210 | - | func | |
211 | - | then | |
212 | - | else if (( | |
213 | - | then | |
214 | - | else if (( | |
215 | - | then | |
216 | - | else if (( | |
217 | - | then | |
218 | - | else if (( | |
219 | - | then | |
220 | - | else if (( | |
221 | - | then | |
212 | + | func ad (ae) = if ((ae == "WAVES")) | |
213 | + | then j | |
214 | + | else if ((ae == "BTC")) | |
215 | + | then k | |
216 | + | else if ((ae == "ETH")) | |
217 | + | then l | |
218 | + | else if ((ae == "LTC")) | |
219 | + | then m | |
220 | + | else if ((ae == "VST")) | |
221 | + | then n | |
222 | + | else if ((ae == "WCT")) | |
223 | + | then o | |
222 | 224 | else throw("Asset name is incorrect") | |
223 | 225 | ||
224 | 226 | ||
225 | - | @Callable( | |
227 | + | @Callable(af) | |
226 | 228 | func makeBet () = { | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
229 | + | let ag = extract(af.payment) | |
230 | + | let E = (ag.amount - e) | |
231 | + | let O = toBase58String(af.transactionId) | |
232 | + | let ah = height | |
233 | + | let ai = toBase58String(af.callerPublicKey) | |
234 | + | let H = if (!(isDefined(ag.assetId))) | |
233 | 235 | then "WAVES" | |
234 | - | else if (( | |
236 | + | else if ((ag.assetId == k)) | |
235 | 237 | then "BTC" | |
236 | - | else if (( | |
238 | + | else if ((ag.assetId == l)) | |
237 | 239 | then "ETH" | |
238 | - | else if (( | |
240 | + | else if ((ag.assetId == m)) | |
239 | 241 | then "LTC" | |
240 | - | else if (( | |
242 | + | else if ((ag.assetId == o)) | |
241 | 243 | then "WCT" | |
242 | - | else if (( | |
244 | + | else if ((ag.assetId == n)) | |
243 | 245 | then "VST" | |
244 | 246 | else throw("AssetId is incorrect") | |
245 | - | let | |
246 | - | let | |
247 | - | if ( | |
247 | + | let aj = F(E, H) | |
248 | + | let ak = C(H, E) | |
249 | + | if (ak) | |
248 | 250 | then { | |
249 | - | let | |
250 | - | WriteSet([DataEntry( | |
251 | + | let al = ((((((((f + "_") + ai) + "_") + toString(E)) + "_") + H) + "_") + toString(ah)) | |
252 | + | WriteSet([DataEntry(O, al), DataEntry(("Reserved_" + H), aj)]) | |
251 | 253 | } | |
252 | 254 | else throw("assetId is incorrect") | |
253 | 255 | } | |
254 | 256 | ||
255 | 257 | ||
256 | 258 | ||
257 | - | @Callable( | |
258 | - | func playGame ( | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | [ | |
259 | + | @Callable(af) | |
260 | + | func playGame (O,am,an,ao) = { | |
261 | + | let ap = N(O) | |
262 | + | let aq = ap[0] | |
263 | + | let ar = addressFromPublicKey(fromBase58String(ap[1])) | |
264 | + | let X = parseIntValue(ap[2]) | |
265 | + | let ae = ap[3] | |
266 | + | let ah = parseIntValue(ap[4]) | |
267 | + | let as = ad(ae) | |
268 | + | let at = (d > (height - ah)) | |
269 | + | let au = (aq == f) | |
270 | + | let aj = W(X, ae) | |
271 | + | let av = { | |
272 | + | let aw = S(O, am, a) | |
273 | + | let ax = S(O, an, b) | |
274 | + | let ay = S(O, ao, c) | |
275 | + | let az = Q(aw) | |
276 | + | let aA = Q(ax) | |
277 | + | let aB = Q(ay) | |
278 | + | [az, aA, aB] | |
277 | 279 | } | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | (( | |
280 | + | let aC = { | |
281 | + | let ab = ((av[0] + av[1]) + av[2]) | |
282 | + | let ac = (av[0] + av[1]) | |
283 | + | let aD = aa(ab, ac) | |
284 | + | ((X * aD) / 10) | |
283 | 285 | } | |
284 | - | let aC = ((((((an[1] + "_") + an[2]) + "_") + an[3]) + "_") + an[4]) | |
285 | - | let aD = ((at[0] + at[1]) + at[2]) | |
286 | - | if (as) | |
287 | - | then if (ar) | |
288 | - | then if ((aA == 0)) | |
289 | - | then WriteSet([DataEntry(M, ((((((h + "_") + aC) + "_") + toString(aA)) + "_") + aD)), DataEntry(("Reserved_" + ac), ah)]) | |
290 | - | else ScriptResult(WriteSet([DataEntry(M, ((((((f + "_") + aC) + "_") + toString(aA)) + "_") + aD)), DataEntry(("Reserved_" + ac), ah)]), TransferSet([ScriptTransfer(ap, aA, aq)])) | |
291 | - | else ScriptResult(WriteSet([DataEntry(M, (g + aC)), DataEntry(("Reserved_" + ac), ah)]), TransferSet([ScriptTransfer(ap, V, aq)])) | |
286 | + | let aE = { | |
287 | + | let aF = assetBalance(this, as) | |
288 | + | if ((aC > aF)) | |
289 | + | then (X * 2) | |
290 | + | else aC | |
291 | + | } | |
292 | + | let aG = ((((((ap[1] + "_") + ap[2]) + "_") + ap[3]) + "_") + ap[4]) | |
293 | + | let aH = ((av[0] + av[1]) + av[2]) | |
294 | + | if (au) | |
295 | + | then if (at) | |
296 | + | then if ((aC == 0)) | |
297 | + | then WriteSet([DataEntry(O, ((((((i + "_") + aG) + "_") + toString(aC)) + "_") + aH)), DataEntry(("Reserved_" + ae), aj)]) | |
298 | + | else ScriptResult(WriteSet([DataEntry(O, ((((((g + "_") + aG) + "_") + toString(aC)) + "_") + aH)), DataEntry(("Reserved_" + ae), aj)]), TransferSet([ScriptTransfer(ar, aE, as)])) | |
299 | + | else ScriptResult(WriteSet([DataEntry(O, (h + aG)), DataEntry(("Reserved_" + ae), aj)]), TransferSet([ScriptTransfer(ar, X, as)])) | |
292 | 300 | else throw("Game state is incorrect") | |
293 | 301 | } | |
294 | 302 | ||
295 | 303 | ||
296 | - | @Verifier( | |
297 | - | func | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
304 | + | @Verifier(aI) | |
305 | + | func aJ () = { | |
306 | + | let K = aI | |
307 | + | if ($isInstanceOf(K, "TransferTransaction")) | |
300 | 308 | then { | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | if ($isInstanceOf( | |
309 | + | let aK = K | |
310 | + | let J = getInteger(this, "Reserved") | |
311 | + | let aL = { | |
312 | + | let aM = J | |
313 | + | if ($isInstanceOf(aM, "Int")) | |
306 | 314 | then { | |
307 | - | let | |
308 | - | | |
315 | + | let L = aM | |
316 | + | L | |
309 | 317 | } | |
310 | 318 | else 0 | |
311 | 319 | } | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ( | |
316 | - | then | |
320 | + | let aN = (wavesBalance(this) - aL) | |
321 | + | let aO = (aN >= aK.amount) | |
322 | + | let aP = sigVerify(aK.bodyBytes, aK.proofs[0], aK.senderPublicKey) | |
323 | + | if (aO) | |
324 | + | then aP | |
317 | 325 | else false | |
318 | 326 | } | |
319 | - | else if ($isInstanceOf( | |
327 | + | else if ($isInstanceOf(K, "SetScriptTransaction")) | |
320 | 328 | then { | |
321 | - | let | |
322 | - | sigVerify( | |
329 | + | let aQ = K | |
330 | + | sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey) | |
323 | 331 | } | |
324 | - | else if ($isInstanceOf( | |
332 | + | else if ($isInstanceOf(K, "InvokeScriptTransaction")) | |
325 | 333 | then { | |
326 | - | let | |
327 | - | sigVerify( | |
334 | + | let aR = K | |
335 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aR.senderPublicKey) | |
328 | 336 | } | |
329 | 337 | else false | |
330 | 338 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = fromBase64String("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOkiuz/BV4EjoxGhTmNCbt2TgkbSPH/w69b3F1rKmD61JiPXvvF8L2pI9xOYcW4FmoEZVHlRQtAlaJykl3+rsrECAwEAAQ==") | |
5 | 5 | ||
6 | 6 | let b = fromBase64String("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJnXzbM/V2sDV1ULbPSOlHkldOTWRrHi5fxIkBmuevrClMPVH7rqccwirDNcMdIdwXHI9Adhj9FWjwGIwfU/K6MCAwEAAQ==") | |
7 | 7 | ||
8 | 8 | let c = fromBase64String("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAORDevy0r4kzLqOySloB63Huv2e4zeHKHjCsy5vtFKmWZbXJa8gZYt4+EklFIo1K9oqu5BAPVfJ3FOzs2U1A+g0CAwEAAQ==") | |
9 | 9 | ||
10 | 10 | let d = (1440 * 2) | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = 500000 | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "Accepted" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "Win" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "WinByTimeout" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "Lose" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = unit | |
23 | 23 | ||
24 | - | let k = base58' | |
24 | + | let k = base58'Gt4HLkHunts7bWbtYP5UCsAPW7TUA4gmQEnjgjbZ2NqB' | |
25 | 25 | ||
26 | - | let l = base58' | |
26 | + | let l = base58'6A79GDQj8bdHqUaoJQ3qE1TCPnBc3wFirNCSsAY5RKry' | |
27 | 27 | ||
28 | - | let m = base58' | |
28 | + | let m = base58'7oRhs4zoufHM4KiBDuJwRXUWb9JQaFt98N8ubpmytMmw' | |
29 | 29 | ||
30 | - | let n = base58' | |
30 | + | let n = base58'5UyDjBMx1Q8UWhJj1r7JuA6h4aCkKrHE1J19HvMXRpRd' | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = base58'Ae5W927iuKSLLT6Sdt3bqWze6ZUbYHDWzPY6dLKQusZv' | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 1000 | |
35 | 35 | ||
36 | - | let q = (p | |
36 | + | let q = (100000000 / p) | |
37 | 37 | ||
38 | - | let r = ( | |
38 | + | let r = (q * 10) | |
39 | 39 | ||
40 | - | let s = ( | |
40 | + | let s = (10000 / p) | |
41 | 41 | ||
42 | - | let t = ( | |
42 | + | let t = (s * 10) | |
43 | 43 | ||
44 | - | let u = ( | |
44 | + | let u = (1000000 / p) | |
45 | 45 | ||
46 | - | let v = ( | |
46 | + | let v = (u * 10) | |
47 | 47 | ||
48 | - | let w = ( | |
48 | + | let w = (2000000 / p) | |
49 | 49 | ||
50 | - | let x = ( | |
50 | + | let x = (w * 10) | |
51 | 51 | ||
52 | - | let y = ( | |
52 | + | let y = (500000000 / p) | |
53 | 53 | ||
54 | - | let z = ( | |
54 | + | let z = (y * 10) | |
55 | 55 | ||
56 | - | let A = ( | |
56 | + | let A = (500000000 / p) | |
57 | 57 | ||
58 | - | func B (C,D) = if ((C == "WAVES")) | |
59 | - | then if (if ((D >= p)) | |
60 | - | then (q >= D) | |
58 | + | let B = (A * 10) | |
59 | + | ||
60 | + | func C (D,E) = if ((D == "WAVES")) | |
61 | + | then if (if ((E >= q)) | |
62 | + | then (r >= E) | |
61 | 63 | else false) | |
62 | 64 | then true | |
63 | 65 | else throw("Bet amount is not in range") | |
64 | - | else if (( | |
65 | - | then if (if (( | |
66 | - | then ( | |
66 | + | else if ((D == "BTC")) | |
67 | + | then if (if ((E >= s)) | |
68 | + | then (t >= E) | |
67 | 69 | else false) | |
68 | 70 | then true | |
69 | 71 | else throw("Bet amount is not in range") | |
70 | - | else if (( | |
71 | - | then if (if (( | |
72 | - | then ( | |
72 | + | else if ((D == "ETH")) | |
73 | + | then if (if ((E >= u)) | |
74 | + | then (v >= E) | |
73 | 75 | else false) | |
74 | 76 | then true | |
75 | 77 | else throw("Bet amount is not in range") | |
76 | - | else if (( | |
77 | - | then if (if (( | |
78 | - | then ( | |
78 | + | else if ((D == "LTC")) | |
79 | + | then if (if ((E >= w)) | |
80 | + | then (x >= E) | |
79 | 81 | else false) | |
80 | 82 | then true | |
81 | 83 | else throw("Bet amount is not in range") | |
82 | - | else if (( | |
83 | - | then if (if (( | |
84 | - | then ( | |
84 | + | else if ((D == "WCT")) | |
85 | + | then if (if ((E >= y)) | |
86 | + | then (z >= E) | |
85 | 87 | else false) | |
86 | 88 | then true | |
87 | 89 | else throw("Bet amount is not in range") | |
88 | - | else if (if (( | |
89 | - | then ( | |
90 | + | else if (if ((E >= A)) | |
91 | + | then (B >= E) | |
90 | 92 | else false) | |
91 | 93 | then true | |
92 | 94 | else throw("Bet amount is not in range") | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
96 | - | let | |
97 | - | let | |
98 | - | let | |
99 | - | if ($isInstanceOf( | |
97 | + | func F (G,H) = { | |
98 | + | let I = { | |
99 | + | let J = getInteger(this, ("Reserved_" + H)) | |
100 | + | let K = J | |
101 | + | if ($isInstanceOf(K, "Int")) | |
100 | 102 | then { | |
101 | - | let | |
102 | - | | |
103 | + | let L = K | |
104 | + | L | |
103 | 105 | } | |
104 | 106 | else 0 | |
105 | 107 | } | |
106 | - | let | |
107 | - | if ((wavesBalance(this) >= | |
108 | + | let M = (I + G) | |
109 | + | if ((wavesBalance(this) >= M)) | |
108 | 110 | then { | |
109 | - | let | |
110 | - | | |
111 | + | let F = M | |
112 | + | F | |
111 | 113 | } | |
112 | 114 | else throw("Bet was rejected. Insufficient funds on game account.") | |
113 | 115 | } | |
114 | 116 | ||
115 | 117 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
118 | + | func N (O) = { | |
119 | + | let P = getString(this, O) | |
120 | + | let L = { | |
121 | + | let K = P | |
122 | + | if ($isInstanceOf(K, "String")) | |
121 | 123 | then { | |
122 | - | let | |
123 | - | | |
124 | + | let L = K | |
125 | + | L | |
124 | 126 | } | |
125 | 127 | else throw("GameId was not found") | |
126 | 128 | } | |
127 | - | split( | |
129 | + | split(L, "_") | |
128 | 130 | } | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func Q (R) = if ((2 > R)) | |
132 | 134 | then "7" | |
133 | - | else if ((4 > | |
135 | + | else if ((4 > R)) | |
134 | 136 | then "6" | |
135 | - | else if ((6 > | |
137 | + | else if ((6 > R)) | |
136 | 138 | then "5" | |
137 | - | else if ((8 > | |
139 | + | else if ((8 > R)) | |
138 | 140 | then "4" | |
139 | - | else if ((10 > | |
141 | + | else if ((10 > R)) | |
140 | 142 | then "3" | |
141 | - | else if ((12 > | |
143 | + | else if ((12 > R)) | |
142 | 144 | then "2" | |
143 | 145 | else "1" | |
144 | 146 | ||
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ( | |
148 | + | func S (O,T,U) = { | |
149 | + | let V = rsaVerify(SHA256, toBytes(O), fromBase64String(T), U) | |
150 | + | if (V) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | if (if (( | |
152 | - | then (20 >= | |
152 | + | let R = ((toInt(sha256(fromBase64String(T))) % 19) + 1) | |
153 | + | if (if ((R > 0)) | |
154 | + | then (20 >= R) | |
153 | 155 | else false) | |
154 | - | then | |
156 | + | then R | |
155 | 157 | else throw("Integer is not in range") | |
156 | 158 | } | |
157 | 159 | else throw("Rsa Signature is invalid") | |
158 | 160 | } | |
159 | 161 | ||
160 | 162 | ||
161 | - | func | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | if ($isInstanceOf( | |
163 | + | func W (X,Y) = { | |
164 | + | let J = getInteger(this, ("Reserved_" + Y)) | |
165 | + | let Z = { | |
166 | + | let K = J | |
167 | + | if ($isInstanceOf(K, "Int")) | |
166 | 168 | then { | |
167 | - | let | |
168 | - | | |
169 | + | let L = K | |
170 | + | L | |
169 | 171 | } | |
170 | 172 | else 0 | |
171 | 173 | } | |
172 | - | let | |
173 | - | if (( | |
174 | - | then | |
174 | + | let W = (Z - X) | |
175 | + | if ((W > 0)) | |
176 | + | then W | |
175 | 177 | else throw("Reserved balance couldn't be less than 0") | |
176 | 178 | } | |
177 | 179 | ||
178 | 180 | ||
179 | - | func | |
181 | + | func aa (ab,ac) = if ((ab == "777")) | |
180 | 182 | then 5370 | |
181 | - | else if (( | |
183 | + | else if ((ab == "666")) | |
182 | 184 | then 1300 | |
183 | - | else if (( | |
185 | + | else if ((ab == "555")) | |
184 | 186 | then 450 | |
185 | - | else if (( | |
187 | + | else if ((ab == "444")) | |
186 | 188 | then 200 | |
187 | - | else if (( | |
189 | + | else if ((ab == "333")) | |
188 | 190 | then 150 | |
189 | - | else if (( | |
191 | + | else if ((ab == "222")) | |
190 | 192 | then 110 | |
191 | - | else if (( | |
193 | + | else if ((ab == "111")) | |
192 | 194 | then 40 | |
193 | - | else if (( | |
195 | + | else if ((ac == "77")) | |
194 | 196 | then 270 | |
195 | - | else if (( | |
197 | + | else if ((ac == "66")) | |
196 | 198 | then 130 | |
197 | - | else if (( | |
199 | + | else if ((ac == "55")) | |
198 | 200 | then 65 | |
199 | - | else if (( | |
201 | + | else if ((ac == "44")) | |
200 | 202 | then 30 | |
201 | - | else if (( | |
203 | + | else if ((ac == "33")) | |
202 | 204 | then 20 | |
203 | - | else if (( | |
205 | + | else if ((ac == "22")) | |
204 | 206 | then 15 | |
205 | - | else if (( | |
207 | + | else if ((ac == "11")) | |
206 | 208 | then 10 | |
207 | 209 | else 0 | |
208 | 210 | ||
209 | 211 | ||
210 | - | func | |
211 | - | then | |
212 | - | else if (( | |
213 | - | then | |
214 | - | else if (( | |
215 | - | then | |
216 | - | else if (( | |
217 | - | then | |
218 | - | else if (( | |
219 | - | then | |
220 | - | else if (( | |
221 | - | then | |
212 | + | func ad (ae) = if ((ae == "WAVES")) | |
213 | + | then j | |
214 | + | else if ((ae == "BTC")) | |
215 | + | then k | |
216 | + | else if ((ae == "ETH")) | |
217 | + | then l | |
218 | + | else if ((ae == "LTC")) | |
219 | + | then m | |
220 | + | else if ((ae == "VST")) | |
221 | + | then n | |
222 | + | else if ((ae == "WCT")) | |
223 | + | then o | |
222 | 224 | else throw("Asset name is incorrect") | |
223 | 225 | ||
224 | 226 | ||
225 | - | @Callable( | |
227 | + | @Callable(af) | |
226 | 228 | func makeBet () = { | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
229 | + | let ag = extract(af.payment) | |
230 | + | let E = (ag.amount - e) | |
231 | + | let O = toBase58String(af.transactionId) | |
232 | + | let ah = height | |
233 | + | let ai = toBase58String(af.callerPublicKey) | |
234 | + | let H = if (!(isDefined(ag.assetId))) | |
233 | 235 | then "WAVES" | |
234 | - | else if (( | |
236 | + | else if ((ag.assetId == k)) | |
235 | 237 | then "BTC" | |
236 | - | else if (( | |
238 | + | else if ((ag.assetId == l)) | |
237 | 239 | then "ETH" | |
238 | - | else if (( | |
240 | + | else if ((ag.assetId == m)) | |
239 | 241 | then "LTC" | |
240 | - | else if (( | |
242 | + | else if ((ag.assetId == o)) | |
241 | 243 | then "WCT" | |
242 | - | else if (( | |
244 | + | else if ((ag.assetId == n)) | |
243 | 245 | then "VST" | |
244 | 246 | else throw("AssetId is incorrect") | |
245 | - | let | |
246 | - | let | |
247 | - | if ( | |
247 | + | let aj = F(E, H) | |
248 | + | let ak = C(H, E) | |
249 | + | if (ak) | |
248 | 250 | then { | |
249 | - | let | |
250 | - | WriteSet([DataEntry( | |
251 | + | let al = ((((((((f + "_") + ai) + "_") + toString(E)) + "_") + H) + "_") + toString(ah)) | |
252 | + | WriteSet([DataEntry(O, al), DataEntry(("Reserved_" + H), aj)]) | |
251 | 253 | } | |
252 | 254 | else throw("assetId is incorrect") | |
253 | 255 | } | |
254 | 256 | ||
255 | 257 | ||
256 | 258 | ||
257 | - | @Callable( | |
258 | - | func playGame ( | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | [ | |
259 | + | @Callable(af) | |
260 | + | func playGame (O,am,an,ao) = { | |
261 | + | let ap = N(O) | |
262 | + | let aq = ap[0] | |
263 | + | let ar = addressFromPublicKey(fromBase58String(ap[1])) | |
264 | + | let X = parseIntValue(ap[2]) | |
265 | + | let ae = ap[3] | |
266 | + | let ah = parseIntValue(ap[4]) | |
267 | + | let as = ad(ae) | |
268 | + | let at = (d > (height - ah)) | |
269 | + | let au = (aq == f) | |
270 | + | let aj = W(X, ae) | |
271 | + | let av = { | |
272 | + | let aw = S(O, am, a) | |
273 | + | let ax = S(O, an, b) | |
274 | + | let ay = S(O, ao, c) | |
275 | + | let az = Q(aw) | |
276 | + | let aA = Q(ax) | |
277 | + | let aB = Q(ay) | |
278 | + | [az, aA, aB] | |
277 | 279 | } | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | (( | |
280 | + | let aC = { | |
281 | + | let ab = ((av[0] + av[1]) + av[2]) | |
282 | + | let ac = (av[0] + av[1]) | |
283 | + | let aD = aa(ab, ac) | |
284 | + | ((X * aD) / 10) | |
283 | 285 | } | |
284 | - | let aC = ((((((an[1] + "_") + an[2]) + "_") + an[3]) + "_") + an[4]) | |
285 | - | let aD = ((at[0] + at[1]) + at[2]) | |
286 | - | if (as) | |
287 | - | then if (ar) | |
288 | - | then if ((aA == 0)) | |
289 | - | then WriteSet([DataEntry(M, ((((((h + "_") + aC) + "_") + toString(aA)) + "_") + aD)), DataEntry(("Reserved_" + ac), ah)]) | |
290 | - | else ScriptResult(WriteSet([DataEntry(M, ((((((f + "_") + aC) + "_") + toString(aA)) + "_") + aD)), DataEntry(("Reserved_" + ac), ah)]), TransferSet([ScriptTransfer(ap, aA, aq)])) | |
291 | - | else ScriptResult(WriteSet([DataEntry(M, (g + aC)), DataEntry(("Reserved_" + ac), ah)]), TransferSet([ScriptTransfer(ap, V, aq)])) | |
286 | + | let aE = { | |
287 | + | let aF = assetBalance(this, as) | |
288 | + | if ((aC > aF)) | |
289 | + | then (X * 2) | |
290 | + | else aC | |
291 | + | } | |
292 | + | let aG = ((((((ap[1] + "_") + ap[2]) + "_") + ap[3]) + "_") + ap[4]) | |
293 | + | let aH = ((av[0] + av[1]) + av[2]) | |
294 | + | if (au) | |
295 | + | then if (at) | |
296 | + | then if ((aC == 0)) | |
297 | + | then WriteSet([DataEntry(O, ((((((i + "_") + aG) + "_") + toString(aC)) + "_") + aH)), DataEntry(("Reserved_" + ae), aj)]) | |
298 | + | else ScriptResult(WriteSet([DataEntry(O, ((((((g + "_") + aG) + "_") + toString(aC)) + "_") + aH)), DataEntry(("Reserved_" + ae), aj)]), TransferSet([ScriptTransfer(ar, aE, as)])) | |
299 | + | else ScriptResult(WriteSet([DataEntry(O, (h + aG)), DataEntry(("Reserved_" + ae), aj)]), TransferSet([ScriptTransfer(ar, X, as)])) | |
292 | 300 | else throw("Game state is incorrect") | |
293 | 301 | } | |
294 | 302 | ||
295 | 303 | ||
296 | - | @Verifier( | |
297 | - | func | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
304 | + | @Verifier(aI) | |
305 | + | func aJ () = { | |
306 | + | let K = aI | |
307 | + | if ($isInstanceOf(K, "TransferTransaction")) | |
300 | 308 | then { | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | if ($isInstanceOf( | |
309 | + | let aK = K | |
310 | + | let J = getInteger(this, "Reserved") | |
311 | + | let aL = { | |
312 | + | let aM = J | |
313 | + | if ($isInstanceOf(aM, "Int")) | |
306 | 314 | then { | |
307 | - | let | |
308 | - | | |
315 | + | let L = aM | |
316 | + | L | |
309 | 317 | } | |
310 | 318 | else 0 | |
311 | 319 | } | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ( | |
316 | - | then | |
320 | + | let aN = (wavesBalance(this) - aL) | |
321 | + | let aO = (aN >= aK.amount) | |
322 | + | let aP = sigVerify(aK.bodyBytes, aK.proofs[0], aK.senderPublicKey) | |
323 | + | if (aO) | |
324 | + | then aP | |
317 | 325 | else false | |
318 | 326 | } | |
319 | - | else if ($isInstanceOf( | |
327 | + | else if ($isInstanceOf(K, "SetScriptTransaction")) | |
320 | 328 | then { | |
321 | - | let | |
322 | - | sigVerify( | |
329 | + | let aQ = K | |
330 | + | sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey) | |
323 | 331 | } | |
324 | - | else if ($isInstanceOf( | |
332 | + | else if ($isInstanceOf(K, "InvokeScriptTransaction")) | |
325 | 333 | then { | |
326 | - | let | |
327 | - | sigVerify( | |
334 | + | let aR = K | |
335 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aR.senderPublicKey) | |
328 | 336 | } | |
329 | 337 | else false | |
330 | 338 | } | |
331 | 339 |
github/deemru/w8io/169f3d6 112.76 ms ◑