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