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