tx · CadePmeFdXCUMSVNRxZJN2D3F6kWT74BhJ5XLkAwyLrX 3MtKQXaiKQxSTRPpa8GjJ5zE7mE992eBrGu: -0.05000000 Waves 2019.11.03 05:52 [748122] smart account 3MtKQXaiKQxSTRPpa8GjJ5zE7mE992eBrGu > SELF 0.00000000 Waves
{ "type": 13, "id": "CadePmeFdXCUMSVNRxZJN2D3F6kWT74BhJ5XLkAwyLrX", "fee": 5000000, "feeAssetId": null, "timestamp": 1572749520621, "version": 1, "sender": "3MtKQXaiKQxSTRPpa8GjJ5zE7mE992eBrGu", "senderPublicKey": "2vmjFmSn7wGYrffwrNFgTN6j9CATDKwa8t8KAXWe2HVW", "proofs": [ "2ioa9PyWQEoeoSmXEzRt2PJaVZgii8N7vWv3zG1BHyNZQSdZhd9bbxvqKbwVm8eUzscgPDETzDep2HGA5gX9sAeK" ], "script": "base64:AAIDAAAAAAAAABIIARIDCgEIEgQKAggCEgMKAQgAAAAkAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBZzRkQVI2WGJCREFTOWhyL0VqM2RKdjZGZmM0NjZ4L21PR01XVTNsckFCczNxYThCSG11Skdua2ZicEVmMnZBd1lUT1dQdnZ6Zk0xME9CYmZsb1N5cTNjOU1LdnlUZTFsdUJMR3FXNHZaVVhJeXZTZ3oxbGl5VVZlZklReTNkeUY5amJlVFpiQzBiYmNULzdPM0RFTCswMXo2QStyRENhY1NaMGxHb2xTUTZBbmhMeHpJa1ZwT1FKYnJCbUMreCtadVpQQ01Xekp5bmQ1YWVPbjdqYWovbWtSVnl4ZTZnLzBPaFd6NE5paVpYZXVNUkIrOG1LeTBmV0QvVWxJbFpXSHNBUzJabXJrWEtxakxxMC8wd3I4SUxKa3pualNxZG5JNUliamczdVFyai80QU4raTlyMjhhUTczL1prUHRZNVNidzBBT2lBQkJ1N2dIbXE5YXlWeFpRSUR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AAAAl0b2tlblR5cGUAAAABBQAAAAdwYXlUeXBlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADHJlZnVuZFdhbGxldAUAAAAJcmVmdW5kQW10BQAAAAtyZWZ1bmRUb2tlbgUAAAADbmlsAAAAAOmJuD0=", "chainId": 84, "height": 748122, "spentComplexity": 0 } View: original | compacted Prev: 5yYuYrxHnPEiFsmanHnhkFz5Tzp5FVJtADzLewAUFS4D Next: E3Pn4ZCDKSGvYjC8uJGAWYRBZw4BgwUJBu4yCvxuBCVx Diff:
Old | New | Differences | |
---|---|---|---|
168 | 168 | then (o > aq) | |
169 | 169 | else false) | |
170 | 170 | then throw(("The minimum bet on Waves is " + toString((o / h)))) | |
171 | - | else | |
171 | + | else fraction((aq * 2), ((100 - f) - g), 100) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(as) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB") | |
5 | 5 | ||
6 | 6 | let b = "$GAME_NUM" | |
7 | 7 | ||
8 | 8 | let c = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
9 | 9 | ||
10 | 10 | let d = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
11 | 11 | ||
12 | 12 | let e = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
13 | 13 | ||
14 | 14 | let f = 4 | |
15 | 15 | ||
16 | 16 | let g = 2 | |
17 | 17 | ||
18 | 18 | let h = 100000000 | |
19 | 19 | ||
20 | 20 | let i = "SUBMITTED" | |
21 | 21 | ||
22 | 22 | let j = "ACCEPTED" | |
23 | 23 | ||
24 | 24 | let k = "FINISHED" | |
25 | 25 | ||
26 | 26 | let l = "CANCELED" | |
27 | 27 | ||
28 | 28 | let m = "RED" | |
29 | 29 | ||
30 | 30 | let n = "BLUE" | |
31 | 31 | ||
32 | 32 | let o = ((1 * h) / 4) | |
33 | 33 | ||
34 | 34 | let p = (100 * h) | |
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 = 6 | |
49 | 49 | ||
50 | 50 | let x = 7 | |
51 | 51 | ||
52 | 52 | let y = 8 | |
53 | 53 | ||
54 | 54 | func z () = { | |
55 | 55 | let A = { | |
56 | 56 | let B = getInteger(this, b) | |
57 | 57 | if ($isInstanceOf(B, "Int")) | |
58 | 58 | then { | |
59 | 59 | let C = B | |
60 | 60 | C | |
61 | 61 | } | |
62 | 62 | else 0 | |
63 | 63 | } | |
64 | 64 | (A + 1) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func D (E,F) = { | |
69 | 69 | let G = rsaVerify(SHA256, toBytes(E), F, a) | |
70 | 70 | if (G) | |
71 | 71 | then { | |
72 | 72 | let H = (toInt(sha256(F)) % 100) | |
73 | 73 | if ((0 > H)) | |
74 | 74 | then ((-1 * H) + 1) | |
75 | 75 | else (H + 1) | |
76 | 76 | } | |
77 | 77 | else throw("Invalid RSA signature") | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func I (J) = if ((J.assetId == c)) | |
82 | 82 | then "WBET" | |
83 | 83 | else "WAVES" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func K (L) = if ((L == "WBET")) | |
87 | 87 | then c | |
88 | 88 | else unit | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func M (N) = { | |
92 | 92 | let O = size(N) | |
93 | 93 | if ((O == 0)) | |
94 | 94 | then throw("Parameter size must be greater then 0") | |
95 | 95 | else if ((O > 99)) | |
96 | 96 | then throw("Parameter size must be less then 100") | |
97 | 97 | else if ((10 > O)) | |
98 | 98 | then (("0" + toString(O)) + N) | |
99 | 99 | else (toString(O) + N) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func P (Q,R,S,T,U,V,W,X,Y) = { | |
104 | 104 | let Z = ((((((((((M(Q) + "_") + M(R)) + "_") + M(S)) + "_") + M(T)) + "_") + M(toString(U))) + "_") + M(toString(V))) | |
105 | 105 | if (if (if ((W == "")) | |
106 | 106 | then true | |
107 | 107 | else (X == "")) | |
108 | 108 | then true | |
109 | 109 | else (Y == "")) | |
110 | 110 | then Z | |
111 | 111 | else ((((((Z + "_") + M(W)) + "_") + M(X)) + "_") + M(Y)) | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func aa (ab) = if ((size(ab) > 0)) | |
116 | 116 | then drop(ab, 1) | |
117 | 117 | else ab | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ac (ab) = { | |
121 | 121 | let O = size(ab) | |
122 | 122 | if ((O > 0)) | |
123 | 123 | then { | |
124 | 124 | let ad = parseIntValue(take(ab, 2)) | |
125 | 125 | let ae = take(drop(ab, 2), ad) | |
126 | 126 | let af = drop(ab, (ad + 2)) | |
127 | 127 | let ag = aa(af) | |
128 | 128 | [ae, ag] | |
129 | 129 | } | |
130 | 130 | else throw("Empty string was passed into parseNextAttribute func") | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func ah (ai) = { | |
135 | 135 | let Q = ac(ai) | |
136 | 136 | let aj = ac(Q[1]) | |
137 | 137 | let ak = ac(aj[1]) | |
138 | 138 | let T = ac(ak[1]) | |
139 | 139 | let al = ac(T[1]) | |
140 | 140 | let V = ac(al[1]) | |
141 | 141 | [Q[0], aj[0], ak[0], T[0], al[0], V[0]] | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func am (E) = { | |
146 | 146 | let an = { | |
147 | 147 | let B = getString(this, E) | |
148 | 148 | if ($isInstanceOf(B, "String")) | |
149 | 149 | then { | |
150 | 150 | let ao = B | |
151 | 151 | ao | |
152 | 152 | } | |
153 | 153 | else throw(("Couldn't find game by " + E)) | |
154 | 154 | } | |
155 | 155 | ah(an) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ap (aq,ar,I) = if (if ((ar != m)) | |
160 | 160 | then (ar != n) | |
161 | 161 | else false) | |
162 | 162 | then throw("Invalid play, change your bet to RED or BLUE coin. Game aborted.") | |
163 | 163 | else if (if ((I == "WBET")) | |
164 | 164 | then (p > aq) | |
165 | 165 | else false) | |
166 | 166 | then throw(("The minimum bet on Wbet is " + toString((p / h)))) | |
167 | 167 | else if (if ((I == "WAVES")) | |
168 | 168 | then (o > aq) | |
169 | 169 | else false) | |
170 | 170 | then throw(("The minimum bet on Waves is " + toString((o / h)))) | |
171 | - | else | |
171 | + | else fraction((aq * 2), ((100 - f) - g), 100) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(as) | |
175 | 175 | func playCoinflip (aj) = { | |
176 | 176 | let E = toBase58String(as.transactionId) | |
177 | 177 | let at = isDefined(getString(this, E)) | |
178 | 178 | let J = extract(as.payment) | |
179 | 179 | let au = isDefined(as.feeAssetId) | |
180 | 180 | if (if ((J.assetId != assetInfo(base58'WAVES'))) | |
181 | 181 | then (J.assetId != c) | |
182 | 182 | else false) | |
183 | 183 | then throw("Payment should be in Wbet or Waves. Game aborted.") | |
184 | 184 | else if (au) | |
185 | 185 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
186 | 186 | else if (at) | |
187 | 187 | then throw("Passed gameId had been used before. Game aborted.") | |
188 | 188 | else { | |
189 | 189 | let av = z() | |
190 | 190 | let S = toBase58String(as.callerPublicKey) | |
191 | 191 | let T = I(J) | |
192 | 192 | let V = ap(J.amount, aj, T) | |
193 | 193 | let aw = P(i, aj, S, T, J.amount, V, "", "", "") | |
194 | 194 | ScriptResult(WriteSet([DataEntry(b, av), DataEntry(E, aw)]), TransferSet(nil)) | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(as) | |
201 | 201 | func acceptCoinChallenge (E,ax) = { | |
202 | 202 | let ay = am(E) | |
203 | 203 | let Q = ay[q] | |
204 | 204 | let aj = ay[r] | |
205 | 205 | let ak = ay[s] | |
206 | 206 | let T = ay[t] | |
207 | 207 | let al = parseIntValue(ay[u]) | |
208 | 208 | let V = parseIntValue(ay[v]) | |
209 | 209 | let J = extract(as.payment) | |
210 | 210 | let au = isDefined(as.feeAssetId) | |
211 | 211 | let az = toBase58String(as.callerPublicKey) | |
212 | 212 | let aA = I(J) | |
213 | 213 | if (if ((J.assetId != assetInfo(base58'WAVES'))) | |
214 | 214 | then (J.assetId != c) | |
215 | 215 | else false) | |
216 | 216 | then throw("Payment should be in Wbet or Waves. Game aborted.") | |
217 | 217 | else if (au) | |
218 | 218 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
219 | 219 | else if ((ak == az)) | |
220 | 220 | then throw("You can't accept a challenge created by yourself. Game aborted.") | |
221 | 221 | else if ((T != aA)) | |
222 | 222 | then throw("Payment must be made in the same token as the bet, WBET/WBET or WAVES/WAVES. Game aborted.") | |
223 | 223 | else if ((al != J.amount)) | |
224 | 224 | then throw("Payout must be equal to the challenger bet amount. Game aborted.") | |
225 | 225 | else if ((Q != i)) | |
226 | 226 | then throw("Invalid game state for passed gameId. Game aborted.") | |
227 | 227 | else { | |
228 | 228 | let H = D(E, ax) | |
229 | 229 | let Y = if ((H > 50)) | |
230 | 230 | then m | |
231 | 231 | else n | |
232 | 232 | let aB = if ((aj == m)) | |
233 | 233 | then n | |
234 | 234 | else m | |
235 | 235 | let aC = K(T) | |
236 | 236 | let aD = P(k, aj, ak, T, al, V, aB, az, Y) | |
237 | 237 | let aE = if ((aj == Y)) | |
238 | 238 | then addressFromPublicKey(fromBase58String(ak)) | |
239 | 239 | else as.caller | |
240 | 240 | ScriptResult(WriteSet([DataEntry(E, aD)]), TransferSet([ScriptTransfer(d, ((V * f) / 100), aC), ScriptTransfer(e, ((V * f) / 100), aC), ScriptTransfer(aE, V, aC)])) | |
241 | 241 | } | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(as) | |
247 | 247 | func cancelCoinChallenge (E) = { | |
248 | 248 | let ay = am(E) | |
249 | 249 | let Q = ay[q] | |
250 | 250 | let aj = ay[r] | |
251 | 251 | let ak = ay[s] | |
252 | 252 | let T = ay[t] | |
253 | 253 | let al = parseIntValue(ay[u]) | |
254 | 254 | let V = parseIntValue(ay[v]) | |
255 | 255 | let aF = toBase58String(as.callerPublicKey) | |
256 | 256 | let au = isDefined(as.feeAssetId) | |
257 | 257 | if (au) | |
258 | 258 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
259 | 259 | else if ((Q != i)) | |
260 | 260 | then throw("Invalid game state for passed gameId. Game aborted.") | |
261 | 261 | else if ((ak != aF)) | |
262 | 262 | then throw("You cannot cancel a game created by another player. Game aborted.") | |
263 | 263 | else if ((as.caller == this)) | |
264 | 264 | then throw("Coinflip contract cannot cancel a game. Game aborted.") | |
265 | 265 | else { | |
266 | 266 | let aD = P(l, aj, ak, T, al, V, "", "", "") | |
267 | 267 | let aG = (al - ((al * f) / 100)) | |
268 | 268 | let aH = addressFromPublicKey(fromBase58String(ak)) | |
269 | 269 | let aI = K(T) | |
270 | 270 | ScriptResult(WriteSet([DataEntry(E, aD)]), TransferSet([ScriptTransfer(aH, aG, aI)])) | |
271 | 271 | } | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 |
github/deemru/w8io/026f985 49.15 ms ◑