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:AAIDAAAAAAAAABIIARIDCgEIEgQKAggCEgMKAQgAAAAkAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBZzRkQVI2WGJCREFTOWhyL0VqM2RKdjZGZmM0NjZ4L21PR01XVTNsckFCczNxYThCSG11Skdua2ZicEVmMnZBd1lUT1dQdnZ6Zk0xME9CYmZsb1N5cTNjOU1LdnlUZTFsdUJMR3FXNHZaVVhJeXZTZ3oxbGl5VVZlZklReTNkeUY5amJlVFpiQzBiYmNULzdPM0RFTCswMXo2QStyRENhY1NaMGxHb2xTUTZBbmhMeHpJa1ZwT1FKYnJCbUMreCtadVpQQ01Xekp5bmQ1YWVPbjdqYWovbWtSVnl4ZTZnLzBPaFd6NE5paVpYZXVNUkIrOG1LeTBmV0QvVWxJbFpXSHNBUzJabXJrWEtxakxxMC8wd3I4SUxKa3pualNxZG5JNUliamczdVFyai80QU4raTlyMjhhUTczL1prUHRZNVNidzBBT2lBQkJ1N2dIbXE5YXlWeFpRS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QAAAAl0b2tlblR5cGUAAAABBQAAAAdwYXlUeXBlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADHJlZnVuZFdhbGxldAUAAAAJcmVmdW5kQW10BQAAAAtyZWZ1bmRUb2tlbgUAAAADbmlsAAAAAOmJuD0=", "chainId": 84, "height": 748122, "spentComplexity": 0 } View: original | compacted Prev: 5yYuYrxHnPEiFsmanHnhkFz5Tzp5FVJtADzLewAUFS4D Next: E3Pn4ZCDKSGvYjC8uJGAWYRBZw4BgwUJBu4yCvxuBCVx Diff:
OldNewDifferences
168168 then (o > aq)
169169 else false)
170170 then throw(("The minimum bet on Waves is " + toString((o / h))))
171- else (((aq * 2) * (100 - (f + g))) / 100)
171+ else fraction((aq * 2), ((100 - f) - g), 100)
172172
173173
174174 @Callable(as)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB")
55
66 let b = "$GAME_NUM"
77
88 let c = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
99
1010 let d = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1111
1212 let e = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1313
1414 let f = 4
1515
1616 let g = 2
1717
1818 let h = 100000000
1919
2020 let i = "SUBMITTED"
2121
2222 let j = "ACCEPTED"
2323
2424 let k = "FINISHED"
2525
2626 let l = "CANCELED"
2727
2828 let m = "RED"
2929
3030 let n = "BLUE"
3131
3232 let o = ((1 * h) / 4)
3333
3434 let p = (100 * h)
3535
3636 let q = 0
3737
3838 let r = 1
3939
4040 let s = 2
4141
4242 let t = 3
4343
4444 let u = 4
4545
4646 let v = 5
4747
4848 let w = 6
4949
5050 let x = 7
5151
5252 let y = 8
5353
5454 func z () = {
5555 let A = {
5656 let B = getInteger(this, b)
5757 if ($isInstanceOf(B, "Int"))
5858 then {
5959 let C = B
6060 C
6161 }
6262 else 0
6363 }
6464 (A + 1)
6565 }
6666
6767
6868 func D (E,F) = {
6969 let G = rsaVerify(SHA256, toBytes(E), F, a)
7070 if (G)
7171 then {
7272 let H = (toInt(sha256(F)) % 100)
7373 if ((0 > H))
7474 then ((-1 * H) + 1)
7575 else (H + 1)
7676 }
7777 else throw("Invalid RSA signature")
7878 }
7979
8080
8181 func I (J) = if ((J.assetId == c))
8282 then "WBET"
8383 else "WAVES"
8484
8585
8686 func K (L) = if ((L == "WBET"))
8787 then c
8888 else unit
8989
9090
9191 func M (N) = {
9292 let O = size(N)
9393 if ((O == 0))
9494 then throw("Parameter size must be greater then 0")
9595 else if ((O > 99))
9696 then throw("Parameter size must be less then 100")
9797 else if ((10 > O))
9898 then (("0" + toString(O)) + N)
9999 else (toString(O) + N)
100100 }
101101
102102
103103 func P (Q,R,S,T,U,V,W,X,Y) = {
104104 let Z = ((((((((((M(Q) + "_") + M(R)) + "_") + M(S)) + "_") + M(T)) + "_") + M(toString(U))) + "_") + M(toString(V)))
105105 if (if (if ((W == ""))
106106 then true
107107 else (X == ""))
108108 then true
109109 else (Y == ""))
110110 then Z
111111 else ((((((Z + "_") + M(W)) + "_") + M(X)) + "_") + M(Y))
112112 }
113113
114114
115115 func aa (ab) = if ((size(ab) > 0))
116116 then drop(ab, 1)
117117 else ab
118118
119119
120120 func ac (ab) = {
121121 let O = size(ab)
122122 if ((O > 0))
123123 then {
124124 let ad = parseIntValue(take(ab, 2))
125125 let ae = take(drop(ab, 2), ad)
126126 let af = drop(ab, (ad + 2))
127127 let ag = aa(af)
128128 [ae, ag]
129129 }
130130 else throw("Empty string was passed into parseNextAttribute func")
131131 }
132132
133133
134134 func ah (ai) = {
135135 let Q = ac(ai)
136136 let aj = ac(Q[1])
137137 let ak = ac(aj[1])
138138 let T = ac(ak[1])
139139 let al = ac(T[1])
140140 let V = ac(al[1])
141141 [Q[0], aj[0], ak[0], T[0], al[0], V[0]]
142142 }
143143
144144
145145 func am (E) = {
146146 let an = {
147147 let B = getString(this, E)
148148 if ($isInstanceOf(B, "String"))
149149 then {
150150 let ao = B
151151 ao
152152 }
153153 else throw(("Couldn't find game by " + E))
154154 }
155155 ah(an)
156156 }
157157
158158
159159 func ap (aq,ar,I) = if (if ((ar != m))
160160 then (ar != n)
161161 else false)
162162 then throw("Invalid play, change your bet to RED or BLUE coin. Game aborted.")
163163 else if (if ((I == "WBET"))
164164 then (p > aq)
165165 else false)
166166 then throw(("The minimum bet on Wbet is " + toString((p / h))))
167167 else if (if ((I == "WAVES"))
168168 then (o > aq)
169169 else false)
170170 then throw(("The minimum bet on Waves is " + toString((o / h))))
171- else (((aq * 2) * (100 - (f + g))) / 100)
171+ else fraction((aq * 2), ((100 - f) - g), 100)
172172
173173
174174 @Callable(as)
175175 func playCoinflip (aj) = {
176176 let E = toBase58String(as.transactionId)
177177 let at = isDefined(getString(this, E))
178178 let J = extract(as.payment)
179179 let au = isDefined(as.feeAssetId)
180180 if (if ((J.assetId != assetInfo(base58'WAVES')))
181181 then (J.assetId != c)
182182 else false)
183183 then throw("Payment should be in Wbet or Waves. Game aborted.")
184184 else if (au)
185185 then throw("Transaction's fee must be in Waves. Game aborted.")
186186 else if (at)
187187 then throw("Passed gameId had been used before. Game aborted.")
188188 else {
189189 let av = z()
190190 let S = toBase58String(as.callerPublicKey)
191191 let T = I(J)
192192 let V = ap(J.amount, aj, T)
193193 let aw = P(i, aj, S, T, J.amount, V, "", "", "")
194194 ScriptResult(WriteSet([DataEntry(b, av), DataEntry(E, aw)]), TransferSet(nil))
195195 }
196196 }
197197
198198
199199
200200 @Callable(as)
201201 func acceptCoinChallenge (E,ax) = {
202202 let ay = am(E)
203203 let Q = ay[q]
204204 let aj = ay[r]
205205 let ak = ay[s]
206206 let T = ay[t]
207207 let al = parseIntValue(ay[u])
208208 let V = parseIntValue(ay[v])
209209 let J = extract(as.payment)
210210 let au = isDefined(as.feeAssetId)
211211 let az = toBase58String(as.callerPublicKey)
212212 let aA = I(J)
213213 if (if ((J.assetId != assetInfo(base58'WAVES')))
214214 then (J.assetId != c)
215215 else false)
216216 then throw("Payment should be in Wbet or Waves. Game aborted.")
217217 else if (au)
218218 then throw("Transaction's fee must be in Waves. Game aborted.")
219219 else if ((ak == az))
220220 then throw("You can't accept a challenge created by yourself. Game aborted.")
221221 else if ((T != aA))
222222 then throw("Payment must be made in the same token as the bet, WBET/WBET or WAVES/WAVES. Game aborted.")
223223 else if ((al != J.amount))
224224 then throw("Payout must be equal to the challenger bet amount. Game aborted.")
225225 else if ((Q != i))
226226 then throw("Invalid game state for passed gameId. Game aborted.")
227227 else {
228228 let H = D(E, ax)
229229 let Y = if ((H > 50))
230230 then m
231231 else n
232232 let aB = if ((aj == m))
233233 then n
234234 else m
235235 let aC = K(T)
236236 let aD = P(k, aj, ak, T, al, V, aB, az, Y)
237237 let aE = if ((aj == Y))
238238 then addressFromPublicKey(fromBase58String(ak))
239239 else as.caller
240240 ScriptResult(WriteSet([DataEntry(E, aD)]), TransferSet([ScriptTransfer(d, ((V * f) / 100), aC), ScriptTransfer(e, ((V * f) / 100), aC), ScriptTransfer(aE, V, aC)]))
241241 }
242242 }
243243
244244
245245
246246 @Callable(as)
247247 func cancelCoinChallenge (E) = {
248248 let ay = am(E)
249249 let Q = ay[q]
250250 let aj = ay[r]
251251 let ak = ay[s]
252252 let T = ay[t]
253253 let al = parseIntValue(ay[u])
254254 let V = parseIntValue(ay[v])
255255 let aF = toBase58String(as.callerPublicKey)
256256 let au = isDefined(as.feeAssetId)
257257 if (au)
258258 then throw("Transaction's fee must be in Waves. Game aborted.")
259259 else if ((Q != i))
260260 then throw("Invalid game state for passed gameId. Game aborted.")
261261 else if ((ak != aF))
262262 then throw("You cannot cancel a game created by another player. Game aborted.")
263263 else if ((as.caller == this))
264264 then throw("Coinflip contract cannot cancel a game. Game aborted.")
265265 else {
266266 let aD = P(l, aj, ak, T, al, V, "", "", "")
267267 let aG = (al - ((al * f) / 100))
268268 let aH = addressFromPublicKey(fromBase58String(ak))
269269 let aI = K(T)
270270 ScriptResult(WriteSet([DataEntry(E, aD)]), TransferSet([ScriptTransfer(aH, aG, aI)]))
271271 }
272272 }
273273
274274

github/deemru/w8io/026f985 
49.15 ms