tx · 3S2JyDGkTom14LNPTBiq6KtziuMSU8pSRjYZSfVimCi6

3MqQ9ihYKGehfUnXYf5WmkYSZUD71ByeCQe:  -0.01500000 Waves

2019.07.10 19:53 [579849] smart account 3MqQ9ihYKGehfUnXYf5WmkYSZUD71ByeCQe > SELF 0.00000000 Waves

{ "type": 13, "id": "3S2JyDGkTom14LNPTBiq6KtziuMSU8pSRjYZSfVimCi6", "fee": 1500000, "feeAssetId": null, "timestamp": 1562777657595, "version": 1, "sender": "3MqQ9ihYKGehfUnXYf5WmkYSZUD71ByeCQe", "senderPublicKey": "HcUXEkA9JTGp78LcTKsu4FmEpbDmnqntL4aMNLx1BHMB", "proofs": [ "CGpPbn1sLbGLBZ6tq7NVZHq7Sub1oQ9ccRFMmzt7VjnSZvXVbx6euR6fw84bF5F17yXCttQWY85gFedEXNRgHt4" ], "script": "base64:AAIDAAAAAAAAAAAAAAAqAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbGVtcjk1SjFqWlVzN2NKbXJtbWxONHpvN1lWc0JKekllSmRrOExERkdoVUtTSTZ5ZnMyMFp5SmUyMSs2R0p3Tm5LVVUxVXlvYzE3d1NXTUtrclowTU12WUUrWjVBaWlqdkJLNHNTSjNJZ0dqZFU4L05oSThDQkR1MEYreFJNOXEzVEIzTExiRHk1c0JkdWRZZkhmc1VPYytNVHZBRDY5bjI3ZGIyUmg4K3laUU10dWJrdVRRTnA4OXNwaEhRYUxHeVFGYU5sSy9OYTNsRng2b21xemFhMWdqb3BsVXI2cnZZS2dmQUlDVUIzelZtSlNoaUVpN3c3UjBoV2xOUkQzcWNaakNVT05TcEZvNFdiemtuR09henc4NEIrSU1JRm5JcFhXelFMOFJYMHZOY2ZzQnZMRGZNNmsyWmFjcXd5TUthTExxaWdkQmlHZEo3VyswbE9TdE9RSURBUUFCAAAAAAZTRVJWRVIJA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5AAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwCQAAZwAAAAIJAABlAAAAAgkBAAAADHdhdmVzQmFsYW5jZQAAAAEFAAAABHRoaXMIBQAAAAN0dHgAAAAGYW1vdW50CQEAAAASRXh0cmFjdFJlc2VydmVkQW10AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAA3N0eAUAAAAHJG1hdGNoMAYHB8Oh0q8=", "chainId": 84, "height": 579849, "spentComplexity": 0 } View: original | compacted Prev: Ayo5G5Vi6KqUKPoGrEeWJgZs9fpbNRdHJftHp8BsqCLS Next: BqjVLajQ1eZvxnPAM5w9MjxinzjhyiYYYX2mLK3FYukn Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlemr95J1jZUs7cJmrmmlN4zo7YVsBJzIeJdk8LDFGhUKSI6yfs20ZyJe21+6GJwNnKUU1Uyoc17wSWMKkrZ0MMvYE+Z5AiijvBK4sSJ3IgGjdU8/NhI8CBDu0F+xRM9q3TB3LLbDy5sBdudYfHfsUOc+MTvAD69n27db2Rh8+yZQMtubkuTQNp89sphHQaLGyQFaNlK/Na3lFx6omqzaa1gjoplUr6rvYKgfAICUB3zVmJShiEi7w7R0hWlNRD3qcZjCUONSpFo4WbzknGOazw84B+IMIFnIpXWzQL8RX0vNcfsBvLDfM6k2ZacqwyMKaLLqigdBiGdJ7W+0lOStOQIDAQAB")
55
6-let b = addressFromStringValue("3N4Aib5iubWiGMzdTh6wWiVDVbo32oeVUmH")
6+let b = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j")
77
88 let c = 2880
99
263263
264264
265265 @Callable(aF)
266-func bet (P) = {
267- let aG = B()
268- let M = toBase58String(aF.transactionId)
269- let aH = extract(aF.payment)
270- let aI = isDefined(aH.assetId)
271- let aJ = isDefined(aH.assetId)
272- let I = N(aH.amount, P)
273- let aK = isDefined(getString(this, M))
274- if (aI)
275- then throw("Bet amount must be in Waves")
276- else if (aJ)
277- then throw("Transaction's fee must be in Waves")
278- else if (aK)
279- then throw("Passed txId had been used before. Game aborted.")
280- else {
281- let ag = toBase58String(aF.callerPublicKey)
282- let aL = ae(y, P, ag, height, I, "")
283- ScriptResult(WriteSet([DataEntry(w, H(I)), DataEntry(x, aG), DataEntry(M, aL)]), TransferSet([ScriptTransfer(b, e, unit)]))
284- }
285- }
286-
287-
288-
289-@Callable(aF)
290266 func withdraw (M,W) = {
291- let aM = at(M)
292- let af = aM[q]
293- let P = aM[r]
294- let ah = parseIntValue(aM[t])
295- let I = parseIntValue(aM[u])
296- let ag = aM[s]
267+ let aG = at(M)
268+ let af = aG[q]
269+ let P = aG[r]
270+ let ah = parseIntValue(aG[t])
271+ let I = parseIntValue(aG[u])
272+ let ag = aG[s]
297273 let ax = addressFromPublicKey(fromBase58String(ag))
298274 let az = ((height - ah) > c)
299275 let aA = L(M, I)
320296 }
321297
322298
323-@Verifier(aN)
324-func aO () = if (sigVerify(aN.bodyBytes, aN.proofs[0], aN.senderPublicKey))
299+@Verifier(aH)
300+func aI () = if (sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey))
325301 then {
326- let D = aN
302+ let D = aH
327303 if ($isInstanceOf(D, "TransferTransaction"))
328304 then {
329- let aP = D
330- ((wavesBalance(this) - aP.amount) >= F())
305+ let aJ = D
306+ ((wavesBalance(this) - aJ.amount) >= F())
331307 }
332308 else if ($isInstanceOf(D, "SetScriptTransaction"))
333309 then {
334- let aQ = D
310+ let aK = D
335311 true
336312 }
337313 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlemr95J1jZUs7cJmrmmlN4zo7YVsBJzIeJdk8LDFGhUKSI6yfs20ZyJe21+6GJwNnKUU1Uyoc17wSWMKkrZ0MMvYE+Z5AiijvBK4sSJ3IgGjdU8/NhI8CBDu0F+xRM9q3TB3LLbDy5sBdudYfHfsUOc+MTvAD69n27db2Rh8+yZQMtubkuTQNp89sphHQaLGyQFaNlK/Na3lFx6omqzaa1gjoplUr6rvYKgfAICUB3zVmJShiEi7w7R0hWlNRD3qcZjCUONSpFo4WbzknGOazw84B+IMIFnIpXWzQL8RX0vNcfsBvLDfM6k2ZacqwyMKaLLqigdBiGdJ7W+0lOStOQIDAQAB")
55
6-let b = addressFromStringValue("3N4Aib5iubWiGMzdTh6wWiVDVbo32oeVUmH")
6+let b = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j")
77
88 let c = 2880
99
1010 let d = ((100 * 1000) * 1000)
1111
1212 let e = ((5 * d) / 1000)
1313
1414 let f = (1 * d)
1515
1616 let g = (2 * d)
1717
1818 let h = (4 * d)
1919
2020 let i = (8 * d)
2121
2222 let j = (14 * d)
2323
2424 let k = 10000
2525
2626 let l = 39655
2727
2828 let m = 24600
2929
3030 let n = 19000
3131
3232 let o = 14200
3333
3434 let p = 11400
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 = "$RESERVED_AMOUNT"
4949
5050 let x = "$GAME_NUM"
5151
5252 let y = "SUBMITTED"
5353
5454 let z = "WON"
5555
5656 let A = "LOST"
5757
5858 func B () = {
5959 let C = {
6060 let D = getInteger(this, x)
6161 if ($isInstanceOf(D, "Int"))
6262 then {
6363 let E = D
6464 E
6565 }
6666 else 0
6767 }
6868 (C + 1)
6969 }
7070
7171
7272 func F () = {
7373 let D = getInteger(this, w)
7474 if ($isInstanceOf(D, "Int"))
7575 then {
7676 let G = D
7777 G
7878 }
7979 else 0
8080 }
8181
8282
8383 func H (I) = {
8484 let J = (F() + I)
8585 let K = wavesBalance(this)
8686 if ((J > K))
8787 then throw("Insufficient funds on Dice Roller account. Transaction was rejected for your safety.")
8888 else J
8989 }
9090
9191
9292 func L (M,I) = {
9393 let J = (F() - I)
9494 if ((0 > J))
9595 then throw("Invalid Dice Roller account state - reserved amount is less than 0")
9696 else DataEntry(w, J)
9797 }
9898
9999
100100 func N (O,P) = {
101101 let Q = if (if (if (if ((O == (f + e)))
102102 then true
103103 else (O == (g + e)))
104104 then true
105105 else (O == (h + e)))
106106 then true
107107 else (O == (i + e)))
108108 then true
109109 else (O == (j + e))
110110 if (Q)
111111 then {
112112 let R = size(P)
113113 let S = (O - e)
114114 if ((R == 1))
115115 then ((S * l) / k)
116116 else if ((R == 2))
117117 then ((S * m) / k)
118118 else if ((R == 3))
119119 then ((S * n) / k)
120120 else if ((R == 4))
121121 then ((S * o) / k)
122122 else if ((R == 5))
123123 then ((S * p) / k)
124124 else throw("Invalid dices count in player's choice")
125125 }
126126 else throw("Bet amount is not in range")
127127 }
128128
129129
130130 func T (U) = if ((U == 0))
131131 then "1"
132132 else if ((U == 1))
133133 then "2"
134134 else if ((U == 2))
135135 then "3"
136136 else if ((U == 3))
137137 then "4"
138138 else if ((U == 4))
139139 then "5"
140140 else if ((U == 5))
141141 then "6"
142142 else throw(("Unsupported r parameter passed: expected=[0,...,5] actual=" + toString(U)))
143143
144144
145145 func V (M,W) = {
146146 let X = rsaVerify(SHA256, toBytes(M), W, a)
147147 if (X)
148148 then {
149149 let Y = (toInt(sha256(W)) % 6)
150150 if ((0 > Y))
151151 then (-1 * Y)
152152 else Y
153153 }
154154 else throw("Invalid RSA signature")
155155 }
156156
157157
158158 func Z (P,aa) = {
159159 let ab = size(P)
160160 if (if (if (if (if (if ((ab >= 1))
161161 then (take(drop(P, 0), 1) == aa)
162162 else false)
163163 then true
164164 else if ((ab >= 2))
165165 then (take(drop(P, 1), 1) == aa)
166166 else false)
167167 then true
168168 else if ((ab >= 3))
169169 then (take(drop(P, 2), 1) == aa)
170170 else false)
171171 then true
172172 else if ((ab >= 4))
173173 then (take(drop(P, 3), 1) == aa)
174174 else false)
175175 then true
176176 else if ((ab >= 5))
177177 then (take(drop(P, 4), 1) == aa)
178178 else false)
179179 then true
180180 else if ((ab >= 6))
181181 then (take(drop(P, 5), 1) == aa)
182182 else false
183183 }
184184
185185
186186 func ac (ad) = {
187187 let ab = size(ad)
188188 if ((ab == 0))
189189 then throw("Parameter size must be greater then 0")
190190 else if ((ab > 99))
191191 then throw("Parameter size must be less then 100")
192192 else if ((10 > ab))
193193 then (("0" + toString(ab)) + ad)
194194 else (toString(ab) + ad)
195195 }
196196
197197
198198 func ae (af,P,ag,ah,I,ai) = {
199199 let aj = ((((((((ac(af) + "_") + ac(P)) + "_") + ac(ag)) + "_") + ac(toString(ah))) + "_") + ac(toString(I)))
200200 if ((ai == ""))
201201 then aj
202202 else ((aj + "_") + ac(ai))
203203 }
204204
205205
206206 func ak (al) = if ((size(al) > 0))
207207 then drop(al, 1)
208208 else al
209209
210210
211211 func am (al) = {
212212 let ab = size(al)
213213 if ((ab > 0))
214214 then {
215215 let an = parseIntValue(take(al, 2))
216216 let ao = take(drop(al, 2), an)
217217 let ap = drop(al, (an + 2))
218218 let aq = ak(ap)
219219 [ao, aq]
220220 }
221221 else throw("Empty string was passed into parseNextAttribute func")
222222 }
223223
224224
225225 func ar (as) = {
226226 let af = am(as)
227227 let P = am(af[1])
228228 let ag = am(P[1])
229229 let ah = am(ag[1])
230230 let I = am(ah[1])
231231 [af[0], P[0], ag[0], ah[0], I[0]]
232232 }
233233
234234
235235 func at (M) = {
236236 let au = {
237237 let D = getString(this, M)
238238 if ($isInstanceOf(D, "String"))
239239 then {
240240 let av = D
241241 av
242242 }
243243 else throw(("Couldn't find game by " + M))
244244 }
245245 ar(au)
246246 }
247247
248248
249249 func aw (M,ax,I,ay,az,aA) = {
250250 let aB = [aA]
251251 let aC = [ScriptTransfer(ax, I, unit)]
252252 if (az)
253253 then {
254254 let aD = ((ay + "_") + ac("TIMEOUT"))
255255 let aE = DataEntry(M, aD)
256256 ScriptResult(WriteSet(aE :: aB), TransferSet(aC))
257257 }
258258 else {
259259 let aE = DataEntry(M, ay)
260260 ScriptResult(WriteSet(aE :: aB), TransferSet(aC))
261261 }
262262 }
263263
264264
265265 @Callable(aF)
266-func bet (P) = {
267- let aG = B()
268- let M = toBase58String(aF.transactionId)
269- let aH = extract(aF.payment)
270- let aI = isDefined(aH.assetId)
271- let aJ = isDefined(aH.assetId)
272- let I = N(aH.amount, P)
273- let aK = isDefined(getString(this, M))
274- if (aI)
275- then throw("Bet amount must be in Waves")
276- else if (aJ)
277- then throw("Transaction's fee must be in Waves")
278- else if (aK)
279- then throw("Passed txId had been used before. Game aborted.")
280- else {
281- let ag = toBase58String(aF.callerPublicKey)
282- let aL = ae(y, P, ag, height, I, "")
283- ScriptResult(WriteSet([DataEntry(w, H(I)), DataEntry(x, aG), DataEntry(M, aL)]), TransferSet([ScriptTransfer(b, e, unit)]))
284- }
285- }
286-
287-
288-
289-@Callable(aF)
290266 func withdraw (M,W) = {
291- let aM = at(M)
292- let af = aM[q]
293- let P = aM[r]
294- let ah = parseIntValue(aM[t])
295- let I = parseIntValue(aM[u])
296- let ag = aM[s]
267+ let aG = at(M)
268+ let af = aG[q]
269+ let P = aG[r]
270+ let ah = parseIntValue(aG[t])
271+ let I = parseIntValue(aG[u])
272+ let ag = aG[s]
297273 let ax = addressFromPublicKey(fromBase58String(ag))
298274 let az = ((height - ah) > c)
299275 let aA = L(M, I)
300276 if ((af != y))
301277 then throw("Invalid game state for passed gameId")
302278 else if (az)
303279 then {
304280 let aa = take(P, 1)
305281 let ay = ae(z, P, ag, ah, I, aa)
306282 aw(M, ax, I, ay, az, aA)
307283 }
308284 else {
309285 let aa = T(V(M, W))
310286 if (Z(P, aa))
311287 then {
312288 let ay = ae(z, P, ag, ah, I, aa)
313289 aw(M, ax, I, ay, az, aA)
314290 }
315291 else {
316292 let ay = ae(A, P, ag, ah, I, aa)
317293 WriteSet([DataEntry(M, ay), aA])
318294 }
319295 }
320296 }
321297
322298
323-@Verifier(aN)
324-func aO () = if (sigVerify(aN.bodyBytes, aN.proofs[0], aN.senderPublicKey))
299+@Verifier(aH)
300+func aI () = if (sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey))
325301 then {
326- let D = aN
302+ let D = aH
327303 if ($isInstanceOf(D, "TransferTransaction"))
328304 then {
329- let aP = D
330- ((wavesBalance(this) - aP.amount) >= F())
305+ let aJ = D
306+ ((wavesBalance(this) - aJ.amount) >= F())
331307 }
332308 else if ($isInstanceOf(D, "SetScriptTransaction"))
333309 then {
334- let aQ = D
310+ let aK = D
335311 true
336312 }
337313 else false
338314 }
339315 else false
340316

github/deemru/w8io/026f985 
40.34 ms